@superblocksteam/library 2.0.33-next.4 → 2.0.33
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/package.json +2 -2
- package/dist-types/app-internal.d.ts +0 -4
- package/dist-types/docs-utils/generate-docs-utils.d.ts +0 -42
- package/dist-types/docs-utils/generate-docs.d.ts +0 -2
- package/dist-types/docs-utils/generate-docs.test.d.ts +0 -1
- package/dist-types/edit-mode/base-editor-bridge.d.ts +0 -60
- package/dist-types/edit-mode/collisions-layer.d.ts +0 -3
- package/dist-types/edit-mode/create-component.d.ts +0 -11
- package/dist-types/edit-mode/create-component.test.d.ts +0 -1
- package/dist-types/edit-mode/debug-tools.d.ts +0 -11
- package/dist-types/edit-mode/dnd/collision-detection.d.ts +0 -3
- package/dist-types/edit-mode/dnd/dnd-provider.d.ts +0 -4
- package/dist-types/edit-mode/dnd/draggable-widget.d.ts +0 -7
- package/dist-types/edit-mode/dnd/drop-layer.d.ts +0 -5
- package/dist-types/edit-mode/dnd/droppable-widget.d.ts +0 -10
- package/dist-types/edit-mode/dnd/get-allowed-children.d.ts +0 -2
- package/dist-types/edit-mode/dnd/grid-drop.d.ts +0 -4
- package/dist-types/edit-mode/dnd/grid-store.d.ts +0 -58
- package/dist-types/edit-mode/dnd/grid-utils.d.ts +0 -8
- package/dist-types/edit-mode/dnd/handle-grid-drop.d.ts +0 -9
- package/dist-types/edit-mode/dnd/handle-stack-drop.d.ts +0 -9
- package/dist-types/edit-mode/dnd/hooks/use-component-draggable.d.ts +0 -5
- package/dist-types/edit-mode/dnd/hooks/use-component-droppable.d.ts +0 -6
- package/dist-types/edit-mode/dnd/hooks/use-handle-dnd-events.d.ts +0 -1
- package/dist-types/edit-mode/dnd/hooks/use-widget-node-ref.d.ts +0 -2
- package/dist-types/edit-mode/dnd/new-components-drag-layer.d.ts +0 -6
- package/dist-types/edit-mode/dnd/stack-drop.d.ts +0 -4
- package/dist-types/edit-mode/dnd/stack-store.d.ts +0 -10
- package/dist-types/edit-mode/dnd/stack-utils.d.ts +0 -13
- package/dist-types/edit-mode/dnd/types.d.ts +0 -45
- package/dist-types/edit-mode/dnd/utils.d.ts +0 -42
- package/dist-types/edit-mode/dnd/utils.test.d.ts +0 -1
- package/dist-types/edit-mode/duplicated-name-popover.d.ts +0 -7
- package/dist-types/edit-mode/edit-store.d.ts +0 -47
- package/dist-types/edit-mode/edit-wrapper.d.ts +0 -18
- package/dist-types/edit-mode/editor-hotkeys.d.ts +0 -3
- package/dist-types/edit-mode/extended-clickable-area.d.ts +0 -8
- package/dist-types/edit-mode/features/ai-store.d.ts +0 -34
- package/dist-types/edit-mode/features/connection-manager.d.ts +0 -9
- package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +0 -67
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +0 -23
- package/dist-types/edit-mode/features/operation-store.d.ts +0 -64
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +0 -45
- package/dist-types/edit-mode/features/resizing-store.d.ts +0 -54
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +0 -95
- package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +0 -59
- package/dist-types/edit-mode/features/ui-store.d.ts +0 -49
- package/dist-types/edit-mode/get-edit-store.d.ts +0 -6
- package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +0 -2
- package/dist-types/edit-mode/identifier-context.d.ts +0 -6
- package/dist-types/edit-mode/iframe-wrappers.d.ts +0 -5
- package/dist-types/edit-mode/import-error-notification.d.ts +0 -1
- package/dist-types/edit-mode/interaction-layer/interaction-add-section-button.d.ts +0 -4
- package/dist-types/edit-mode/interaction-layer/interaction-layer.d.ts +0 -11
- package/dist-types/edit-mode/interaction-layer/interaction-rect-actions.d.ts +0 -9
- package/dist-types/edit-mode/interaction-layer/interaction-rect-handles.d.ts +0 -7
- package/dist-types/edit-mode/interaction-layer/interaction-rect-name-pill.d.ts +0 -13
- package/dist-types/edit-mode/interaction-layer/interaction-rect.d.ts +0 -49
- package/dist-types/edit-mode/interaction-utils.d.ts +0 -8
- package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +0 -2
- package/dist-types/edit-mode/mobx-sync/create-patch.test.d.ts +0 -1
- package/dist-types/edit-mode/mobx-sync/deep-observe.d.ts +0 -24
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.d.ts +0 -23
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.test.d.ts +0 -1
- package/dist-types/edit-mode/noop-editor-bridge.d.ts +0 -1
- package/dist-types/edit-mode/properties.d.ts +0 -13
- package/dist-types/edit-mode/resize-capabilities.d.ts +0 -5
- package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +0 -14
- package/dist-types/edit-mode/roots.d.ts +0 -19
- package/dist-types/edit-mode/runtime-children.d.ts +0 -14
- package/dist-types/edit-mode/sb-component-from-meta.d.ts +0 -2
- package/dist-types/edit-mode/source-update-api.d.ts +0 -19
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +0 -40
- package/dist-types/edit-mode/vite.d.ts +0 -4
- package/dist-types/internal-testing/components/api.d.ts +0 -3
- package/dist-types/internal-testing/components/broken-app.d.ts +0 -3
- package/dist-types/internal-testing/components/button.d.ts +0 -1
- package/dist-types/internal-testing/components/checkbox.d.ts +0 -1
- package/dist-types/internal-testing/components/container.d.ts +0 -1
- package/dist-types/internal-testing/components/date-picker.d.ts +0 -1
- package/dist-types/internal-testing/components/dropdown.d.ts +0 -1
- package/dist-types/internal-testing/components/form.d.ts +0 -1
- package/dist-types/internal-testing/components/icon.d.ts +0 -1
- package/dist-types/internal-testing/components/image.d.ts +0 -1
- package/dist-types/internal-testing/components/import-error.d.ts +0 -1
- package/dist-types/internal-testing/components/input.d.ts +0 -1
- package/dist-types/internal-testing/components/key-value.d.ts +0 -1
- package/dist-types/internal-testing/components/modal.d.ts +0 -3
- package/dist-types/internal-testing/components/section-column.d.ts +0 -1
- package/dist-types/internal-testing/components/slideout.d.ts +0 -3
- package/dist-types/internal-testing/components/switch.d.ts +0 -1
- package/dist-types/internal-testing/components/table.d.ts +0 -3
- package/dist-types/internal-testing/components/timer.d.ts +0 -3
- package/dist-types/internal-testing/components/variable.d.ts +0 -3
- package/dist-types/internal-testing/utils.d.ts +0 -5
- package/dist-types/internal-testing/widgets.d.ts +0 -2
- package/dist-types/lib/hooks/use-alignment-styles.d.ts +0 -9
- package/dist-types/lib/hooks/use-cached-value.d.ts +0 -11
- package/dist-types/lib/hooks/use-callback-as-ref.d.ts +0 -1
- package/dist-types/lib/hooks/use-component-min-size.d.ts +0 -29
- package/dist-types/lib/hooks/use-deep-memo.d.ts +0 -9
- package/dist-types/lib/hooks/use-editor-hotkeys.d.ts +0 -3
- package/dist-types/lib/hooks/use-element-rect.d.ts +0 -7
- package/dist-types/lib/hooks/use-key-pressed.d.ts +0 -1
- package/dist-types/lib/hooks/use-observer-memo.d.ts +0 -14
- package/dist-types/lib/hooks/use-observer-memo.test.d.ts +0 -1
- package/dist-types/lib/hooks/use-pointer-down-outside.d.ts +0 -15
- package/dist-types/lib/hooks/use-stable-effect.d.ts +0 -22
- package/dist-types/lib/hooks/use-stable-effect.test.d.ts +0 -1
- package/dist-types/lib/index.d.ts +0 -44
- package/dist-types/lib/internal-details/actions-context.d.ts +0 -9
- package/dist-types/lib/internal-details/app-wrappers.d.ts +0 -5
- package/dist-types/lib/internal-details/component-info-context.d.ts +0 -10
- package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +0 -10
- package/dist-types/lib/internal-details/css-constants.d.ts +0 -4
- package/dist-types/lib/internal-details/entities-state.d.ts +0 -11
- package/dist-types/lib/internal-details/entities.d.ts +0 -5
- package/dist-types/lib/internal-details/env.d.ts +0 -1
- package/dist-types/lib/internal-details/external-stack-child.d.ts +0 -13
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -8
- package/dist-types/lib/internal-details/internal-components/common.d.ts +0 -13
- package/dist-types/lib/internal-details/internal-components/error-boundary/index.d.ts +0 -18
- package/dist-types/lib/internal-details/internal-components/route-load-error.d.ts +0 -1
- package/dist-types/lib/internal-details/is-edit-mode.d.ts +0 -1
- package/dist-types/lib/internal-details/is-sb-component.d.ts +0 -11
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +0 -5
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +0 -4
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +0 -91
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +0 -2
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +0 -6
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +0 -22
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.test.d.ts +0 -6
- package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +0 -7
- package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +0 -3
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +0 -26
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +0 -96
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-types.d.ts +0 -16
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +0 -8
- package/dist-types/lib/internal-details/lib/evaluator/names.d.ts +0 -7
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +0 -2
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +0 -6
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +0 -8
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +0 -36
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.test.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +0 -51
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -79
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +0 -62
- package/dist-types/lib/internal-details/lib/features/injected-features.d.ts +0 -8
- package/dist-types/lib/internal-details/lib/features/name-manager.d.ts +0 -38
- package/dist-types/lib/internal-details/lib/features/type-defs-utils.d.ts +0 -3
- package/dist-types/lib/internal-details/lib/iframe.d.ts +0 -44
- package/dist-types/lib/internal-details/lib/mobx-cached-getter.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/resolve-id-singleton.d.ts +0 -4
- package/dist-types/lib/internal-details/lib/root-store.d.ts +0 -35
- package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +0 -11
- package/dist-types/lib/internal-details/lib/throttle.d.ts +0 -4
- package/dist-types/lib/internal-details/lib/types.d.ts +0 -298
- package/dist-types/lib/internal-details/location-store.d.ts +0 -13
- package/dist-types/lib/internal-details/reactive-component.d.ts +0 -11
- package/dist-types/lib/internal-details/remove-bindings.d.ts +0 -1
- package/dist-types/lib/internal-details/routing.d.ts +0 -2
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +0 -98
- package/dist-types/lib/internal-details/sb-wrapper.test.d.ts +0 -1
- package/dist-types/lib/internal-details/scope/global.d.ts +0 -11
- package/dist-types/lib/internal-details/scope/scope-context.d.ts +0 -8
- package/dist-types/lib/internal-details/scope/scope.d.ts +0 -12
- package/dist-types/lib/internal-details/scope/types.d.ts +0 -48
- package/dist-types/lib/internal-details/size.d.ts +0 -1
- package/dist-types/lib/internal-details/theme-context.d.ts +0 -8
- package/dist-types/lib/internal-details/use-track-runtime-widget.d.ts +0 -15
- package/dist-types/lib/internal-details/utils/is-local-link.d.ts +0 -1
- package/dist-types/lib/internal-details/utils/navigation.d.ts +0 -20
- package/dist-types/lib/tracing/context-utils.d.ts +0 -4
- package/dist-types/lib/tracing/early-console-buffer.d.ts +0 -21
- package/dist-types/lib/tracing/logs.d.ts +0 -11
- package/dist-types/lib/triggers/base.d.ts +0 -16
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +0 -12
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +0 -3
- package/dist-types/lib/triggers/implementations/call-function.d.ts +0 -15
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +0 -14
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +0 -14
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +0 -16
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +0 -18
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +0 -16
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +0 -12
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +0 -17
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +0 -14
- package/dist-types/lib/triggers/implementations/navigate/utils.d.ts +0 -2
- package/dist-types/lib/triggers/implementations/run-js.d.ts +0 -11
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +0 -13
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +0 -18
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +0 -10
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +0 -14
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +0 -13
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +0 -13
- package/dist-types/lib/triggers/registry.d.ts +0 -5
- package/dist-types/lib/triggers/run-event-handlers.d.ts +0 -10
- package/dist-types/lib/user-facing/component-base/components/autolinked-text.d.ts +0 -8
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +0 -47
- package/dist-types/lib/user-facing/component-base/components/checkbox.d.ts +0 -12
- package/dist-types/lib/user-facing/component-base/components/dropdown-select.d.ts +0 -4
- package/dist-types/lib/user-facing/component-base/components/dynamic-svg.d.ts +0 -10
- package/dist-types/lib/user-facing/component-base/components/expand-button.d.ts +0 -8
- package/dist-types/lib/user-facing/component-base/components/loading-animator.d.ts +0 -4
- package/dist-types/lib/user-facing/component-base/components/plain-link.d.ts +0 -1
- package/dist-types/lib/user-facing/component-base/components/popper.d.ts +0 -20
- package/dist-types/lib/user-facing/component-base/components/search-component.d.ts +0 -19
- package/dist-types/lib/user-facing/component-base/components/span-trunc-middle.d.ts +0 -9
- package/dist-types/lib/user-facing/component-base/components/switch.d.ts +0 -6
- package/dist-types/lib/user-facing/component-base/components/video.d.ts +0 -19
- package/dist-types/lib/user-facing/component-base/constants.d.ts +0 -18
- package/dist-types/lib/user-facing/component-base/error/error-inline-message.d.ts +0 -36
- package/dist-types/lib/user-facing/component-base/error/error-tooltip.d.ts +0 -11
- package/dist-types/lib/user-facing/component-base/error/error-utils.d.ts +0 -13
- package/dist-types/lib/user-facing/component-base/error/widget-errors-wrapper.d.ts +0 -15
- package/dist-types/lib/user-facing/component-base/error-boundary.d.ts +0 -18
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +0 -21
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +0 -8
- package/dist-types/lib/user-facing/component-base/styles/hover-styles.d.ts +0 -10
- package/dist-types/lib/user-facing/component-base/styles/input-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/component-base/use-passthrough-props.d.ts +0 -6
- package/dist-types/lib/user-facing/component-base/utils/format-utils.d.ts +0 -37
- package/dist-types/lib/user-facing/component-base/utils/format-utils.test.d.ts +0 -1
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +0 -20
- package/dist-types/lib/user-facing/component-base/utils/input-validation.test.d.ts +0 -1
- package/dist-types/lib/user-facing/components/button/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/button/index.d.ts +0 -81
- package/dist-types/lib/user-facing/components/button/props.d.ts +0 -46
- package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +0 -9
- package/dist-types/lib/user-facing/components/checkbox/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +0 -93
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +0 -49
- package/dist-types/lib/user-facing/components/checkbox/types.d.ts +0 -19
- package/dist-types/lib/user-facing/components/column/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/column/index.d.ts +0 -73
- package/dist-types/lib/user-facing/components/column/props.d.ts +0 -36
- package/dist-types/lib/user-facing/components/container/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/container/index.d.ts +0 -88
- package/dist-types/lib/user-facing/components/container/props.d.ts +0 -46
- package/dist-types/lib/user-facing/components/custom/context.d.ts +0 -11
- package/dist-types/lib/user-facing/components/custom/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +0 -45
- package/dist-types/lib/user-facing/components/date-picker/constants.d.ts +0 -8
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +0 -36
- package/dist-types/lib/user-facing/components/date-picker/date-picker.d.ts +0 -2
- package/dist-types/lib/user-facing/components/date-picker/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +0 -141
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +0 -74
- package/dist-types/lib/user-facing/components/date-picker/props.test-d.d.ts +0 -1
- package/dist-types/lib/user-facing/components/date-picker/side-effects.d.ts +0 -3
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +0 -43
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +0 -35
- package/dist-types/lib/user-facing/components/dropdown/constants.d.ts +0 -5
- package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +0 -106
- package/dist-types/lib/user-facing/components/dropdown/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +0 -150
- package/dist-types/lib/user-facing/components/dropdown/multi-dropdown.d.ts +0 -18
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.d.ts +0 -2
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.test.d.ts +0 -1
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +0 -79
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +0 -88
- package/dist-types/lib/user-facing/components/dropdown/utils.d.ts +0 -8
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-constraints.d.ts +0 -26
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.d.ts +0 -2
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.test.d.ts +0 -1
- package/dist-types/lib/user-facing/components/grid/calculations/order-constraints.d.ts +0 -2
- package/dist-types/lib/user-facing/components/grid/index.d.ts +0 -43
- package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +0 -5
- package/dist-types/lib/user-facing/components/icon/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/icon/index.d.ts +0 -47
- package/dist-types/lib/user-facing/components/icon/props.d.ts +0 -28
- package/dist-types/lib/user-facing/components/image/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/image/image-component.d.ts +0 -40
- package/dist-types/lib/user-facing/components/image/index.d.ts +0 -65
- package/dist-types/lib/user-facing/components/image/props.d.ts +0 -43
- package/dist-types/lib/user-facing/components/input/constants.d.ts +0 -24
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +0 -4
- package/dist-types/lib/user-facing/components/input/derived.test.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/input/index.d.ts +0 -187
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +0 -58
- package/dist-types/lib/user-facing/components/input/props.d.ts +0 -98
- package/dist-types/lib/user-facing/components/input/styles.d.ts +0 -6
- package/dist-types/lib/user-facing/components/input/types.d.ts +0 -45
- package/dist-types/lib/user-facing/components/input/utils.d.ts +0 -15
- package/dist-types/lib/user-facing/components/input/utils.test.d.ts +0 -1
- package/dist-types/lib/user-facing/components/key-value/components/key-styles.d.ts +0 -3
- package/dist-types/lib/user-facing/components/key-value/components/property-key.d.ts +0 -7
- package/dist-types/lib/user-facing/components/key-value/components/property-value.d.ts +0 -12
- package/dist-types/lib/user-facing/components/key-value/components/value-styles.d.ts +0 -6
- package/dist-types/lib/user-facing/components/key-value/constants.d.ts +0 -7
- package/dist-types/lib/user-facing/components/key-value/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/key-value/editor.d.ts +0 -3
- package/dist-types/lib/user-facing/components/key-value/index.d.ts +0 -6
- package/dist-types/lib/user-facing/components/key-value/key-value-component.d.ts +0 -2
- package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +0 -45
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +0 -38
- package/dist-types/lib/user-facing/components/key-value/styles.d.ts +0 -22
- package/dist-types/lib/user-facing/components/key-value/types.d.ts +0 -106
- package/dist-types/lib/user-facing/components/key-value/utils.d.ts +0 -11
- package/dist-types/lib/user-facing/components/modal/constants.d.ts +0 -8
- package/dist-types/lib/user-facing/components/modal/editor-config.d.ts +0 -2
- package/dist-types/lib/user-facing/components/modal/editor-template.d.ts +0 -3
- package/dist-types/lib/user-facing/components/modal/index.d.ts +0 -85
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +0 -37
- package/dist-types/lib/user-facing/components/modal/props.d.ts +0 -45
- package/dist-types/lib/user-facing/components/page/editor.d.ts +0 -2
- package/dist-types/lib/user-facing/components/page/index.d.ts +0 -39
- package/dist-types/lib/user-facing/components/page/props.d.ts +0 -22
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +0 -3
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +0 -7
- package/dist-types/lib/user-facing/components/section/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/section/index.d.ts +0 -49
- package/dist-types/lib/user-facing/components/section/props.d.ts +0 -28
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +0 -10
- package/dist-types/lib/user-facing/components/slideout/editor-config.d.ts +0 -2
- package/dist-types/lib/user-facing/components/slideout/editor-template.d.ts +0 -3
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +0 -85
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +0 -46
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +0 -31
- package/dist-types/lib/user-facing/components/stack/index.d.ts +0 -69
- package/dist-types/lib/user-facing/components/stack/styles.d.ts +0 -11
- package/dist-types/lib/user-facing/components/switch/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/switch/index.d.ts +0 -95
- package/dist-types/lib/user-facing/components/switch/props.d.ts +0 -50
- package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +0 -5
- package/dist-types/lib/user-facing/components/switch/types.d.ts +0 -19
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +0 -278
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +0 -17
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +0 -16
- package/dist-types/lib/user-facing/components/table/components/column-settings.d.ts +0 -11
- package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +0 -15
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +0 -11
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +0 -12
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +0 -14
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +0 -13
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +0 -13
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +0 -28
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +0 -20
- package/dist-types/lib/user-facing/components/table/components/filter-popover-content.d.ts +0 -37
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +0 -5
- package/dist-types/lib/user-facing/components/table/components/table-action-icon.d.ts +0 -13
- package/dist-types/lib/user-facing/components/table/components/table-column-header-button.d.ts +0 -19
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +0 -15
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +0 -40
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +0 -63
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +0 -11
- package/dist-types/lib/user-facing/components/table/components/table-pagination-input.d.ts +0 -10
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +0 -18
- package/dist-types/lib/user-facing/components/table/components/table-row-context-menu.d.ts +0 -17
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +0 -25
- package/dist-types/lib/user-facing/components/table/constants.d.ts +0 -91
- package/dist-types/lib/user-facing/components/table/default-table-data.d.ts +0 -71
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -20
- package/dist-types/lib/user-facing/components/table/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/table/index.d.ts +0 -721
- package/dist-types/lib/user-facing/components/table/props.d.ts +0 -364
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +0 -101
- package/dist-types/lib/user-facing/components/table/table-manager.d.ts +0 -23
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +0 -73
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +0 -148
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +0 -149
- package/dist-types/lib/user-facing/components/table/types.d.ts +0 -447
- package/dist-types/lib/user-facing/components/table/use-sticky.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/utils.d.ts +0 -2
- package/dist-types/lib/user-facing/components/text/editor.d.ts +0 -5
- package/dist-types/lib/user-facing/components/text/index.d.ts +0 -111
- package/dist-types/lib/user-facing/components/text/long-text-button.d.ts +0 -8
- package/dist-types/lib/user-facing/components/text/props.d.ts +0 -67
- package/dist-types/lib/user-facing/components/text/styles.d.ts +0 -2
- package/dist-types/lib/user-facing/components/text/utils.d.ts +0 -26
- package/dist-types/lib/user-facing/constants.d.ts +0 -2
- package/dist-types/lib/user-facing/entities/api/index.d.ts +0 -14
- package/dist-types/lib/user-facing/entities/api/props.d.ts +0 -29
- package/dist-types/lib/user-facing/entities/api/props.test.d.ts +0 -1
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +0 -21
- package/dist-types/lib/user-facing/entities/timer/index.d.ts +0 -16
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +0 -19
- package/dist-types/lib/user-facing/entities/variable/index.d.ts +0 -14
- package/dist-types/lib/user-facing/entities/variable/props.d.ts +0 -13
- package/dist-types/lib/user-facing/error-pages/constants.d.ts +0 -10
- package/dist-types/lib/user-facing/error-pages/error-component.d.ts +0 -17
- package/dist-types/lib/user-facing/error-pages/page-not-found.d.ts +0 -10
- package/dist-types/lib/user-facing/event-flow.d.ts +0 -107
- package/dist-types/lib/user-facing/event-flow.test.d.ts +0 -1
- package/dist-types/lib/user-facing/global-functions.d.ts +0 -25
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +0 -14
- package/dist-types/lib/user-facing/hooks/use-editor.d.ts +0 -42
- package/dist-types/lib/user-facing/hooks/use-theme.d.ts +0 -3
- package/dist-types/lib/user-facing/hooks/use-update-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/icons/constants.d.ts +0 -8
- package/dist-types/lib/user-facing/icons/encoded.d.ts +0 -1
- package/dist-types/lib/user-facing/icons/helpers.d.ts +0 -21
- package/dist-types/lib/user-facing/icons/index.d.ts +0 -2
- package/dist-types/lib/user-facing/internal-index.d.ts +0 -4
- package/dist-types/lib/user-facing/layers.d.ts +0 -42
- package/dist-types/lib/user-facing/properties-panel/constants.d.ts +0 -1
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +0 -9
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.test.d.ts +0 -1
- package/dist-types/lib/user-facing/properties-panel/helpers.test.d.ts +0 -1
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +0 -24
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +0 -8
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +0 -44
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +0 -129
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +0 -2
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +0 -5
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +0 -308
- package/dist-types/lib/user-facing/properties-panel/props-builder.test-d.d.ts +0 -1
- package/dist-types/lib/user-facing/properties-panel/props-builder.test.d.ts +0 -1
- package/dist-types/lib/user-facing/properties-panel/props-panel-utils.d.ts +0 -3
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +0 -34
- package/dist-types/lib/user-facing/sb-provider.d.ts +0 -11
- package/dist-types/lib/user-facing/state/computed.d.ts +0 -2
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +0 -4
- package/dist-types/lib/user-facing/state/create-scope.d.ts +0 -17
- package/dist-types/lib/user-facing/state/types.d.ts +0 -10
- package/dist-types/lib/user-facing/styling/color-utils.d.ts +0 -13
- package/dist-types/lib/user-facing/styling/colors.d.ts +0 -67
- package/dist-types/lib/user-facing/styling/style-as-class.d.ts +0 -1
- package/dist-types/lib/user-facing/styling/styles.d.ts +0 -4
- package/dist-types/lib/user-facing/styling/widget-label-styles.d.ts +0 -11
- package/dist-types/lib/user-facing/themes/classnames.d.ts +0 -72
- package/dist-types/lib/user-facing/themes/constants.d.ts +0 -87
- package/dist-types/lib/user-facing/themes/default-theme.d.ts +0 -8
- package/dist-types/lib/user-facing/themes/generate-border-css.d.ts +0 -25
- package/dist-types/lib/user-facing/themes/generate-border-styles.d.ts +0 -15
- package/dist-types/lib/user-facing/themes/generate-class-name.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generate-colors.d.ts +0 -45
- package/dist-types/lib/user-facing/themes/generate-colors.test.d.ts +0 -1
- package/dist-types/lib/user-facing/themes/generate-theme.d.ts +0 -3
- package/dist-types/lib/user-facing/themes/generate-typographies.d.ts +0 -5
- package/dist-types/lib/user-facing/themes/generatedStyles/button-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/container-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/datepicker-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/dropdown-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/editor-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-component-styles.d.ts +0 -16
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-padding-style.d.ts +0 -19
- package/dist-types/lib/user-facing/themes/generatedStyles/icon-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/input-styles.d.ts +0 -3
- package/dist-types/lib/user-facing/themes/generatedStyles/paginator-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/popper-styles.d.ts +0 -2
- package/dist-types/lib/user-facing/themes/generatedStyles/styles-utils.d.ts +0 -1
- package/dist-types/lib/user-facing/themes/generatedStyles/text-styles.d.ts +0 -3
- package/dist-types/lib/user-facing/themes/generatedStyles/theme-styles.d.ts +0 -5
- package/dist-types/lib/user-facing/themes/generatedStyles/utils.d.ts +0 -23
- package/dist-types/lib/user-facing/themes/index.d.ts +0 -5
- package/dist-types/lib/user-facing/themes/layers.d.ts +0 -6
- package/dist-types/lib/user-facing/themes/padding-constants.d.ts +0 -10
- package/dist-types/lib/user-facing/themes/typeface-constants.d.ts +0 -3
- package/dist-types/lib/user-facing/themes/typefaces/utils.d.ts +0 -28
- package/dist-types/lib/user-facing/themes/typefaces/utils.test.d.ts +0 -1
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.d.ts +0 -33
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.test.d.ts +0 -1
- package/dist-types/lib/user-facing/themes/typeography/use-typography-styling.d.ts +0 -15
- package/dist-types/lib/user-facing/themes/typography-constants.d.ts +0 -34
- package/dist-types/lib/user-facing/themes/utils.d.ts +0 -15
- package/dist-types/lib/user-facing/types.d.ts +0 -17
- package/dist-types/lib/user-facing/utils/create-svg-data-uri.d.ts +0 -9
- package/dist-types/lib/user-facing/utils/form.d.ts +0 -10
- package/dist-types/lib/user-facing/utils/notification.d.ts +0 -16
- package/dist-types/lib/utils/children.d.ts +0 -3
- package/dist-types/lib/utils/clean-object.d.ts +0 -5
- package/dist-types/lib/utils/clean-object.test.d.ts +0 -1
- package/dist-types/lib/utils/fast-clone.d.ts +0 -1
- package/dist-types/lib/utils/generate-id.d.ts +0 -1
- package/dist-types/lib/utils/get-component-layout.d.ts +0 -3
- package/dist-types/lib/utils/is-component-grid.d.ts +0 -2
- package/dist-types/lib/utils/is-component-stacklike.d.ts +0 -2
- package/dist-types/lib/utils/is-component-type-detached.d.ts +0 -1
- package/dist-types/lib/utils/is-component-vstack.d.ts +0 -2
- package/dist-types/lib/utils/keyboard-shortcuts.d.ts +0 -3
- package/dist-types/lib/utils/shallow-equal.d.ts +0 -1
- package/dist-types/lib/utils/widget-wrapper-naming.d.ts +0 -6
- package/dist-types/lib/utils.d.ts +0 -4
- package/dist-types/main.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function serializeStoreData(stores_: Record<string, any>): Record<string, any>;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import type { Name } from "./names.js";
|
|
2
|
-
import type { EventFlow } from "../../../user-facing/event-flow.js";
|
|
3
|
-
import type { ValidateFn } from "../../../user-facing/properties-panel/validators.js";
|
|
4
|
-
import type { Executable, SbElement, SbInstance, ValidationState, EntityOutputProp, Entity, ScopedState, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export type GetterOptions = {
|
|
6
|
-
useSuspense?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type SingleInputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = ValueInputProp<T, ARGS> | EventFlow;
|
|
9
|
-
export type NestedInputProp<T, ARGS extends any[] = any[]> = T extends object ? {
|
|
10
|
-
[K in keyof T]: SingleInputProp<T[K], ARGS> | NestedInputProp<T[K], ARGS>;
|
|
11
|
-
} : never;
|
|
12
|
-
export type InputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = SingleInputProp<T, ARGS> | NestedInputProp<T, ARGS>;
|
|
13
|
-
export type EntityFunction<ARGS extends any[] = any[], R = EntityOutputProp> = (this: Entity, state: ScopedState, ...ARGS: ARGS) => R;
|
|
14
|
-
export type ScopeId = string;
|
|
15
|
-
export type InternalScope = {
|
|
16
|
-
id: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
entities: Record<string, Entity>;
|
|
19
|
-
entityMeta: Record<string, Entity>;
|
|
20
|
-
childScopes: Record<ScopeId, InternalScope>;
|
|
21
|
-
idToName: Record<string, Name>;
|
|
22
|
-
getEntity(name: Name, options?: GetterOptions): Entity;
|
|
23
|
-
getEntityMeta(name: Name, options?: GetterOptions): Entity;
|
|
24
|
-
getEntityName(id: string): Name;
|
|
25
|
-
setEntityName(id: string, name: Name, currentName?: Name): void;
|
|
26
|
-
};
|
|
27
|
-
export interface IEntityManager {
|
|
28
|
-
getFullState: Record<string, Entity>;
|
|
29
|
-
getValidationState: Record<string, ValidationState>;
|
|
30
|
-
getScopeName(scopeId: string): string;
|
|
31
|
-
getState(scopeId: string, options?: GetterOptions): ScopedState;
|
|
32
|
-
getPossibleScope(scopeId: string): InternalScope | undefined;
|
|
33
|
-
getEntity(scopeId: string, name: Name, options?: GetterOptions): Entity;
|
|
34
|
-
getEntityById(scopeId: string, id: SbInstance, options?: GetterOptions): Entity;
|
|
35
|
-
createScope(params: {
|
|
36
|
-
name?: string;
|
|
37
|
-
parentScopeId?: ScopeId;
|
|
38
|
-
scopeId?: string;
|
|
39
|
-
}): ScopeId;
|
|
40
|
-
deleteScope(params: {
|
|
41
|
-
scopeId: ScopeId;
|
|
42
|
-
}): void;
|
|
43
|
-
createEntity(params: {
|
|
44
|
-
scopeId: ScopeId;
|
|
45
|
-
name: Name;
|
|
46
|
-
props: Record<string, InputProp>;
|
|
47
|
-
type: string;
|
|
48
|
-
instanceId?: SbInstance;
|
|
49
|
-
sourceId?: SbElement;
|
|
50
|
-
}): Name;
|
|
51
|
-
deleteEntity(params: {
|
|
52
|
-
name: Name;
|
|
53
|
-
scopeId: ScopeId;
|
|
54
|
-
}): void;
|
|
55
|
-
deleteEntityById(params: {
|
|
56
|
-
scopeId: ScopeId;
|
|
57
|
-
entityId: string;
|
|
58
|
-
}): void;
|
|
59
|
-
resetEntity(params: {
|
|
60
|
-
scopeId: ScopeId;
|
|
61
|
-
name: Name;
|
|
62
|
-
key?: string;
|
|
63
|
-
onlyMetaProps?: boolean;
|
|
64
|
-
}): void;
|
|
65
|
-
updateEntity(params: {
|
|
66
|
-
scopeId: ScopeId;
|
|
67
|
-
name: Name;
|
|
68
|
-
instanceId?: SbInstance;
|
|
69
|
-
props: Record<string, InputProp>;
|
|
70
|
-
}): void;
|
|
71
|
-
renameEntity(params: {
|
|
72
|
-
scopeId: ScopeId;
|
|
73
|
-
instanceId: SbInstance;
|
|
74
|
-
newName: Name;
|
|
75
|
-
isDuplicate: boolean;
|
|
76
|
-
}): void;
|
|
77
|
-
runCode<ARGS extends any[] = any[]>(params: {
|
|
78
|
-
scopeId: ScopeId;
|
|
79
|
-
name: Name;
|
|
80
|
-
func: Executable<ARGS>;
|
|
81
|
-
args?: ARGS;
|
|
82
|
-
excludeState?: boolean;
|
|
83
|
-
}): void;
|
|
84
|
-
computeValue<T, ARGS extends any[] = any[]>(params: {
|
|
85
|
-
scopeId: ScopeId;
|
|
86
|
-
name: Name;
|
|
87
|
-
value: SingleInputProp<T>;
|
|
88
|
-
validator?: ValidateFn<T>;
|
|
89
|
-
args?: ARGS;
|
|
90
|
-
}): T;
|
|
91
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BindingString } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { EntityDerivedProp } from "@superblocksteam/library-shared/types";
|
|
3
|
-
declare const transformBindings: (value: BindingString) => Function;
|
|
4
|
-
export declare const toEvalFunc: ([prop, binding]: [string, BindingString]) => [string, EntityDerivedProp];
|
|
5
|
-
export declare const stringToJS: (string: string) => string;
|
|
6
|
-
export default transformBindings;
|
package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Name } from "./names.js";
|
|
2
|
-
import type { EntityDerivedProp, EntityOutputProp, ScopedState } from "@superblocksteam/library-shared/types";
|
|
3
|
-
export type ComputeParams<ARGS extends any[] = any[]> = {
|
|
4
|
-
snapshot: Readonly<ScopedState>;
|
|
5
|
-
entityName: Name;
|
|
6
|
-
path?: string;
|
|
7
|
-
func: EntityDerivedProp<ARGS>;
|
|
8
|
-
args?: ARGS;
|
|
9
|
-
excludeState?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export interface ComputeEngine {
|
|
12
|
-
compute(params: ComputeParams): EntityOutputProp;
|
|
13
|
-
}
|
|
14
|
-
declare class EvalComputeEngine implements ComputeEngine {
|
|
15
|
-
private statementFunction;
|
|
16
|
-
private statementFunctionNoSnapshot;
|
|
17
|
-
compute({ snapshot, entityName, func, args, path, excludeState, }: ComputeParams): any;
|
|
18
|
-
}
|
|
19
|
-
declare class DirectComputeEngine implements ComputeEngine {
|
|
20
|
-
compute({ snapshot, entityName, func, args, path, excludeState, }: ComputeParams): EntityOutputProp;
|
|
21
|
-
}
|
|
22
|
-
export { EvalComputeEngine, DirectComputeEngine };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ScopedState } from "@superblocksteam/library-shared/types";
|
|
2
|
-
export declare const ARGS_VAR_NAME = "$SB_args";
|
|
3
|
-
export declare const USER_JS_CODE_VAR_NAME = "$SB_userJSCode";
|
|
4
|
-
export declare const SNAPSHOT_VAR_NAME = "$SB_snapshot";
|
|
5
|
-
export declare function createGlobalObject({ snapshot, }: {
|
|
6
|
-
snapshot: Readonly<ScopedState>;
|
|
7
|
-
}): Record<string, unknown>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { DeepObserveChange, Entity } from "@superblocksteam/library-shared/types";
|
|
2
|
-
type IChange = DeepObserveChange;
|
|
3
|
-
type ChangeWithRelatedObject = IChange & {
|
|
4
|
-
relatedEntity?: Entity;
|
|
5
|
-
};
|
|
6
|
-
export type ObserveListener<T> = (change: ChangeWithRelatedObject, path: string, root: T) => void;
|
|
7
|
-
/**
|
|
8
|
-
* Given an object, deeply observes the given object.
|
|
9
|
-
* It is like `observe` from mobx, but applied recursively, including all future children.
|
|
10
|
-
*
|
|
11
|
-
* Note that the given object cannot ever contain cycles and should be a tree.
|
|
12
|
-
*
|
|
13
|
-
* As benefit: path and root will be provided in the callback, so the signature of the listener is
|
|
14
|
-
* (change, path, root) => void
|
|
15
|
-
*
|
|
16
|
-
* The returned disposer can be invoked to clean up the listener
|
|
17
|
-
*
|
|
18
|
-
* deepObserve cannot be used on computed values.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* const disposer = deepObserve(target, (change, path) => {
|
|
22
|
-
* console.dir(change)
|
|
23
|
-
* })
|
|
24
|
-
*/
|
|
25
|
-
export declare function deepObserve<T>(target: T, listener: ObserveListener<T>): () => void;
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { type ValidationState, type SbElement, type SbInstance } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import { type Name } from "./names.js";
|
|
3
|
-
import type { IEntityManager, SingleInputProp, InternalScope, ScopeId, InputProp, GetterOptions } from "./base-entity-manager.js";
|
|
4
|
-
import type { ValidateFn } from "../../../user-facing/properties-panel/validators.js";
|
|
5
|
-
import type { ComponentRegistry } from "../features/component-registry.js";
|
|
6
|
-
import type { Executable, Entity, ScopedState } from "@superblocksteam/library-shared/types";
|
|
7
|
-
export declare const GLOBAL_SCOPE_ID = "Global";
|
|
8
|
-
export declare class EntityManager implements IEntityManager {
|
|
9
|
-
readonly componentRegistry: ComponentRegistry;
|
|
10
|
-
private state;
|
|
11
|
-
private atoms;
|
|
12
|
-
private validationCache;
|
|
13
|
-
private dirComputeEngine;
|
|
14
|
-
private evalComputeEngine;
|
|
15
|
-
constructor(componentRegistry: ComponentRegistry, options?: {
|
|
16
|
-
devtools?: boolean;
|
|
17
|
-
});
|
|
18
|
-
getEntity(scopeId: string, name: Name, options?: GetterOptions): Entity;
|
|
19
|
-
getEntityById(scopeId: string, id: SbInstance, options?: GetterOptions): Entity;
|
|
20
|
-
getState(scopeId: string, options?: GetterOptions): ScopedState;
|
|
21
|
-
getScopeName(scopeId: string): string;
|
|
22
|
-
setValidationState(entityId: string, property: string, state: ValidationState): void;
|
|
23
|
-
get getValidationState(): Record<string, ValidationState>;
|
|
24
|
-
get getFullState(): Record<string, Entity>;
|
|
25
|
-
private getAccessibleScopes;
|
|
26
|
-
getScope(scopeId: string): InternalScope;
|
|
27
|
-
getPossibleScope(scopeId: string): InternalScope | undefined;
|
|
28
|
-
createScope(params: {
|
|
29
|
-
name?: string;
|
|
30
|
-
parentScopeId?: string;
|
|
31
|
-
scopeId?: string;
|
|
32
|
-
}): string;
|
|
33
|
-
deleteScope(params: {
|
|
34
|
-
scopeId: ScopeId;
|
|
35
|
-
}): void;
|
|
36
|
-
createEntity(params: {
|
|
37
|
-
scopeId: ScopeId;
|
|
38
|
-
name: Name;
|
|
39
|
-
props: Record<string, InputProp>;
|
|
40
|
-
type: string;
|
|
41
|
-
instanceId?: SbInstance;
|
|
42
|
-
sourceId?: SbElement;
|
|
43
|
-
}): Name;
|
|
44
|
-
private createEntityStructure;
|
|
45
|
-
private addInternalProperty;
|
|
46
|
-
private addProperty;
|
|
47
|
-
deleteEntity(params: {
|
|
48
|
-
name: Name;
|
|
49
|
-
scopeId: string;
|
|
50
|
-
}): void;
|
|
51
|
-
deleteProperty(params: {
|
|
52
|
-
scopeId: string;
|
|
53
|
-
name: Name;
|
|
54
|
-
prop: string;
|
|
55
|
-
}): void;
|
|
56
|
-
private deleteObsoleteNestedProperties;
|
|
57
|
-
private getNestedPropertyPaths;
|
|
58
|
-
deleteEntityById(params: {
|
|
59
|
-
scopeId: string;
|
|
60
|
-
entityId: string;
|
|
61
|
-
}): void;
|
|
62
|
-
resetEntity(params: {
|
|
63
|
-
scopeId: string;
|
|
64
|
-
name: Name;
|
|
65
|
-
key?: string;
|
|
66
|
-
onlyMetaProps?: boolean;
|
|
67
|
-
}): void;
|
|
68
|
-
updateEntity(params: {
|
|
69
|
-
scopeId: string;
|
|
70
|
-
name: Name;
|
|
71
|
-
instanceId?: SbInstance;
|
|
72
|
-
props: Record<string, InputProp>;
|
|
73
|
-
}): void;
|
|
74
|
-
private addMissingProps;
|
|
75
|
-
renameEntity(params: {
|
|
76
|
-
scopeId: ScopeId;
|
|
77
|
-
instanceId: SbInstance;
|
|
78
|
-
newName: Name;
|
|
79
|
-
isDuplicate: boolean;
|
|
80
|
-
}): void;
|
|
81
|
-
runCode<ARGS extends any[] = any[]>(params: {
|
|
82
|
-
scopeId: string;
|
|
83
|
-
name: Name;
|
|
84
|
-
func: Executable;
|
|
85
|
-
excludeState?: boolean;
|
|
86
|
-
args?: ARGS;
|
|
87
|
-
}): void;
|
|
88
|
-
computeValue<T, ARGS extends any[] = any[]>(params: {
|
|
89
|
-
scopeId: ScopeId;
|
|
90
|
-
name: Name;
|
|
91
|
-
value: SingleInputProp<T>;
|
|
92
|
-
validator?: ValidateFn<T>;
|
|
93
|
-
args?: ARGS;
|
|
94
|
-
}): T;
|
|
95
|
-
private getOrCreateAtom;
|
|
96
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const EntityType: {
|
|
2
|
-
readonly API: "API";
|
|
3
|
-
readonly Button: "Button";
|
|
4
|
-
readonly Text: "Text";
|
|
5
|
-
readonly Image: "Image";
|
|
6
|
-
readonly Container: "Container";
|
|
7
|
-
readonly Grid: "Grid";
|
|
8
|
-
readonly Input: "Input";
|
|
9
|
-
readonly Checkbox: "Checkbox";
|
|
10
|
-
readonly Table: "Table";
|
|
11
|
-
readonly Switch: "Switch";
|
|
12
|
-
readonly Dropdown: "Dropdown";
|
|
13
|
-
readonly Modal: "Modal";
|
|
14
|
-
readonly Dialog: "Dialog";
|
|
15
|
-
};
|
|
16
|
-
export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ComputedArgs } from "@superblocksteam/library-shared";
|
|
2
|
-
declare const lazyFunctionSymbol: unique symbol;
|
|
3
|
-
export type LazyFunction = ((...args: unknown[]) => unknown) & {
|
|
4
|
-
[lazyFunctionSymbol]: true;
|
|
5
|
-
};
|
|
6
|
-
export declare const isLazyFunction: (value: unknown) => value is LazyFunction;
|
|
7
|
-
export declare const LazyFunction: (source: string, args?: ComputedArgs) => LazyFunction;
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Entity, ScopedState } from "@superblocksteam/library-shared/types";
|
|
2
|
-
declare function sanitizeObject<T extends object>(obj: T): T;
|
|
3
|
-
declare function sanitizeEntity<T extends Entity>(entity: T): T;
|
|
4
|
-
declare function sanitizeScopedState(state: ScopedState): ScopedState;
|
|
5
|
-
declare function sanitizedToJS<T>(value: T): T;
|
|
6
|
-
export { sanitizeObject, sanitizeEntity, sanitizeScopedState, sanitizedToJS };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const SuspenseSymbol: unique symbol;
|
|
2
|
-
type SuspenseResult = {
|
|
3
|
-
__isSuspenseResult: typeof SuspenseSymbol;
|
|
4
|
-
};
|
|
5
|
-
declare function toJsOrSuspense<T extends Record<string, unknown>>(obj: T, key?: string): T | SuspenseResult;
|
|
6
|
-
declare function removeSuspense<T extends Record<string, unknown>>(keys: string[], result: T | SuspenseResult, prevSafeResult: T | undefined): T;
|
|
7
|
-
export { SuspenseSymbol, toJsOrSuspense, removeSuspense };
|
|
8
|
-
export type { SuspenseResult };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { EventFlow } from "../../../user-facing/event-flow.js";
|
|
2
|
-
import type { SingleInputProp, InputProp, EntityFunction } from "./base-entity-manager.js";
|
|
3
|
-
import type { LazyFunction } from "./lazy-function.js";
|
|
4
|
-
import type { DataTypeString } from "@superblocksteam/library-shared/props";
|
|
5
|
-
import type { EntityDerivedProp, EntityOutputProp } from "@superblocksteam/library-shared/types";
|
|
6
|
-
type ExecutableType = "normal" | "function" | "mustache-bindings" | "external-function" | "event" | "lazy-function";
|
|
7
|
-
export type ExecutableOrValue = {
|
|
8
|
-
type: ExecutableType;
|
|
9
|
-
} & ({
|
|
10
|
-
type: "normal";
|
|
11
|
-
value: EntityOutputProp;
|
|
12
|
-
} | {
|
|
13
|
-
type: "function";
|
|
14
|
-
value: EntityDerivedProp;
|
|
15
|
-
} | {
|
|
16
|
-
type: "mustache-bindings";
|
|
17
|
-
value: EntityDerivedProp | EntityOutputProp;
|
|
18
|
-
} | {
|
|
19
|
-
type: "external-function";
|
|
20
|
-
value: EntityFunction;
|
|
21
|
-
} | {
|
|
22
|
-
type: "lazy-function";
|
|
23
|
-
value: LazyFunction;
|
|
24
|
-
} | {
|
|
25
|
-
type: "event";
|
|
26
|
-
value: EventFlow;
|
|
27
|
-
});
|
|
28
|
-
type PathSchema = {
|
|
29
|
-
path: string;
|
|
30
|
-
};
|
|
31
|
-
type EntitySchema = PathSchema & {
|
|
32
|
-
dataType: DataTypeString;
|
|
33
|
-
};
|
|
34
|
-
export declare const toExecutablesOrValues: <T>(props: InputProp<T>, propsSchema?: EntitySchema[]) => [string, ExecutableOrValue][];
|
|
35
|
-
export declare const toExecutableOrValue: <T>(path: string, value: SingleInputProp<T>, isAnExternalFunction?: boolean) => ExecutableOrValue;
|
|
36
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useShallowMobxObserver: <T extends Record<string, unknown>>(obj: T, useSuspense?: boolean) => T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type DeleteMeLibraryApi } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { RootStore } from "../root-store.js";
|
|
3
|
-
export type ApiResult<T = any> = {
|
|
4
|
-
data?: T;
|
|
5
|
-
error?: string;
|
|
6
|
-
};
|
|
7
|
-
type ApiDependency = {
|
|
8
|
-
apiName: string;
|
|
9
|
-
params: string[];
|
|
10
|
-
dependencies: string[];
|
|
11
|
-
};
|
|
12
|
-
declare class ApiManager {
|
|
13
|
-
readonly rootStore: RootStore;
|
|
14
|
-
agentUrls: string[];
|
|
15
|
-
private token;
|
|
16
|
-
private accessToken;
|
|
17
|
-
private apisByName;
|
|
18
|
-
private apiNameToDepCandidates;
|
|
19
|
-
private apiNameToApiReferences;
|
|
20
|
-
private runningApiControllers;
|
|
21
|
-
private waitForInitApiPromise;
|
|
22
|
-
constructor(rootStore: RootStore);
|
|
23
|
-
setTokens(token: string, accessToken: string): void;
|
|
24
|
-
isInitialized(): boolean;
|
|
25
|
-
private awaitInitApiIfNeeded;
|
|
26
|
-
loadApiManifest({ apis, apiDependencies, }: {
|
|
27
|
-
apis?: Record<string, {
|
|
28
|
-
api: DeleteMeLibraryApi;
|
|
29
|
-
scopeId: string;
|
|
30
|
-
}>;
|
|
31
|
-
apiDependencies?: ApiDependency[];
|
|
32
|
-
}): void;
|
|
33
|
-
setAllApis(apis: Record<string, {
|
|
34
|
-
api: DeleteMeLibraryApi;
|
|
35
|
-
scopeId: string;
|
|
36
|
-
}>): void;
|
|
37
|
-
setApisLoaded(): void;
|
|
38
|
-
setApiDepCandidates(apiName: string, deps: string[]): void;
|
|
39
|
-
setApiReferences(apiName: string, deps: string[]): void;
|
|
40
|
-
updateApi(api: DeleteMeLibraryApi, scopeId: string): void;
|
|
41
|
-
deleteApi(apiName: string, scopeId?: string): void;
|
|
42
|
-
renameApi({ api, oldName, scopeId, }: {
|
|
43
|
-
api: DeleteMeLibraryApi;
|
|
44
|
-
oldName: string;
|
|
45
|
-
scopeId: string;
|
|
46
|
-
}): void;
|
|
47
|
-
runApi(apiName: string, scopeId: string, traceHeaders?: Record<string, string>): Promise<ApiResult>;
|
|
48
|
-
private findError;
|
|
49
|
-
cancelApi(apiName: string, _scopeId: string): Promise<void>;
|
|
50
|
-
}
|
|
51
|
-
export default ApiManager;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ViewMode } from "@superblocksteam/shared";
|
|
2
|
-
import { ApiResponseType } from "@superblocksteam/shared";
|
|
3
|
-
import type { ApiV2ExecutionRequest, ApiV2ExecutionResponse, ExecutionResponse, StreamEvent } from "../types.js";
|
|
4
|
-
import type { DeleteMeLibraryApi } from "@superblocksteam/library-shared/types";
|
|
5
|
-
import type { Agent } from "@superblocksteam/shared";
|
|
6
|
-
export type ExecuteV2ApiParams = {
|
|
7
|
-
body: ApiV2ExecutionRequest;
|
|
8
|
-
api: DeleteMeLibraryApi;
|
|
9
|
-
environment: string;
|
|
10
|
-
eventType: string;
|
|
11
|
-
notifyOnSystemError: boolean;
|
|
12
|
-
responseType: ApiResponseType;
|
|
13
|
-
onMessage?: (message: any) => void;
|
|
14
|
-
processStreamEvents?: (event: StreamEvent) => void;
|
|
15
|
-
controlFlowOnlyFiles?: FileRequestParam[];
|
|
16
|
-
abortController?: AbortController;
|
|
17
|
-
baseUrl: string;
|
|
18
|
-
agents: Array<Agent>;
|
|
19
|
-
viewMode: ViewMode;
|
|
20
|
-
accessToken: string;
|
|
21
|
-
token: string;
|
|
22
|
-
traceHeaders?: Record<string, string>;
|
|
23
|
-
};
|
|
24
|
-
export declare function executeV2Api(params: ExecuteV2ApiParams): Promise<ExecutionResponse | undefined | void>;
|
|
25
|
-
export declare const HttpMethod: {
|
|
26
|
-
readonly Get: "GET";
|
|
27
|
-
readonly Post: "POST";
|
|
28
|
-
readonly Put: "PUT";
|
|
29
|
-
readonly Patch: "PATCH";
|
|
30
|
-
readonly Delete: "DELETE";
|
|
31
|
-
};
|
|
32
|
-
type HttpMethodName = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
33
|
-
type FileRequestParam = {
|
|
34
|
-
originalName: string;
|
|
35
|
-
buffer: string;
|
|
36
|
-
encoding: "base64";
|
|
37
|
-
mimetype: "text/plain";
|
|
38
|
-
};
|
|
39
|
-
export interface HttpCallOptions extends BaseCallOptions {
|
|
40
|
-
baseUrl?: string;
|
|
41
|
-
controlFlowOnlyFiles?: FileRequestParam[];
|
|
42
|
-
bodyIsFormData?: boolean;
|
|
43
|
-
}
|
|
44
|
-
interface BaseCallOptions {
|
|
45
|
-
method: HttpMethodName;
|
|
46
|
-
url: string;
|
|
47
|
-
body?: Record<string, any>;
|
|
48
|
-
query?: Record<string, string | string[]>;
|
|
49
|
-
params?: Record<string, unknown>;
|
|
50
|
-
timeout?: number;
|
|
51
|
-
abortController?: AbortController;
|
|
52
|
-
headers?: Record<string, string>;
|
|
53
|
-
signal?: AbortSignal;
|
|
54
|
-
priority?: RequestPriority;
|
|
55
|
-
}
|
|
56
|
-
export declare const stream: ({ url, headers, body, onMessage, onComplete, onError, defaultError, method, baseUrl, signal, init: overrideInit, }: {
|
|
57
|
-
url: string;
|
|
58
|
-
init?: RequestInit;
|
|
59
|
-
headers?: Record<string, string>;
|
|
60
|
-
body?: Record<string, any>;
|
|
61
|
-
onMessage: (message: any) => void;
|
|
62
|
-
onComplete: () => void;
|
|
63
|
-
onError: (error: string, statusCode?: number) => void;
|
|
64
|
-
defaultError?: string;
|
|
65
|
-
method?: HttpMethodName;
|
|
66
|
-
baseUrl?: string;
|
|
67
|
-
signal?: AbortSignal;
|
|
68
|
-
}) => Promise<void>;
|
|
69
|
-
export declare class HttpError extends Error {
|
|
70
|
-
code: number;
|
|
71
|
-
critical: boolean;
|
|
72
|
-
constructor(code: number, critical?: boolean, m?: string);
|
|
73
|
-
}
|
|
74
|
-
export declare const parseStreamResult: (streamResult: Array<StreamEvent>, options?: {
|
|
75
|
-
includeFinalOutput?: boolean;
|
|
76
|
-
}) => undefined | ApiV2ExecutionResponse;
|
|
77
|
-
export declare const isApiV2ExecutionResponse: (response: ExecutionResponse | undefined | void) => response is ApiV2ExecutionResponse;
|
|
78
|
-
export declare const decodeBytestringsInV2ExecutionResponse: (response: ExecutionResponse) => void;
|
|
79
|
-
export {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { ManagedPropsList, PropertiesDefinition } from "../../../user-facing/properties-panel/props-builder.js";
|
|
2
|
-
import type { EditorTemplate } from "../../sb-wrapper.jsx";
|
|
3
|
-
import type { RootStore } from "../root-store.js";
|
|
4
|
-
import type { EntityDefinition } from "@superblocksteam/library-shared/props";
|
|
5
|
-
import type { Catalog, ComponentRegistryShareState, CatalogWithInternalDetails, EditorConfig, EntityCallableFunction } from "@superblocksteam/library-shared/types";
|
|
6
|
-
import type * as React from "react";
|
|
7
|
-
export type Type = {
|
|
8
|
-
isSb: symbol;
|
|
9
|
-
sbType: string;
|
|
10
|
-
isDroppable?: boolean;
|
|
11
|
-
hasExtendedClickArea?: boolean;
|
|
12
|
-
propertiesDefinition?: PropertiesDefinition;
|
|
13
|
-
catalog?: Catalog;
|
|
14
|
-
description?: string;
|
|
15
|
-
} & React.ComponentType<any>;
|
|
16
|
-
/**
|
|
17
|
-
* TODO: The component registry could be split into two a thin layer always on, and move some stuff to the EditStore.
|
|
18
|
-
* Some of the actions (rename, delete) and some of the data (isDroppable, hasExtendedClickArea) are editor-only.
|
|
19
|
-
*/
|
|
20
|
-
export declare class ComponentRegistry implements ComponentRegistryShareState {
|
|
21
|
-
readonly rootStore: RootStore;
|
|
22
|
-
private _typeRegistry;
|
|
23
|
-
private _customComponentRegistry;
|
|
24
|
-
private _managedPropsRegistry;
|
|
25
|
-
private _internalPropsRegistry;
|
|
26
|
-
private _editorTemplatesRegistry;
|
|
27
|
-
private _editorConfigsRegistry;
|
|
28
|
-
constructor(rootStore: RootStore);
|
|
29
|
-
addType(type: string, component: Type): void;
|
|
30
|
-
addCustomComponent(type: string, component: Type): void;
|
|
31
|
-
deleteCustomComponent(type: string): void;
|
|
32
|
-
renameCustomComponent(oldName: string, newName: string): void;
|
|
33
|
-
addManagedProps(type: string, props: ManagedPropsList): void;
|
|
34
|
-
deleteManagedProps(type: string): void;
|
|
35
|
-
addEditorTemplate(type: string, template: EditorTemplate<any>): void;
|
|
36
|
-
getEditorTemplates(type: string): EditorTemplate<any>[] | undefined;
|
|
37
|
-
addEditorConfig(type: string, config: EditorConfig): void;
|
|
38
|
-
addInternalProps(type: string, props: Array<{
|
|
39
|
-
path: string;
|
|
40
|
-
factory: () => any;
|
|
41
|
-
}>): void;
|
|
42
|
-
getInternalProps(type: string): Array<{
|
|
43
|
-
path: string;
|
|
44
|
-
factory: () => any;
|
|
45
|
-
}>;
|
|
46
|
-
getEditorConfig(type: string): EditorConfig<any> | undefined;
|
|
47
|
-
get entityDefinitions(): Record<string, EntityDefinition>;
|
|
48
|
-
get libraryComponentCatalogs(): CatalogWithInternalDetails[];
|
|
49
|
-
get libraryComponentEditorConfigs(): {
|
|
50
|
-
[k: string]: EditorConfig<any>;
|
|
51
|
-
};
|
|
52
|
-
get customComponentList(): string[];
|
|
53
|
-
get managedPropsRegistry(): Map<string, ManagedPropsList>;
|
|
54
|
-
getManagedProps(type: string): ManagedPropsList;
|
|
55
|
-
getComponent(type: string): Type | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Get the property path with the record identifier if it exists. For example,
|
|
58
|
-
* `columns.columnName.label` becomes `columns.*.label`, for record properties.
|
|
59
|
-
*/
|
|
60
|
-
getPropertyWithRecordIdentifier(type: string, path: string): string;
|
|
61
|
-
get componentsWithCallFunctions(): Record<string, EntityCallableFunction[]>;
|
|
62
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { IEntityManager } from "../evaluator/base-entity-manager.js";
|
|
2
|
-
import type { Name } from "../evaluator/names.js";
|
|
3
|
-
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
4
|
-
export type IdentifierInfo = {
|
|
5
|
-
sourceId: SbElement;
|
|
6
|
-
name: Name;
|
|
7
|
-
instanceId: SbInstance;
|
|
8
|
-
scopeId: string;
|
|
9
|
-
};
|
|
10
|
-
export declare class NameManager {
|
|
11
|
-
readonly entityManager: IEntityManager;
|
|
12
|
-
private _mountedIdentifiers;
|
|
13
|
-
private _allPossibleIdentifiers;
|
|
14
|
-
private _scopeToNameToIdentifiers;
|
|
15
|
-
private _allNamesToIdentifiers;
|
|
16
|
-
private _prefixOrderByKey;
|
|
17
|
-
constructor(entityManager: IEntityManager);
|
|
18
|
-
get scopeToNameToIds(): Record<string, Record<string, Record<SbInstance, IdentifierInfo>>>;
|
|
19
|
-
getWidgetName(instanceId: SbInstance): undefined | Name;
|
|
20
|
-
hasEntityWithName(name: string): boolean;
|
|
21
|
-
hasDuplicateNames(scopeId: string, name: string): boolean;
|
|
22
|
-
private nextNameAndIdForCombination;
|
|
23
|
-
private trackIdentifier;
|
|
24
|
-
private untrackIdentifier;
|
|
25
|
-
registerIdentifier(identifier: IdentifierInfo): void;
|
|
26
|
-
unregisterIdentifier(instanceId: SbInstance): void;
|
|
27
|
-
getExistingIdentifier(instanceId: SbInstance): IdentifierInfo | undefined;
|
|
28
|
-
registerAndGetIdentifiers(params: {
|
|
29
|
-
sourceId: SbElement | undefined;
|
|
30
|
-
name: string | undefined;
|
|
31
|
-
scopeId: string;
|
|
32
|
-
rootId?: SbInstance;
|
|
33
|
-
existingInstanceId?: SbInstance;
|
|
34
|
-
}): IdentifierInfo;
|
|
35
|
-
private getSharedNameCount;
|
|
36
|
-
changeWidgetName(instanceId: SbInstance, newName?: string): IdentifierInfo | null;
|
|
37
|
-
resetRootOrders(rootId: SbInstance): void;
|
|
38
|
-
}
|