Skip to content

Commit c08c0b1

Browse files
committed
Stash
1 parent fa6723b commit c08c0b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4152
-0
lines changed

packages/fbp/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
docs
3+
jest-coverage
4+
node_modules

packages/fbp/.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist/**
2+
coverage/**
3+
storybook-static/**
4+
docs
5+
site
6+
cypress
7+
cli
8+
.rollup.cache
9+
.turbo

packages/fbp/.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-disable no-undef */
2+
/** @type {import("eslint").Linter.Config} */
3+
4+
module.exports = {
5+
root:true,
6+
extends: [require.resolve('@tokens-studio/eslint-custom-config/index.js')],
7+
rules:{
8+
}
9+
};

packages/fbp/.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package.json
2+
package-lock.json
3+
dist
4+
coverage
5+
docs
6+
jest-coverage
7+
site
8+
cli
9+
.turbo
10+
.rollup.cache

packages/fbp/CHANGELOG.md

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
# @tokens-studio/graph-engine
2+
3+
## 0.17.4
4+
5+
### Patch Changes
6+
7+
- 1160ca8: Fixed an issue with the dropPanel height overflow. Fixed the resolve Tokens node to properly adhere to the existing typography and boxshadow structure
8+
9+
## 0.17.3
10+
11+
### Patch Changes
12+
13+
- 08de54a: Fixed Remap Node and updated usability
14+
15+
## 0.17.2
16+
17+
### Patch Changes
18+
19+
- ba4bb9c: Update miniizeFlowGraph to be quiet if disconnected edges are detected
20+
21+
## 0.17.1
22+
23+
### Patch Changes
24+
25+
- 473c0a3: Update miniizeFlowGraph to be quiet if disconnected edges are detected
26+
- e068662: Remove console.log message from join string
27+
28+
## 0.17.0
29+
30+
### Minor Changes
31+
32+
- 248400c: Added new set color value node, added color as constant input type, added new array name node for incremental naming
33+
- 6e58e27: Add CSS function node
34+
35+
### Patch Changes
36+
37+
- 69ea7b7: extract functions and presort items
38+
39+
## 0.16.0
40+
41+
### Minor Changes
42+
43+
- 22c6c01: Add Array Pass Unit Node
44+
- 990b5a6: Update Series nodes to be more aligned
45+
- 1c8fa1c: Added precision to arithmetic, geometric and harmonic series
46+
47+
## 0.15.3
48+
49+
### Patch Changes
50+
51+
- be2fe56: Bump engine for latest changes
52+
53+
## 0.15.2
54+
55+
### Patch Changes
56+
57+
- 1270113: Fix error on empty state for contrast node
58+
59+
## 0.15.1
60+
61+
### Patch Changes
62+
63+
- f52e0d7: Removed apca-w3 and replaced it with colorjs.io
64+
65+
## 0.15.0
66+
67+
### Minor Changes
68+
69+
- 612bc38: Exposes an extra output in token sets to allow users to interact with the set as an object
70+
71+
### Patch Changes
72+
73+
- 612bc38: Fixes how tokens are exposed in the token set to follow scope naming
74+
75+
## 0.14.0
76+
77+
### Minor Changes
78+
79+
- bd2346b: Exposes an extra output in token sets to allow users to interact with the set as an object
80+
81+
## 0.13.1
82+
83+
### Patch Changes
84+
85+
- cbc7ab3: Fixes the extract single token node which was never extracting the token
86+
87+
## 0.13.0
88+
89+
### Minor Changes
90+
91+
- c0fcbd6: Add Node Nearest to Color
92+
- 4296c47: Add color name node
93+
- bf4f5a1: Add regex support to select tokens node
94+
- 53b29d3: Add split string node
95+
96+
## 0.12.0
97+
98+
### Minor Changes
99+
100+
- a7baf6d: add ungroup node, add select single token node, fix input issue on group and extract tokens
101+
102+
### Patch Changes
103+
104+
- 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
105+
106+
## 0.11.0
107+
108+
### Minor Changes
109+
110+
- de6a6f0: add ungroup node, add select single token node, fix input issue on group and extract tokens
111+
112+
### Patch Changes
113+
114+
- 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
115+
116+
## 0.10.0
117+
118+
### Minor Changes
119+
120+
- eefa966: add ungroup node, add select single token node, fix input issue on group and extract tokens
121+
- eaf05cd: Add Contrasting from Set node to return the first element of an array that has sufficient contrast
122+
123+
## 0.9.0
124+
125+
### Minor Changes
126+
127+
- ca1ed6d: Adds in a group and extract node for set manipulation
128+
129+
### Patch Changes
130+
131+
- 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
132+
133+
## 0.8.0
134+
135+
### Minor Changes
136+
137+
- d2096c1: Adds in a group and extract node for set manipulation
138+
139+
## 0.7.0
140+
141+
### Minor Changes
142+
143+
- 3a38bfe: Adds a base font node based on german DIN 1450 and calculates the min required font size for readability
144+
- ed80a0b: Add a sort array node
145+
- 4e19200: Adds a string join node
146+
147+
### Patch Changes
148+
149+
- e04601d: Trig should throw an error
150+
- ab797ce: Fixed an issue with the basefont node
151+
152+
## 0.6.1
153+
154+
### Patch Changes
155+
156+
- f077533: Fixed input validation for tokenset input
157+
158+
## 0.6.0
159+
160+
### Minor Changes
161+
162+
- 732f6ee: - Adds a parse Unit node.
163+
- Adds `align-items` to the exposed UI
164+
- Adds native supports for tokenSets in input
165+
- Adds Json node (alpha)
166+
- 732f6ee: Added new nodes for array concatenation and css box models
167+
168+
## 0.5.0
169+
170+
### Minor Changes
171+
172+
- 7644d05: - Adds a parse Unit node.
173+
- Adds `align-items` to the exposed UI
174+
- Adds native supports for tokenSets in input
175+
- Adds Json node (alpha)
176+
- 7644d05: Added new nodes for array concatenation and css box models
177+
178+
## 0.4.0
179+
180+
### Minor Changes
181+
182+
- 745e1a2: - Adds a parse Unit node.
183+
- Adds `align-items` to the exposed UI
184+
- Adds native supports for tokenSets in input
185+
- Adds Json node (alpha)
186+
187+
## 0.3.0
188+
189+
### Minor Changes
190+
191+
- be38194: Add new node for contrasting color supporting wcag 2.1 and 3.0
192+
- b1a09fd: Add Color Wheel node
193+
- 823ac1e: Added Objectify and Dotprop nodes
194+
195+
### Patch Changes
196+
197+
- 122c050: Fixed issue with slider not working as expected
198+
199+
## 0.2.2
200+
201+
### Patch Changes
202+
203+
- a67b830: Some nodes were not exported, namely the convert node from color
204+
205+
## 0.2.1
206+
207+
### Patch Changes
208+
209+
- ec4a20a: Fix exposure of graph controls
210+
211+
## 0.2.0
212+
213+
### Minor Changes
214+
215+
- c95ee97: Removed graphlib dependency and swapped it out for an internal representation
216+
217+
## 0.1.0
218+
219+
### Minor Changes
220+
221+
- 4e36db5: Add more test nodes and fix culori problem
222+
- d30d954: Added Advanced blend node, fixe bugs in remap and added step down in the harmonic
223+
224+
## 0.0.4
225+
226+
### Patch Changes
227+
228+
- 16716d0: Fixed issue with remap not respecting the input key and rather using the index
229+
230+
## 0.0.3
231+
232+
### Patch Changes
233+
234+
- a4f784f: Remove husky as postinstall script. It was affecting downstream users
235+
236+
## 0.0.2
237+
238+
### Patch Changes
239+
240+
- f5bff7c: Adds support for external load side effect with ephemeral data as well as protecting against dangling edges
241+
242+
## 0.0.1
243+
244+
### Patch Changes
245+
246+
- ed3e391: Add extra docs

packages/fbp/LICENCE

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
“Commons Clause” License Condition v1.0
2+
3+
The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
4+
5+
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.
6+
7+
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.
8+
9+
Software: Graph Engine
10+
11+
License: MIT
12+
13+
Licensor: Hyma BV
14+
15+
---
16+
17+
MIT License
18+
19+
Copyright (c) 2023 Hyma BV
20+
21+
Permission is hereby granted, free of charge, to any person obtaining a copy
22+
of this software and associated documentation files (the "Software"), to deal
23+
in the Software without restriction, including without limitation the rights
24+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
copies of the Software, and to permit persons to whom the Software is
26+
furnished to do so, subject to the following conditions:
27+
28+
The above copyright notice and this permission notice shall be included in all
29+
copies or substantial portions of the Software.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37+
SOFTWARE.

packages/fbp/jest.config.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/* eslint-disable import/no-anonymous-default-export */
2+
export default {
3+
coverageDirectory: "<rootDir>/jest-coverage",
4+
collectCoverage: true,
5+
collectCoverageFrom: ["<rootDir>/src/**.{js,jsx,ts,tsx}"],
6+
coverageReporters: ["json"],
7+
coveragePathIgnorePatterns: [
8+
"!<rootDir>/dist/",
9+
"!<rootDir>/jest-coverage",
10+
"!<rootDir>/types/",
11+
"!*.d.ts",
12+
],
13+
// preset: 'ts-jest/presets/js-with-ts',
14+
moduleFileExtensions: ["js", "jsx", "ts", "tsx", "json"],
15+
moduleNameMapper: {
16+
// Yes it should be an array to ensure consistency, but jest does not offer this
17+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
18+
"<rootDir>/tests/__mocks__/file-mock.js",
19+
".+\\.(css|less|scss|sass|styl)$": "identity-obj-proxy"
20+
},
21+
transform: {
22+
"^.+\\.(js|jsx)$": "babel-jest",
23+
"^.+\\.(ts|tsx)$": [
24+
"ts-jest",
25+
{
26+
tsconfig: "tsconfig.test.json",
27+
},
28+
],
29+
},
30+
transformIgnorePatterns: [
31+
// Change MODULE_NAME_HERE to your module that isn't being compiled
32+
"/node_modules/(?!(apca-w3|colorparsley|dot-prop|culori)).+\\.js$",
33+
],
34+
resolver: "ts-jest-resolver",
35+
reporters: [
36+
"default",
37+
[
38+
"jest-junit",
39+
{
40+
outputDirectory: "<rootDir>/jest-coverage",
41+
outputName: "junit.xml",
42+
},
43+
],
44+
],
45+
testPathIgnorePatterns: [],
46+
globals: {
47+
__PATH_PREFIX__: "",
48+
},
49+
roots: ["<rootDir>"],
50+
rootDir: ".",
51+
};

0 commit comments

Comments
 (0)