@uibot/renderer-react 0.15.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collection-application.js +11 -11
- package/dist/collection-editors.js +8 -8
- package/dist/collection-views.js +7 -7
- package/dist/collection-workspace.js +9 -9
- package/dist/color-palette.css +13 -0
- package/dist/color-palette.d.ts +31 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12 -12
- package/dist/paged-collection-grid.js +7 -7
- package/dist/saved-colors.d.ts +6 -0
- package/package.json +8 -5
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Browser storage is host-owned; this format contains opaque sRGB swatches only. */
|
|
2
|
+
export declare const SAVED_COLOR_LIMIT = 64;
|
|
3
|
+
export declare function normalizeSwatch(value: string): string | null;
|
|
4
|
+
export declare function uniqueSwatches(values: readonly string[]): string[];
|
|
5
|
+
export declare function parseSavedColors(raw: string | null): string[];
|
|
6
|
+
export declare function serializeSavedColors(colors: readonly string[]): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uibot/renderer-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"./html-source-editor.css": {
|
|
40
40
|
"default": "./dist/html-source-editor.css"
|
|
41
|
+
},
|
|
42
|
+
"./color-palette.css": {
|
|
43
|
+
"default": "./dist/color-palette.css"
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
46
|
"files": [
|
|
@@ -53,22 +56,22 @@
|
|
|
53
56
|
"@dnd-kit/core": "6.3.1",
|
|
54
57
|
"@dnd-kit/sortable": "10.0.0",
|
|
55
58
|
"@dnd-kit/utilities": "3.2.2",
|
|
56
|
-
"@uibot/contracts": "^0.
|
|
57
|
-
"@uibot/engine": "^0.
|
|
59
|
+
"@uibot/contracts": "^0.16.0",
|
|
60
|
+
"@uibot/engine": "^0.16.0",
|
|
58
61
|
"@tanstack/react-virtual": "3.14.13"
|
|
59
62
|
},
|
|
60
63
|
"peerDependencies": {
|
|
61
64
|
"react": ">=18"
|
|
62
65
|
},
|
|
63
66
|
"devDependencies": {
|
|
64
|
-
"@uibot/compiler": "^0.
|
|
67
|
+
"@uibot/compiler": "^0.16.0",
|
|
65
68
|
"cmdk": "^1.1.1",
|
|
66
69
|
"date-fns": "^4.1.0",
|
|
67
70
|
"lucide-react": "^1.56.0",
|
|
68
71
|
"react-day-picker": "^9.14.0"
|
|
69
72
|
},
|
|
70
73
|
"scripts": {
|
|
71
|
-
"build": "rm -rf dist && bun build --minify ./src/index.ts ./src/paged-collection-grid.tsx ./src/collection-editors.tsx ./src/collection-views.tsx ./src/collection-workspace.tsx ./src/collection-application.tsx --outdir ./dist --format esm --target browser --packages external --external react --external react/* --external @uibot/contracts --external @uibot/engine && cp ./src/html-source-editor.css ./
|
|
74
|
+
"build": "rm -rf dist && bun build --minify ./src/index.ts ./src/paged-collection-grid.tsx ./src/collection-editors.tsx ./src/collection-views.tsx ./src/collection-workspace.tsx ./src/collection-application.tsx --outdir ./dist --format esm --target browser --packages external --external react --external react/* --external @uibot/contracts --external @uibot/engine && cp ./src/html-source-editor.css ./src/color-palette.css ./dist/ && bun x tsc -p tsconfig.json",
|
|
72
75
|
"typecheck": "bun x tsc -p tsconfig.json --noEmit",
|
|
73
76
|
"test": "bun test"
|
|
74
77
|
}
|