Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: FBP protocol #460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/fbp/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
docs
jest-coverage
node_modules
9 changes: 9 additions & 0 deletions packages/fbp/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dist/**
coverage/**
storybook-static/**
docs
site
cypress
cli
.rollup.cache
.turbo
9 changes: 9 additions & 0 deletions packages/fbp/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable no-undef */
/** @type {import("eslint").Linter.Config} */

module.exports = {
root:true,
extends: [require.resolve('@tokens-studio/eslint-custom-config/index.js')],
rules:{
}
};
10 changes: 10 additions & 0 deletions packages/fbp/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package.json
package-lock.json
dist
coverage
docs
jest-coverage
site
cli
.turbo
.rollup.cache
246 changes: 246 additions & 0 deletions packages/fbp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
# @tokens-studio/graph-engine

## 0.17.4

### Patch Changes

- 1160ca8: Fixed an issue with the dropPanel height overflow. Fixed the resolve Tokens node to properly adhere to the existing typography and boxshadow structure

## 0.17.3

### Patch Changes

- 08de54a: Fixed Remap Node and updated usability

## 0.17.2

### Patch Changes

- ba4bb9c: Update miniizeFlowGraph to be quiet if disconnected edges are detected

## 0.17.1

### Patch Changes

- 473c0a3: Update miniizeFlowGraph to be quiet if disconnected edges are detected
- e068662: Remove console.log message from join string

## 0.17.0

### Minor Changes

- 248400c: Added new set color value node, added color as constant input type, added new array name node for incremental naming
- 6e58e27: Add CSS function node

### Patch Changes

- 69ea7b7: extract functions and presort items

## 0.16.0

### Minor Changes

- 22c6c01: Add Array Pass Unit Node
- 990b5a6: Update Series nodes to be more aligned
- 1c8fa1c: Added precision to arithmetic, geometric and harmonic series

## 0.15.3

### Patch Changes

- be2fe56: Bump engine for latest changes

## 0.15.2

### Patch Changes

- 1270113: Fix error on empty state for contrast node

## 0.15.1

### Patch Changes

- f52e0d7: Removed apca-w3 and replaced it with colorjs.io

## 0.15.0

### Minor Changes

- 612bc38: Exposes an extra output in token sets to allow users to interact with the set as an object

### Patch Changes

- 612bc38: Fixes how tokens are exposed in the token set to follow scope naming

## 0.14.0

### Minor Changes

- bd2346b: Exposes an extra output in token sets to allow users to interact with the set as an object

## 0.13.1

### Patch Changes

- cbc7ab3: Fixes the extract single token node which was never extracting the token

## 0.13.0

### Minor Changes

- c0fcbd6: Add Node Nearest to Color
- 4296c47: Add color name node
- bf4f5a1: Add regex support to select tokens node
- 53b29d3: Add split string node

## 0.12.0

### Minor Changes

- a7baf6d: add ungroup node, add select single token node, fix input issue on group and extract tokens

### Patch Changes

- 91da25d: Fix an issue with ESM loading not working correctly. Converts the input of the extract Tokens and Extract Single Token Node to use Regex

## 0.11.0

### Minor Changes

- de6a6f0: add ungroup node, add select single token node, fix input issue on group and extract tokens

### Patch Changes

- de6a6f0: Fix an issue with ESM loading not working correctly. Converts the input of the extract Tokens and Extract Single Token Node to use Regex

## 0.10.0

### Minor Changes

- eefa966: add ungroup node, add select single token node, fix input issue on group and extract tokens
- eaf05cd: Add Contrasting from Set node to return the first element of an array that has sufficient contrast

## 0.9.0

### Minor Changes

- ca1ed6d: Adds in a group and extract node for set manipulation

### Patch Changes

- ca1ed6d: Fix an issue with the editor where clicking on edges did not work as expected. Fixed an issue where the code was not being set correctly during the load of the initial graph

## 0.8.0

### Minor Changes

- d2096c1: Adds in a group and extract node for set manipulation

## 0.7.0

### Minor Changes

- 3a38bfe: Adds a base font node based on german DIN 1450 and calculates the min required font size for readability
- ed80a0b: Add a sort array node
- 4e19200: Adds a string join node

### Patch Changes

- e04601d: Trig should throw an error
- ab797ce: Fixed an issue with the basefont node

## 0.6.1

### Patch Changes

- f077533: Fixed input validation for tokenset input

## 0.6.0

### Minor Changes

- 732f6ee: - Adds a parse Unit node.
- Adds `align-items` to the exposed UI
- Adds native supports for tokenSets in input
- Adds Json node (alpha)
- 732f6ee: Added new nodes for array concatenation and css box models

## 0.5.0

### Minor Changes

- 7644d05: - Adds a parse Unit node.
- Adds `align-items` to the exposed UI
- Adds native supports for tokenSets in input
- Adds Json node (alpha)
- 7644d05: Added new nodes for array concatenation and css box models

## 0.4.0

### Minor Changes

- 745e1a2: - Adds a parse Unit node.
- Adds `align-items` to the exposed UI
- Adds native supports for tokenSets in input
- Adds Json node (alpha)

## 0.3.0

### Minor Changes

- be38194: Add new node for contrasting color supporting wcag 2.1 and 3.0
- b1a09fd: Add Color Wheel node
- 823ac1e: Added Objectify and Dotprop nodes

### Patch Changes

- 122c050: Fixed issue with slider not working as expected

## 0.2.2

### Patch Changes

- a67b830: Some nodes were not exported, namely the convert node from color

## 0.2.1

### Patch Changes

- ec4a20a: Fix exposure of graph controls

## 0.2.0

### Minor Changes

- c95ee97: Removed graphlib dependency and swapped it out for an internal representation

## 0.1.0

### Minor Changes

- 4e36db5: Add more test nodes and fix culori problem
- d30d954: Added Advanced blend node, fixe bugs in remap and added step down in the harmonic

## 0.0.4

### Patch Changes

- 16716d0: Fixed issue with remap not respecting the input key and rather using the index

## 0.0.3

### Patch Changes

- a4f784f: Remove husky as postinstall script. It was affecting downstream users

## 0.0.2

### Patch Changes

- f5bff7c: Adds support for external load side effect with ephemeral data as well as protecting against dangling edges

## 0.0.1

### Patch Changes

- ed3e391: Add extra docs
37 changes: 37 additions & 0 deletions packages/fbp/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
“Commons Clause” License Condition v1.0

The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.

Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.

For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.

Software: Graph Engine

License: MIT

Licensor: Hyma BV

---

MIT License

Copyright (c) 2023 Hyma BV

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
51 changes: 51 additions & 0 deletions packages/fbp/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* eslint-disable import/no-anonymous-default-export */
export default {
coverageDirectory: "<rootDir>/jest-coverage",
collectCoverage: true,
collectCoverageFrom: ["<rootDir>/src/**.{js,jsx,ts,tsx}"],
coverageReporters: ["json"],
coveragePathIgnorePatterns: [
"!<rootDir>/dist/",
"!<rootDir>/jest-coverage",
"!<rootDir>/types/",
"!*.d.ts",
],
// preset: 'ts-jest/presets/js-with-ts',
moduleFileExtensions: ["js", "jsx", "ts", "tsx", "json"],
moduleNameMapper: {
// Yes it should be an array to ensure consistency, but jest does not offer this
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/tests/__mocks__/file-mock.js",
".+\\.(css|less|scss|sass|styl)$": "identity-obj-proxy"
},
transform: {
"^.+\\.(js|jsx)$": "babel-jest",
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
tsconfig: "tsconfig.test.json",
},
],
},
transformIgnorePatterns: [
// Change MODULE_NAME_HERE to your module that isn't being compiled
"/node_modules/(?!(apca-w3|colorparsley|dot-prop|culori)).+\\.js$",
],
resolver: "ts-jest-resolver",
reporters: [
"default",
[
"jest-junit",
{
outputDirectory: "<rootDir>/jest-coverage",
outputName: "junit.xml",
},
],
],
testPathIgnorePatterns: [],
globals: {
__PATH_PREFIX__: "",
},
roots: ["<rootDir>"],
rootDir: ".",
};
Loading