-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/master' into next
- Loading branch information
Showing
143 changed files
with
2,336 additions
and
958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@tokens-studio/graph-engine-nodes-design-tokens": minor | ||
"@tokens-studio/graph-editor": minor | ||
"@tokens-studio/graph-engine": minor | ||
"@tokens-studio/graph-engine-nodes-image": minor | ||
"@tokens-studio/graph-engine-migration": minor | ||
"@tokens-studio/graph-engine-nodes-fs": minor | ||
--- | ||
|
||
Removes tsup completely to prevent bundling, and rather to use raw typescript compilation |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@tokens-studio/graph-engine": minor | ||
--- | ||
|
||
Add support for all colorjs color spaces in the color nodes like color to string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ dist | |
docs | ||
yarn-error.log | ||
out | ||
data/postgres | ||
data/postgres | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ | |
] | ||
}, | ||
"dependencies": { | ||
"ts-patch": "^3.2.1", | ||
"patch-package": "^8.0.0" | ||
}, | ||
"devDependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@tokens-studio/graph-editor", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"description": "UI for the graph engine", | ||
"author": "[email protected]", | ||
"type": "module", | ||
|
@@ -10,20 +10,25 @@ | |
"url": "https://github.com/tokens-studio/graph-engine" | ||
}, | ||
"exports": { | ||
"./*": { | ||
"import": "./dist/*", | ||
"types": "./dist/*", | ||
"style": "./dist/*" | ||
}, | ||
".": { | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"./index.css": "./dist/index.css" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"start": "vite dev", | ||
"build": "tsup", | ||
"build": "node ./scripts/extractVersion.mjs && tspc -p tsconfig.prod.json && npm run build:css", | ||
"build:css": "postcss src/index.scss --base src --dir dist --ext css", | ||
"build:storybook": "storybook build", | ||
"dev": "tsup --watch", | ||
"dev": "tspc -p tsconfig.prod.json --watch || npm run build:css --watch", | ||
"format": "npm run format:eslint && npm run format:prettier", | ||
"format:eslint": "eslint . --fix", | ||
"format:prettier": "prettier \"**/*.{tsx,ts,js,md,json}\" --write", | ||
|
@@ -61,6 +66,7 @@ | |
"dagre": "^0.8.5", | ||
"dot-prop": "^8.0.0", | ||
"focus-trap-react": "^10.1.1", | ||
"graphlib": "^2.1.8", | ||
"iconoir-react": "^7.6.0", | ||
"json5": "^2.2.3", | ||
"jszip": "^3.10.1", | ||
|
@@ -102,23 +108,31 @@ | |
"@storybook/addon-mdx-gfm": "^8.0.9", | ||
"@storybook/react": "^8.0.9", | ||
"@storybook/react-vite": "^8.0.9", | ||
"postcss-scss": "^4.0.9", | ||
"@tokens-studio/eslint-config-custom": "*", | ||
"@tokens-studio/prettier-config-custom": "*", | ||
"@types/graphlib": "^2.1.8", | ||
"@types/react": "^18.0.37", | ||
"@types/react-dom": "^18.0.11", | ||
"@vitejs/plugin-react-swc": "^3.6.0", | ||
"autoprefixer": "^10.4.20", | ||
"cssnano": "^7.0.6", | ||
"cypress": "^13.9.0", | ||
"cypress-react-selector": "^3.0.0", | ||
"esbuild-sass-plugin": "^3.3.1", | ||
"glob": "^11.0.0", | ||
"postcss": "^8.4.47", | ||
"postcss-cli": "^11.0.0", | ||
"postcss-css-variables": "^0.19.0", | ||
"postcss-import": "^16.1.0", | ||
"postcss-nested": "^6.2.0", | ||
"postcss-preset-env": "^10.0.5", | ||
"resp": "^0.1.1", | ||
"resq": "^1.11.0", | ||
"start-server-and-test": "^2.0.4", | ||
"storybook": "^8.0.9", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.4.5", | ||
"typescript-transform-paths": "^3.5.1", | ||
"vite": "^5.2.10", | ||
"vite-plugin-babel": "^1.2.0", | ||
"vite-tsconfig-paths": "^4.2.2" | ||
}, | ||
"publishConfig": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import autoprefixer from 'autoprefixer'; | ||
import cssnano from 'cssnano'; | ||
import postcssImport from 'postcss-import'; | ||
import postcssNested from 'postcss-nested'; | ||
import postcssPresetEnv from 'postcss-preset-env'; | ||
|
||
export default { | ||
parser: 'postcss-scss', | ||
plugins: [ | ||
postcssImport({ | ||
filter: (url) => { | ||
if (url.startsWith('.')) { | ||
return true; | ||
} | ||
return false; | ||
}, | ||
}), | ||
postcssNested(), | ||
postcssPresetEnv(), | ||
autoprefixer(), | ||
cssnano(), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import fs from 'fs/promises'; | ||
import path from 'path'; | ||
|
||
|
||
async function extractVersion() { | ||
const raw = await fs.readFile('./package.json'); | ||
const packageJson = JSON.parse(raw); | ||
const version = packageJson.version; | ||
const filePath = path.join( 'src', 'data', 'version.ts'); | ||
const fileContent = `export const version = '${version}';\n`; | ||
|
||
await fs.writeFile(filePath, fileContent); | ||
console.log(`Updated version to ${version} in ${filePath}`); | ||
|
||
} | ||
|
||
|
||
extractVersion(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.