@reopt-ai/opt-devtool 1.0.0 → 1.0.1

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.
Files changed (54) hide show
  1. package/README.md +7 -0
  2. package/dist/brandapp/index.cjs +455 -364
  3. package/dist/brandapp/index.d.cts +70 -68
  4. package/dist/brandapp/index.d.ts +70 -68
  5. package/dist/brandapp/index.js +448 -361
  6. package/dist/datagrid/index.cjs +171 -181
  7. package/dist/datagrid/index.d.cts +10 -9
  8. package/dist/datagrid/index.d.ts +10 -9
  9. package/dist/datagrid/index.js +167 -179
  10. package/dist/editor/index.cjs +210 -229
  11. package/dist/editor/index.d.cts +10 -9
  12. package/dist/editor/index.d.ts +10 -9
  13. package/dist/editor/index.js +206 -227
  14. package/dist/harness/index.cjs +5 -12
  15. package/dist/harness/index.d.cts +14 -14
  16. package/dist/harness/index.d.ts +14 -14
  17. package/dist/harness/index.js +2 -11
  18. package/dist/harness-CoRqiJWO.cjs +584 -0
  19. package/dist/harness-DU8hP98g.js +536 -0
  20. package/dist/index.cjs +3687 -3816
  21. package/dist/index.d.cts +13 -15
  22. package/dist/index.d.ts +13 -15
  23. package/dist/index.js +3679 -3815
  24. package/dist/provider-Bn7CAE_Y.js +116 -0
  25. package/dist/provider-CLRiXjfD.cjs +168 -0
  26. package/dist/theme/index.cjs +296 -12
  27. package/dist/theme/index.d.cts +25 -24
  28. package/dist/theme/index.d.ts +25 -24
  29. package/dist/theme/index.js +292 -11
  30. package/dist/theme-isolate-DgSS935z.cjs +54 -0
  31. package/dist/theme-isolate-F-oX2d4W.js +43 -0
  32. package/dist/types-B_abMm2B.cjs +10 -0
  33. package/dist/types-DvhcaPXA.js +5 -0
  34. package/dist/types-oHbLkgEH.d.cts +95 -0
  35. package/dist/types-oHbLkgEH.d.ts +95 -0
  36. package/dist/ui/index.cjs +4 -8
  37. package/dist/ui/index.d.cts +3 -2
  38. package/dist/ui/index.d.ts +3 -2
  39. package/dist/ui/index.js +2 -7
  40. package/package.json +2 -2
  41. package/dist/chunk-4MJKIAXH.cjs +0 -65
  42. package/dist/chunk-5HRIQSVF.js +0 -32
  43. package/dist/chunk-6AGUYGVT.cjs +0 -77
  44. package/dist/chunk-EQPETYJJ.cjs +0 -32
  45. package/dist/chunk-H3F2WACS.cjs +0 -568
  46. package/dist/chunk-N7YO56TN.cjs +0 -25
  47. package/dist/chunk-SQ3E3QLA.cjs +0 -253
  48. package/dist/chunk-SW2FF6EV.js +0 -568
  49. package/dist/chunk-UJSIQF3A.js +0 -25
  50. package/dist/chunk-UQY5I3WS.js +0 -253
  51. package/dist/chunk-YCYIUFB4.js +0 -65
  52. package/dist/chunk-Z2KFRHSI.js +0 -77
  53. package/dist/index-Bakx4o8Z.d.cts +0 -91
  54. package/dist/index-Bakx4o8Z.d.ts +0 -91
@@ -1,2 +1,3 @@
1
- export { c as OPT_DEVTOOL_CONFIGURE_EVENT, d as OptDevtoolConfig } from '../index-Bakx4o8Z.cjs';
2
- import 'react';
1
+
2
+ import { n as OptDevtoolConfig, t as OPT_DEVTOOL_CONFIGURE_EVENT } from "../types-oHbLkgEH.cjs";
3
+ export { OPT_DEVTOOL_CONFIGURE_EVENT, type OptDevtoolConfig };
@@ -1,2 +1,3 @@
1
- export { c as OPT_DEVTOOL_CONFIGURE_EVENT, d as OptDevtoolConfig } from '../index-Bakx4o8Z.js';
2
- import 'react';
1
+
2
+ import { n as OptDevtoolConfig, t as OPT_DEVTOOL_CONFIGURE_EVENT } from "../types-oHbLkgEH.js";
3
+ export { OPT_DEVTOOL_CONFIGURE_EVENT, type OptDevtoolConfig };
package/dist/ui/index.js CHANGED
@@ -1,8 +1,3 @@
1
1
  "use client";
2
- import {
3
- OPT_DEVTOOL_CONFIGURE_EVENT
4
- } from "../chunk-YCYIUFB4.js";
5
- import "../chunk-UJSIQF3A.js";
6
- export {
7
- OPT_DEVTOOL_CONFIGURE_EVENT
8
- };
2
+ import { t as OPT_DEVTOOL_CONFIGURE_EVENT } from "../types-DvhcaPXA.js";
3
+ export { OPT_DEVTOOL_CONFIGURE_EVENT };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reopt-ai/opt-devtool",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Development-only devtool overlay for opt-ui, opt-datagrid, opt-editor, and opt-shell.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -130,7 +130,7 @@
130
130
  ],
131
131
  "dependencies": {
132
132
  "@reopt-ai/opt-palette": "^1.0.0",
133
- "@reopt-ai/opt-ui": "^1.4.1"
133
+ "@reopt-ai/opt-ui": "^1.6.0"
134
134
  },
135
135
  "peerDependencies": {
136
136
  "react": "^19.0.0",
@@ -1,65 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
-
3
- // src/i18n/ko.ts
4
- var koDevtoolLabels = {
5
- panelTitle: "opt-devtool",
6
- toggleHint: "Ctrl+Shift+F",
7
- copyButtonTooltip: "\uB514\uBC84\uADF8 \uC815\uBCF4 \uBCF5\uC0AC",
8
- closeButton: "\uB2EB\uAE30",
9
- tabComponent: "\uCEF4\uD3EC\uB10C\uD2B8",
10
- tabEditor: "opt-editor",
11
- tabBrandapp: "Brandapp",
12
- tabTheme: "\uD14C\uB9C8",
13
- tabHarness: "\uD558\uB124\uC2A4",
14
- emptyComponent: "\uC544\uBB34 \uC694\uC18C\uB97C \uD3EC\uCEE4\uC2A4\uD558\uBA74\n\uC815\uBCF4\uAC00 \uC5EC\uAE30\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4.",
15
- emptyEditor: "\uC774 \uD398\uC774\uC9C0\uC5D0 \uB4F1\uB85D\uB41C Editor snapshot\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
16
- emptyBrandapp: "\uC774 \uD398\uC774\uC9C0\uC5D0 \uB4F1\uB85D\uB41C Brandapp SDK snapshot\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
17
- emptyEnginePanel: "\uD328\uB110\uC744 \uC120\uD0DD\uD558\uC138\uC694",
18
- inspectingPinned: "\uC778\uC2A4\uD399\uD2B8 \uB300\uC0C1 (\uACE0\uC815)",
19
- inspecting: "\uC778\uC2A4\uD399\uD2B8 \uB300\uC0C1",
20
- currentFocus: "\uD604\uC7AC \uD3EC\uCEE4\uC2A4",
21
- componentTrace: "\uCEF4\uD3EC\uB10C\uD2B8 \uCD94\uC801",
22
- componentTree: "\uCEF4\uD3EC\uB10C\uD2B8 \uD2B8\uB9AC",
23
- noReactComponent: "React \uCEF4\uD3EC\uB10C\uD2B8\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C",
24
- tabOrderInline: "Tab \uC21C\uC11C",
25
- tabOrderOut: "Tab \uC21C\uC11C (\uC21C\uC11C \uBC16)",
26
- tabOrderHint: "Tab\uC73C\uB85C \uB3C4\uB2EC\uD560 \uC218 \uC5C6\uC74C (roving tabindex \uB610\uB294 \uD504\uB85C\uADF8\uB798\uBC0D \uD3EC\uCEE4\uC2A4)",
27
- shiftTabPrev: "Shift+Tab (\uC774\uC804)",
28
- tabNext: "Tab (\uB2E4\uC74C)",
29
- arrowKeysTitle: (type, index, total) => `\uBC29\uD5A5\uD0A4 (${type}) ${index}/${total}`,
30
- loopBadge: "Loop",
31
- wrapBadge: "Wrap",
32
- noArrowTarget: "\uBC29\uD5A5\uD0A4 \uB300\uC0C1 \uC5C6\uC74C (\uB05D)",
33
- spatialNav: "\uACF5\uAC04 \uB124\uBE44\uAC8C\uC774\uC158",
34
- spatialProtected: "\uBCF4\uD638\uB428",
35
- spatialNoCandidate: "\uD6C4\uBCF4 \uC5C6\uC74C",
36
- spatialTrappedContext: (context) => `trapped context (${context})`,
37
- history: "\uC774\uB3D9 \uAE30\uB85D",
38
- eventLogTitle: "\uC774\uBCA4\uD2B8 \uB85C\uADF8",
39
- eventLogClear: "\uC9C0\uC6B0\uAE30",
40
- eventLogWaiting: "\uC774\uBCA4\uD2B8 \uB300\uAE30 \uC911\u2026",
41
- overlaysSection: "\uC624\uBC84\uB808\uC774",
42
- panelsSection: "\uC815\uBCF4 \uD328\uB110",
43
- toggleGuide: "\uAC00\uC774\uB4DC \uB77C\uC778",
44
- toggleTabOrder: "Tab \uC21C\uC11C",
45
- toggleSpatialNav: "\uACF5\uAC04 \uD0D0\uC0C9",
46
- toggleComponentLabels: "\uCEF4\uD3EC\uB10C\uD2B8 \uB77C\uBCA8",
47
- toggleCompositeBounds: "Composite \uC601\uC5ED",
48
- toggleComponentTrace: "\uCEF4\uD3EC\uB10C\uD2B8 \uCD94\uC801",
49
- toggleComponentTree: "\uCEF4\uD3EC\uB10C\uD2B8 \uD2B8\uB9AC",
50
- toggleEventLog: "\uC774\uBCA4\uD2B8 \uB85C\uADF8",
51
- toggleInspect: "\uC778\uC2A4\uD399\uD2B8",
52
- trapped: "trapped",
53
- protected: "\uBCF4\uD638",
54
- filterUser: "\uC0AC\uC6A9\uC790",
55
- filterPrimitives: "Primitives",
56
- filterAll: "\uC804\uCCB4"
57
- };
58
-
59
- // src/types.ts
60
- var OPT_DEVTOOL_CONFIGURE_EVENT = "opt-devtool-configure";
61
-
62
-
63
-
64
-
65
- exports.koDevtoolLabels = koDevtoolLabels; exports.OPT_DEVTOOL_CONFIGURE_EVENT = OPT_DEVTOOL_CONFIGURE_EVENT;
@@ -1,32 +0,0 @@
1
- "use client";
2
- import {
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-UJSIQF3A.js";
6
-
7
- // src/theme-isolate.tsx
8
- var ISOLATE_STYLE = {
9
- color: "rgba(255, 255, 255, 0.8)",
10
- fontFamily: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',
11
- fontSize: "12px",
12
- fontWeight: 400,
13
- lineHeight: 1.5,
14
- letterSpacing: "normal",
15
- textTransform: "none",
16
- textDecoration: "none",
17
- fontStyle: "normal",
18
- colorScheme: "dark",
19
- textAlign: "left",
20
- wordSpacing: "normal",
21
- tabSize: 4,
22
- isolation: "isolate",
23
- boxSizing: "border-box"
24
- };
25
- var PANEL_STYLE = __spreadProps(__spreadValues({}, ISOLATE_STYLE), {
26
- backgroundColor: "#0a0a0a"
27
- });
28
-
29
- export {
30
- ISOLATE_STYLE,
31
- PANEL_STYLE
32
- };
@@ -1,77 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
2
-
3
-
4
-
5
- var _chunkN7YO56TNcjs = require('./chunk-N7YO56TN.cjs');
6
-
7
- // src/provider.tsx
8
- var _react = require('react'); var React = _interopRequireWildcard(_react);
9
- var _jsxruntime = require('react/jsx-runtime');
10
- var EMPTY_REGISTRY = {
11
- plugins: [],
12
- registerPlugin: () => () => void 0
13
- };
14
- var OptDevtoolRegistryContext = React.createContext(EMPTY_REGISTRY);
15
- function sortPlugins(plugins) {
16
- return [...plugins].sort((left, right) => {
17
- var _a, _b;
18
- const orderDelta = ((_a = left.order) != null ? _a : 0) - ((_b = right.order) != null ? _b : 0);
19
- if (orderDelta !== 0) {
20
- return orderDelta;
21
- }
22
- const labelDelta = left.label.localeCompare(right.label);
23
- if (labelDelta !== 0) {
24
- return labelDelta;
25
- }
26
- return left.id.localeCompare(right.id);
27
- });
28
- }
29
- function OptDevtoolProvider({
30
- children
31
- }) {
32
- const [plugins, setPlugins] = React.useState(
33
- []
34
- );
35
- const registerPlugin = React.useCallback((registrationKey, plugin) => {
36
- setPlugins(
37
- (current) => sortPlugins([
38
- ...current.filter((item) => item.registrationKey !== registrationKey),
39
- _chunkN7YO56TNcjs.__spreadProps.call(void 0, _chunkN7YO56TNcjs.__spreadValues.call(void 0, {}, plugin), {
40
- registrationKey
41
- })
42
- ])
43
- );
44
- return () => {
45
- setPlugins(
46
- (current) => current.filter((item) => item.registrationKey !== registrationKey)
47
- );
48
- };
49
- }, []);
50
- const value = React.useMemo(
51
- () => ({
52
- plugins,
53
- registerPlugin
54
- }),
55
- [plugins, registerPlugin]
56
- );
57
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OptDevtoolRegistryContext.Provider, { value, children });
58
- }
59
- function useOptDevtoolRegistry() {
60
- return React.useContext(OptDevtoolRegistryContext);
61
- }
62
- function useOptDevtoolPlugin(plugin) {
63
- const { registerPlugin } = useOptDevtoolRegistry();
64
- const registrationKey = React.useId();
65
- React.useEffect(() => {
66
- if (!plugin) {
67
- return void 0;
68
- }
69
- return registerPlugin(registrationKey, plugin);
70
- }, [plugin, registerPlugin, registrationKey]);
71
- }
72
-
73
-
74
-
75
-
76
-
77
- exports.OptDevtoolProvider = OptDevtoolProvider; exports.useOptDevtoolRegistry = useOptDevtoolRegistry; exports.useOptDevtoolPlugin = useOptDevtoolPlugin;
@@ -1,32 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
-
3
-
4
-
5
- var _chunkN7YO56TNcjs = require('./chunk-N7YO56TN.cjs');
6
-
7
- // src/theme-isolate.tsx
8
- var ISOLATE_STYLE = {
9
- color: "rgba(255, 255, 255, 0.8)",
10
- fontFamily: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',
11
- fontSize: "12px",
12
- fontWeight: 400,
13
- lineHeight: 1.5,
14
- letterSpacing: "normal",
15
- textTransform: "none",
16
- textDecoration: "none",
17
- fontStyle: "normal",
18
- colorScheme: "dark",
19
- textAlign: "left",
20
- wordSpacing: "normal",
21
- tabSize: 4,
22
- isolation: "isolate",
23
- boxSizing: "border-box"
24
- };
25
- var PANEL_STYLE = _chunkN7YO56TNcjs.__spreadProps.call(void 0, _chunkN7YO56TNcjs.__spreadValues.call(void 0, {}, ISOLATE_STYLE), {
26
- backgroundColor: "#0a0a0a"
27
- });
28
-
29
-
30
-
31
-
32
- exports.ISOLATE_STYLE = ISOLATE_STYLE; exports.PANEL_STYLE = PANEL_STYLE;