@superblocksteam/library 2.0.28 → 2.0.29-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,20 @@
|
|
|
1
|
+
export declare class NavigationEvent extends Event {
|
|
2
|
+
destination: {
|
|
3
|
+
sameDocument: boolean;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
formData?: FormData;
|
|
7
|
+
downloadRequest?: boolean;
|
|
8
|
+
newWindow?: boolean;
|
|
9
|
+
navigationType?: "push" | "replace" | "reload" | "traverse";
|
|
10
|
+
userInitiated?: boolean;
|
|
11
|
+
constructor({ isSameDocument, targetUrl, formData, isBlob, newWindow, userInitiated, }: {
|
|
12
|
+
isSameDocument: boolean;
|
|
13
|
+
targetUrl: string;
|
|
14
|
+
formData?: FormData;
|
|
15
|
+
isBlob?: boolean;
|
|
16
|
+
newWindow?: boolean;
|
|
17
|
+
userInitiated?: boolean;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export declare const navigation: any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Context, Span } from "@opentelemetry/api";
|
|
2
|
+
export declare function getContextFromTraceHeaders(traceHeaders: Record<string, string>): Context;
|
|
3
|
+
export declare function createIframeSpan(name: string, attributes: Record<string, any>, parentContext?: Context): Span;
|
|
4
|
+
export declare function getTraceContextHeadersFromSpan(span: Span): Record<string, string>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Logger as OTelLogger } from "@opentelemetry/api-logs";
|
|
2
|
+
declare class LibraryEarlyConsoleBuffer {
|
|
3
|
+
private static instance;
|
|
4
|
+
private buffer;
|
|
5
|
+
private maxBufferSize;
|
|
6
|
+
private originalMethods;
|
|
7
|
+
private otelLogger?;
|
|
8
|
+
private isPatched;
|
|
9
|
+
static getInstance(): LibraryEarlyConsoleBuffer;
|
|
10
|
+
patchEarly(): void;
|
|
11
|
+
private patchMethod;
|
|
12
|
+
private bufferLog;
|
|
13
|
+
enableOpenTelemetry(otelLogger: OTelLogger): void;
|
|
14
|
+
private flushBuffer;
|
|
15
|
+
private sendToOpenTelemetry;
|
|
16
|
+
private formatConsoleArgs;
|
|
17
|
+
getBufferSize(): number;
|
|
18
|
+
isConsolePatched(): boolean;
|
|
19
|
+
isOpenTelemetryEnabled(): boolean;
|
|
20
|
+
}
|
|
21
|
+
export default LibraryEarlyConsoleBuffer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface LoggingContext {
|
|
2
|
+
windowOriginUrl: string;
|
|
3
|
+
environment: string;
|
|
4
|
+
appId: string;
|
|
5
|
+
userId?: string;
|
|
6
|
+
userEmail?: string;
|
|
7
|
+
orgId: string;
|
|
8
|
+
orgName?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function initLibraryLoggerProvider(context: LoggingContext): void;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ScopeId } from "../internal-details/lib/evaluator/base-entity-manager.js";
|
|
2
|
+
import type { Name } from "../internal-details/lib/evaluator/names.js";
|
|
3
|
+
import type { RootStore } from "../internal-details/lib/root-store.js";
|
|
4
|
+
import type { ApiV2ExecutionResponse } from "../internal-details/lib/types.js";
|
|
5
|
+
import type { BaseStepDef, TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
6
|
+
export interface ExecutionContext {
|
|
7
|
+
scopeId: ScopeId;
|
|
8
|
+
name: Name;
|
|
9
|
+
rootStore: RootStore;
|
|
10
|
+
additionalContext?: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
export interface Trigger<StepDef extends BaseStepDef> {
|
|
13
|
+
readonly type: TriggerStepType;
|
|
14
|
+
create(...args: any[]): Omit<StepDef, "id">;
|
|
15
|
+
execute(context: ExecutionContext, step: StepDef, onFinish?: (response: PromiseSettledResult<ApiV2ExecutionResponse | undefined>[]) => void): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EventFlow } from "../../../user-facing/event-flow.js";
|
|
2
|
+
import type { ExecutionContext } from "../../base.js";
|
|
3
|
+
import type { CancelApisStep, SbApiWithFunctions } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const CancelApisTrigger: {
|
|
5
|
+
type: "cancelApi";
|
|
6
|
+
execute(_context: ExecutionContext, step: CancelApisStep): Promise<void>;
|
|
7
|
+
create(apis: SbApiWithFunctions[], onCancel?: EventFlow): {
|
|
8
|
+
type: "cancelApi";
|
|
9
|
+
apis: SbApiWithFunctions[];
|
|
10
|
+
onCancel: EventFlow | undefined;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { BaseStepDef } from "@superblocksteam/library-shared/types";
|
|
3
|
+
interface InternalCallFunctionStep extends BaseStepDef {
|
|
4
|
+
type: typeof TriggerStepType.CALL_FUNCTION;
|
|
5
|
+
exec: () => unknown;
|
|
6
|
+
}
|
|
7
|
+
export declare const CallFunctionTrigger: {
|
|
8
|
+
type: "callFunction";
|
|
9
|
+
create(fn: () => unknown): {
|
|
10
|
+
type: "callFunction";
|
|
11
|
+
exec: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
execute(_ctx: import("../base.js").ExecutionContext, step: InternalCallFunctionStep): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ControlModalStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const ControlModalTrigger: {
|
|
5
|
+
type: "controlModal";
|
|
6
|
+
execute(context: ExecutionContext, step: ControlModalStep): Promise<void>;
|
|
7
|
+
create(modal: WithBindingIdentifier, opts: {
|
|
8
|
+
action: "open" | "close";
|
|
9
|
+
}): {
|
|
10
|
+
type: "controlModal";
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
action: "close" | "open";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ControlSlideoutStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const ControlSlideoutTrigger: {
|
|
5
|
+
type: "controlSlideout";
|
|
6
|
+
execute(context: ExecutionContext, step: ControlSlideoutStep): Promise<void>;
|
|
7
|
+
create(slideout: WithBindingIdentifier, opts: {
|
|
8
|
+
action: "open" | "close";
|
|
9
|
+
}): {
|
|
10
|
+
type: "controlSlideout";
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
action: "close" | "open";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { ResetComponentStep } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const ResetComponentTrigger: {
|
|
5
|
+
type: "resetComponent";
|
|
6
|
+
execute(context: ExecutionContext, step: ResetComponentStep): Promise<void>;
|
|
7
|
+
create(component: WithBindingIdentifier, opts?: {
|
|
8
|
+
property: string;
|
|
9
|
+
}): {
|
|
10
|
+
type: "resetComponent";
|
|
11
|
+
widget: {
|
|
12
|
+
name: string;
|
|
13
|
+
} | undefined;
|
|
14
|
+
propertyName: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { SetComponentPropertyStep } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const SetComponentPropertyTrigger: {
|
|
5
|
+
type: "setComponentProperty";
|
|
6
|
+
execute(context: ExecutionContext, step: SetComponentPropertyStep): Promise<void>;
|
|
7
|
+
create(component: any, opts: {
|
|
8
|
+
property: string;
|
|
9
|
+
value: ValueInputProp;
|
|
10
|
+
}): {
|
|
11
|
+
type: "setComponentProperty";
|
|
12
|
+
widget: {
|
|
13
|
+
name: string;
|
|
14
|
+
} | undefined;
|
|
15
|
+
propertyName: string;
|
|
16
|
+
propertyValue: ValueInputProp;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { NavigateToAppStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const NavigateToAppTrigger: {
|
|
4
|
+
type: "navigateToApp";
|
|
5
|
+
execute(_context: ExecutionContext, step: NavigateToAppStep): Promise<void>;
|
|
6
|
+
create(appId: string): {
|
|
7
|
+
type: "navigateToApp";
|
|
8
|
+
targetApp: {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
queryParams: {};
|
|
14
|
+
newWindowApp: false;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { NavigateToRouteStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const NavigateToRouteTrigger: {
|
|
4
|
+
type: "navigateToRoute";
|
|
5
|
+
execute(context: ExecutionContext, step: NavigateToRouteStep): Promise<void>;
|
|
6
|
+
create(route: string): {
|
|
7
|
+
type: "navigateToRoute";
|
|
8
|
+
routeId: string;
|
|
9
|
+
routePathDescriptor: string;
|
|
10
|
+
newWindow: false;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { NavigateToStep, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const NavigateToTrigger: {
|
|
4
|
+
type: "navigateTo";
|
|
5
|
+
execute(context: ExecutionContext, step: NavigateToStep): Promise<void>;
|
|
6
|
+
create(url: ValueInputProp<string>, opts?: {
|
|
7
|
+
newWindow?: boolean;
|
|
8
|
+
replaceHistory?: boolean;
|
|
9
|
+
arguments?: string;
|
|
10
|
+
}): {
|
|
11
|
+
type: "navigateTo";
|
|
12
|
+
url: ValueInputProp<string>;
|
|
13
|
+
newWindow: boolean;
|
|
14
|
+
replaceHistory: boolean | undefined;
|
|
15
|
+
arguments: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { SetQueryParamsStep } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const SetQueryParamsTrigger: {
|
|
5
|
+
type: "setQueryParams";
|
|
6
|
+
execute(_context: ExecutionContext, step: SetQueryParamsStep): Promise<void>;
|
|
7
|
+
create(queryParams: Record<string, ValueInputProp<string>>, opts?: {
|
|
8
|
+
keep?: boolean;
|
|
9
|
+
}): {
|
|
10
|
+
type: "setQueryParams";
|
|
11
|
+
queryParams: Record<string, ValueInputProp<string>>;
|
|
12
|
+
keepQueryParams: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../base.js";
|
|
2
|
+
import type { Executable, RunJsStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const RunJsTrigger: {
|
|
4
|
+
type: "runJs";
|
|
5
|
+
create(handler: Executable): {
|
|
6
|
+
type: "runJs";
|
|
7
|
+
handler: Executable;
|
|
8
|
+
code: string;
|
|
9
|
+
};
|
|
10
|
+
execute(context: ExecutionContext, step: RunJsStep): Promise<void>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../base.js";
|
|
2
|
+
import type { SetProfileStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const SetProfileTrigger: {
|
|
4
|
+
type: "setProfile";
|
|
5
|
+
execute(_context: ExecutionContext, step: SetProfileStep): Promise<void>;
|
|
6
|
+
create(profileId: string, opts: {
|
|
7
|
+
action: "set" | "unset";
|
|
8
|
+
}): {
|
|
9
|
+
type: "setProfile";
|
|
10
|
+
profileId: string;
|
|
11
|
+
action: "unset" | "set";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NotificationPosition } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { ExecutionContext } from "../base.js";
|
|
3
|
+
import type { ShowAlertStep, NotificationType, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const ShowAlertTrigger: {
|
|
5
|
+
type: "showAlert";
|
|
6
|
+
execute(context: ExecutionContext, step: ShowAlertStep): Promise<void>;
|
|
7
|
+
create(message: ValueInputProp<string>, opts?: {
|
|
8
|
+
type?: NotificationType;
|
|
9
|
+
durationMs?: number;
|
|
10
|
+
position?: NotificationPosition;
|
|
11
|
+
}): {
|
|
12
|
+
type: "showAlert";
|
|
13
|
+
message: ValueInputProp<string>;
|
|
14
|
+
style: NotificationType;
|
|
15
|
+
alertDuration: number | undefined;
|
|
16
|
+
alertPosition: NotificationPosition | undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ResetStateVarStep, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const ResetStateVarTrigger: {
|
|
4
|
+
type: "resetStateVar";
|
|
5
|
+
execute(context: ExecutionContext, step: ResetStateVarStep): Promise<void>;
|
|
6
|
+
create(variable?: WithBindingIdentifier): {
|
|
7
|
+
type: "resetStateVar";
|
|
8
|
+
variable: WithBindingIdentifier | undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
3
|
+
import type { SetStateVarStep, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const SetStateVarTrigger: {
|
|
5
|
+
type: "setStateVar";
|
|
6
|
+
execute(context: ExecutionContext, step: SetStateVarStep): Promise<void>;
|
|
7
|
+
create(variable: WithBindingIdentifier, opts: {
|
|
8
|
+
value: ValueInputProp;
|
|
9
|
+
}): {
|
|
10
|
+
type: "setStateVar";
|
|
11
|
+
variable: WithBindingIdentifier;
|
|
12
|
+
value: ValueInputProp;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../../base.js";
|
|
2
|
+
import type { ControlTimerStep, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const ControlTimerTrigger: {
|
|
4
|
+
type: "controlTimer";
|
|
5
|
+
execute(_context: ExecutionContext, step: ControlTimerStep): Promise<void>;
|
|
6
|
+
create(timer: WithBindingIdentifier, opts: {
|
|
7
|
+
action: "start" | "stop" | "toggle";
|
|
8
|
+
}): {
|
|
9
|
+
type: "controlTimer";
|
|
10
|
+
timer: WithBindingIdentifier;
|
|
11
|
+
action: "toggle" | "stop" | "start";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExecutionContext } from "../base.js";
|
|
2
|
+
import type { SelectedEventProps, TriggerEventStep } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare const TriggerEventTrigger: {
|
|
4
|
+
type: "triggerEvent";
|
|
5
|
+
execute(_context: ExecutionContext, step: TriggerEventStep): Promise<void>;
|
|
6
|
+
create(eventName: string, opts?: {
|
|
7
|
+
data: Record<string, string>;
|
|
8
|
+
}): {
|
|
9
|
+
type: "triggerEvent";
|
|
10
|
+
event: SelectedEventProps;
|
|
11
|
+
eventPayload: Record<string, string> | undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { Trigger } from "./base.js";
|
|
3
|
+
import type { ValidStepDef } from "@superblocksteam/library-shared/types";
|
|
4
|
+
declare const EventRegistry: Record<TriggerStepType, Trigger<ValidStepDef>>;
|
|
5
|
+
export default EventRegistry;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScopeId } from "../internal-details/lib/evaluator/base-entity-manager.js";
|
|
2
|
+
import type { Name } from "../internal-details/lib/evaluator/names.js";
|
|
3
|
+
import type { IEventFlow, ScopedState, StepDef, ValueInputProp } from "@superblocksteam/library-shared/types";
|
|
4
|
+
export declare const runEventHandlers: ({ flow, name, scopeId, additionalContext, }: {
|
|
5
|
+
flow?: IEventFlow<StepDef, ScopedState, ValueInputProp>;
|
|
6
|
+
name: Name;
|
|
7
|
+
scopeId: ScopeId;
|
|
8
|
+
additionalContext?: Record<string, any>;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
export default runEventHandlers;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IconPosition } from "../../icons/constants.js";
|
|
3
|
+
import type { ButtonLikeLinkStyle, ButtonStyle } from "../styles/button-styles.js";
|
|
4
|
+
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
5
|
+
import type { PerSideBorder, UserAccessibleTheme, Padding, PerCornerBorderRadius } from "@superblocksteam/library-shared/types";
|
|
6
|
+
import type { ReactElement } from "react";
|
|
7
|
+
export interface SharedButtonProps {
|
|
8
|
+
textColor?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
border?: PerSideBorder;
|
|
11
|
+
text?: string;
|
|
12
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
isLoadingAnimated?: boolean;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
useDynamicContrast?: boolean;
|
|
18
|
+
icon?: ReactElement | null;
|
|
19
|
+
iconPosition?: IconPosition;
|
|
20
|
+
systemIcon?: ReactElement;
|
|
21
|
+
textAlignment?: HorizontalAlign;
|
|
22
|
+
width?: "100%" | "auto";
|
|
23
|
+
height?: "100%" | "auto";
|
|
24
|
+
maxWidth?: number;
|
|
25
|
+
minWidth?: number;
|
|
26
|
+
maxHeight?: number;
|
|
27
|
+
minHeight?: number;
|
|
28
|
+
textProps?: {
|
|
29
|
+
textStyleVariant?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
};
|
|
32
|
+
borderRadius?: PerCornerBorderRadius;
|
|
33
|
+
padding?: Padding;
|
|
34
|
+
theme: UserAccessibleTheme;
|
|
35
|
+
["data-test"]?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ButtonProps extends SharedButtonProps {
|
|
38
|
+
buttonStyle?: ButtonStyle;
|
|
39
|
+
}
|
|
40
|
+
export interface ButtonLikeLinkProps extends SharedButtonProps {
|
|
41
|
+
linkStyle?: ButtonLikeLinkStyle;
|
|
42
|
+
url?: string;
|
|
43
|
+
openInNewTab?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const FIT_CONTENT_PADDING = 9;
|
|
46
|
+
export declare const Button: (props: ButtonProps) => React.JSX.Element;
|
|
47
|
+
export declare const ButtonLikeLink: (props: ButtonLikeLinkProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const CheckboxInput: ({ isChecked, isDisabled, ariaLabel, isValid, onClick, isIndeterminate, id, onMouseOver, onMouseOut, }: {
|
|
3
|
+
isChecked: boolean;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
isValid: boolean;
|
|
7
|
+
isIndeterminate?: boolean;
|
|
8
|
+
onClick?: (isChecked: boolean, shiftKey?: boolean) => void;
|
|
9
|
+
id?: string;
|
|
10
|
+
onMouseOver?: () => void;
|
|
11
|
+
onMouseOut?: () => void;
|
|
12
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function DynamicSVG({ iconName, color, fill, loadingAnimation, size, sizeWithUnits, disablePointerEvents, }: {
|
|
3
|
+
iconName?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
sizeWithUnits?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
fill?: boolean;
|
|
8
|
+
loadingAnimation?: boolean;
|
|
9
|
+
disablePointerEvents?: boolean;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ExpandButton: ({ isExpanded, style, onClick, disabled, }: {
|
|
3
|
+
isExpanded?: boolean;
|
|
4
|
+
onClick?: React.SVGProps<SVGSVGElement>["onClick"];
|
|
5
|
+
style?: React.SVGProps<SVGSVGElement>["style"];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default ExpandButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlainLink: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Instance, Options, Placement, VirtualElement } from "@popperjs/core";
|
|
3
|
+
export type PopperProps = {
|
|
4
|
+
zIndex: number;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
targetNode?: Element | VirtualElement;
|
|
7
|
+
children: JSX.Element;
|
|
8
|
+
placement: Placement;
|
|
9
|
+
allowedAutoPlacements?: Placement[];
|
|
10
|
+
modifiers?: Options["modifiers"];
|
|
11
|
+
useDefaultModifiers?: boolean;
|
|
12
|
+
extraSuperblocksAttr?: string;
|
|
13
|
+
onCreate?: (instance: Instance) => void;
|
|
14
|
+
mountingNode?: Element;
|
|
15
|
+
dependencies?: any[];
|
|
16
|
+
wrapperClassName?: string;
|
|
17
|
+
dataTest?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export default Popper;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
3
|
+
interface SearchComponentProps {
|
|
4
|
+
onSearch: (value: any) => void;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
value: string;
|
|
7
|
+
compact?: boolean;
|
|
8
|
+
noMargin?: boolean;
|
|
9
|
+
width?: string;
|
|
10
|
+
flexGrow?: string;
|
|
11
|
+
dataTest?: string;
|
|
12
|
+
textStyle?: TextStyleWithVariant;
|
|
13
|
+
border?: PerSideBorder;
|
|
14
|
+
borderRadius?: PerCornerBorderRadius;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
theme: UserAccessibleTheme;
|
|
17
|
+
}
|
|
18
|
+
declare const SearchComponent: (props: SearchComponentProps) => React.JSX.Element;
|
|
19
|
+
export default SearchComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SpanTruncMiddleProps {
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
/** A span variant that truncates its text content in the middle (with ellipsis), if it would have otherwise overflown.
|
|
6
|
+
* The width is determined by the width of the parent element.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SpanTruncMiddle: (props: SpanTruncMiddleProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ReactPlayer from "react-player";
|
|
2
|
+
import type { Ref } from "react";
|
|
3
|
+
export interface VideoComponentProps {
|
|
4
|
+
url?: string;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
onStart?: () => void;
|
|
8
|
+
onPlay?: () => void;
|
|
9
|
+
onPause?: () => void;
|
|
10
|
+
onEnded?: () => void;
|
|
11
|
+
onReady?: () => void;
|
|
12
|
+
onProgress?: () => void;
|
|
13
|
+
onSeek?: () => void;
|
|
14
|
+
onError?: () => void;
|
|
15
|
+
player?: Ref<ReactPlayer>;
|
|
16
|
+
width?: string | number;
|
|
17
|
+
height?: string | number;
|
|
18
|
+
}
|
|
19
|
+
export default function VideoComponent(props: VideoComponentProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type ContainerLayout = "freeform" | "vertical" | "horizontal";
|
|
2
|
+
export type ContainerVariant = "none" | "card";
|
|
3
|
+
export type VerticalAlignment<LayoutType extends "vertical" | "horizontal" | undefined = undefined> = LayoutType extends "horizontal" ? "top" | "center" | "bottom" : "top" | "center" | "bottom" | "space-between" | "space-around";
|
|
4
|
+
export type HorizontalAlignment<LayoutType extends "vertical" | "horizontal" | undefined = undefined> = LayoutType extends "vertical" ? "left" | "center" | "right" : "left" | "center" | "right" | "space-between" | "space-around";
|
|
5
|
+
export declare const VERTICAL_ALIGNMENT_MAP: Record<VerticalAlignment<"vertical">, string>;
|
|
6
|
+
export declare const HORIZONTAL_ALIGNMENT_MAP: Record<HorizontalAlignment<"horizontal">, string>;
|
|
7
|
+
export declare const GridDefaults: {
|
|
8
|
+
DEFAULT_GRID_COLUMNS: number;
|
|
9
|
+
SLIDEOUT_DEFAULT_GRID_COLUMNS: number;
|
|
10
|
+
DEFAULT_GRID_ROW_HEIGHT: number;
|
|
11
|
+
DEFAULT_GRID_COLUMN_WIDTH: number;
|
|
12
|
+
CANVAS_EXTENSION_OFFSET: number;
|
|
13
|
+
CANVAS_EXTENSION_INITIAL_LIMIT: number;
|
|
14
|
+
FILL_PARENT_DEFAULT_MIN_HEIGHT: number;
|
|
15
|
+
FILL_PARENT_DEFAULT_MIN_WIDTH_PX: number;
|
|
16
|
+
EMPTY_CONTAINER_EDIT_MODE_HEIGHT: number;
|
|
17
|
+
EMPTY_CONTAINER_EDIT_MODE_WIDTH_PX: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const INLINE_ERROR_MESSAGE_HEIGHT = 18;
|
|
2
|
+
export declare const GAP_BETWEEN_INPUT_AND_INLINE_ERROR_MESSAGE = 2;
|
|
3
|
+
/**
|
|
4
|
+
* TODO(code-mode):
|
|
5
|
+
* - add appMode
|
|
6
|
+
* - check widget selected state and show placeholder error message
|
|
7
|
+
*/
|
|
8
|
+
export interface Props {
|
|
9
|
+
sourceId: string;
|
|
10
|
+
isInvalid?: boolean;
|
|
11
|
+
errorMessages?: string | string[];
|
|
12
|
+
isFocused?: boolean;
|
|
13
|
+
isTouched?: boolean;
|
|
14
|
+
isFitContentWidth?: boolean;
|
|
15
|
+
isFitContentHeight?: boolean;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
showError?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const ErrorInlineMessage: (props: Props) => import("react").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* How to use:
|
|
22
|
+
* Wrap the input (Input, Dropdown, etc.) with InlineErrorMessage.
|
|
23
|
+
* Apply this style to the combined wrapper.
|
|
24
|
+
* Style vs Class: style is necessary when the component uses ControlGroup to override Blueprint's default styling.
|
|
25
|
+
*/
|
|
26
|
+
export declare const FormInputWithErrorWrapperStyle: React.CSSProperties;
|
|
27
|
+
/**
|
|
28
|
+
* Use when the input grows in height to fill the parent.
|
|
29
|
+
*
|
|
30
|
+
* How to use:
|
|
31
|
+
* Wrap the input (Input, Dropdown, etc).
|
|
32
|
+
* Apply this style to the input wrapper.
|
|
33
|
+
*
|
|
34
|
+
* You might need to set the input to `height: 100%;`
|
|
35
|
+
*/
|
|
36
|
+
export declare const FormInputWithHeightGrowStyle: React.CSSProperties;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Placement } from "@popperjs/core";
|
|
3
|
+
interface Props {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
messages: string | string[];
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
attachTo: Element | null | undefined;
|
|
8
|
+
placement?: Placement;
|
|
9
|
+
}
|
|
10
|
+
declare const ErrorTooltip: (props: Props) => React.JSX.Element | null;
|
|
11
|
+
export default ErrorTooltip;
|