@reopt-ai/opt-devtool 1.0.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/CHANGELOG.md +31 -0
- package/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/brandapp/index.cjs +391 -0
- package/dist/brandapp/index.d.cts +95 -0
- package/dist/brandapp/index.d.ts +95 -0
- package/dist/brandapp/index.js +391 -0
- package/dist/chunk-4MJKIAXH.cjs +65 -0
- package/dist/chunk-5HRIQSVF.js +32 -0
- package/dist/chunk-6AGUYGVT.cjs +77 -0
- package/dist/chunk-EQPETYJJ.cjs +32 -0
- package/dist/chunk-H3F2WACS.cjs +568 -0
- package/dist/chunk-N7YO56TN.cjs +25 -0
- package/dist/chunk-SQ3E3QLA.cjs +253 -0
- package/dist/chunk-SW2FF6EV.js +568 -0
- package/dist/chunk-UJSIQF3A.js +25 -0
- package/dist/chunk-UQY5I3WS.js +253 -0
- package/dist/chunk-YCYIUFB4.js +65 -0
- package/dist/chunk-Z2KFRHSI.js +77 -0
- package/dist/datagrid/index.cjs +187 -0
- package/dist/datagrid/index.d.cts +14 -0
- package/dist/datagrid/index.d.ts +14 -0
- package/dist/datagrid/index.js +187 -0
- package/dist/editor/index.cjs +239 -0
- package/dist/editor/index.d.cts +14 -0
- package/dist/editor/index.d.ts +14 -0
- package/dist/editor/index.js +239 -0
- package/dist/harness/index.cjs +13 -0
- package/dist/harness/index.d.cts +30 -0
- package/dist/harness/index.d.ts +30 -0
- package/dist/harness/index.js +13 -0
- package/dist/index-Bakx4o8Z.d.cts +91 -0
- package/dist/index-Bakx4o8Z.d.ts +91 -0
- package/dist/index.cjs +3895 -0
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +3895 -0
- package/dist/theme/index.cjs +13 -0
- package/dist/theme/index.d.cts +33 -0
- package/dist/theme/index.d.ts +33 -0
- package/dist/theme/index.js +13 -0
- package/dist/ui/index.cjs +8 -0
- package/dist/ui/index.d.cts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +8 -0
- package/package.json +153 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkSQ3E3QLAcjs = require('../chunk-SQ3E3QLA.cjs');
|
|
7
|
+
require('../chunk-EQPETYJJ.cjs');
|
|
8
|
+
require('../chunk-6AGUYGVT.cjs');
|
|
9
|
+
require('../chunk-N7YO56TN.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.themeConfigToSnapshot = _chunkSQ3E3QLAcjs.themeConfigToSnapshot; exports.useThemeDevtoolBridge = _chunkSQ3E3QLAcjs.useThemeDevtoolBridge;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ResolvedShellThemeConfig } from '@reopt-ai/opt-shell';
|
|
2
|
+
|
|
3
|
+
interface ThemeDevtoolSnapshot {
|
|
4
|
+
mode: "preset" | "generated";
|
|
5
|
+
preset: string;
|
|
6
|
+
seed?: string;
|
|
7
|
+
harmony?: string;
|
|
8
|
+
radiusScale?: string;
|
|
9
|
+
shadowIntensity?: string;
|
|
10
|
+
neutralTemperature?: string;
|
|
11
|
+
forceLightOnly: boolean;
|
|
12
|
+
lightTokens?: Record<string, string>;
|
|
13
|
+
darkTokens?: Record<string, string>;
|
|
14
|
+
contrastPairs?: {
|
|
15
|
+
fg: string;
|
|
16
|
+
bg: string;
|
|
17
|
+
ratio: number;
|
|
18
|
+
level: "AAA" | "AA" | "Fail";
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
interface UseThemeDevtoolBridgeOptions {
|
|
22
|
+
id?: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
order?: number;
|
|
25
|
+
}
|
|
26
|
+
interface RegisteredThemeDevtoolBridge {
|
|
27
|
+
inspect: (snapshot: ThemeDevtoolSnapshot) => void;
|
|
28
|
+
}
|
|
29
|
+
/** Build a ThemeDevtoolSnapshot from a ResolvedShellThemeConfig */
|
|
30
|
+
declare function themeConfigToSnapshot(theme: ResolvedShellThemeConfig): ThemeDevtoolSnapshot;
|
|
31
|
+
declare function useThemeDevtoolBridge({ id, label, order, }?: UseThemeDevtoolBridgeOptions): RegisteredThemeDevtoolBridge;
|
|
32
|
+
|
|
33
|
+
export { type RegisteredThemeDevtoolBridge, type ThemeDevtoolSnapshot, type UseThemeDevtoolBridgeOptions, themeConfigToSnapshot, useThemeDevtoolBridge };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ResolvedShellThemeConfig } from '@reopt-ai/opt-shell';
|
|
2
|
+
|
|
3
|
+
interface ThemeDevtoolSnapshot {
|
|
4
|
+
mode: "preset" | "generated";
|
|
5
|
+
preset: string;
|
|
6
|
+
seed?: string;
|
|
7
|
+
harmony?: string;
|
|
8
|
+
radiusScale?: string;
|
|
9
|
+
shadowIntensity?: string;
|
|
10
|
+
neutralTemperature?: string;
|
|
11
|
+
forceLightOnly: boolean;
|
|
12
|
+
lightTokens?: Record<string, string>;
|
|
13
|
+
darkTokens?: Record<string, string>;
|
|
14
|
+
contrastPairs?: {
|
|
15
|
+
fg: string;
|
|
16
|
+
bg: string;
|
|
17
|
+
ratio: number;
|
|
18
|
+
level: "AAA" | "AA" | "Fail";
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
interface UseThemeDevtoolBridgeOptions {
|
|
22
|
+
id?: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
order?: number;
|
|
25
|
+
}
|
|
26
|
+
interface RegisteredThemeDevtoolBridge {
|
|
27
|
+
inspect: (snapshot: ThemeDevtoolSnapshot) => void;
|
|
28
|
+
}
|
|
29
|
+
/** Build a ThemeDevtoolSnapshot from a ResolvedShellThemeConfig */
|
|
30
|
+
declare function themeConfigToSnapshot(theme: ResolvedShellThemeConfig): ThemeDevtoolSnapshot;
|
|
31
|
+
declare function useThemeDevtoolBridge({ id, label, order, }?: UseThemeDevtoolBridgeOptions): RegisteredThemeDevtoolBridge;
|
|
32
|
+
|
|
33
|
+
export { type RegisteredThemeDevtoolBridge, type ThemeDevtoolSnapshot, type UseThemeDevtoolBridgeOptions, themeConfigToSnapshot, useThemeDevtoolBridge };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
themeConfigToSnapshot,
|
|
5
|
+
useThemeDevtoolBridge
|
|
6
|
+
} from "../chunk-UQY5I3WS.js";
|
|
7
|
+
import "../chunk-5HRIQSVF.js";
|
|
8
|
+
import "../chunk-Z2KFRHSI.js";
|
|
9
|
+
import "../chunk-UJSIQF3A.js";
|
|
10
|
+
export {
|
|
11
|
+
themeConfigToSnapshot,
|
|
12
|
+
useThemeDevtoolBridge
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk4MJKIAXHcjs = require('../chunk-4MJKIAXH.cjs');
|
|
5
|
+
require('../chunk-N7YO56TN.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.OPT_DEVTOOL_CONFIGURE_EVENT = _chunk4MJKIAXHcjs.OPT_DEVTOOL_CONFIGURE_EVENT;
|
package/dist/ui/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@reopt-ai/opt-devtool",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Development-only devtool overlay for opt-ui, opt-datagrid, opt-editor, and opt-shell.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"react",
|
|
9
|
+
"devtools",
|
|
10
|
+
"inspector",
|
|
11
|
+
"overlay",
|
|
12
|
+
"design-system",
|
|
13
|
+
"debugging",
|
|
14
|
+
"reopt"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20.0.0"
|
|
18
|
+
},
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "reopt-ai",
|
|
21
|
+
"url": "https://github.com/reopt-ai"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/reopt-ai/react-design.git",
|
|
26
|
+
"directory": "packages/opt-devtool"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://design.reopt.ai/docs/opt-devtool",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public",
|
|
31
|
+
"registry": "https://registry.npmjs.org"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"main": "./dist/index.cjs",
|
|
35
|
+
"module": "./dist/index.js",
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"import": {
|
|
40
|
+
"types": "./dist/index.d.ts",
|
|
41
|
+
"default": "./dist/index.js"
|
|
42
|
+
},
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./dist/index.d.cts",
|
|
45
|
+
"default": "./dist/index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"default": "./dist/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./ui": {
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/ui/index.d.ts",
|
|
52
|
+
"default": "./dist/ui/index.js"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/ui/index.d.cts",
|
|
56
|
+
"default": "./dist/ui/index.cjs"
|
|
57
|
+
},
|
|
58
|
+
"default": "./dist/ui/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./datagrid": {
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./dist/datagrid/index.d.ts",
|
|
63
|
+
"default": "./dist/datagrid/index.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./dist/datagrid/index.d.cts",
|
|
67
|
+
"default": "./dist/datagrid/index.cjs"
|
|
68
|
+
},
|
|
69
|
+
"default": "./dist/datagrid/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./editor": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/editor/index.d.ts",
|
|
74
|
+
"default": "./dist/editor/index.js"
|
|
75
|
+
},
|
|
76
|
+
"require": {
|
|
77
|
+
"types": "./dist/editor/index.d.cts",
|
|
78
|
+
"default": "./dist/editor/index.cjs"
|
|
79
|
+
},
|
|
80
|
+
"default": "./dist/editor/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./brandapp": {
|
|
83
|
+
"import": {
|
|
84
|
+
"types": "./dist/brandapp/index.d.ts",
|
|
85
|
+
"default": "./dist/brandapp/index.js"
|
|
86
|
+
},
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/brandapp/index.d.cts",
|
|
89
|
+
"default": "./dist/brandapp/index.cjs"
|
|
90
|
+
},
|
|
91
|
+
"default": "./dist/brandapp/index.js"
|
|
92
|
+
},
|
|
93
|
+
"./harness": {
|
|
94
|
+
"import": {
|
|
95
|
+
"types": "./dist/harness/index.d.ts",
|
|
96
|
+
"default": "./dist/harness/index.js"
|
|
97
|
+
},
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./dist/harness/index.d.cts",
|
|
100
|
+
"default": "./dist/harness/index.cjs"
|
|
101
|
+
},
|
|
102
|
+
"default": "./dist/harness/index.js"
|
|
103
|
+
},
|
|
104
|
+
"./theme": {
|
|
105
|
+
"import": {
|
|
106
|
+
"types": "./dist/theme/index.d.ts",
|
|
107
|
+
"default": "./dist/theme/index.js"
|
|
108
|
+
},
|
|
109
|
+
"require": {
|
|
110
|
+
"types": "./dist/theme/index.d.cts",
|
|
111
|
+
"default": "./dist/theme/index.cjs"
|
|
112
|
+
},
|
|
113
|
+
"default": "./dist/theme/index.js"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"imports": {
|
|
117
|
+
"#brandapp/*": "./src/brandapp/*.tsx",
|
|
118
|
+
"#datagrid/*": "./src/datagrid/*.tsx",
|
|
119
|
+
"#editor/*": "./src/editor/*.tsx",
|
|
120
|
+
"#harness/*": "./src/harness/*.tsx",
|
|
121
|
+
"#panels/*": "./src/panels/*.ts",
|
|
122
|
+
"#provider": "./src/provider.tsx",
|
|
123
|
+
"#scanning/*": "./src/scanning/*.ts"
|
|
124
|
+
},
|
|
125
|
+
"files": [
|
|
126
|
+
"dist",
|
|
127
|
+
"README.md",
|
|
128
|
+
"LICENSE",
|
|
129
|
+
"CHANGELOG.md"
|
|
130
|
+
],
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"@reopt-ai/opt-palette": "^1.0.0",
|
|
133
|
+
"@reopt-ai/opt-ui": "^1.4.1"
|
|
134
|
+
},
|
|
135
|
+
"peerDependencies": {
|
|
136
|
+
"react": "^19.0.0",
|
|
137
|
+
"react-dom": "^19.0.0",
|
|
138
|
+
"@reopt-ai/opt-datagrid": "*",
|
|
139
|
+
"@reopt-ai/opt-editor": "*",
|
|
140
|
+
"@reopt-ai/opt-shell": "*"
|
|
141
|
+
},
|
|
142
|
+
"peerDependenciesMeta": {
|
|
143
|
+
"@reopt-ai/opt-datagrid": {
|
|
144
|
+
"optional": true
|
|
145
|
+
},
|
|
146
|
+
"@reopt-ai/opt-editor": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
"@reopt-ai/opt-shell": {
|
|
150
|
+
"optional": true
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|