@superblocksteam/library 2.0.33-next.3 → 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,129 +0,0 @@
|
|
|
1
|
-
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import { Prop, Section } from "../props-builder.js";
|
|
3
|
-
import type { ContainerLayout, HorizontalAlignment, VerticalAlignment } from "../../component-base/constants.js";
|
|
4
|
-
import type { DimModes } from "@superblocksteam/library-shared";
|
|
5
|
-
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
6
|
-
import type { ScopedState } from "@superblocksteam/library-shared/types";
|
|
7
|
-
import type { Padding } from "@superblocksteam/library-shared/types";
|
|
8
|
-
/**
|
|
9
|
-
* Sets width default to `fill` if no default width config provided.
|
|
10
|
-
* Sets height default to `fit` if no default height config provided.
|
|
11
|
-
*/
|
|
12
|
-
export declare const size: ({ defaults, defaultsOnAdd, hasMinWidth, hasMaxWidth, hasMinHeight, hasMaxHeight, showMinWidth, showMinHeight, showMaxWidth, showMaxHeight, showWidth, showHeight, }?: {
|
|
13
|
-
defaults?: {
|
|
14
|
-
minWidth?: Dim<DimModes>;
|
|
15
|
-
maxWidth?: Dim<DimModes>;
|
|
16
|
-
minHeight?: Dim<DimModes>;
|
|
17
|
-
maxHeight?: Dim<DimModes>;
|
|
18
|
-
width?: Dim<DimModes>;
|
|
19
|
-
height?: Dim<DimModes>;
|
|
20
|
-
};
|
|
21
|
-
defaultsOnAdd?: {
|
|
22
|
-
minWidth?: Dim<DimModes>;
|
|
23
|
-
maxWidth?: Dim<DimModes>;
|
|
24
|
-
minHeight?: Dim<DimModes>;
|
|
25
|
-
maxHeight?: Dim<DimModes>;
|
|
26
|
-
width?: Dim<DimModes>;
|
|
27
|
-
height?: Dim<DimModes>;
|
|
28
|
-
};
|
|
29
|
-
hasMinWidth?: boolean;
|
|
30
|
-
hasMaxWidth?: boolean;
|
|
31
|
-
hasMinHeight?: boolean;
|
|
32
|
-
hasMaxHeight?: boolean;
|
|
33
|
-
showMinWidth?: (this: any, s: ScopedState) => boolean;
|
|
34
|
-
showMinHeight?: (this: any, s: ScopedState) => boolean;
|
|
35
|
-
showMaxWidth?: (this: any, s: ScopedState) => boolean;
|
|
36
|
-
showMaxHeight?: (this: any, s: ScopedState) => boolean;
|
|
37
|
-
showWidth?: (this: any, s: ScopedState) => boolean;
|
|
38
|
-
showHeight?: (this: any, s: ScopedState) => boolean;
|
|
39
|
-
}) => {
|
|
40
|
-
maxHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
41
|
-
minHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
42
|
-
maxWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
43
|
-
minWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
44
|
-
width: Prop<Dim<DimModes>, false, undefined>;
|
|
45
|
-
height: Prop<Dim<DimModes>, false, undefined>;
|
|
46
|
-
};
|
|
47
|
-
export declare const widthWithoutFit: () => {
|
|
48
|
-
width: Prop<Dim<"px" | "columns" | "rows" | "fill" | "%">, false, undefined>;
|
|
49
|
-
};
|
|
50
|
-
export declare const shouldScrollContents: (defaultValue?: boolean) => {
|
|
51
|
-
shouldScrollContents: Prop<boolean, true, undefined>;
|
|
52
|
-
};
|
|
53
|
-
export declare const visible: () => {
|
|
54
|
-
isVisible: Prop<boolean, true, undefined>;
|
|
55
|
-
};
|
|
56
|
-
export declare const spacing: (options?: {
|
|
57
|
-
default?: Dim<"px">;
|
|
58
|
-
} & Partial<PropertiesPanelDisplay<Dim<"px">, "SPACING_CONTROL">>) => {
|
|
59
|
-
spacing: Prop<Dim<"px">, true, undefined>;
|
|
60
|
-
};
|
|
61
|
-
export declare const padding: (options?: {
|
|
62
|
-
default?: Padding | ((this: any) => Padding);
|
|
63
|
-
} & Partial<PropertiesPanelDisplay<Padding, "PADDING_CONTROL">>) => {
|
|
64
|
-
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true, undefined>;
|
|
65
|
-
};
|
|
66
|
-
export declare const margin: () => {
|
|
67
|
-
margin: Prop<{
|
|
68
|
-
top: Dim<"px">;
|
|
69
|
-
bottom: Dim<"px">;
|
|
70
|
-
left: Dim<"px">;
|
|
71
|
-
right: Dim<"px">;
|
|
72
|
-
} | undefined, true, undefined>;
|
|
73
|
-
};
|
|
74
|
-
export declare const getAlignmentProps: <LayoutType extends "vertical" | "horizontal">() => {
|
|
75
|
-
verticalAlign: Prop<VerticalAlignment<LayoutType>, true, undefined>;
|
|
76
|
-
horizontalAlign: Prop<HorizontalAlignment<LayoutType>, true, undefined>;
|
|
77
|
-
};
|
|
78
|
-
export declare const containerLayout: (sizeProps?: Record<string, Prop<any, any>>) => import("../props-builder.js").UnionProp<{
|
|
79
|
-
layout: Prop<ContainerLayout, true, undefined>;
|
|
80
|
-
}, [{
|
|
81
|
-
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true, undefined>;
|
|
82
|
-
readonly horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
83
|
-
readonly layout: Prop<"vertical", true, undefined>;
|
|
84
|
-
}, {
|
|
85
|
-
readonly verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
86
|
-
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
87
|
-
readonly layout: Prop<"horizontal", true, undefined>;
|
|
88
|
-
}, {
|
|
89
|
-
readonly columns: Prop<number, true, undefined>;
|
|
90
|
-
readonly rowHeight: Prop<Dim<"px">, true, undefined>;
|
|
91
|
-
readonly layout: Prop<"freeform", true, undefined>;
|
|
92
|
-
}], ({
|
|
93
|
-
layout: Prop<ContainerLayout, true, undefined>;
|
|
94
|
-
} & {
|
|
95
|
-
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true, undefined>;
|
|
96
|
-
readonly horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
97
|
-
readonly layout: Prop<"vertical", true, undefined>;
|
|
98
|
-
}) | ({
|
|
99
|
-
layout: Prop<ContainerLayout, true, undefined>;
|
|
100
|
-
} & {
|
|
101
|
-
readonly verticalAlign: Prop<"center" | "bottom" | "top", true, undefined>;
|
|
102
|
-
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
103
|
-
readonly layout: Prop<"horizontal", true, undefined>;
|
|
104
|
-
}) | ({
|
|
105
|
-
layout: Prop<ContainerLayout, true, undefined>;
|
|
106
|
-
} & {
|
|
107
|
-
readonly columns: Prop<number, true, undefined>;
|
|
108
|
-
readonly rowHeight: Prop<Dim<"px">, true, undefined>;
|
|
109
|
-
readonly layout: Prop<"freeform", true, undefined>;
|
|
110
|
-
})>;
|
|
111
|
-
export declare const basicLayout: ({ sizeParams, }?: {
|
|
112
|
-
sizeParams?: Parameters<typeof size>[0];
|
|
113
|
-
}) => Section<Record<string, Prop<any, any, undefined>> & {
|
|
114
|
-
maxHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
115
|
-
minHeight?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
116
|
-
maxWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
117
|
-
minWidth?: Prop<Dim<DimModes>, false, undefined> | undefined;
|
|
118
|
-
width: Prop<Dim<DimModes>, false, undefined>;
|
|
119
|
-
height: Prop<Dim<DimModes>, false, undefined>;
|
|
120
|
-
} & {
|
|
121
|
-
margin: Prop<{
|
|
122
|
-
top: Dim<"px">;
|
|
123
|
-
bottom: Dim<"px">;
|
|
124
|
-
left: Dim<"px">;
|
|
125
|
-
right: Dim<"px">;
|
|
126
|
-
} | undefined, true, undefined>;
|
|
127
|
-
} & {
|
|
128
|
-
isVisible: Prop<boolean, true, undefined>;
|
|
129
|
-
}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type Section } from "./props-builder.js";
|
|
2
|
-
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
3
|
-
import type { ScopedState, Entity } from "@superblocksteam/library-shared/types";
|
|
4
|
-
declare function createPropertiesPanelDefinition(sections: Record<string, Section>, entity?: Entity, scopedState?: ScopedState): PropertiesPanelDefinition;
|
|
5
|
-
export { createPropertiesPanelDefinition };
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import { type ControlType, type DataType, type DataTypeString, type PropertiesPanelDisplay, type PropertyForData, type WidgetPropertyDefinition, type Relation, PropsPanelCategory } from "@superblocksteam/library-shared/props";
|
|
2
|
-
import { createManagedPropsList } from "./create-managed-props-list.js";
|
|
3
|
-
import type { SbComponentProps } from "./../component-base/sb-component.js";
|
|
4
|
-
import type { ValidateFn, ValidationResult } from "./validators.js";
|
|
5
|
-
import type { RuntimeWidgetMeta } from "../../../edit-mode/features/runtime-widgets-manager.js";
|
|
6
|
-
import type { InputProp, SingleInputProp, EntityFunction } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
7
|
-
import type { EventFlow } from "../event-flow.js";
|
|
8
|
-
import type { Dim, DimModes, EvaluateOrValueComputedArgs } from "@superblocksteam/library-shared";
|
|
9
|
-
import type { HeaderType } from "@superblocksteam/library-shared/props";
|
|
10
|
-
import type { Entity, PropertyInfo, SbElement, ScopedState } from "@superblocksteam/library-shared/types";
|
|
11
|
-
export type CustomComponentRenderFunction = (props: any, state: any) => React.ReactNode;
|
|
12
|
-
export type SideEffectCallback = (params: {
|
|
13
|
-
sourceId: SbElement;
|
|
14
|
-
updates: Record<string, PropertyInfo<unknown>>;
|
|
15
|
-
widgetMeta: RuntimeWidgetMeta;
|
|
16
|
-
widgetState: Entity | ScopedState | undefined;
|
|
17
|
-
propertiesDefinition: PropertiesDefinition;
|
|
18
|
-
}) => Record<SbElement, {
|
|
19
|
-
meta?: Record<string, unknown>;
|
|
20
|
-
props?: Record<string, PropertyInfo<unknown>>;
|
|
21
|
-
}>;
|
|
22
|
-
type ManagedProp<T extends DataType = DataType> = PropertyForData<T> & {
|
|
23
|
-
validate?: ValidateFn<any>;
|
|
24
|
-
default?: SingleInputProp<T>;
|
|
25
|
-
defaultOnAdd?: SingleInputProp<T>;
|
|
26
|
-
onEditProperty?: SideEffectCallback;
|
|
27
|
-
onEvaluateProperty?: SideEffectCallback;
|
|
28
|
-
/**
|
|
29
|
-
* Controls binding nesting behavior:
|
|
30
|
-
* - true: Allows bindings to be nested at any depth within this property
|
|
31
|
-
* - false: Only allows bindings at the top level (unless the property is composite)
|
|
32
|
-
*/
|
|
33
|
-
nestedBindings?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Indicates this property should be evaluated per-context (e.g., per-row in tables)
|
|
36
|
-
* When true, the property value will be evaluated for each context with access to context variables
|
|
37
|
-
*/
|
|
38
|
-
contextual?: boolean;
|
|
39
|
-
computedArgs?: EvaluateOrValueComputedArgs;
|
|
40
|
-
isMetaProp?: boolean;
|
|
41
|
-
isFunctionProp?: boolean;
|
|
42
|
-
hasActionPanel?: boolean;
|
|
43
|
-
};
|
|
44
|
-
type ManagedPropsList = Array<ManagedProp & {
|
|
45
|
-
propertiesPanelDisplay?: PropertiesPanelDisplay<any>;
|
|
46
|
-
}>;
|
|
47
|
-
/**
|
|
48
|
-
* Merges shared and variant properties for union types without creating intersections
|
|
49
|
-
* Variant properties override shared properties with the same key
|
|
50
|
-
*/
|
|
51
|
-
type MergeUnionVariant<SHARED extends Record<string, Prop<any, any>>, VARIANT extends Record<string, Prop<any, any>>> = Omit<SHARED, keyof VARIANT> & VARIANT;
|
|
52
|
-
/**
|
|
53
|
-
* Converts a union type to an intersection type
|
|
54
|
-
* Used to merge multiple section props into a single props type
|
|
55
|
-
*/
|
|
56
|
-
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I extends U) => void ? I : never;
|
|
57
|
-
/**
|
|
58
|
-
* Controls how default values affect property optionality
|
|
59
|
-
* - RequiredIfDefault: Properties with default values become required
|
|
60
|
-
* - AlwaysOptional: All properties become optional regardless of defaults
|
|
61
|
-
*/
|
|
62
|
-
type DefaultValueBehavior = "RequiredIfDefault" | "AlwaysOptional";
|
|
63
|
-
/**
|
|
64
|
-
* Extracts the concrete type from a property definition
|
|
65
|
-
*
|
|
66
|
-
* For evaluated props: returns the actual value type
|
|
67
|
-
*
|
|
68
|
-
* For non-evaluated props: returns InputProp<ValueType>
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* Extracts the concrete type from a property definition
|
|
72
|
-
* Enhanced to handle contextual properties
|
|
73
|
-
*/
|
|
74
|
-
type ExtractPropType<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Prop<any, any, any>> ? ExtractProps<T, DefaultsBehavior, IsEvaluated> : T extends RecordProp<infer U> ? Record<string, ExtractProps<U, DefaultsBehavior, IsEvaluated>> : T extends CompositeProp<infer U> ? ExtractProps<U, DefaultsBehavior, IsEvaluated> : T extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? {
|
|
75
|
-
[I in keyof VARIANTS]: ExtractProps<MergeUnionVariant<SHARED, VARIANTS[I]>, DefaultsBehavior, IsEvaluated>;
|
|
76
|
-
}[number] : never : T extends Prop<infer V, infer _HasDefault, infer ContextualProps> ? IsEvaluated extends true ? ContextualProps extends undefined ? V extends EventFlow ? (...args: any[]) => Promise<void> : V : ContextualProps extends any[] ? (...args: ContextualProps) => V : InputProp<V> : InputProp<V> : never;
|
|
77
|
-
/**
|
|
78
|
-
* Extracts a flat props object from a properties definition
|
|
79
|
-
* Handles optionality based on DefaultValueBehavior
|
|
80
|
-
*/
|
|
81
|
-
type ExtractProps<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated extends boolean> = T extends Record<string, Section> ? ExtractProps<MergeSections<T>, DefaultsBehavior, IsEvaluated> : T extends Record<string, Prop<any, any, any>> ? DefaultsBehavior extends "AlwaysOptional" ? {
|
|
82
|
-
[K in keyof T]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
|
|
83
|
-
} : {
|
|
84
|
-
[K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends true ? K : never : never]: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
|
|
85
|
-
} & {
|
|
86
|
-
[K in keyof T as T[K] extends Prop<any, infer HasDefault, any> ? HasDefault extends false ? K : never : never]?: ExtractPropType<T[K], DefaultsBehavior, IsEvaluated>;
|
|
87
|
-
} : never;
|
|
88
|
-
/**
|
|
89
|
-
* Handles non Prop types, aka our default types and CSS props
|
|
90
|
-
*/
|
|
91
|
-
export type RawPropsToExternal<T = Record<string, unknown>> = {
|
|
92
|
-
[K in keyof T as undefined extends T[K] ? never : K]: SingleInputProp<T[K]>;
|
|
93
|
-
} & {
|
|
94
|
-
[K in keyof T as undefined extends T[K] ? K : never]?: SingleInputProp<Exclude<T[K], undefined>>;
|
|
95
|
-
};
|
|
96
|
-
type SectionPropertiesPanelConfig = {
|
|
97
|
-
showHeader?: boolean;
|
|
98
|
-
isDefaultOpen?: boolean;
|
|
99
|
-
headerType?: HeaderType;
|
|
100
|
-
subHeader?: string;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Merges all sections in a properties definition into a single props type
|
|
104
|
-
*/
|
|
105
|
-
type MergeSections<T extends Record<string, Section>, Merged = UnionToIntersection<T[keyof T]>> = Merged extends Section<infer U> ? U : never;
|
|
106
|
-
/**
|
|
107
|
-
* Identical to InternalProps but without the base props
|
|
108
|
-
*/
|
|
109
|
-
type EntityProps<Definition extends PropertiesDefinition, MergedSections = MergeSections<Definition>> = ExtractProps<MergedSections, "RequiredIfDefault", true>;
|
|
110
|
-
/**
|
|
111
|
-
* Internal props used by the component implementation
|
|
112
|
-
* - Properties with defaults are required
|
|
113
|
-
* - Properties are fully evaluated to their final types
|
|
114
|
-
*/
|
|
115
|
-
type InternalProps<Definition extends PropertiesDefinition, FlattenedProps = EntityProps<Definition>, BaseProps = Omit<SbComponentProps, keyof FlattenedProps>> = FlattenedProps & BaseProps;
|
|
116
|
-
type MakeOptional<T, K extends string> = Omit<T, K & keyof T> & Partial<Pick<T, K & keyof T>>;
|
|
117
|
-
type CleanProps<T> = {
|
|
118
|
-
[K in keyof T as string extends K ? never : K]: T[K];
|
|
119
|
-
};
|
|
120
|
-
type InternalPropsWithOptional<Definition extends PropertiesDefinition, OptionalProps extends string, InternalPropsWithDefinition = InternalProps<Definition>> = InternalPropsWithDefinition extends infer U ? U extends any ? MakeOptional<CleanProps<U>, OptionalProps> & {
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
} : never : never;
|
|
123
|
-
/**
|
|
124
|
-
* External props exposed to component consumers
|
|
125
|
-
* - All properties are optional regardless of defaults
|
|
126
|
-
* - Properties accept InputProp values (bindings/functions)
|
|
127
|
-
*/
|
|
128
|
-
type ExternalProps<Definition extends PropertiesDefinition, MergedSections = MergeSections<Definition>, FlattenedProps = ExtractProps<MergedSections, "AlwaysOptional", false>, BaseProps = Omit<SbComponentProps, keyof FlattenedProps>> = FlattenedProps & RawPropsToExternal<BaseProps>;
|
|
129
|
-
type PropertiesDefinition = Record<string, Section>;
|
|
130
|
-
type SectionDefinition<T extends Record<string, Prop<any, any>>> = {
|
|
131
|
-
props: T;
|
|
132
|
-
showHeader?: boolean;
|
|
133
|
-
isDefaultOpen?: boolean;
|
|
134
|
-
headerType?: HeaderType;
|
|
135
|
-
subHeader?: string;
|
|
136
|
-
};
|
|
137
|
-
declare class Section<T extends Record<string, Prop<any, any>> = Record<string, Prop<any, any>>> {
|
|
138
|
-
readonly category: PropsPanelCategory;
|
|
139
|
-
props: T;
|
|
140
|
-
propertiesPanelConfig: SectionPropertiesPanelConfig;
|
|
141
|
-
constructor(category: PropsPanelCategory);
|
|
142
|
-
static category(category: PropsPanelCategory): Section<Record<string, Prop<any, any, undefined>>>;
|
|
143
|
-
children<INP extends Record<string, Prop<any, any>> | CompositeProp<any> | UnionProp<any, any>, OUT extends INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? {
|
|
144
|
-
[I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>;
|
|
145
|
-
}[number] : never : INP>(props: INP): Section<T & OUT>;
|
|
146
|
-
add: <INP extends Record<string, Prop<any, any>> | CompositeProp<any> | UnionProp<any, any>, OUT extends INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>; }[number] : never : INP>(props: INP) => Section<T & OUT>;
|
|
147
|
-
propertiesPanel(config: Omit<SectionDefinition<any>, "props">): this;
|
|
148
|
-
get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Event handlers" | "Uncategorized";
|
|
149
|
-
}
|
|
150
|
-
declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _ContextualArgs extends any[] | undefined | ((entity: Entity) => any[] | undefined) = undefined> {
|
|
151
|
-
protected prop: ManagedProp<Type>;
|
|
152
|
-
/**
|
|
153
|
-
* Relations are an array of arrays
|
|
154
|
-
* each sub-array is AND requirements, and each element is an OR requirement
|
|
155
|
-
*/
|
|
156
|
-
protected relations: Relation[][];
|
|
157
|
-
protected constructor(typeString: DataTypeString, defaultValidator?: ValidateFn<Type | undefined>);
|
|
158
|
-
static unset(): Prop<undefined>;
|
|
159
|
-
static string<T extends string>(): Prop<T>;
|
|
160
|
-
static number<T extends number>(): Prop<T>;
|
|
161
|
-
static boolean<T extends boolean>(): Prop<T>;
|
|
162
|
-
static array<T = Array<any>>(): Prop<T[]>;
|
|
163
|
-
static any<T = any>(): Prop<T>;
|
|
164
|
-
static dimension<T extends Dim<DimModes>>(): Prop<T>;
|
|
165
|
-
static literal<T extends Readonly<string | number | boolean>>(value: T): Prop<T, true>;
|
|
166
|
-
static event(): Prop<EventFlow>;
|
|
167
|
-
static children(): Prop<any>;
|
|
168
|
-
static function<ARGS extends any[] = any[], RETURN = any>(implementation: EntityFunction<ARGS, RETURN>): FunctionProp<ARGS, RETURN>;
|
|
169
|
-
/**
|
|
170
|
-
* Creates an internal property that is not exposed in the entity's public interface,
|
|
171
|
-
* not tracked for reactivity/syncing, and not serialized. This is useful for
|
|
172
|
-
* storing implementation details like SuspensibleAPI instances that other
|
|
173
|
-
* properties can reference via `this._propertyName`.
|
|
174
|
-
*/
|
|
175
|
-
static internal<T = any>(factory: () => T): Prop<T, true>;
|
|
176
|
-
/**
|
|
177
|
-
* Creates a composite property, which is a property that contains nested properties. For example,
|
|
178
|
-
* the following composite property:
|
|
179
|
-
*
|
|
180
|
-
* ```ts
|
|
181
|
-
* const prop = Prop.composite({
|
|
182
|
-
* name: Prop.string(),
|
|
183
|
-
* age: Prop.number(),
|
|
184
|
-
* });
|
|
185
|
-
* ```
|
|
186
|
-
*
|
|
187
|
-
* is equivalent to the following type:
|
|
188
|
-
*
|
|
189
|
-
* ```ts
|
|
190
|
-
* type Prop = {
|
|
191
|
-
* name: string;
|
|
192
|
-
* age: number;
|
|
193
|
-
* };
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
static composite<T extends CompositeInputs>(props: T): CompositeProp<T>;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a record property, which is a record that maps string keys to the nestedproperties. For example,
|
|
199
|
-
* the following record property:
|
|
200
|
-
*
|
|
201
|
-
* ```ts
|
|
202
|
-
* const prop = Prop.record({
|
|
203
|
-
* name: Prop.string(),
|
|
204
|
-
* age: Prop.number(),
|
|
205
|
-
* });
|
|
206
|
-
* ```
|
|
207
|
-
*
|
|
208
|
-
* is equivalent to the following type:
|
|
209
|
-
*
|
|
210
|
-
* ```ts
|
|
211
|
-
* type Prop = Record<string, {
|
|
212
|
-
* name: string;
|
|
213
|
-
* age: number;
|
|
214
|
-
* }>;
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
static record<T extends CompositeInputs>(props: T): RecordProp<T>;
|
|
218
|
-
static union<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[]>(props: {
|
|
219
|
-
shared: SHARED;
|
|
220
|
-
variants: VARIANTS;
|
|
221
|
-
}): UnionProp<SHARED, VARIANTS, VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I]; }[number] : never>;
|
|
222
|
-
readable(): this;
|
|
223
|
-
readAndWrite(): this;
|
|
224
|
-
default(de: SingleInputProp<DataType>): Prop<Type, true>;
|
|
225
|
-
computed(computeFn: SingleInputProp<DataType>): Prop<Type, true>;
|
|
226
|
-
allowNestedBindings(): Prop<Type, true>;
|
|
227
|
-
contextual<TContext extends any[] | undefined = any[]>(computedArgs?: EvaluateOrValueComputedArgs): Prop<Type, _HasDefault, TContext>;
|
|
228
|
-
validate(validateFn: ((value: any) => ValidationResult<Type>) | ValidateFn<any>): this;
|
|
229
|
-
setName(name: string): this;
|
|
230
|
-
onEdit(callback: SideEffectCallback): this;
|
|
231
|
-
onEvaluate(callback: SideEffectCallback): this;
|
|
232
|
-
propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "isTriggerProperty">): this;
|
|
233
|
-
docs(docs: Exclude<PropertyForData<DataType>["docs"], undefined>): this;
|
|
234
|
-
build(): ManagedProp<Type>;
|
|
235
|
-
toDefinition(entity?: Entity, scopedState?: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
|
|
236
|
-
getRelations(): Relation[][];
|
|
237
|
-
dependsOn(relations: Relation[][]): this;
|
|
238
|
-
hasPropertiesPanelDisplay(): boolean;
|
|
239
|
-
get type(): DataTypeString;
|
|
240
|
-
get path(): string;
|
|
241
|
-
get onEditProperty(): SideEffectCallback | undefined;
|
|
242
|
-
get onEvaluateProperty(): SideEffectCallback | undefined;
|
|
243
|
-
}
|
|
244
|
-
type CompositeInputs = Record<string, Section> | Section | Record<string, Prop<unknown, boolean>>;
|
|
245
|
-
/**
|
|
246
|
-
* See {@link Prop.composite}
|
|
247
|
-
*/
|
|
248
|
-
declare class CompositeProp<T extends CompositeInputs> extends Prop<unknown, boolean> {
|
|
249
|
-
typeString: "composite";
|
|
250
|
-
nestedProps: T;
|
|
251
|
-
constructor(props: T);
|
|
252
|
-
getProps(): T;
|
|
253
|
-
toDefinition(entity: Entity, scopedState: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
|
|
254
|
-
propertiesPanelChildrenDisplayMode(): ({
|
|
255
|
-
type: "inline";
|
|
256
|
-
} | {
|
|
257
|
-
type: "popover";
|
|
258
|
-
title?: string;
|
|
259
|
-
panelIdPropertyName?: string;
|
|
260
|
-
titlePropertyName?: string;
|
|
261
|
-
}) | ((this: any, state: any, path: string) => ({
|
|
262
|
-
type: "inline";
|
|
263
|
-
} | {
|
|
264
|
-
type: "popover";
|
|
265
|
-
title?: string;
|
|
266
|
-
panelIdPropertyName?: string;
|
|
267
|
-
titlePropertyName?: string;
|
|
268
|
-
}) | undefined) | undefined;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* See {@link Prop.record}
|
|
272
|
-
*/
|
|
273
|
-
declare class RecordProp<T extends CompositeInputs> extends Prop<unknown, boolean> {
|
|
274
|
-
typeString: "recordOf";
|
|
275
|
-
nestedProps: T;
|
|
276
|
-
constructor(props: T);
|
|
277
|
-
getProps(): T;
|
|
278
|
-
toDefinition(entity: Entity, scopedState: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
|
|
279
|
-
}
|
|
280
|
-
declare class ChildrenProp extends Prop<unknown, boolean> {
|
|
281
|
-
typeString: "children";
|
|
282
|
-
constructor();
|
|
283
|
-
}
|
|
284
|
-
export interface ActionPanel {
|
|
285
|
-
arguments?: Record<string, Prop<any>>;
|
|
286
|
-
}
|
|
287
|
-
declare class FunctionProp<ARGS extends any[] = any[], RETURN = any> extends Prop<EntityFunction<ARGS, RETURN>, true> {
|
|
288
|
-
typeString: "function";
|
|
289
|
-
private _actionPanel;
|
|
290
|
-
constructor(implementation: EntityFunction<ARGS, RETURN>);
|
|
291
|
-
actionPanel(panel?: ActionPanel): this;
|
|
292
|
-
getActionPanel(): ActionPanel | undefined;
|
|
293
|
-
hasActionPanel(): boolean;
|
|
294
|
-
}
|
|
295
|
-
export type UnionVariant<SHARED extends Record<string, Prop<any>>> = {
|
|
296
|
-
[K in keyof SHARED]: Prop<any>;
|
|
297
|
-
};
|
|
298
|
-
declare class UnionProp<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[], _OUTPUT = VARIANTS extends readonly any[] ? {
|
|
299
|
-
[I in keyof VARIANTS]: SHARED & VARIANTS[I];
|
|
300
|
-
}[number] : never> extends Prop<any> {
|
|
301
|
-
typeString: "union";
|
|
302
|
-
shared: SHARED;
|
|
303
|
-
variants: VARIANTS;
|
|
304
|
-
constructor(shared: SHARED, variants: VARIANTS);
|
|
305
|
-
getProps(): SHARED & Record<string, Prop<any, false, undefined>>;
|
|
306
|
-
}
|
|
307
|
-
export type { Relation, ManagedProp, ManagedPropsList, InternalProps, InternalPropsWithOptional, ExternalProps, EntityProps, MergeSections, ExtractProps, ExtractPropType, PropertiesDefinition, };
|
|
308
|
-
export { Prop, CompositeProp, RecordProp, UnionProp, ChildrenProp, FunctionProp, Section, PropsPanelCategory, createManagedPropsList, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RuntimeWidgetMeta } from "../../../edit-mode/features/runtime-widgets-manager";
|
|
2
|
-
import type { PropertyInfo } from "@superblocksteam/library-shared/types";
|
|
3
|
-
export declare const getPreviousAndCurrentWidgetProps: <T>(updates: Record<string, PropertyInfo>, widgetMeta: RuntimeWidgetMeta) => [T, T];
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Entity } from "@superblocksteam/library-shared/types";
|
|
2
|
-
type ValidationResult<T = any> = {
|
|
3
|
-
valid: false;
|
|
4
|
-
message: string;
|
|
5
|
-
invalidValue: any;
|
|
6
|
-
} | {
|
|
7
|
-
valid: true;
|
|
8
|
-
result: T;
|
|
9
|
-
};
|
|
10
|
-
type ValidateFn<T> = (value: any, entity: Entity) => ValidationResult<T>;
|
|
11
|
-
declare const Valid: <T>(result: T) => ValidationResult<T>;
|
|
12
|
-
declare const Invalid: <T>(message: string | undefined, invalidValue: any) => ValidationResult<T>;
|
|
13
|
-
type VALIDATION_TYPES = {
|
|
14
|
-
TEXT: ValidateFn<string | undefined>;
|
|
15
|
-
TEXT_EMPTY_NULL: ValidateFn<string | undefined | null>;
|
|
16
|
-
TEXT_ALLOW_UNDEFINED: ValidateFn<string | undefined>;
|
|
17
|
-
REGEX: ValidateFn<string | undefined>;
|
|
18
|
-
NUMBER: ValidateFn<number>;
|
|
19
|
-
BOOLEAN: ValidateFn<boolean>;
|
|
20
|
-
OBJECT: ValidateFn<object>;
|
|
21
|
-
OBJECT_OR_UNDEFINED: ValidateFn<object | undefined>;
|
|
22
|
-
ARRAY: ValidateFn<any[]>;
|
|
23
|
-
DATE: ValidateFn<string>;
|
|
24
|
-
URL_OR_BASE64: ValidateFn<string>;
|
|
25
|
-
URL_FOR_HYPERLINK: ValidateFn<string>;
|
|
26
|
-
FRACTION_DIGITS: ValidateFn<number | undefined>;
|
|
27
|
-
NUMBER_ARRAY: ValidateFn<number[]>;
|
|
28
|
-
NUMBER_ALLOW_UNDEFINED: ValidateFn<number | undefined>;
|
|
29
|
-
ICONS: ValidateFn<any>;
|
|
30
|
-
};
|
|
31
|
-
declare const VALIDATORS: VALIDATION_TYPES;
|
|
32
|
-
export type { ValidationResult, ValidateFn };
|
|
33
|
-
export { Valid, Invalid };
|
|
34
|
-
export { VALIDATORS };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { GeneratedTheme, Theme } from "@superblocksteam/library-shared/types";
|
|
3
|
-
declare const SbProvider: ({ name, settings, children, }: {
|
|
4
|
-
name: string;
|
|
5
|
-
settings?: Record<string, any> & {
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
themeOverrides?: Partial<GeneratedTheme>;
|
|
8
|
-
};
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export default SbProvider;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BindingIdentifier, type Entity } from "@superblocksteam/library-shared/types";
|
|
2
|
-
export declare const createBindableEntityProxy: (entityAccessor: () => Entity | undefined, identifier: BindingIdentifier) => import("@superblocksteam/library-shared/types").WithBindingIdentifier<{
|
|
3
|
-
entity: Entity | undefined;
|
|
4
|
-
}>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ScopeInstance } from "./types.js";
|
|
2
|
-
type ScopeOptions = {
|
|
3
|
-
parentScopeId?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
};
|
|
6
|
-
type InternalScopeOptions = ScopeOptions & {
|
|
7
|
-
scopeId?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function internalCreateScope<_Bindables extends Record<string, any>, SO extends InternalScopeOptions = InternalScopeOptions>(getInitialEntities: ({ entities, }: {
|
|
10
|
-
entities: Record<string, any>;
|
|
11
|
-
}) => Record<string, any>, // TODO later, like variables, apis
|
|
12
|
-
options: SO): ScopeInstance<Record<string, any>>;
|
|
13
|
-
export declare function createScope<_Bindables extends Record<string, any>, SO extends ScopeOptions = ScopeOptions>(getInitialEntities: ({ entities, }: {
|
|
14
|
-
entities: Record<string, any>;
|
|
15
|
-
}) => Record<string, any>, // TODO later, like variables, apis
|
|
16
|
-
options: SO): ScopeInstance<_Bindables>;
|
|
17
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
2
|
-
export type ScopeInstance<_Bindables extends Record<string, any>> = {
|
|
3
|
-
entities: Record<string, WithBindingIdentifier>;
|
|
4
|
-
initialEntities: Record<string, any>;
|
|
5
|
-
scopeInfo: {
|
|
6
|
-
scopeId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
parentScopeId?: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type RGB = [number, number, number];
|
|
2
|
-
type RGBA = [number, number, number, number];
|
|
3
|
-
export declare const rgba2rgb: (color: RGBA, background: RGB) => number[];
|
|
4
|
-
/**
|
|
5
|
-
* Adjusts color brightness or returns a default.
|
|
6
|
-
*
|
|
7
|
-
* Takes a base color, default color, and change percentage.
|
|
8
|
-
* Lightens or darkens the base color, or returns default if no base color.
|
|
9
|
-
*
|
|
10
|
-
* Used for creating UI element contrast while keeping color consistency.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getLightenedOrDarkenedColor: (baseColor: string | undefined, defaultColor: string, brightnessChangePercentage: number) => string;
|
|
13
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export declare const colors: {
|
|
2
|
-
readonly WHITE: "#FFFFFF";
|
|
3
|
-
readonly BLACK: "#000000";
|
|
4
|
-
readonly PLATFORM_BLACK: "#0E141B";
|
|
5
|
-
readonly OFF_WHITE: "#F2F2F2";
|
|
6
|
-
readonly DISABLED: "rgba(0, 0, 0, 0.25)";
|
|
7
|
-
readonly GREY_25: "#F9FAFB";
|
|
8
|
-
readonly GREY_50: "#F3F4F6";
|
|
9
|
-
readonly GREY_100: "#E8EAED";
|
|
10
|
-
readonly GREY_200: "#C6CAD2";
|
|
11
|
-
readonly GREY_300: "#A4AAB7";
|
|
12
|
-
readonly GREY_400: "#818A9C";
|
|
13
|
-
readonly GREY_500: "#6C7689";
|
|
14
|
-
readonly GREY_600: "#5A6272";
|
|
15
|
-
readonly GREY_700: "#454D5F";
|
|
16
|
-
readonly GREY_800: "#2F3437";
|
|
17
|
-
readonly GREY_900: "#121517";
|
|
18
|
-
readonly GRAY_GRID: "#CCD3DB";
|
|
19
|
-
readonly RED_500_8: "rgba(255, 72, 72, 0.08)";
|
|
20
|
-
readonly RED_25: "#FF48481F";
|
|
21
|
-
readonly RED_500: "#FF4848";
|
|
22
|
-
readonly RED_600: "#DB4949";
|
|
23
|
-
readonly RED_700: "#C54141";
|
|
24
|
-
readonly ORANGE_25: "#FFEEC5";
|
|
25
|
-
readonly ORANGE_600: "#FA8A0F";
|
|
26
|
-
readonly SUBTLE_BLUE: "#29bbff14";
|
|
27
|
-
readonly SUBTLE_BLUE_SOLID: "#eefaff";
|
|
28
|
-
readonly ACCENT_BLUE_NEW_DARKER: "#0087E0";
|
|
29
|
-
readonly BLUE_MINMAX_LABELS: "#0062A3";
|
|
30
|
-
readonly DRAG_PREVIEW_BLUE: "rgba(0, 135, 224, 0.16)";
|
|
31
|
-
readonly ACCENT_BLUE_500: "#27BBFF";
|
|
32
|
-
readonly ACCENT_BLUE_500_04: "#27BBFF0A";
|
|
33
|
-
readonly ACCENT_BLUE_500_25: "#27BBFF14";
|
|
34
|
-
readonly ACCENT_BLUE_500_50: "#27BBFF1F";
|
|
35
|
-
readonly ACCENT_BLUE_500_18: "#27BBFF2E";
|
|
36
|
-
readonly ACCENT_BLUE_500_24: "#27BBFF3D";
|
|
37
|
-
readonly ACCENT_BLUE_500_48: "#27BBFF7A";
|
|
38
|
-
readonly ACCENT_BLUE_600: "#00A8F5";
|
|
39
|
-
readonly ACCENT_BLUE_700: "#009AE0";
|
|
40
|
-
readonly ACCENT_ORANGE: "#FF9F35";
|
|
41
|
-
readonly ACCENT_ORANGE_04: "#FF9F350A";
|
|
42
|
-
readonly ACCENT_ORANGE_24: "#FF9F353D";
|
|
43
|
-
readonly LIGHT_ORANGE: "#FF9F351E";
|
|
44
|
-
readonly ACCENT_ORANGE_600: "#FA8A0F";
|
|
45
|
-
readonly SUBTLE_PURPLE: "#643ADF14";
|
|
46
|
-
readonly ACCENT_PURPLE: "#643ADF";
|
|
47
|
-
readonly LIGHT_PURPLE: "#643ADF1E";
|
|
48
|
-
readonly ACCENT_PURPLE_500: "#7C4FF8";
|
|
49
|
-
readonly ACCENT_PURPLE_600: "#5227CE";
|
|
50
|
-
readonly SUBTLE_GREEN: "#14CDB714";
|
|
51
|
-
readonly LIGHT_GREEN: "#9BDCAD";
|
|
52
|
-
readonly ACCENT_GREEN: "#14CDB7";
|
|
53
|
-
readonly ACCENT_GREEN_600: "#08BAA5";
|
|
54
|
-
readonly LIGHT_PINK: "rgba(255, 98, 164, 0.12)";
|
|
55
|
-
readonly ACCENT_PINK: "#FF62A4";
|
|
56
|
-
readonly HOVER_BLUE: "#E3F8FF";
|
|
57
|
-
readonly HOVER_GREEN: "#14CDB724";
|
|
58
|
-
readonly CLICK_GREEN: "#14CDB734";
|
|
59
|
-
readonly INFO: "#27BBFF";
|
|
60
|
-
readonly WARNING: "#FF9F35";
|
|
61
|
-
readonly DANGER: "#F45252";
|
|
62
|
-
readonly DANGER_BRIGHT: "rgba(255, 72, 72, 1.0)";
|
|
63
|
-
readonly DANGER_SUBTLE: "#F452521F";
|
|
64
|
-
readonly SUCCESS: "#0CC26D";
|
|
65
|
-
readonly NONE: "transparent";
|
|
66
|
-
};
|
|
67
|
-
export type SuperblocksColor = keyof typeof colors;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styleAsClass: (strings: TemplateStringsArray, ...params: string[]) => string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const VARIABLES: Record<string, string>;
|
|
2
|
-
export declare const registerComponentStyle: (componentName: string, styleSheet: string, variableDefns: Record<string, string>, variableValues: Record<string, string>) => void;
|
|
3
|
-
export declare const initializeStyles: (appName: string) => void;
|
|
4
|
-
export declare const MIN_EMPTY_WIDGET_SIZE = "15px";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
export declare const DEFAULT_LABEL_WIDTH_IN_PERCENT = 30;
|
|
3
|
-
export declare const labelStyleRaw: {
|
|
4
|
-
vertical: string;
|
|
5
|
-
horizontal: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const labelStyle: {
|
|
8
|
-
vertical: import("styled-components").FlattenSimpleInterpolation;
|
|
9
|
-
horizontal: import("styled-components").FlattenSimpleInterpolation;
|
|
10
|
-
};
|
|
11
|
-
export declare const getLabelWidthCssValue: (dimension?: Dim) => string;
|