@kubuild/editor 0.1.3 → 0.2.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.
Files changed (121) hide show
  1. package/README.md +106 -0
  2. package/dist/action-branch-editor.d.ts +18 -0
  3. package/dist/action-branch-editor.d.ts.map +1 -0
  4. package/dist/action-builder-modal.d.ts +32 -0
  5. package/dist/action-builder-modal.d.ts.map +1 -0
  6. package/dist/action-debugger-panel.d.ts +11 -0
  7. package/dist/action-debugger-panel.d.ts.map +1 -0
  8. package/dist/action-step-form.d.ts +84 -0
  9. package/dist/action-step-form.d.ts.map +1 -0
  10. package/dist/blocks-panel.d.ts.map +1 -1
  11. package/dist/canvas.d.ts.map +1 -1
  12. package/dist/components/action-builder/action-branch-editor.d.ts +18 -0
  13. package/dist/components/action-builder/action-branch-editor.d.ts.map +1 -0
  14. package/dist/components/action-builder/action-builder-modal.d.ts +32 -0
  15. package/dist/components/action-builder/action-builder-modal.d.ts.map +1 -0
  16. package/dist/components/action-builder/action-step-form.d.ts +71 -0
  17. package/dist/components/action-builder/action-step-form.d.ts.map +1 -0
  18. package/dist/components/action-builder/index.d.ts +4 -0
  19. package/dist/components/action-builder/index.d.ts.map +1 -0
  20. package/dist/components/canvas/breadcrumbs.d.ts +16 -0
  21. package/dist/components/canvas/breadcrumbs.d.ts.map +1 -0
  22. package/dist/components/canvas/canvas.d.ts +16 -0
  23. package/dist/components/canvas/canvas.d.ts.map +1 -0
  24. package/dist/components/canvas/floating-badges.d.ts +26 -0
  25. package/dist/components/canvas/floating-badges.d.ts.map +1 -0
  26. package/dist/components/canvas/index.d.ts +4 -0
  27. package/dist/components/canvas/index.d.ts.map +1 -0
  28. package/dist/components/index.d.ts +9 -0
  29. package/dist/components/index.d.ts.map +1 -0
  30. package/dist/components/layout/editor.d.ts +18 -0
  31. package/dist/components/layout/editor.d.ts.map +1 -0
  32. package/dist/components/layout/index.d.ts +3 -0
  33. package/dist/components/layout/index.d.ts.map +1 -0
  34. package/dist/components/layout/toolbar.d.ts +11 -0
  35. package/dist/components/layout/toolbar.d.ts.map +1 -0
  36. package/dist/components/modals/asset-manager-modal.d.ts +28 -0
  37. package/dist/components/modals/asset-manager-modal.d.ts.map +1 -0
  38. package/dist/components/modals/code-viewer-modal.d.ts +11 -0
  39. package/dist/components/modals/code-viewer-modal.d.ts.map +1 -0
  40. package/dist/components/modals/import-modal.d.ts +11 -0
  41. package/dist/components/modals/import-modal.d.ts.map +1 -0
  42. package/dist/components/modals/index.d.ts +4 -0
  43. package/dist/components/modals/index.d.ts.map +1 -0
  44. package/dist/components/panels/action-debugger-panel.d.ts +11 -0
  45. package/dist/components/panels/action-debugger-panel.d.ts.map +1 -0
  46. package/dist/components/panels/blocks-panel.d.ts +20 -0
  47. package/dist/components/panels/blocks-panel.d.ts.map +1 -0
  48. package/dist/components/panels/component-panel.d.ts +8 -0
  49. package/dist/components/panels/component-panel.d.ts.map +1 -0
  50. package/dist/components/panels/form-validation-rules-panel.d.ts +27 -0
  51. package/dist/components/panels/form-validation-rules-panel.d.ts.map +1 -0
  52. package/dist/components/panels/index.d.ts +9 -0
  53. package/dist/components/panels/index.d.ts.map +1 -0
  54. package/dist/components/panels/inspector-panel.d.ts +20 -0
  55. package/dist/components/panels/inspector-panel.d.ts.map +1 -0
  56. package/dist/components/panels/layers-panel.d.ts +8 -0
  57. package/dist/components/panels/layers-panel.d.ts.map +1 -0
  58. package/dist/components/panels/left-sidebar.d.ts +16 -0
  59. package/dist/components/panels/left-sidebar.d.ts.map +1 -0
  60. package/dist/components/panels/traits-panel.d.ts +20 -0
  61. package/dist/components/panels/traits-panel.d.ts.map +1 -0
  62. package/dist/components/style-manager/box-model-editor.d.ts +29 -0
  63. package/dist/components/style-manager/box-model-editor.d.ts.map +1 -0
  64. package/dist/components/style-manager/dimension-sector-controls.d.ts +27 -0
  65. package/dist/components/style-manager/dimension-sector-controls.d.ts.map +1 -0
  66. package/dist/components/style-manager/index.d.ts +6 -0
  67. package/dist/components/style-manager/index.d.ts.map +1 -0
  68. package/dist/components/style-manager/motion-sector-controls.d.ts +36 -0
  69. package/dist/components/style-manager/motion-sector-controls.d.ts.map +1 -0
  70. package/dist/components/style-manager/style-manager-accordion.d.ts +38 -0
  71. package/dist/components/style-manager/style-manager-accordion.d.ts.map +1 -0
  72. package/dist/components/style-manager/typography-sector-controls.d.ts +17 -0
  73. package/dist/components/style-manager/typography-sector-controls.d.ts.map +1 -0
  74. package/dist/components/table-editor/index.d.ts +2 -0
  75. package/dist/components/table-editor/index.d.ts.map +1 -0
  76. package/dist/components/table-editor/table-spreadsheet-editor.d.ts +15 -0
  77. package/dist/components/table-editor/table-spreadsheet-editor.d.ts.map +1 -0
  78. package/dist/components/ui/code-highlighter.d.ts +20 -0
  79. package/dist/components/ui/code-highlighter.d.ts.map +1 -0
  80. package/dist/components/ui/icons.d.ts +8 -0
  81. package/dist/components/ui/icons.d.ts.map +1 -0
  82. package/dist/components/ui/index.d.ts +5 -0
  83. package/dist/components/ui/index.d.ts.map +1 -0
  84. package/dist/components/ui/variable-autocomplete-input.d.ts +42 -0
  85. package/dist/components/ui/variable-autocomplete-input.d.ts.map +1 -0
  86. package/dist/components/ui/variable-picker.d.ts +21 -0
  87. package/dist/components/ui/variable-picker.d.ts.map +1 -0
  88. package/dist/config/config.d.ts +103 -0
  89. package/dist/config/config.d.ts.map +1 -0
  90. package/dist/config/index.d.ts +2 -0
  91. package/dist/config/index.d.ts.map +1 -0
  92. package/dist/config.d.ts +6 -0
  93. package/dist/config.d.ts.map +1 -1
  94. package/dist/editor.d.ts.map +1 -1
  95. package/dist/form-validation-rules-panel.d.ts +27 -0
  96. package/dist/form-validation-rules-panel.d.ts.map +1 -0
  97. package/dist/index.cjs +5010 -1467
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.d.ts +2 -23
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +4983 -1402
  102. package/dist/index.js.map +1 -1
  103. package/dist/inspector-panel.d.ts.map +1 -1
  104. package/dist/store/index.d.ts +2 -0
  105. package/dist/store/index.d.ts.map +1 -0
  106. package/dist/store/store.d.ts +148 -0
  107. package/dist/store/store.d.ts.map +1 -0
  108. package/dist/store.d.ts +46 -1
  109. package/dist/store.d.ts.map +1 -1
  110. package/dist/toolbar.d.ts.map +1 -1
  111. package/dist/traits-panel.d.ts +3 -1
  112. package/dist/traits-panel.d.ts.map +1 -1
  113. package/dist/utils/document-scanner.d.ts +31 -0
  114. package/dist/utils/document-scanner.d.ts.map +1 -0
  115. package/dist/utils/export-utils.d.ts +19 -0
  116. package/dist/utils/export-utils.d.ts.map +1 -0
  117. package/dist/utils/index.d.ts +3 -0
  118. package/dist/utils/index.d.ts.map +1 -0
  119. package/dist/variable-autocomplete-input.d.ts +43 -0
  120. package/dist/variable-autocomplete-input.d.ts.map +1 -0
  121. package/package.json +5 -5
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { PageDocument } from '@kubuild/schema';
3
+ export interface CodeViewerModalProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ title?: string;
7
+ document?: PageDocument;
8
+ }
9
+ export type CodeTab = 'combined' | 'html' | 'css';
10
+ export declare const CodeViewerModal: React.FC<CodeViewerModalProps>;
11
+ //# sourceMappingURL=code-viewer-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-viewer-modal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/code-viewer-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyT1D,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ComponentRegistry } from '@kubuild/components';
3
+ import { PageDocument } from '@kubuild/schema';
4
+ export interface ImportModalProps {
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ onImport: (doc: PageDocument) => void;
8
+ registry: ComponentRegistry;
9
+ }
10
+ export declare const ImportModal: React.FC<ImportModalProps>;
11
+ //# sourceMappingURL=import-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-modal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/import-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AASnE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,iBAAiB,CAAC;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyZlD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './asset-manager-modal';
2
+ export * from './code-viewer-modal';
3
+ export * from './import-modal';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modals/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ActionLogEntry, LiveFormState } from '../../store';
3
+ export interface ActionDebuggerPanelProps {
4
+ className?: string;
5
+ onClose?: () => void;
6
+ onResetForm?: () => void;
7
+ formState?: LiveFormState | null;
8
+ logs?: ActionLogEntry[];
9
+ }
10
+ export declare const ActionDebuggerPanel: React.FC<ActionDebuggerPanelProps>;
11
+ //# sourceMappingURL=action-debugger-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-debugger-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/action-debugger-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAsB5E,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACjC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAkZlE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { BlockDefinition, ComponentRegistry } from '@kubuild/components';
3
+ export interface BlocksPanelProps {
4
+ registry?: ComponentRegistry;
5
+ blocks?: BlockDefinition[];
6
+ className?: string;
7
+ onInsertBlock?: (block: BlockDefinition) => void;
8
+ }
9
+ /**
10
+ * Thumbnail schematic preview component for blocks
11
+ */
12
+ export declare const BlockThumbnail: React.FC<{
13
+ block: BlockDefinition;
14
+ }>;
15
+ /**
16
+ * Tab "Blocks" di Sidebar Kiri Editor — STORA-240.
17
+ * Displays grid of ready-to-use layout & pre-composed template block cards per category.
18
+ */
19
+ export declare const BlocksPanel: React.FC<BlocksPanelProps>;
20
+ //# sourceMappingURL=blocks-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blocks-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/blocks-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAkB,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMzF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CAClD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,eAAe,CAAA;CAAE,CA2J/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkJlD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ComponentRegistry } from '@kubuild/components';
3
+ export interface ComponentPanelProps {
4
+ registry: ComponentRegistry;
5
+ className?: string;
6
+ }
7
+ export declare const ComponentPanel: React.FC<ComponentPanelProps>;
8
+ //# sourceMappingURL=component-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/component-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAA0C,MAAM,qBAAqB,CAAC;AAIhG,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsExD,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { Node, ValidationRuleType, FormConfig } from '@kubuild/schema';
3
+ export interface FormValidationRulesPanelProps {
4
+ node: Node;
5
+ onUpdateFormConfig: (formConfig: Partial<FormConfig> | null) => void;
6
+ onCommitProp?: (propName: string, value: unknown) => void;
7
+ className?: string;
8
+ }
9
+ interface RuleTypeDefinition {
10
+ type: ValidationRuleType;
11
+ label: string;
12
+ description: string;
13
+ icon: React.ComponentType<{
14
+ className?: string;
15
+ }>;
16
+ defaultMessage: string;
17
+ hasValue: boolean;
18
+ valueType?: 'number' | 'string';
19
+ defaultValue?: unknown;
20
+ valuePlaceholder?: string;
21
+ }
22
+ export declare const SUPPORTED_RULES: RuleTypeDefinition[];
23
+ export declare function getRuleDefinition(type: string): RuleTypeDefinition | undefined;
24
+ export declare function isFormFieldNode(node: Node | null): boolean;
25
+ export declare const FormValidationRulesPanel: React.FC<FormValidationRulesPanelProps>;
26
+ export {};
27
+ //# sourceMappingURL=form-validation-rules-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-validation-rules-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/form-validation-rules-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAkB,kBAAkB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAcvF,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,IAAI,CAAC;IACX,kBAAkB,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACrE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAkD/C,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAE9E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAQ1D;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA2O5E,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './action-debugger-panel';
2
+ export * from './blocks-panel';
3
+ export * from './component-panel';
4
+ export * from './form-validation-rules-panel';
5
+ export * from './inspector-panel';
6
+ export * from './layers-panel';
7
+ export * from './left-sidebar';
8
+ export * from './traits-panel';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/panels/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { ComponentRegistry } from '@kubuild/components';
3
+ import { PageDocument } from '@kubuild/schema';
4
+ import { EditorInspectorConfig } from '../../config';
5
+ export interface InspectorPanelProps {
6
+ registry: ComponentRegistry;
7
+ className?: string;
8
+ document?: PageDocument;
9
+ selectedNodeId?: string | null;
10
+ config?: EditorInspectorConfig;
11
+ }
12
+ /**
13
+ * Amber warning badge shown above the style manager while editing a
14
+ * non-default pseudo-state layer (e.g. `:hover`) — STORA-223.
15
+ */
16
+ export declare const StateEditingBadge: React.FC<{
17
+ state: string;
18
+ }>;
19
+ export declare const InspectorPanel: React.FC<InspectorPanelProps>;
20
+ //# sourceMappingURL=inspector-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspector-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/inspector-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAA6C,MAAM,qBAAqB,CAAC;AAEnG,OAAO,EAAqB,YAAY,EAAmB,MAAM,iBAAiB,CAAC;AAcnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAqeD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAQzD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqoBxD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ComponentRegistry } from '@kubuild/components';
3
+ export interface LayersPanelProps {
4
+ registry: ComponentRegistry;
5
+ className?: string;
6
+ }
7
+ export declare const LayersPanel: React.FC<LayersPanelProps>;
8
+ //# sourceMappingURL=layers-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layers-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/layers-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMxD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkTlD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ComponentRegistry } from '@kubuild/components';
3
+ import { EditorSidebarConfig, LeftSidebarTab } from '../../config';
4
+ export type { LeftSidebarTab };
5
+ export interface LeftSidebarProps {
6
+ registry: ComponentRegistry;
7
+ defaultTab?: LeftSidebarTab;
8
+ availableTabs?: LeftSidebarTab[];
9
+ config?: EditorSidebarConfig;
10
+ className?: string;
11
+ }
12
+ /**
13
+ * Left Sidebar with tabs: Components, Blocks, and Layers — STORA-240.
14
+ */
15
+ export declare const LeftSidebar: React.FC<LeftSidebarProps>;
16
+ //# sourceMappingURL=left-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"left-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/panels/left-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkHlD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { ComponentRegistry } from '@kubuild/components';
3
+ import { PageDocument, FormConfig } from '@kubuild/schema';
4
+ export interface TraitsPanelProps {
5
+ registry: ComponentRegistry;
6
+ document: PageDocument;
7
+ selectedNodeId: string | null;
8
+ /** Commit a single trait value to the node's props. */
9
+ onCommitTrait: (traitName: string, value: unknown) => void;
10
+ /** Commit form configuration updates (including validation rules) to the node. */
11
+ onUpdateFormConfig?: (formConfig: Partial<FormConfig> | null) => void;
12
+ className?: string;
13
+ }
14
+ /**
15
+ * Traits tab content (STORA-211): renders the functional/HTML attribute
16
+ * metadata declared on the selected component's definition, grouped by
17
+ * trait group (identity, link, media, form, behavior, semantic, accessibility).
18
+ */
19
+ export declare const TraitsPanel: React.FC<TraitsPanelProps>;
20
+ //# sourceMappingURL=traits-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traits-panel.d.ts","sourceRoot":"","sources":["../../../src/components/panels/traits-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EACL,iBAAiB,EAKlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK3D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,uDAAuD;IACvD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsXD;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgHlD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ export interface BoxModelValues {
3
+ marginTop?: string | number;
4
+ marginRight?: string | number;
5
+ marginBottom?: string | number;
6
+ marginLeft?: string | number;
7
+ borderTopWidth?: string | number;
8
+ borderRightWidth?: string | number;
9
+ borderBottomWidth?: string | number;
10
+ borderLeftWidth?: string | number;
11
+ paddingTop?: string | number;
12
+ paddingRight?: string | number;
13
+ paddingBottom?: string | number;
14
+ paddingLeft?: string | number;
15
+ }
16
+ export interface BoxModelEditorProps {
17
+ values?: BoxModelValues | Record<string, unknown>;
18
+ onChange?: (property: string, value: string) => void;
19
+ className?: string;
20
+ disabled?: boolean;
21
+ }
22
+ export declare function parseBoxValue(val: unknown): {
23
+ num: string;
24
+ unit: string;
25
+ raw: string;
26
+ };
27
+ export declare const BoxModelEditor: React.FC<BoxModelEditorProps>;
28
+ export declare const VisualBoxModel: React.FC<BoxModelEditorProps>;
29
+ //# sourceMappingURL=box-model-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-model-editor.d.ts","sourceRoot":"","sources":["../../../src/components/style-manager/box-model-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAiBtF;AAmID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkMxD,CAAC;AAEF,eAAO,MAAM,cAAc,+BAAiB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export declare const DIMENSION_UNITS: readonly ["px", "%", "rem", "em", "vw", "vh", "auto", "none"];
3
+ export type DimensionUnit = (typeof DIMENSION_UNITS)[number];
4
+ export interface ParsedDimension {
5
+ num: string;
6
+ unit: DimensionUnit;
7
+ raw: string;
8
+ }
9
+ export declare function parseDimensionValue(val: unknown, defaultUnit?: DimensionUnit): ParsedDimension;
10
+ export interface DimensionUnitInputProps {
11
+ property: string;
12
+ label: string;
13
+ value: unknown;
14
+ onChange: (property: string, value: string) => void;
15
+ allowedUnits?: DimensionUnit[];
16
+ placeholder?: string;
17
+ disabled?: boolean;
18
+ }
19
+ export declare const DimensionUnitInput: React.FC<DimensionUnitInputProps>;
20
+ export interface DimensionSectorControlsProps {
21
+ styles?: Record<string, unknown>;
22
+ onChange: (property: string, value: string) => void;
23
+ disabled?: boolean;
24
+ className?: string;
25
+ }
26
+ export declare const DimensionSectorControls: React.FC<DimensionSectorControlsProps>;
27
+ //# sourceMappingURL=dimension-sector-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dimension-sector-controls.d.ts","sourceRoot":"","sources":["../../../src/components/style-manager/dimension-sector-controls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,eAAO,MAAM,eAAe,+DAAgE,CAAC;AAC7F,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,OAAO,EACZ,WAAW,GAAE,aAAoB,GAChC,eAAe,CAwBjB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+HhE,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAmH1E,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './box-model-editor';
2
+ export * from './dimension-sector-controls';
3
+ export * from './motion-sector-controls';
4
+ export * from './style-manager-accordion';
5
+ export * from './typography-sector-controls';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/style-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { AnimationConfig } from '@kubuild/schema';
3
+ export interface MotionSectorControlsProps {
4
+ animation?: Partial<AnimationConfig>;
5
+ onChange: (animation: Partial<AnimationConfig>) => void;
6
+ onReplay?: () => void;
7
+ disabled?: boolean;
8
+ }
9
+ export declare const ANIMATION_TYPES: ({
10
+ value: string;
11
+ label: string;
12
+ group?: undefined;
13
+ items?: undefined;
14
+ } | {
15
+ group: string;
16
+ items: {
17
+ value: string;
18
+ label: string;
19
+ }[];
20
+ value?: undefined;
21
+ label?: undefined;
22
+ })[];
23
+ export declare const EASING_OPTIONS: {
24
+ value: string;
25
+ label: string;
26
+ }[];
27
+ export declare const HOVER_EFFECTS: {
28
+ value: string;
29
+ label: string;
30
+ }[];
31
+ export declare const LOOP_EFFECTS: {
32
+ value: string;
33
+ label: string;
34
+ }[];
35
+ export declare const MotionSectorControls: React.FC<MotionSectorControlsProps>;
36
+ //# sourceMappingURL=motion-sector-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion-sector-controls.d.ts","sourceRoot":"","sources":["../../../src/components/style-manager/motion-sector-controls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAA4B,MAAM,iBAAiB,CAAC;AAG5E,MAAM,WAAW,yBAAyB;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IACxD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;IAoC3B,CAAC;AAEF,eAAO,MAAM,cAAc;;;GAM1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;GAMzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;GAOxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA2SpE,CAAC"}
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { AnimationConfig } from '@kubuild/schema';
3
+ export type StyleSectorId = 'dimension' | 'spacing' | 'typography' | 'decorations' | 'flex' | 'motion';
4
+ export interface StyleSectorDefinition {
5
+ id: StyleSectorId;
6
+ label: string;
7
+ icon: string;
8
+ description?: string;
9
+ properties: string[];
10
+ }
11
+ export declare const STYLE_SECTORS: StyleSectorDefinition[];
12
+ export declare const STORAGE_KEY_ACCORDION = "kubuild:style-manager-accordion";
13
+ export declare const DEFAULT_ACCORDION_STATE: Record<StyleSectorId, boolean>;
14
+ export declare function getStorage(): {
15
+ getItem: (key: string) => string | null;
16
+ setItem: (key: string, value: string) => void;
17
+ removeItem: (key: string) => void;
18
+ };
19
+ export declare function clearMemoryStorage(): void;
20
+ export declare function loadAccordionState(): Record<StyleSectorId, boolean>;
21
+ export declare function saveAccordionState(state: Record<StyleSectorId, boolean>): void;
22
+ export interface StyleManagerAccordionProps {
23
+ styles?: Record<string, unknown>;
24
+ animation?: Partial<AnimationConfig>;
25
+ onCommitStyle: (property: string, value: string) => void;
26
+ onCommitAnimation?: (animation: Partial<AnimationConfig>) => void;
27
+ onResetStyles?: (properties?: string[]) => void;
28
+ onResetAnimation?: () => void;
29
+ onReplayAnimation?: () => void;
30
+ errors?: Record<string, string | null>;
31
+ breakpoint?: 'base' | 'tablet' | 'mobile';
32
+ className?: string;
33
+ initialState?: Partial<Record<StyleSectorId, boolean>>;
34
+ /** Optional filter for allowed style sectors. If omitted, all sectors are displayed. */
35
+ allowedSectors?: StyleSectorId[];
36
+ }
37
+ export declare const StyleManagerAccordion: React.FC<StyleManagerAccordionProps>;
38
+ //# sourceMappingURL=style-manager-accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-manager-accordion.d.ts","sourceRoot":"","sources":["../../../src/components/style-manager/style-manager-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,eAAe,EAA4B,MAAM,iBAAiB,CAAC;AAO5E,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvG,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,aAAa,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAwDhD,CAAC;AAEF,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AAEvE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,CAOlE,CAAC;AAIF,wBAAgB,UAAU,IAAI;IAC5B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAoBA;AAED,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAanE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,IAAI,CAO9E;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAClE,aAAa,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IACvD,wFAAwF;IACxF,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqctE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface FontOption {
3
+ label: string;
4
+ value: string;
5
+ category: 'sans-serif' | 'serif' | 'display' | 'monospace' | 'system';
6
+ googleFontName?: string;
7
+ }
8
+ export declare const GOOGLE_FONTS: FontOption[];
9
+ export declare function loadGoogleFont(fontName: string): void;
10
+ export interface TypographySectorControlsProps {
11
+ styles?: Record<string, unknown>;
12
+ onChange: (property: string, value: string) => void;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ }
16
+ export declare const TypographySectorControls: React.FC<TypographySectorControlsProps>;
17
+ //# sourceMappingURL=typography-sector-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography-sector-controls.d.ts","sourceRoot":"","sources":["../../../src/components/style-manager/typography-sector-controls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,EAAE,UAAU,EAmEpC,CAAC;AAEF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAWrD;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAgT5E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './table-spreadsheet-editor';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table-editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { Node } from '@kubuild/schema';
3
+ import { ComponentRegistry } from '@kubuild/components';
4
+ export interface TableSpreadsheetEditorProps {
5
+ registry: ComponentRegistry;
6
+ tableNode?: Node | null;
7
+ mode?: 'floating' | 'docked';
8
+ onClose?: () => void;
9
+ onToggleMode?: () => void;
10
+ className?: string;
11
+ }
12
+ export declare function findActiveTableNode(documentRoot: Node, selectedNodeId: string | null): Node | null;
13
+ export declare function parseCsv(text: string): string[][];
14
+ export declare const TableSpreadsheetEditor: React.FC<TableSpreadsheetEditorProps>;
15
+ //# sourceMappingURL=table-spreadsheet-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-spreadsheet-editor.d.ts","sourceRoot":"","sources":["../../../src/components/table-editor/table-spreadsheet-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMxD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAclG;AAID,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CA0CjD;AASD,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA0uBxE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export type LanguageMode = 'combined' | 'html' | 'css';
3
+ interface Token {
4
+ type: 'plain' | 'tag-name' | 'tag-bracket' | 'attr-name' | 'attr-equal' | 'attr-value' | 'comment' | 'doctype' | 'css-selector-class' | 'css-selector-id' | 'css-selector-elem' | 'css-pseudo' | 'css-property' | 'css-value-number' | 'css-value-color' | 'css-value-keyword' | 'css-value-string' | 'css-value-important' | 'css-atrule' | 'css-punctuation' | 'css-function';
5
+ text: string;
6
+ }
7
+ /**
8
+ * Tokenize entire code string line-by-line according to the language mode
9
+ */
10
+ export declare function tokenizeCode(code: string, mode: LanguageMode): Token[][];
11
+ export interface CodeHighlighterProps {
12
+ code: string;
13
+ mode: LanguageMode;
14
+ }
15
+ /**
16
+ * Performant, rich syntax-highlighted code display
17
+ */
18
+ export declare const CodeHighlighter: React.FC<CodeHighlighterProps>;
19
+ export {};
20
+ //# sourceMappingURL=code-highlighter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-highlighter.d.ts","sourceRoot":"","sources":["../../../src/components/ui/code-highlighter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAEvD,UAAU,KAAK;IACb,IAAI,EACA,OAAO,GACP,UAAU,GACV,aAAa,GACb,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,SAAS,GACT,oBAAoB,GACpB,iBAAiB,GACjB,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,qBAAqB,GACrB,YAAY,GACZ,iBAAiB,GACjB,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAmcD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,KAAK,EAAE,EAAE,CAiBxE;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoB1D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface ComponentIconProps {
3
+ iconOrType?: string;
4
+ className?: string;
5
+ size?: number;
6
+ }
7
+ export declare const ComponentIcon: React.FC<ComponentIconProps>;
8
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiUtD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './code-highlighter';
2
+ export * from './icons';
3
+ export * from './variable-autocomplete-input';
4
+ export * from './variable-picker';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { PageDocument } from '@kubuild/schema';
3
+ export type VariableCategory = 'form' | 'variables' | 'response' | 'state';
4
+ export interface VariableSuggestionItem {
5
+ key: string;
6
+ label: string;
7
+ category: VariableCategory;
8
+ description: string;
9
+ sample?: string;
10
+ }
11
+ export declare function getAllVariableSuggestions(doc?: PageDocument): VariableSuggestionItem[];
12
+ export declare function filterVariableSuggestions(query: string, doc?: PageDocument): VariableSuggestionItem[];
13
+ /**
14
+ * Replaces or inserts the variable token at cursor position.
15
+ * If cursor is right after `{{...`, it replaces the partial `{{...` with `{{variableKey}}`.
16
+ */
17
+ export declare function insertVariableToken(currentText: string, cursorPosition: number, variableKey: string): {
18
+ nextText: string;
19
+ newCursorPos: number;
20
+ };
21
+ export interface VariableSuggestionMenuProps {
22
+ suggestions: VariableSuggestionItem[];
23
+ selectedIndex: number;
24
+ onSelect: (item: VariableSuggestionItem) => void;
25
+ onClose: () => void;
26
+ }
27
+ export declare const VariableSuggestionMenu: React.FC<VariableSuggestionMenuProps>;
28
+ export interface VariableAutocompleteInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
29
+ value: string;
30
+ onChange: (value: string) => void;
31
+ document?: PageDocument;
32
+ containerClassName?: string;
33
+ }
34
+ export declare const VariableAutocompleteInput: React.FC<VariableAutocompleteInputProps>;
35
+ export interface VariableAutocompleteTextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
36
+ value: string;
37
+ onChange: (value: string) => void;
38
+ document?: PageDocument;
39
+ containerClassName?: string;
40
+ }
41
+ export declare const VariableAutocompleteTextarea: React.FC<VariableAutocompleteTextareaProps>;
42
+ //# sourceMappingURL=variable-autocomplete-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-autocomplete-input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/variable-autocomplete-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,YAAY,EAAQ,MAAM,iBAAiB,CAAC;AAiBrD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3E,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,wBAAgB,yBAAyB,CAAC,GAAG,CAAC,EAAE,YAAY,GAAG,sBAAsB,EAAE,CAuEtF;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,EACb,GAAG,CAAC,EAAE,YAAY,GACjB,sBAAsB,EAAE,CAY1B;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,GAClB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAyB5C;AAMD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA6GxE,CAAC;AAMF,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAmI9E,CAAC;AAMF,MAAM,WAAW,iCACf,SAAQ,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CA0HpF,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { VariableBinding } from '@kubuild/schema';
3
+ import { ComponentFieldDefinition } from '@kubuild/components';
4
+ import { VariableCatalog, VariableDefinition } from '@kubuild/core';
5
+ /**
6
+ * Filters a host catalog down to entries whose type is compatible with a given
7
+ * bindable prop field — 'array'/'object' catalog entries are never offered onto
8
+ * scalar-bindable fields (string/number/boolean), since resolvePropsForNode's
9
+ * type check would reject them at render time anyway.
10
+ */
11
+ export declare function getCompatibleCatalogEntries(field: ComponentFieldDefinition, catalog: VariableCatalog | undefined): VariableDefinition[];
12
+ export declare function toBindingValue(key: string): VariableBinding;
13
+ export interface VariableBindingControlProps {
14
+ field: ComponentFieldDefinition;
15
+ currentValue: unknown;
16
+ catalog: VariableCatalog;
17
+ onBind: (key: string) => void;
18
+ onRevert: () => void;
19
+ }
20
+ export declare const VariableBindingControl: React.FC<VariableBindingControlProps>;
21
+ //# sourceMappingURL=variable-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-picker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/variable-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAyB,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,wBAAwB,EAC/B,OAAO,EAAE,eAAe,GAAG,SAAS,GACnC,kBAAkB,EAAE,CAMtB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAE3D;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,wBAAwB,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAuDxE,CAAC"}