@superblocksteam/library 2.0.32 → 2.0.33-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/app-internal.d.ts +4 -0
- package/dist-types/docs-utils/generate-docs-utils.d.ts +42 -0
- package/dist-types/docs-utils/generate-docs.d.ts +2 -0
- package/dist-types/docs-utils/generate-docs.test.d.ts +1 -0
- package/dist-types/edit-mode/base-editor-bridge.d.ts +60 -0
- package/dist-types/edit-mode/collisions-layer.d.ts +3 -0
- package/dist-types/edit-mode/create-component.d.ts +11 -0
- package/dist-types/edit-mode/create-component.test.d.ts +1 -0
- package/dist-types/edit-mode/debug-tools.d.ts +11 -0
- package/dist-types/edit-mode/dnd/collision-detection.d.ts +3 -0
- package/dist-types/edit-mode/dnd/dnd-provider.d.ts +4 -0
- package/dist-types/edit-mode/dnd/draggable-widget.d.ts +7 -0
- package/dist-types/edit-mode/dnd/drop-layer.d.ts +5 -0
- package/dist-types/edit-mode/dnd/droppable-widget.d.ts +10 -0
- package/dist-types/edit-mode/dnd/get-allowed-children.d.ts +2 -0
- package/dist-types/edit-mode/dnd/grid-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +58 -0
- package/dist-types/edit-mode/dnd/grid-utils.d.ts +8 -0
- package/dist-types/edit-mode/dnd/handle-grid-drop.d.ts +9 -0
- package/dist-types/edit-mode/dnd/handle-stack-drop.d.ts +9 -0
- package/dist-types/edit-mode/dnd/hooks/use-component-draggable.d.ts +5 -0
- package/dist-types/edit-mode/dnd/hooks/use-component-droppable.d.ts +6 -0
- package/dist-types/edit-mode/dnd/hooks/use-handle-dnd-events.d.ts +1 -0
- package/dist-types/edit-mode/dnd/hooks/use-widget-node-ref.d.ts +2 -0
- package/dist-types/edit-mode/dnd/new-components-drag-layer.d.ts +6 -0
- package/dist-types/edit-mode/dnd/stack-drop.d.ts +4 -0
- package/dist-types/edit-mode/dnd/stack-store.d.ts +10 -0
- package/dist-types/edit-mode/dnd/stack-utils.d.ts +13 -0
- package/dist-types/edit-mode/dnd/types.d.ts +45 -0
- package/dist-types/edit-mode/dnd/utils.d.ts +42 -0
- package/dist-types/edit-mode/dnd/utils.test.d.ts +1 -0
- package/dist-types/edit-mode/duplicated-name-popover.d.ts +7 -0
- package/dist-types/edit-mode/edit-store.d.ts +47 -0
- package/dist-types/edit-mode/edit-wrapper.d.ts +18 -0
- package/dist-types/edit-mode/editor-hotkeys.d.ts +3 -0
- package/dist-types/edit-mode/extended-clickable-area.d.ts +8 -0
- package/dist-types/edit-mode/features/ai-store.d.ts +34 -0
- package/dist-types/edit-mode/features/connection-manager.d.ts +9 -0
- package/dist-types/edit-mode/features/drag-and-drop-store.d.ts +67 -0
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +23 -0
- package/dist-types/edit-mode/features/operation-store.d.ts +64 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +45 -0
- package/dist-types/edit-mode/features/resizing-store.d.ts +54 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +95 -0
- package/dist-types/edit-mode/features/runtime-widgets-manager.d.ts +59 -0
- package/dist-types/edit-mode/features/ui-store.d.ts +49 -0
- package/dist-types/edit-mode/get-edit-store.d.ts +6 -0
- package/dist-types/edit-mode/hooks/use-register-source-element.d.ts +2 -0
- package/dist-types/edit-mode/identifier-context.d.ts +6 -0
- package/dist-types/edit-mode/iframe-wrappers.d.ts +5 -0
- package/dist-types/edit-mode/import-error-notification.d.ts +1 -0
- package/dist-types/edit-mode/interaction-layer/interaction-add-section-button.d.ts +4 -0
- package/dist-types/edit-mode/interaction-layer/interaction-layer.d.ts +11 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-actions.d.ts +9 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-handles.d.ts +7 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect-name-pill.d.ts +13 -0
- package/dist-types/edit-mode/interaction-layer/interaction-rect.d.ts +49 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +8 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.d.ts +2 -0
- package/dist-types/edit-mode/mobx-sync/create-patch.test.d.ts +1 -0
- package/dist-types/edit-mode/mobx-sync/deep-observe.d.ts +24 -0
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.d.ts +23 -0
- package/dist-types/edit-mode/mobx-sync/mobx-editor-sync.test.d.ts +1 -0
- package/dist-types/edit-mode/noop-editor-bridge.d.ts +1 -0
- package/dist-types/edit-mode/properties.d.ts +13 -0
- package/dist-types/edit-mode/resize-capabilities.d.ts +5 -0
- package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +14 -0
- package/dist-types/edit-mode/roots.d.ts +19 -0
- package/dist-types/edit-mode/runtime-children.d.ts +14 -0
- package/dist-types/edit-mode/sb-component-from-meta.d.ts +2 -0
- package/dist-types/edit-mode/source-update-api.d.ts +19 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +40 -0
- package/dist-types/edit-mode/vite.d.ts +4 -0
- package/dist-types/internal-testing/components/api.d.ts +3 -0
- package/dist-types/internal-testing/components/broken-app.d.ts +3 -0
- package/dist-types/internal-testing/components/button.d.ts +1 -0
- package/dist-types/internal-testing/components/checkbox.d.ts +1 -0
- package/dist-types/internal-testing/components/container.d.ts +1 -0
- package/dist-types/internal-testing/components/date-picker.d.ts +1 -0
- package/dist-types/internal-testing/components/dropdown.d.ts +1 -0
- package/dist-types/internal-testing/components/form.d.ts +1 -0
- package/dist-types/internal-testing/components/icon.d.ts +1 -0
- package/dist-types/internal-testing/components/image.d.ts +1 -0
- package/dist-types/internal-testing/components/import-error.d.ts +1 -0
- package/dist-types/internal-testing/components/input.d.ts +1 -0
- package/dist-types/internal-testing/components/key-value.d.ts +1 -0
- package/dist-types/internal-testing/components/modal.d.ts +3 -0
- package/dist-types/internal-testing/components/section-column.d.ts +1 -0
- package/dist-types/internal-testing/components/slideout.d.ts +3 -0
- package/dist-types/internal-testing/components/switch.d.ts +1 -0
- package/dist-types/internal-testing/components/table.d.ts +3 -0
- package/dist-types/internal-testing/components/timer.d.ts +3 -0
- package/dist-types/internal-testing/components/variable.d.ts +3 -0
- package/dist-types/internal-testing/utils.d.ts +5 -0
- package/dist-types/internal-testing/widgets.d.ts +2 -0
- package/dist-types/lib/hooks/use-alignment-styles.d.ts +9 -0
- package/dist-types/lib/hooks/use-cached-value.d.ts +11 -0
- package/dist-types/lib/hooks/use-callback-as-ref.d.ts +1 -0
- package/dist-types/lib/hooks/use-component-min-size.d.ts +29 -0
- package/dist-types/lib/hooks/use-deep-memo.d.ts +9 -0
- package/dist-types/lib/hooks/use-editor-hotkeys.d.ts +3 -0
- package/dist-types/lib/hooks/use-element-rect.d.ts +7 -0
- package/dist-types/lib/hooks/use-key-pressed.d.ts +1 -0
- package/dist-types/lib/hooks/use-observer-memo.d.ts +14 -0
- package/dist-types/lib/hooks/use-observer-memo.test.d.ts +1 -0
- package/dist-types/lib/hooks/use-pointer-down-outside.d.ts +15 -0
- package/dist-types/lib/hooks/use-stable-effect.d.ts +22 -0
- package/dist-types/lib/hooks/use-stable-effect.test.d.ts +1 -0
- package/dist-types/lib/index.d.ts +44 -0
- package/dist-types/lib/internal-details/actions-context.d.ts +9 -0
- package/dist-types/lib/internal-details/app-wrappers.d.ts +5 -0
- package/dist-types/lib/internal-details/component-info-context.d.ts +10 -0
- package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +10 -0
- package/dist-types/lib/internal-details/css-constants.d.ts +4 -0
- package/dist-types/lib/internal-details/entities-state.d.ts +11 -0
- package/dist-types/lib/internal-details/entities.d.ts +5 -0
- package/dist-types/lib/internal-details/env.d.ts +1 -0
- package/dist-types/lib/internal-details/external-stack-child.d.ts +13 -0
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +8 -0
- package/dist-types/lib/internal-details/internal-components/common.d.ts +13 -0
- package/dist-types/lib/internal-details/internal-components/error-boundary/index.d.ts +18 -0
- package/dist-types/lib/internal-details/internal-components/route-load-error.d.ts +1 -0
- package/dist-types/lib/internal-details/is-edit-mode.d.ts +1 -0
- package/dist-types/lib/internal-details/is-sb-component.d.ts +11 -0
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +91 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-extraction.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +22 -0
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.test.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +3 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +26 -0
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +96 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/entity-types.d.ts +16 -0
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/names.d.ts +7 -0
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +36 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.test.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +51 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +79 -0
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +62 -0
- package/dist-types/lib/internal-details/lib/features/injected-features.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/features/name-manager.d.ts +38 -0
- package/dist-types/lib/internal-details/lib/features/type-defs-utils.d.ts +3 -0
- package/dist-types/lib/internal-details/lib/iframe.d.ts +44 -0
- package/dist-types/lib/internal-details/lib/mobx-cached-getter.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/resolve-id-singleton.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/root-store.d.ts +35 -0
- package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +11 -0
- package/dist-types/lib/internal-details/lib/throttle.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +298 -0
- package/dist-types/lib/internal-details/location-store.d.ts +13 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +11 -0
- package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -0
- package/dist-types/lib/internal-details/routing.d.ts +2 -0
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +98 -0
- package/dist-types/lib/internal-details/sb-wrapper.test.d.ts +1 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +11 -0
- package/dist-types/lib/internal-details/scope/scope-context.d.ts +8 -0
- package/dist-types/lib/internal-details/scope/scope.d.ts +12 -0
- package/dist-types/lib/internal-details/scope/types.d.ts +48 -0
- package/dist-types/lib/internal-details/size.d.ts +1 -0
- package/dist-types/lib/internal-details/theme-context.d.ts +8 -0
- package/dist-types/lib/internal-details/use-track-runtime-widget.d.ts +15 -0
- package/dist-types/lib/internal-details/utils/is-local-link.d.ts +1 -0
- package/dist-types/lib/internal-details/utils/navigation.d.ts +20 -0
- package/dist-types/lib/tracing/context-utils.d.ts +4 -0
- package/dist-types/lib/tracing/early-console-buffer.d.ts +21 -0
- package/dist-types/lib/tracing/logs.d.ts +11 -0
- package/dist-types/lib/triggers/base.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +12 -0
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +3 -0
- package/dist-types/lib/triggers/implementations/call-function.d.ts +15 -0
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +16 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +12 -0
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +17 -0
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/navigate/utils.d.ts +2 -0
- package/dist-types/lib/triggers/implementations/run-js.d.ts +11 -0
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +13 -0
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +18 -0
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +10 -0
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +14 -0
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +13 -0
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +13 -0
- package/dist-types/lib/triggers/registry.d.ts +5 -0
- package/dist-types/lib/triggers/run-event-handlers.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/components/autolinked-text.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +47 -0
- package/dist-types/lib/user-facing/component-base/components/checkbox.d.ts +12 -0
- package/dist-types/lib/user-facing/component-base/components/dropdown-select.d.ts +4 -0
- package/dist-types/lib/user-facing/component-base/components/dynamic-svg.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/components/expand-button.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/components/loading-animator.d.ts +4 -0
- package/dist-types/lib/user-facing/component-base/components/plain-link.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/components/popper.d.ts +20 -0
- package/dist-types/lib/user-facing/component-base/components/search-component.d.ts +19 -0
- package/dist-types/lib/user-facing/component-base/components/span-trunc-middle.d.ts +9 -0
- package/dist-types/lib/user-facing/component-base/components/switch.d.ts +6 -0
- package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
- package/dist-types/lib/user-facing/component-base/constants.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/error/error-inline-message.d.ts +36 -0
- package/dist-types/lib/user-facing/component-base/error/error-tooltip.d.ts +11 -0
- package/dist-types/lib/user-facing/component-base/error/error-utils.d.ts +13 -0
- package/dist-types/lib/user-facing/component-base/error/widget-errors-wrapper.d.ts +15 -0
- package/dist-types/lib/user-facing/component-base/error-boundary.d.ts +18 -0
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +21 -0
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +8 -0
- package/dist-types/lib/user-facing/component-base/styles/hover-styles.d.ts +10 -0
- package/dist-types/lib/user-facing/component-base/styles/input-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/component-base/use-passthrough-props.d.ts +6 -0
- package/dist-types/lib/user-facing/component-base/utils/format-utils.d.ts +37 -0
- package/dist-types/lib/user-facing/component-base/utils/format-utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +20 -0
- package/dist-types/lib/user-facing/component-base/utils/input-validation.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/button/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +81 -0
- package/dist-types/lib/user-facing/components/button/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/checkbox/checkbox-component.d.ts +9 -0
- package/dist-types/lib/user-facing/components/checkbox/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +93 -0
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +49 -0
- package/dist-types/lib/user-facing/components/checkbox/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/column/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/column/index.d.ts +73 -0
- package/dist-types/lib/user-facing/components/column/props.d.ts +36 -0
- package/dist-types/lib/user-facing/components/container/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/container/index.d.ts +88 -0
- package/dist-types/lib/user-facing/components/container/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/custom/context.d.ts +11 -0
- package/dist-types/lib/user-facing/components/custom/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +45 -0
- package/dist-types/lib/user-facing/components/date-picker/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +36 -0
- package/dist-types/lib/user-facing/components/date-picker/date-picker.d.ts +2 -0
- package/dist-types/lib/user-facing/components/date-picker/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +141 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +74 -0
- package/dist-types/lib/user-facing/components/date-picker/props.test-d.d.ts +1 -0
- package/dist-types/lib/user-facing/components/date-picker/side-effects.d.ts +3 -0
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +43 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +35 -0
- package/dist-types/lib/user-facing/components/dropdown/constants.d.ts +5 -0
- package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +106 -0
- package/dist-types/lib/user-facing/components/dropdown/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +150 -0
- package/dist-types/lib/user-facing/components/dropdown/multi-dropdown.d.ts +18 -0
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.d.ts +2 -0
- package/dist-types/lib/user-facing/components/dropdown/normalize-values.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +79 -0
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +88 -0
- package/dist-types/lib/user-facing/components/dropdown/utils.d.ts +8 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-constraints.d.ts +26 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/calculations/calculate-row-positions.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/grid/calculations/order-constraints.d.ts +2 -0
- package/dist-types/lib/user-facing/components/grid/index.d.ts +43 -0
- package/dist-types/lib/user-facing/components/grid/use-height-observer.d.ts +5 -0
- package/dist-types/lib/user-facing/components/icon/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/icon/index.d.ts +47 -0
- package/dist-types/lib/user-facing/components/icon/props.d.ts +28 -0
- package/dist-types/lib/user-facing/components/image/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/image/image-component.d.ts +40 -0
- package/dist-types/lib/user-facing/components/image/index.d.ts +65 -0
- package/dist-types/lib/user-facing/components/image/props.d.ts +43 -0
- package/dist-types/lib/user-facing/components/input/constants.d.ts +24 -0
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +4 -0
- package/dist-types/lib/user-facing/components/input/derived.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/input/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/input/index.d.ts +187 -0
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +58 -0
- package/dist-types/lib/user-facing/components/input/props.d.ts +98 -0
- package/dist-types/lib/user-facing/components/input/styles.d.ts +6 -0
- package/dist-types/lib/user-facing/components/input/types.d.ts +45 -0
- package/dist-types/lib/user-facing/components/input/utils.d.ts +15 -0
- package/dist-types/lib/user-facing/components/input/utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/components/key-value/components/key-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/components/key-value/components/property-key.d.ts +7 -0
- package/dist-types/lib/user-facing/components/key-value/components/property-value.d.ts +12 -0
- package/dist-types/lib/user-facing/components/key-value/components/value-styles.d.ts +6 -0
- package/dist-types/lib/user-facing/components/key-value/constants.d.ts +7 -0
- package/dist-types/lib/user-facing/components/key-value/derived-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/components/key-value/editor.d.ts +3 -0
- package/dist-types/lib/user-facing/components/key-value/index.d.ts +6 -0
- package/dist-types/lib/user-facing/components/key-value/key-value-component.d.ts +2 -0
- package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +38 -0
- package/dist-types/lib/user-facing/components/key-value/styles.d.ts +22 -0
- package/dist-types/lib/user-facing/components/key-value/types.d.ts +106 -0
- package/dist-types/lib/user-facing/components/key-value/utils.d.ts +11 -0
- package/dist-types/lib/user-facing/components/modal/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/components/modal/editor-config.d.ts +2 -0
- package/dist-types/lib/user-facing/components/modal/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +85 -0
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +37 -0
- package/dist-types/lib/user-facing/components/modal/props.d.ts +45 -0
- package/dist-types/lib/user-facing/components/page/editor.d.ts +2 -0
- package/dist-types/lib/user-facing/components/page/index.d.ts +39 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +22 -0
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +3 -0
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
- package/dist-types/lib/user-facing/components/section/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +49 -0
- package/dist-types/lib/user-facing/components/section/props.d.ts +28 -0
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/components/slideout/editor-config.d.ts +2 -0
- package/dist-types/lib/user-facing/components/slideout/editor-template.d.ts +3 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +85 -0
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +46 -0
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
- package/dist-types/lib/user-facing/components/stack/index.d.ts +69 -0
- package/dist-types/lib/user-facing/components/stack/styles.d.ts +11 -0
- package/dist-types/lib/user-facing/components/switch/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/switch/index.d.ts +95 -0
- package/dist-types/lib/user-facing/components/switch/props.d.ts +50 -0
- package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +5 -0
- package/dist-types/lib/user-facing/components/switch/types.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +278 -0
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +17 -0
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +16 -0
- package/dist-types/lib/user-facing/components/table/components/column-settings.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +15 -0
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +12 -0
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +14 -0
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +28 -0
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/components/filter-popover-content.d.ts +37 -0
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +5 -0
- package/dist-types/lib/user-facing/components/table/components/table-action-icon.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/components/table-column-header-button.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +15 -0
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +40 -0
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +63 -0
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +11 -0
- package/dist-types/lib/user-facing/components/table/components/table-pagination-input.d.ts +10 -0
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +18 -0
- package/dist-types/lib/user-facing/components/table/components/table-row-context-menu.d.ts +17 -0
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +25 -0
- package/dist-types/lib/user-facing/components/table/constants.d.ts +91 -0
- package/dist-types/lib/user-facing/components/table/default-table-data.d.ts +71 -0
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +20 -0
- package/dist-types/lib/user-facing/components/table/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +721 -0
- package/dist-types/lib/user-facing/components/table/props.d.ts +364 -0
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +101 -0
- package/dist-types/lib/user-facing/components/table/table-manager.d.ts +23 -0
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +73 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +148 -0
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +149 -0
- package/dist-types/lib/user-facing/components/table/types.d.ts +447 -0
- package/dist-types/lib/user-facing/components/table/use-sticky.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/editor.d.ts +5 -0
- package/dist-types/lib/user-facing/components/text/index.d.ts +111 -0
- package/dist-types/lib/user-facing/components/text/long-text-button.d.ts +8 -0
- package/dist-types/lib/user-facing/components/text/props.d.ts +67 -0
- package/dist-types/lib/user-facing/components/text/styles.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/utils.d.ts +26 -0
- package/dist-types/lib/user-facing/constants.d.ts +2 -0
- package/dist-types/lib/user-facing/entities/api/index.d.ts +14 -0
- package/dist-types/lib/user-facing/entities/api/props.d.ts +29 -0
- package/dist-types/lib/user-facing/entities/api/props.test.d.ts +1 -0
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +21 -0
- package/dist-types/lib/user-facing/entities/timer/index.d.ts +16 -0
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +19 -0
- package/dist-types/lib/user-facing/entities/variable/index.d.ts +14 -0
- package/dist-types/lib/user-facing/entities/variable/props.d.ts +13 -0
- package/dist-types/lib/user-facing/error-pages/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/error-pages/error-component.d.ts +17 -0
- package/dist-types/lib/user-facing/error-pages/page-not-found.d.ts +10 -0
- package/dist-types/lib/user-facing/event-flow.d.ts +107 -0
- package/dist-types/lib/user-facing/event-flow.test.d.ts +1 -0
- package/dist-types/lib/user-facing/global-functions.d.ts +25 -0
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
- package/dist-types/lib/user-facing/hooks/use-editor.d.ts +42 -0
- package/dist-types/lib/user-facing/hooks/use-theme.d.ts +3 -0
- package/dist-types/lib/user-facing/hooks/use-update-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/icons/constants.d.ts +8 -0
- package/dist-types/lib/user-facing/icons/encoded.d.ts +1 -0
- package/dist-types/lib/user-facing/icons/helpers.d.ts +21 -0
- package/dist-types/lib/user-facing/icons/index.d.ts +2 -0
- package/dist-types/lib/user-facing/internal-index.d.ts +4 -0
- package/dist-types/lib/user-facing/layers.d.ts +42 -0
- package/dist-types/lib/user-facing/properties-panel/constants.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +9 -0
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/helpers.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +24 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +8 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +44 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +129 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +2 -0
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +5 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +308 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.test-d.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.test.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/props-panel-utils.d.ts +3 -0
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +34 -0
- package/dist-types/lib/user-facing/sb-provider.d.ts +11 -0
- package/dist-types/lib/user-facing/state/computed.d.ts +2 -0
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +4 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +17 -0
- package/dist-types/lib/user-facing/state/types.d.ts +10 -0
- package/dist-types/lib/user-facing/styling/color-utils.d.ts +13 -0
- package/dist-types/lib/user-facing/styling/colors.d.ts +67 -0
- package/dist-types/lib/user-facing/styling/style-as-class.d.ts +1 -0
- package/dist-types/lib/user-facing/styling/styles.d.ts +4 -0
- package/dist-types/lib/user-facing/styling/widget-label-styles.d.ts +11 -0
- package/dist-types/lib/user-facing/themes/classnames.d.ts +72 -0
- package/dist-types/lib/user-facing/themes/constants.d.ts +87 -0
- package/dist-types/lib/user-facing/themes/default-theme.d.ts +8 -0
- package/dist-types/lib/user-facing/themes/generate-border-css.d.ts +25 -0
- package/dist-types/lib/user-facing/themes/generate-border-styles.d.ts +15 -0
- package/dist-types/lib/user-facing/themes/generate-class-name.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generate-colors.d.ts +45 -0
- package/dist-types/lib/user-facing/themes/generate-colors.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/generate-theme.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generate-typographies.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/button-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/container-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/datepicker-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/dropdown-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/editor-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-component-styles.d.ts +16 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/generate-padding-style.d.ts +19 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/icon-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/input-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/paginator-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/popper-styles.d.ts +2 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/styles-utils.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/text-styles.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/theme-styles.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/generatedStyles/utils.d.ts +23 -0
- package/dist-types/lib/user-facing/themes/index.d.ts +5 -0
- package/dist-types/lib/user-facing/themes/layers.d.ts +6 -0
- package/dist-types/lib/user-facing/themes/padding-constants.d.ts +10 -0
- package/dist-types/lib/user-facing/themes/typeface-constants.d.ts +3 -0
- package/dist-types/lib/user-facing/themes/typefaces/utils.d.ts +28 -0
- package/dist-types/lib/user-facing/themes/typefaces/utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.d.ts +33 -0
- package/dist-types/lib/user-facing/themes/typeography/typography-utils.test.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/typeography/use-typography-styling.d.ts +15 -0
- package/dist-types/lib/user-facing/themes/typography-constants.d.ts +34 -0
- package/dist-types/lib/user-facing/themes/utils.d.ts +15 -0
- package/dist-types/lib/user-facing/types.d.ts +17 -0
- package/dist-types/lib/user-facing/utils/create-svg-data-uri.d.ts +9 -0
- package/dist-types/lib/user-facing/utils/form.d.ts +10 -0
- package/dist-types/lib/user-facing/utils/notification.d.ts +16 -0
- package/dist-types/lib/utils/children.d.ts +3 -0
- package/dist-types/lib/utils/clean-object.d.ts +5 -0
- package/dist-types/lib/utils/clean-object.test.d.ts +1 -0
- package/dist-types/lib/utils/fast-clone.d.ts +1 -0
- package/dist-types/lib/utils/generate-id.d.ts +1 -0
- package/dist-types/lib/utils/get-component-layout.d.ts +3 -0
- package/dist-types/lib/utils/is-component-grid.d.ts +2 -0
- package/dist-types/lib/utils/is-component-stacklike.d.ts +2 -0
- package/dist-types/lib/utils/is-component-type-detached.d.ts +1 -0
- package/dist-types/lib/utils/is-component-vstack.d.ts +2 -0
- package/dist-types/lib/utils/keyboard-shortcuts.d.ts +3 -0
- package/dist-types/lib/utils/shallow-equal.d.ts +1 -0
- package/dist-types/lib/utils/widget-wrapper-naming.d.ts +6 -0
- package/dist-types/lib/utils.d.ts +4 -0
- package/dist-types/main.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { propertiesDefinition } from "./props.js";
|
|
2
|
+
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
3
|
+
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
4
|
+
import type { TextStyleWithVariant, Typographies, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
import type { CSSProperties } from "react";
|
|
6
|
+
type TextWidgetProps = InternalProps<typeof propertiesDefinition>;
|
|
7
|
+
export declare const useText: ({ text, numberFormat, minDecimals, maxDecimals, textType, currency, dateInputFormat, dateOutputFormat, }: Pick<TextWidgetProps, "text" | "numberFormat" | "minDecimals" | "maxDecimals" | "textType" | "currency" | "dateInputFormat" | "dateOutputFormat">) => string | undefined;
|
|
8
|
+
export declare const useTextClassName: ({ textStyleVariant, isLoading, }: {
|
|
9
|
+
textStyleVariant: keyof Typographies;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
}) => string;
|
|
12
|
+
export declare const getFontSizePx: (textStyle: TextStyleWithVariant, theme: UserAccessibleTheme) => number;
|
|
13
|
+
export declare const useIcon: ({ textStyle }: {
|
|
14
|
+
textStyle: TextStyleWithVariant;
|
|
15
|
+
}) => {
|
|
16
|
+
iconGap: {
|
|
17
|
+
gap: string;
|
|
18
|
+
};
|
|
19
|
+
iconSize: number;
|
|
20
|
+
};
|
|
21
|
+
export declare const useStyle: (props: TextWidgetProps) => CSSProperties;
|
|
22
|
+
export declare const useIconContainerStyles: ({ iconGap, horizontalAlign, }: {
|
|
23
|
+
iconGap: any;
|
|
24
|
+
horizontalAlign: HorizontalAlign;
|
|
25
|
+
}) => any;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { sbEntitySymbol } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { EventFlow } from "../../../index.js";
|
|
3
|
+
import type { RawPropsToExternal } from "../../properties-panel/props-builder.js";
|
|
4
|
+
type Props = {
|
|
5
|
+
onSuccess?: EventFlow;
|
|
6
|
+
onError?: EventFlow;
|
|
7
|
+
};
|
|
8
|
+
export declare const SbApi: (args: RawPropsToExternal<Props>) => {
|
|
9
|
+
[sbEntitySymbol]: true;
|
|
10
|
+
type: "SbApi";
|
|
11
|
+
onSuccess: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<EventFlow> | undefined;
|
|
12
|
+
onError: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<EventFlow> | undefined;
|
|
13
|
+
} & import("@superblocksteam/library-shared/types").AnonymousSbEntity;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Section, Prop, type InternalProps } from "../../properties-panel/props-builder.js";
|
|
2
|
+
import { SuspensibleAPI } from "./suspensible-api.js";
|
|
3
|
+
export type ApiEntity = Omit<InternalProps<typeof propertiesDefinition>, "_suspensibleApi"> & {
|
|
4
|
+
run: () => Promise<any>;
|
|
5
|
+
cancel: () => Promise<any>;
|
|
6
|
+
_suspensibleApi: SuspensibleAPI<any, any[]>;
|
|
7
|
+
};
|
|
8
|
+
export declare const propertiesDefinition: {
|
|
9
|
+
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
10
|
+
onSuccess: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
11
|
+
onError: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
12
|
+
}>;
|
|
13
|
+
metadata: Section<Record<string, Prop<any, any, undefined>> & {
|
|
14
|
+
response: Prop<any, true, undefined>;
|
|
15
|
+
error: Prop<any, true, undefined>;
|
|
16
|
+
isLoading: Prop<boolean, true, undefined>;
|
|
17
|
+
}>;
|
|
18
|
+
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
19
|
+
run: import("../../properties-panel/props-builder.js").FunctionProp<[traceHeaders?: Record<string, string> | undefined], Promise<any>>;
|
|
20
|
+
cancel: import("../../properties-panel/props-builder.js").FunctionProp<[], Promise<void>>;
|
|
21
|
+
}>;
|
|
22
|
+
internal: Section<Record<string, Prop<any, any, undefined>> & {
|
|
23
|
+
/**
|
|
24
|
+
* Internal SuspensibleAPI instance that manages loading states and React Suspense integration.
|
|
25
|
+
* This property is hidden from the public interface but accessible to other properties.
|
|
26
|
+
*/
|
|
27
|
+
_suspensibleApi: Prop<SuspensibleAPI<any, []>, true, undefined>;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SbApiRunOptions } from "@superblocksteam/library-shared/types";
|
|
2
|
+
export declare class SuspensibleAPI<TData = any, TArgs extends any[] = any[]> {
|
|
3
|
+
private _response;
|
|
4
|
+
private _error;
|
|
5
|
+
private _promise;
|
|
6
|
+
private _isLoading;
|
|
7
|
+
private _runFn;
|
|
8
|
+
private _cancelFn;
|
|
9
|
+
constructor({ runFn, cancelFn, }: {
|
|
10
|
+
runFn: (options?: SbApiRunOptions, ...args: TArgs) => Promise<TData>;
|
|
11
|
+
cancelFn: (...args: TArgs) => Promise<void>;
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Context-aware response getter that either returns data or throws promises to trigger React Suspense.
|
|
15
|
+
*/
|
|
16
|
+
get response(): TData | undefined;
|
|
17
|
+
get isLoading(): boolean;
|
|
18
|
+
get error(): Error | undefined;
|
|
19
|
+
run(options?: SbApiRunOptions, ...args: TArgs): Promise<TData>;
|
|
20
|
+
cancel(...args: TArgs): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { sbEntitySymbol } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { EventFlow } from "../../../index.js";
|
|
3
|
+
import type { RawPropsToExternal } from "../../properties-panel/props-builder.js";
|
|
4
|
+
type Props = {
|
|
5
|
+
intervalMs?: number;
|
|
6
|
+
startOnPageLoad?: boolean;
|
|
7
|
+
onFire?: EventFlow;
|
|
8
|
+
};
|
|
9
|
+
export declare const Timer: (args: RawPropsToExternal<Props>) => {
|
|
10
|
+
[sbEntitySymbol]: true;
|
|
11
|
+
type: "Timer";
|
|
12
|
+
intervalMs: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<number> | undefined;
|
|
13
|
+
startOnPageLoad: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<boolean> | undefined;
|
|
14
|
+
onFire: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<EventFlow> | undefined;
|
|
15
|
+
} & import("@superblocksteam/library-shared/types").AnonymousSbEntity;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
|
+
export declare const propertiesDefinition: {
|
|
3
|
+
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
4
|
+
intervalMs: Prop<number, true, undefined>;
|
|
5
|
+
startOnPageLoad: Prop<boolean, false, undefined>;
|
|
6
|
+
}>;
|
|
7
|
+
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
8
|
+
onFire: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
9
|
+
}>;
|
|
10
|
+
metadata: Section<Record<string, Prop<any, any, undefined>> & {
|
|
11
|
+
timerId: Prop<string, false, undefined>;
|
|
12
|
+
isRunning: Prop<boolean, true, undefined>;
|
|
13
|
+
}>;
|
|
14
|
+
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
15
|
+
start: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
16
|
+
stop: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
17
|
+
toggle: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { sbEntitySymbol, StateVarPersistence } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { RawPropsToExternal } from "../../properties-panel/props-builder.js";
|
|
3
|
+
export { StateVarPersistence };
|
|
4
|
+
type Props<T = any> = {
|
|
5
|
+
defaultValue: T;
|
|
6
|
+
persistence?: StateVarPersistence;
|
|
7
|
+
};
|
|
8
|
+
export declare const StateVar: (args: RawPropsToExternal<Props<any>>) => {
|
|
9
|
+
[sbEntitySymbol]: true;
|
|
10
|
+
type: "StateVar";
|
|
11
|
+
defaultValue: any;
|
|
12
|
+
value: any;
|
|
13
|
+
persistence: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<StateVarPersistence> | undefined;
|
|
14
|
+
} & import("@superblocksteam/library-shared/types").AnonymousSbEntity;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StateVarPersistence } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
|
+
export declare const propertiesDefinition: {
|
|
4
|
+
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
5
|
+
defaultValue: Prop<any, false, undefined>;
|
|
6
|
+
value: Prop<any, false, undefined>;
|
|
7
|
+
persistence: Prop<StateVarPersistence, true, undefined>;
|
|
8
|
+
}>;
|
|
9
|
+
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
10
|
+
set: import("../../properties-panel/props-builder.js").FunctionProp<[value: any], void>;
|
|
11
|
+
reset: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { API_STATUS_CODES } from "./constants.js";
|
|
3
|
+
interface Props {
|
|
4
|
+
title: string;
|
|
5
|
+
errorMessage?: string | React.ReactNode;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
handleButtonClick?: () => void;
|
|
8
|
+
errorCode?: API_STATUS_CODES | "LOGIN_FAILURE";
|
|
9
|
+
buttonPath?: string;
|
|
10
|
+
image?: string;
|
|
11
|
+
secondaryButtonText?: string;
|
|
12
|
+
secondaryButtonAction?: () => void;
|
|
13
|
+
hideActions?: boolean;
|
|
14
|
+
mainButtonType?: "primary" | "ghost";
|
|
15
|
+
}
|
|
16
|
+
declare const ErrorComponent: ({ title, errorMessage, buttonText, handleButtonClick, errorCode, buttonPath, image: overrideImage, secondaryButtonAction, secondaryButtonText, hideActions, mainButtonType, }: Props) => React.JSX.Element;
|
|
17
|
+
export default ErrorComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const PageNotFound: ({ title, errorMessage, buttonPath, buttonText, onButtonClick, hideActions, }: {
|
|
3
|
+
title?: string;
|
|
4
|
+
errorMessage?: string | React.ReactElement;
|
|
5
|
+
buttonPath?: string;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
onButtonClick?: () => void;
|
|
8
|
+
hideActions?: boolean;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default PageNotFound;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { StepDef, ValueInputProp, NotificationPosition, NotificationType, IEventFlow, WithBindingIdentifier, ScopedState } from "@superblocksteam/library-shared/types";
|
|
2
|
+
declare class EventFlow implements IEventFlow<StepDef, ScopedState, ValueInputProp> {
|
|
3
|
+
steps: StepDef[];
|
|
4
|
+
private constructor();
|
|
5
|
+
private addStep;
|
|
6
|
+
static start(): EventFlow;
|
|
7
|
+
static runJS(handler: (s: ScopedState | any, additionalProps?: Record<string, any>) => void): EventFlow;
|
|
8
|
+
runJS(handler: (s: ScopedState | any, additionalProps?: Record<string, any>) => void): this;
|
|
9
|
+
static navigateTo(url: ValueInputProp<string>, opts?: {
|
|
10
|
+
newWindow?: boolean;
|
|
11
|
+
replaceHistory?: boolean;
|
|
12
|
+
arguments?: string;
|
|
13
|
+
}): EventFlow;
|
|
14
|
+
navigateTo(url: ValueInputProp<string>, opts?: {
|
|
15
|
+
newWindow?: boolean;
|
|
16
|
+
replaceHistory?: boolean;
|
|
17
|
+
arguments?: string;
|
|
18
|
+
}): this;
|
|
19
|
+
static navigateToApp(appId: string): EventFlow;
|
|
20
|
+
navigateToApp(appId: string): this;
|
|
21
|
+
static navigateToRoute(route: string): EventFlow;
|
|
22
|
+
navigateToRoute(route: string): this;
|
|
23
|
+
static setQueryParams(params: Record<string, ValueInputProp<string>>, opts?: {
|
|
24
|
+
keep?: boolean;
|
|
25
|
+
}): EventFlow;
|
|
26
|
+
setQueryParams(params: Record<string, ValueInputProp<string>>, opts?: {
|
|
27
|
+
keep?: boolean;
|
|
28
|
+
}): this;
|
|
29
|
+
static controlSlideout(slideout: WithBindingIdentifier, opts: {
|
|
30
|
+
action: "open" | "close";
|
|
31
|
+
}): EventFlow;
|
|
32
|
+
controlSlideout(slideout: WithBindingIdentifier, opts: {
|
|
33
|
+
action: "open" | "close";
|
|
34
|
+
}): this;
|
|
35
|
+
static controlModal(modal: WithBindingIdentifier, opts: {
|
|
36
|
+
action: "open" | "close";
|
|
37
|
+
}): EventFlow;
|
|
38
|
+
controlModal(modal: WithBindingIdentifier, opts: {
|
|
39
|
+
action: "open" | "close";
|
|
40
|
+
}): this;
|
|
41
|
+
static controlTimer(stateTimer: WithBindingIdentifier, opts: {
|
|
42
|
+
action: "start" | "stop" | "toggle";
|
|
43
|
+
}): EventFlow;
|
|
44
|
+
controlTimer(stateTimer: WithBindingIdentifier, opts: {
|
|
45
|
+
action: "start" | "stop" | "toggle";
|
|
46
|
+
}): this;
|
|
47
|
+
static runApis(apis: any[], opts?: {
|
|
48
|
+
onSuccess?: EventFlow;
|
|
49
|
+
onError?: EventFlow;
|
|
50
|
+
}): EventFlow;
|
|
51
|
+
runApis(apis: any[], opts?: {
|
|
52
|
+
onSuccess?: EventFlow;
|
|
53
|
+
onError?: EventFlow;
|
|
54
|
+
}): this;
|
|
55
|
+
static cancelApis(apis: any[], onCancel?: EventFlow): EventFlow;
|
|
56
|
+
cancelApis(apis: any[], onCancel?: EventFlow): this;
|
|
57
|
+
static resetComponent(component: WithBindingIdentifier, opts?: {
|
|
58
|
+
property: string;
|
|
59
|
+
}): EventFlow;
|
|
60
|
+
resetComponent(component: WithBindingIdentifier, opts?: {
|
|
61
|
+
property: string;
|
|
62
|
+
}): this;
|
|
63
|
+
static resetStateVar(state: WithBindingIdentifier): EventFlow;
|
|
64
|
+
resetStateVar(state: WithBindingIdentifier): this;
|
|
65
|
+
static setStateVar(stateVarName: WithBindingIdentifier, opts: {
|
|
66
|
+
value: ValueInputProp;
|
|
67
|
+
}): EventFlow;
|
|
68
|
+
setStateVar(stateVar: WithBindingIdentifier, opts: {
|
|
69
|
+
value: ValueInputProp;
|
|
70
|
+
}): this;
|
|
71
|
+
callFunction(component: () => unknown): this;
|
|
72
|
+
static callFunction(component: () => unknown): EventFlow;
|
|
73
|
+
static setComponentProperty(component: WithBindingIdentifier, opts: {
|
|
74
|
+
property: string;
|
|
75
|
+
value: ValueInputProp;
|
|
76
|
+
}): EventFlow;
|
|
77
|
+
setComponentProperty(component: WithBindingIdentifier, opts: {
|
|
78
|
+
property: string;
|
|
79
|
+
value: ValueInputProp;
|
|
80
|
+
}): this;
|
|
81
|
+
static showAlert(message: ValueInputProp<string>, opts?: {
|
|
82
|
+
type?: NotificationType;
|
|
83
|
+
durationMs?: number;
|
|
84
|
+
position?: NotificationPosition;
|
|
85
|
+
}): EventFlow;
|
|
86
|
+
showAlert(message: ValueInputProp<string>, opts?: {
|
|
87
|
+
type?: NotificationType;
|
|
88
|
+
durationMs?: number;
|
|
89
|
+
position?: NotificationPosition;
|
|
90
|
+
}): this;
|
|
91
|
+
static setProfile(profileId: string, opts: {
|
|
92
|
+
action: "set" | "unset";
|
|
93
|
+
}): EventFlow;
|
|
94
|
+
setProfile(profileId: string, opts: {
|
|
95
|
+
action: "set" | "unset";
|
|
96
|
+
}): this;
|
|
97
|
+
static triggerEvent(eventName: string, opts?: {
|
|
98
|
+
data: Record<string, string>;
|
|
99
|
+
}): EventFlow;
|
|
100
|
+
triggerEvent(eventName: string, opts?: {
|
|
101
|
+
data: Record<string, string>;
|
|
102
|
+
}): this;
|
|
103
|
+
static sequence(eventFlows: EventFlow[]): EventFlow;
|
|
104
|
+
sequence(eventFlows: EventFlow[]): this;
|
|
105
|
+
build(): StepDef[];
|
|
106
|
+
}
|
|
107
|
+
export { EventFlow };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NotificationPosition } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { NotificationType } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare enum Types {
|
|
4
|
+
STRING = "STRING",
|
|
5
|
+
NUMBER = "NUMBER",
|
|
6
|
+
BOOLEAN = "BOOLEAN",
|
|
7
|
+
OBJECT = "OBJECT",
|
|
8
|
+
MAP = "MAP",
|
|
9
|
+
SET = "SET",
|
|
10
|
+
ARRAY = "ARRAY",
|
|
11
|
+
FUNCTION = "FUNCTION",
|
|
12
|
+
UNDEFINED = "UNDEFINED",
|
|
13
|
+
NULL = "NULL",
|
|
14
|
+
UNKNOWN = "UNKNOWN"
|
|
15
|
+
}
|
|
16
|
+
export declare const getType: (value: unknown) => Types;
|
|
17
|
+
export declare function copyToClipboard(text: string, options?: {
|
|
18
|
+
debug?: boolean;
|
|
19
|
+
format?: string;
|
|
20
|
+
}): void;
|
|
21
|
+
export declare function navigateTo(urlOrRoute: string, queryParams?: Record<string, any>, target?: string): boolean;
|
|
22
|
+
export declare function setQueryParams(queryParams?: Record<string, any>, preserveExistingQueryParams?: boolean): boolean;
|
|
23
|
+
export declare function download(data: any, fileName?: string, fileType?: string): void;
|
|
24
|
+
export declare function showAlert(message: string, style: NotificationType, durationSeconds?: number, alertPosition?: NotificationPosition): void;
|
|
25
|
+
export declare function logoutIntegrations(): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook to enable editing dialogs.
|
|
3
|
+
*
|
|
4
|
+
* Dialog: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
|
|
5
|
+
* E.g: Modal, Slideout, etc
|
|
6
|
+
*
|
|
7
|
+
* The hook expects an `isOpen` property on the component, but can be customized by passing a `isOpenPropertyName`.
|
|
8
|
+
*/
|
|
9
|
+
import type { SbInstance } from "@superblocksteam/library-shared/types";
|
|
10
|
+
export declare function useDialogEditing(props: {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
instanceId: SbInstance;
|
|
13
|
+
isOpenPropertyName?: string;
|
|
14
|
+
}): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { SbInstance } from "@superblocksteam/library-shared/types";
|
|
2
|
+
export type EditorFeatures = {
|
|
3
|
+
/**
|
|
4
|
+
* Whether drag and drop functionality is enabled
|
|
5
|
+
*/
|
|
6
|
+
dragAndDrop: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether nudging elements with arrow keys is enabled
|
|
9
|
+
*/
|
|
10
|
+
nudging: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The currently selected widget
|
|
13
|
+
*/
|
|
14
|
+
selectWidget: SbInstance | null;
|
|
15
|
+
};
|
|
16
|
+
export type FeatureState<T> = {
|
|
17
|
+
value: T;
|
|
18
|
+
set: (value: T) => void;
|
|
19
|
+
};
|
|
20
|
+
export type RecordFeatureState<T> = {
|
|
21
|
+
[K in keyof T]: FeatureState<T[K]>;
|
|
22
|
+
};
|
|
23
|
+
type HookResult = {
|
|
24
|
+
features: RecordFeatureState<EditorFeatures>;
|
|
25
|
+
isEditing: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Hook that provides access to editor-specific features.
|
|
29
|
+
*
|
|
30
|
+
* This hook allows you to control editor-only functionality on a per-widget basis.
|
|
31
|
+
* Note: These features only work in editor mode and have no effect in deployed apps.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Disable drag and drop for a widget
|
|
35
|
+
* const { features } = useEditor();
|
|
36
|
+
* features.dragAndDrop.set(false);
|
|
37
|
+
*
|
|
38
|
+
* // Disable nudging with arrow keys
|
|
39
|
+
* features.nudging.set(false);
|
|
40
|
+
*/
|
|
41
|
+
declare const useEditor: () => HookResult;
|
|
42
|
+
export default useEditor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useUpdateProperties(): (props: Record<string, any>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCaretIconEncodedUrl: (fill: string) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import type { IconPosition } from "./constants.js";
|
|
3
|
+
import type { GeneratedTheme, Padding, PerSideBorder, TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const getIconPositionStyle: ({ padding, border, defaultBorderWidth, iconPosition, hasSuffix, }: {
|
|
5
|
+
padding: Padding;
|
|
6
|
+
border?: PerSideBorder;
|
|
7
|
+
defaultBorderWidth?: number;
|
|
8
|
+
iconPosition?: IconPosition;
|
|
9
|
+
hasSuffix?: boolean;
|
|
10
|
+
}) => {
|
|
11
|
+
left: string;
|
|
12
|
+
right: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const getInputIconSize: ({ width, componentWidth, textStyle, padding, generatedTheme, }: {
|
|
15
|
+
width?: Dim;
|
|
16
|
+
componentWidth: number;
|
|
17
|
+
textStyle?: TextStyleWithVariant;
|
|
18
|
+
padding?: any;
|
|
19
|
+
generatedTheme: GeneratedTheme;
|
|
20
|
+
}) => number;
|
|
21
|
+
export declare const getIconPadding: (paddingValue?: Dim<"px">, iconSize?: number, withSpacing?: boolean) => Dim<"px">;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { registerComponentInternal } from "../internal-details/sb-wrapper.jsx";
|
|
2
|
+
export { useActions } from "../internal-details/actions-context.jsx";
|
|
3
|
+
export type { Entity } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export { useScope } from "../internal-details/scope/scope-context.jsx";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare enum Indices {
|
|
2
|
+
Layer0 = 0,
|
|
3
|
+
Layer1 = 1,
|
|
4
|
+
Layer2 = 2,
|
|
5
|
+
Layer3 = 3,
|
|
6
|
+
Layer4 = 4,
|
|
7
|
+
Layer5 = 5,
|
|
8
|
+
Layer6 = 6,
|
|
9
|
+
Layer7 = 7,
|
|
10
|
+
Layer8 = 8,
|
|
11
|
+
Layer9 = 9,
|
|
12
|
+
Layer10 = 10,
|
|
13
|
+
Layer11 = 11,
|
|
14
|
+
Layer12 = 12,
|
|
15
|
+
Layer13 = 13,
|
|
16
|
+
Layer14 = 14,
|
|
17
|
+
LayerMax = 99999
|
|
18
|
+
}
|
|
19
|
+
export declare const Layers: {
|
|
20
|
+
dragPreview: Indices;
|
|
21
|
+
visibilityOverlay: Indices;
|
|
22
|
+
selectedRect: Indices;
|
|
23
|
+
focusedRect: Indices;
|
|
24
|
+
namePill: Indices;
|
|
25
|
+
closeButton: Indices;
|
|
26
|
+
stickySections: Indices;
|
|
27
|
+
scrollbars: Indices;
|
|
28
|
+
componentBorder: Indices;
|
|
29
|
+
resizeWrapper: Indices;
|
|
30
|
+
parentSelectedWrapper: Indices;
|
|
31
|
+
widgetResizer: Indices;
|
|
32
|
+
resizer: Indices;
|
|
33
|
+
dialog: Indices;
|
|
34
|
+
widgetName: Indices;
|
|
35
|
+
selectionConstraintResize: Indices;
|
|
36
|
+
addSectionButton: Indices;
|
|
37
|
+
canvasBreadCrumbPopover: Indices;
|
|
38
|
+
vstackDropPlaceholder: Indices;
|
|
39
|
+
focusedInput: Indices;
|
|
40
|
+
max: Indices;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ANIMATE_LOADING_PROPERTY_CONTROL_HELP_TEXT = "Display a loading animation if dependent data is loading";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Section } from "./props-builder.js";
|
|
2
|
+
import type { ManagedPropsList } from "./props-builder.js";
|
|
3
|
+
export declare const RECORD_PATH_IDENTIFIER = "*";
|
|
4
|
+
export declare function createInternalPropsList(sections: Record<string, Section>, parentPath?: string): Array<{
|
|
5
|
+
path: string;
|
|
6
|
+
factory: () => any;
|
|
7
|
+
}>;
|
|
8
|
+
declare function createManagedPropsList(sections: Record<string, Section>, parentPath?: string): ManagedPropsList;
|
|
9
|
+
export { createManagedPropsList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Prop } from "../props-builder.js";
|
|
2
|
+
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
3
|
+
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const createTextStyleCompositeBase: () => {
|
|
5
|
+
variant: Prop<string, false, undefined>;
|
|
6
|
+
textColor: import("../props-builder.js").CompositeProp<{
|
|
7
|
+
default: Prop<string, false, undefined>;
|
|
8
|
+
}>;
|
|
9
|
+
fontFamily: Prop<string, false, undefined>;
|
|
10
|
+
fontSize: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
11
|
+
fontWeight: Prop<number, false, undefined>;
|
|
12
|
+
fontStyle: Prop<string, false, undefined>;
|
|
13
|
+
lineHeight: Prop<string, false, undefined>;
|
|
14
|
+
letterSpacing: Prop<number, false, undefined>;
|
|
15
|
+
textTransform: Prop<string, false, undefined>;
|
|
16
|
+
};
|
|
17
|
+
export declare const basePropertiesPaneDisplay: PropertiesPanelDisplay<TextStyleWithVariant>;
|
|
18
|
+
export declare const textStyleProp: ({ baseProp, propertiesPanel, }?: {
|
|
19
|
+
baseProp?: ReturnType<typeof createTextStyleCompositeBase>;
|
|
20
|
+
propertiesPanel?: Omit<Partial<PropertiesPanelDisplay<TextStyleWithVariant, "TEXT_STYLE">>, "controlType">;
|
|
21
|
+
}) => Prop<TextStyleWithVariant>;
|
|
22
|
+
export declare const colorProp: (schema: Omit<Partial<PropertiesPanelDisplay<string, "COLOR_PICKER">>, "controlType">) => Prop<string, false, undefined>;
|
|
23
|
+
export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true, undefined>;
|
|
24
|
+
export declare const inputTextStyle: () => Prop<TextStyleWithVariant, true, undefined>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Prop } from "../props-builder.js";
|
|
2
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
3
|
+
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
4
|
+
import type { BorderStyleBlock, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
5
|
+
export declare const createPerSideBorder: (border: BorderStyleBlock) => PerSideBorder;
|
|
6
|
+
export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false, undefined>;
|
|
7
|
+
export declare const createBorderRadiusObject: (borderRadius: Dim<"px" | "%">) => PerCornerBorderRadius;
|
|
8
|
+
export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true, undefined>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import { Prop } from "../props-builder.js";
|
|
3
|
+
import type { ErrorMessagePlacement } from "@superblocksteam/library-shared/props";
|
|
4
|
+
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
5
|
+
export declare const errorMessagePlacement: Prop<ErrorMessagePlacement, true, undefined>;
|
|
6
|
+
export declare const labelWidth: Prop<Dim, true, undefined>;
|
|
7
|
+
export declare const customValidationProperties: {
|
|
8
|
+
customValidationRule: Prop<string, true, undefined>;
|
|
9
|
+
customErrorMessage: Prop<string, true, undefined>;
|
|
10
|
+
};
|
|
11
|
+
export declare const labelPosition: () => Prop<"left" | "top", true, undefined>;
|
|
12
|
+
export declare const getTypographyOptions: () => {
|
|
13
|
+
label: string;
|
|
14
|
+
value: {
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontSize: string;
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
lineHeight: number | string;
|
|
19
|
+
textDecoration?: string;
|
|
20
|
+
fontStyle?: "normal" | "italic" | "inherit";
|
|
21
|
+
letterSpacing?: string;
|
|
22
|
+
textTransform?: "uppercase" | "lowercase" | "capitalize" | "none" | "inherit";
|
|
23
|
+
name?: string;
|
|
24
|
+
textColor: import("@superblocksteam/library-shared/types").ColorBlock;
|
|
25
|
+
variant: string;
|
|
26
|
+
};
|
|
27
|
+
subText: string;
|
|
28
|
+
subTextPosition: string;
|
|
29
|
+
}[];
|
|
30
|
+
export declare const getCustomValidationProperties: ({ errorMessagePlacementSchema, customValidationRuleSchema, customErrorMessageSchema, }?: {
|
|
31
|
+
errorMessagePlacementSchema?: Omit<Partial<PropertiesPanelDisplay<ErrorMessagePlacement, "RADIO_BUTTON_GROUP">>, "controlType" | "options">;
|
|
32
|
+
customValidationRuleSchema?: Omit<Partial<PropertiesPanelDisplay<string, "INPUT_TEXT">>, "controlType" | "options">;
|
|
33
|
+
customErrorMessageSchema?: Omit<Partial<PropertiesPanelDisplay<string, "INPUT_TEXT">>, "controlType" | "options">;
|
|
34
|
+
}) => {
|
|
35
|
+
errorMessagePlacement: Prop<ErrorMessagePlacement, true, undefined>;
|
|
36
|
+
customValidationRule: Prop<any, false, undefined>;
|
|
37
|
+
customErrorMessage: Prop<string, true, undefined>;
|
|
38
|
+
};
|
|
39
|
+
export declare const getFractionDigitsProperties: ({ schema, }?: {
|
|
40
|
+
schema?: Omit<Partial<PropertiesPanelDisplay<number, "INPUT_TEXT">>, "controlType">;
|
|
41
|
+
}) => {
|
|
42
|
+
minDecimals: Prop<number, false, undefined>;
|
|
43
|
+
maxDecimals: Prop<number, false, undefined>;
|
|
44
|
+
};
|