@arkcit/engine 0.3.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 (42) hide show
  1. package/README.md +68 -0
  2. package/dist/UIEngine.d.ts +6 -0
  3. package/dist/UIEngine.js +3235 -0
  4. package/dist/bindings.d.ts +8 -0
  5. package/dist/bindings.js +146 -0
  6. package/dist/components/index.d.ts +17 -0
  7. package/dist/components/index.js +143 -0
  8. package/dist/core/index.d.ts +4 -0
  9. package/dist/core/index.js +9 -0
  10. package/dist/form/engineFormValidation.d.ts +2 -0
  11. package/dist/form/engineFormValidation.js +241 -0
  12. package/dist/form.d.ts +67 -0
  13. package/dist/form.js +241 -0
  14. package/dist/index.d.ts +15 -0
  15. package/dist/index.js +3336 -0
  16. package/dist/layout.d.ts +6 -0
  17. package/dist/layout.js +82 -0
  18. package/dist/preview/index.d.ts +63 -0
  19. package/dist/preview/index.js +1514 -0
  20. package/dist/react-web/index.d.ts +8 -0
  21. package/dist/react-web/index.js +3246 -0
  22. package/dist/registry.d.ts +2 -0
  23. package/dist/registry.js +0 -0
  24. package/dist/render-layer/index.d.ts +1 -0
  25. package/dist/render-layer/index.js +13 -0
  26. package/dist/renderStudioForm-CPQEzvT7.d.ts +75 -0
  27. package/dist/renderers/index.d.ts +8 -0
  28. package/dist/renderers/index.js +1570 -0
  29. package/dist/runtime/index.d.ts +1 -0
  30. package/dist/runtime/index.js +0 -0
  31. package/dist/schema/index.d.ts +1 -0
  32. package/dist/schema/index.js +0 -0
  33. package/dist/studio-bridge/index.d.ts +501 -0
  34. package/dist/studio-bridge/index.js +2840 -0
  35. package/dist/studioProps.d.ts +8 -0
  36. package/dist/studioProps.js +97 -0
  37. package/dist/types-9TZ2lQDP.d.ts +60 -0
  38. package/dist/types-CyAE6ZLH.d.ts +19 -0
  39. package/dist/types.d.ts +16 -0
  40. package/dist/types.js +0 -0
  41. package/dist/wizardEditingHandlers-D50tR-6n.d.ts +163 -0
  42. package/package.json +160 -0
@@ -0,0 +1,2 @@
1
+
2
+ export { }
File without changes
@@ -0,0 +1 @@
1
+ export { ResolvedEngineNode, ResolvedNode, ResolvedNodeBase, ResolvedNodeChildDescriptor, ResolvedNodeContentDescriptor, createResolvedNode, createResolvedNodeBase, resolveNodeBase, resolveResolvedNode } from '@arkcit/engine-render-layer';
@@ -0,0 +1,13 @@
1
+ // src/render-layer/public.ts
2
+ import {
3
+ createResolvedNode,
4
+ createResolvedNodeBase,
5
+ resolveNodeBase,
6
+ resolveResolvedNode
7
+ } from "@arkcit/engine-render-layer";
8
+ export {
9
+ createResolvedNode,
10
+ createResolvedNodeBase,
11
+ resolveNodeBase,
12
+ resolveResolvedNode
13
+ };
@@ -0,0 +1,75 @@
1
+ import * as React$1 from 'react';
2
+ import React__default from 'react';
3
+ import * as _arkcit_engine_runtime from '@arkcit/engine-runtime';
4
+ import { UIRuntime } from '@arkcit/engine-runtime';
5
+ import * as _arkcit_engine_schema from '@arkcit/engine-schema';
6
+
7
+ declare const configureStudioFormWizard: ({ node, componentProps, isStudioRendererContext, selectedNodeId, wizardActiveStepByNodeId, runtime, setWizardActiveStepByNodeId, onNodeClick, onInlineTextEdit, renderSafeNode, captureFieldFocus, openInlineEditorForNodeProp, internalStudioNodeTypes, }: {
8
+ node: _arkcit_engine_schema.UINode;
9
+ componentProps: Record<string, unknown>;
10
+ isStudioRendererContext: boolean;
11
+ selectedNodeId: string | null;
12
+ wizardActiveStepByNodeId: Record<string, string>;
13
+ runtime: _arkcit_engine_runtime.UIRuntime;
14
+ setWizardActiveStepByNodeId: React$1.Dispatch<React$1.SetStateAction<Record<string, string>>>;
15
+ onNodeClick?: (nodeId: string) => void;
16
+ onInlineTextEdit?: (nodeId: string, propName: string, value: unknown) => void;
17
+ renderSafeNode: (node: _arkcit_engine_schema.UINode) => React$1.ReactNode;
18
+ captureFieldFocus: (target: EventTarget | null) => void;
19
+ openInlineEditorForNodeProp: (targetNodeId: string, propName: string, rawValue: unknown) => void;
20
+ internalStudioNodeTypes: Set<string>;
21
+ }) => void;
22
+
23
+ declare const configureStudioAccordion: ({ node, componentProps, accordionChildren, selectedNodeId, accordionOpenIdsByNodeId, setAccordionOpenIdsByNodeId, renderSafeNode, }: {
24
+ node: _arkcit_engine_schema.UINode;
25
+ componentProps: Record<string, unknown>;
26
+ accordionChildren: _arkcit_engine_schema.UINode[];
27
+ selectedNodeId: string | null;
28
+ accordionOpenIdsByNodeId: Record<string, string[]>;
29
+ setAccordionOpenIdsByNodeId: React.Dispatch<React.SetStateAction<Record<string, string[]>>>;
30
+ renderSafeNode: (node: _arkcit_engine_schema.UINode) => React.ReactNode;
31
+ }) => void;
32
+ declare const configureStudioExpandablePanel: ({ node, componentProps, panelChildren, expandablePanelOpenByNodeId, setExpandablePanelOpenByNodeId, renderSafeNode, }: {
33
+ node: _arkcit_engine_schema.UINode;
34
+ componentProps: Record<string, unknown>;
35
+ panelChildren: _arkcit_engine_schema.UINode[];
36
+ expandablePanelOpenByNodeId: Record<string, boolean>;
37
+ setExpandablePanelOpenByNodeId: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
38
+ renderSafeNode: (node: _arkcit_engine_schema.UINode) => React.ReactNode;
39
+ }) => void;
40
+ declare const configureStudioTabs: ({ componentProps, tabItems, rawChildren, runtime, renderSafeNode, normalizeRenderableChild, }: {
41
+ componentProps: Record<string, unknown>;
42
+ tabItems: Array<Record<string, unknown>>;
43
+ rawChildren: _arkcit_engine_schema.UINode[];
44
+ runtime: _arkcit_engine_runtime.UIRuntime;
45
+ renderSafeNode: (node: _arkcit_engine_schema.UINode) => React.ReactNode;
46
+ normalizeRenderableChild: (value: unknown) => React.ReactNode;
47
+ }) => void;
48
+
49
+ declare const configureStudioLink: (componentProps: Record<string, unknown>) => void;
50
+
51
+ type TableComponentShape = {
52
+ Header: React__default.ComponentType<Record<string, unknown>>;
53
+ Body: React__default.ComponentType<Record<string, unknown>>;
54
+ Row: React__default.ComponentType<Record<string, unknown>>;
55
+ Head: React__default.ComponentType<Record<string, unknown>>;
56
+ Cell: React__default.ComponentType<Record<string, unknown>>;
57
+ };
58
+ declare const renderBoundTable: ({ nodeId, componentProps, runtime, TableComponent, }: {
59
+ nodeId: string;
60
+ componentProps: Record<string, unknown>;
61
+ runtime: UIRuntime;
62
+ TableComponent: React__default.ComponentType<Record<string, unknown>> & TableComponentShape;
63
+ }) => React__default.ReactNode | null;
64
+
65
+ declare const renderStudioForm: ({ node, componentProps, visibleChildren, runtime, onInlineTextEdit, captureFieldFocus, renderSafeNode, }: {
66
+ node: _arkcit_engine_schema.UINode;
67
+ componentProps: Record<string, unknown>;
68
+ visibleChildren: _arkcit_engine_schema.UINode[];
69
+ runtime: _arkcit_engine_runtime.UIRuntime;
70
+ onInlineTextEdit?: (nodeId: string, propName: string, value: unknown) => void;
71
+ captureFieldFocus: (target: EventTarget | null) => void;
72
+ renderSafeNode: (node: _arkcit_engine_schema.UINode) => React.ReactNode;
73
+ }) => React.ReactNode | null;
74
+
75
+ export { configureStudioExpandablePanel as a, configureStudioFormWizard as b, configureStudioAccordion as c, configureStudioLink as d, configureStudioTabs as e, renderStudioForm as f, renderBoundTable as r };
@@ -0,0 +1,8 @@
1
+ export { configurePreviewLinkBehavior, materializeBoundTable, resolveBoundTableData } from '@arkcit/engine-react';
2
+ export { configurePreviewAccordion, configurePreviewExpandablePanel, configurePreviewFormWizard, configurePreviewTabs, materializePreviewForm } from '../preview/index.js';
3
+ export { a as attachStudioWizardEditingHandlers, c as createStudioWizardOnStepChange, n as normalizeStudioTabsProps, p as patchStudioFormFieldNode, b as patchStudioWizardFieldNode, r as resolveStudioAccordionState, d as resolveStudioExpandablePanelState, e as resolveStudioFormNextValues, f as resolveStudioFormResetValues, g as resolveStudioFormStructure, h as resolveStudioTabsContent, i as resolveStudioTabsProps, j as resolveStudioWizardActiveStepFields, k as resolveStudioWizardNextErrors, l as resolveStudioWizardNextValues, m as resolveStudioWizardStructure } from '../wizardEditingHandlers-D50tR-6n.js';
4
+ export { c as configureStudioAccordion, a as configureStudioExpandablePanel, b as configureStudioFormWizard, d as configureStudioLink, e as configureStudioTabs, r as renderBoundTable, f as renderStudioForm } from '../renderStudioForm-CPQEzvT7.js';
5
+ import 'react';
6
+ import '@arkcit/engine-schema';
7
+ import '@arkcit/engine-runtime';
8
+ import '../types-9TZ2lQDP.js';