@softov/scena 0.1.2
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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/controls/command.d.ts +18 -0
- package/dist/controls/command.js +150 -0
- package/dist/controls/events.d.ts +3 -0
- package/dist/controls/events.js +43 -0
- package/dist/controls/index.d.ts +10 -0
- package/dist/controls/index.js +10 -0
- package/dist/controls/keybinding.d.ts +9 -0
- package/dist/controls/keybinding.js +94 -0
- package/dist/controls/layout.d.ts +16 -0
- package/dist/controls/layout.js +201 -0
- package/dist/controls/manifest.d.ts +21 -0
- package/dist/controls/manifest.js +219 -0
- package/dist/controls/session.d.ts +16 -0
- package/dist/controls/session.js +95 -0
- package/dist/controls/shell.d.ts +8 -0
- package/dist/controls/shell.js +48 -0
- package/dist/controls/storage/layout-local.d.ts +6 -0
- package/dist/controls/storage/layout-local.js +47 -0
- package/dist/controls/storage/session-local.d.ts +5 -0
- package/dist/controls/storage/session-local.js +38 -0
- package/dist/controls/when.d.ts +7 -0
- package/dist/controls/when.js +226 -0
- package/dist/converters/a2ui-v0.10.d.ts +23 -0
- package/dist/converters/a2ui-v0.10.js +136 -0
- package/dist/converters/index.d.ts +1 -0
- package/dist/converters/index.js +1 -0
- package/dist/core/backends/modus-backend.d.ts +13 -0
- package/dist/core/backends/modus-backend.js +115 -0
- package/dist/core/backends/storage-backend.d.ts +7 -0
- package/dist/core/backends/storage-backend.js +73 -0
- package/dist/core/backends/yjs-backend.d.ts +3 -0
- package/dist/core/backends/yjs-backend.js +44 -0
- package/dist/core/binding-resolver.d.ts +7 -0
- package/dist/core/binding-resolver.js +106 -0
- package/dist/core/component-graph.d.ts +6 -0
- package/dist/core/component-graph.js +77 -0
- package/dist/core/component-registry.d.ts +7 -0
- package/dist/core/component-registry.js +87 -0
- package/dist/core/computed-dsl.d.ts +2 -0
- package/dist/core/computed-dsl.js +267 -0
- package/dist/core/converter-registry.d.ts +2 -0
- package/dist/core/converter-registry.js +37 -0
- package/dist/core/disposable.d.ts +3 -0
- package/dist/core/disposable.js +19 -0
- package/dist/core/dynamic-resolver.d.ts +12 -0
- package/dist/core/dynamic-resolver.js +134 -0
- package/dist/core/index.d.ts +44 -0
- package/dist/core/index.js +48 -0
- package/dist/core/label.d.ts +2 -0
- package/dist/core/label.js +14 -0
- package/dist/core/mount-menu.d.ts +2 -0
- package/dist/core/mount-menu.js +23 -0
- package/dist/core/mount-surface.d.ts +15 -0
- package/dist/core/mount-surface.js +214 -0
- package/dist/core/path-resolver.d.ts +14 -0
- package/dist/core/path-resolver.js +169 -0
- package/dist/core/permissions.d.ts +2 -0
- package/dist/core/permissions.js +50 -0
- package/dist/core/reactive-store.d.ts +17 -0
- package/dist/core/reactive-store.js +496 -0
- package/dist/core/scena.d.ts +2 -0
- package/dist/core/scena.js +115 -0
- package/dist/core/surface-presentation.d.ts +6 -0
- package/dist/core/surface-presentation.js +12 -0
- package/dist/i18n/i18n-backend.d.ts +2 -0
- package/dist/i18n/i18n-backend.js +35 -0
- package/dist/i18n/registry.d.ts +32 -0
- package/dist/i18n/registry.js +200 -0
- package/dist/porta/Limen.css +50 -0
- package/dist/porta/Limen.d.ts +16 -0
- package/dist/porta/Limen.js +14 -0
- package/dist/porta/PortaContext.d.ts +10 -0
- package/dist/porta/PortaContext.js +20 -0
- package/dist/porta/PortaLock.css +14 -0
- package/dist/porta/PortaLock.d.ts +10 -0
- package/dist/porta/PortaLock.js +13 -0
- package/dist/porta/SigillumGate.d.ts +8 -0
- package/dist/porta/SigillumGate.js +7 -0
- package/dist/porta/commands.d.ts +3 -0
- package/dist/porta/commands.js +125 -0
- package/dist/porta/index.d.ts +18 -0
- package/dist/porta/index.js +22 -0
- package/dist/porta/login-form.block.d.ts +2 -0
- package/dist/porta/login-form.block.js +7 -0
- package/dist/porta/match.d.ts +2 -0
- package/dist/porta/match.js +20 -0
- package/dist/porta/provider.d.ts +59 -0
- package/dist/porta/provider.js +1 -0
- package/dist/porta/providers/examples/google-oauth.d.ts +6 -0
- package/dist/porta/providers/examples/google-oauth.js +21 -0
- package/dist/porta/providers/examples/index.d.ts +6 -0
- package/dist/porta/providers/examples/index.js +3 -0
- package/dist/porta/providers/examples/magic-link.d.ts +8 -0
- package/dist/porta/providers/examples/magic-link.js +31 -0
- package/dist/porta/providers/examples/sms-otp.d.ts +9 -0
- package/dist/porta/providers/examples/sms-otp.js +31 -0
- package/dist/porta/providers/password.d.ts +12 -0
- package/dist/porta/providers/password.js +46 -0
- package/dist/porta/register-blocks.d.ts +3 -0
- package/dist/porta/register-blocks.js +31 -0
- package/dist/porta/register.d.ts +15 -0
- package/dist/porta/register.js +31 -0
- package/dist/porta/sigillum.d.ts +19 -0
- package/dist/porta/sigillum.js +41 -0
- package/dist/react/DefaultShell.d.ts +1 -0
- package/dist/react/DefaultShell.js +37 -0
- package/dist/react/Scena.d.ts +9 -0
- package/dist/react/Scena.js +20 -0
- package/dist/react/ScenaProvider.d.ts +8 -0
- package/dist/react/ScenaProvider.js +13 -0
- package/dist/react/ShellSplitter.d.ts +13 -0
- package/dist/react/ShellSplitter.js +88 -0
- package/dist/react/SurfaceArea.d.ts +13 -0
- package/dist/react/SurfaceArea.js +75 -0
- package/dist/react/Translate.d.ts +8 -0
- package/dist/react/Translate.js +10 -0
- package/dist/react/ViewMount.d.ts +12 -0
- package/dist/react/ViewMount.js +268 -0
- package/dist/react/core.d.ts +6 -0
- package/dist/react/core.js +10 -0
- package/dist/react/hooks/useCommand.d.ts +1 -0
- package/dist/react/hooks/useCommand.js +6 -0
- package/dist/react/hooks/useI18n.d.ts +9 -0
- package/dist/react/hooks/useI18n.js +16 -0
- package/dist/react/hooks/useLabel.d.ts +2 -0
- package/dist/react/hooks/useLabel.js +19 -0
- package/dist/react/hooks/useLayout.d.ts +2 -0
- package/dist/react/hooks/useLayout.js +10 -0
- package/dist/react/hooks/useMounts.d.ts +2 -0
- package/dist/react/hooks/useMounts.js +17 -0
- package/dist/react/hooks/useStore.d.ts +3 -0
- package/dist/react/hooks/useStore.js +40 -0
- package/dist/react/hooks/useStoreLabel.d.ts +3 -0
- package/dist/react/hooks/useStoreLabel.js +25 -0
- package/dist/react/hooks/useSurfacePresentation.d.ts +4 -0
- package/dist/react/hooks/useSurfacePresentation.js +16 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +20 -0
- package/dist/react/mount-context.d.ts +8 -0
- package/dist/react/mount-context.js +20 -0
- package/dist/react/useSurfaceResize.d.ts +39 -0
- package/dist/react/useSurfaceResize.js +135 -0
- package/dist/runtime/args-schema.d.ts +11 -0
- package/dist/runtime/args-schema.js +45 -0
- package/dist/runtime/builtins.d.ts +3 -0
- package/dist/runtime/builtins.js +193 -0
- package/dist/runtime/client-handlers.d.ts +3 -0
- package/dist/runtime/client-handlers.js +19 -0
- package/dist/runtime/in-memory-socket.d.ts +7 -0
- package/dist/runtime/in-memory-socket.js +53 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +7 -0
- package/dist/runtime/layout-commands.d.ts +5 -0
- package/dist/runtime/layout-commands.js +548 -0
- package/dist/runtime/opener-commands.d.ts +17 -0
- package/dist/runtime/opener-commands.js +96 -0
- package/dist/runtime/surface-bridge.d.ts +15 -0
- package/dist/runtime/surface-bridge.js +116 -0
- package/dist/styles/bar.css +155 -0
- package/dist/styles/base.css +285 -0
- package/dist/styles/geometry.css +32 -0
- package/dist/styles/index.d.ts +29 -0
- package/dist/styles/index.js +109 -0
- package/dist/styles/scrollbar.css +45 -0
- package/dist/styles/surface.css +179 -0
- package/dist/styles/theme.css +3 -0
- package/dist/styles/themes/dark.css +30 -0
- package/dist/styles/themes/light.css +1 -0
- package/dist/styles/themes/tokens.css +222 -0
- package/dist/types/binding-resolver.d.ts +30 -0
- package/dist/types/binding-resolver.js +1 -0
- package/dist/types/colors.d.ts +7 -0
- package/dist/types/colors.js +59 -0
- package/dist/types/command.d.ts +62 -0
- package/dist/types/command.js +1 -0
- package/dist/types/component-graph.d.ts +72 -0
- package/dist/types/component-graph.js +40 -0
- package/dist/types/component-registry.d.ts +70 -0
- package/dist/types/component-registry.js +1 -0
- package/dist/types/converter-registry.d.ts +17 -0
- package/dist/types/converter-registry.js +1 -0
- package/dist/types/disposable.d.ts +3 -0
- package/dist/types/disposable.js +1 -0
- package/dist/types/events.d.ts +75 -0
- package/dist/types/events.js +1 -0
- package/dist/types/host.d.ts +50 -0
- package/dist/types/host.js +1 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.js +23 -0
- package/dist/types/keybinding.d.ts +36 -0
- package/dist/types/keybinding.js +1 -0
- package/dist/types/label.d.ts +9 -0
- package/dist/types/label.js +1 -0
- package/dist/types/layout.d.ts +117 -0
- package/dist/types/layout.js +1 -0
- package/dist/types/manifest.d.ts +152 -0
- package/dist/types/manifest.js +1 -0
- package/dist/types/mount-menu.d.ts +8 -0
- package/dist/types/mount-menu.js +1 -0
- package/dist/types/mount-surface.d.ts +87 -0
- package/dist/types/mount-surface.js +1 -0
- package/dist/types/permissions.d.ts +18 -0
- package/dist/types/permissions.js +1 -0
- package/dist/types/query.d.ts +34 -0
- package/dist/types/query.js +7 -0
- package/dist/types/reactive-store.d.ts +39 -0
- package/dist/types/reactive-store.js +1 -0
- package/dist/types/scena.d.ts +53 -0
- package/dist/types/scena.js +1 -0
- package/dist/types/scope-backend.d.ts +16 -0
- package/dist/types/scope-backend.js +1 -0
- package/dist/types/session.d.ts +39 -0
- package/dist/types/session.js +1 -0
- package/dist/types/shell.d.ts +21 -0
- package/dist/types/shell.js +1 -0
- package/dist/types/when.d.ts +10 -0
- package/dist/types/when.js +1 -0
- package/dist/ui/_utils.d.ts +8 -0
- package/dist/ui/_utils.js +53 -0
- package/dist/ui/campus/CampusMappa.d.ts +18 -0
- package/dist/ui/campus/CampusMappa.js +106 -0
- package/dist/ui/campus/CampusNodus.d.ts +25 -0
- package/dist/ui/campus/CampusNodus.js +211 -0
- package/dist/ui/campus/CampusStratum.d.ts +13 -0
- package/dist/ui/campus/CampusStratum.js +20 -0
- package/dist/ui/campus/CampusVelum.d.ts +7 -0
- package/dist/ui/campus/CampusVelum.js +12 -0
- package/dist/ui/campus/CampusView.d.ts +27 -0
- package/dist/ui/campus/CampusView.js +420 -0
- package/dist/ui/campus/context.d.ts +13 -0
- package/dist/ui/campus/context.js +12 -0
- package/dist/ui/campus/index.d.ts +14 -0
- package/dist/ui/campus/index.js +11 -0
- package/dist/ui/campus/stratum-context.d.ts +2 -0
- package/dist/ui/campus/stratum-context.js +10 -0
- package/dist/ui/campus/types.d.ts +47 -0
- package/dist/ui/campus/types.js +4 -0
- package/dist/ui/chart/BarChart.css +53 -0
- package/dist/ui/chart/BarChart.d.ts +24 -0
- package/dist/ui/chart/BarChart.js +32 -0
- package/dist/ui/chart/Donut.css +15 -0
- package/dist/ui/chart/Donut.d.ts +15 -0
- package/dist/ui/chart/Donut.js +18 -0
- package/dist/ui/chart/LineChart.css +8 -0
- package/dist/ui/chart/LineChart.d.ts +24 -0
- package/dist/ui/chart/LineChart.js +29 -0
- package/dist/ui/chart/catalog.d.ts +2 -0
- package/dist/ui/chart/catalog.js +7 -0
- package/dist/ui/chart/index.d.ts +6 -0
- package/dist/ui/chart/index.js +4 -0
- package/dist/ui/control/Button.css +7 -0
- package/dist/ui/control/Button.d.ts +17 -0
- package/dist/ui/control/Button.js +17 -0
- package/dist/ui/control/CheckBox.css +16 -0
- package/dist/ui/control/CheckBox.d.ts +15 -0
- package/dist/ui/control/CheckBox.js +23 -0
- package/dist/ui/control/Checks.css +6 -0
- package/dist/ui/control/Checks.d.ts +9 -0
- package/dist/ui/control/Checks.js +10 -0
- package/dist/ui/control/ChoicePicker.css +16 -0
- package/dist/ui/control/ChoicePicker.d.ts +25 -0
- package/dist/ui/control/ChoicePicker.js +38 -0
- package/dist/ui/control/DateTimeInput.css +1 -0
- package/dist/ui/control/DateTimeInput.d.ts +22 -0
- package/dist/ui/control/DateTimeInput.js +41 -0
- package/dist/ui/control/LocaleToggle.css +38 -0
- package/dist/ui/control/LocaleToggle.d.ts +11 -0
- package/dist/ui/control/LocaleToggle.js +23 -0
- package/dist/ui/control/ReloadButton.d.ts +6 -0
- package/dist/ui/control/ReloadButton.js +9 -0
- package/dist/ui/control/Slider.css +2 -0
- package/dist/ui/control/Slider.d.ts +21 -0
- package/dist/ui/control/Slider.js +37 -0
- package/dist/ui/control/TextField.css +0 -0
- package/dist/ui/control/TextField.d.ts +25 -0
- package/dist/ui/control/TextField.js +36 -0
- package/dist/ui/control/_field-parts.css +102 -0
- package/dist/ui/control/_field-parts.d.ts +15 -0
- package/dist/ui/control/_field-parts.js +17 -0
- package/dist/ui/control/catalog.d.ts +2 -0
- package/dist/ui/control/catalog.js +10 -0
- package/dist/ui/control/index.d.ts +13 -0
- package/dist/ui/control/index.js +11 -0
- package/dist/ui/data/DataTable.d.ts +19 -0
- package/dist/ui/data/DataTable.js +20 -0
- package/dist/ui/data/Filter.d.ts +13 -0
- package/dist/ui/data/Filter.js +56 -0
- package/dist/ui/data/List.css +16 -0
- package/dist/ui/data/List.d.ts +15 -0
- package/dist/ui/data/List.js +18 -0
- package/dist/ui/data/Listable.css +245 -0
- package/dist/ui/data/Listable.d.ts +60 -0
- package/dist/ui/data/Listable.js +209 -0
- package/dist/ui/data/Pagination.d.ts +5 -0
- package/dist/ui/data/Pagination.js +43 -0
- package/dist/ui/data/Tree.css +118 -0
- package/dist/ui/data/Tree.d.ts +45 -0
- package/dist/ui/data/Tree.js +170 -0
- package/dist/ui/data/catalog.d.ts +2 -0
- package/dist/ui/data/catalog.js +7 -0
- package/dist/ui/data/index.d.ts +11 -0
- package/dist/ui/data/index.js +7 -0
- package/dist/ui/display/AddPlaceholder.d.ts +6 -0
- package/dist/ui/display/AddPlaceholder.js +24 -0
- package/dist/ui/display/Alert.css +42 -0
- package/dist/ui/display/Alert.d.ts +14 -0
- package/dist/ui/display/Alert.js +13 -0
- package/dist/ui/display/Avatar.css +19 -0
- package/dist/ui/display/Avatar.d.ts +16 -0
- package/dist/ui/display/Avatar.js +52 -0
- package/dist/ui/display/Badge.css +26 -0
- package/dist/ui/display/Badge.d.ts +16 -0
- package/dist/ui/display/Badge.js +9 -0
- package/dist/ui/display/Card.css +15 -0
- package/dist/ui/display/Card.d.ts +11 -0
- package/dist/ui/display/Card.js +8 -0
- package/dist/ui/display/DetailContainer.d.ts +6 -0
- package/dist/ui/display/DetailContainer.js +7 -0
- package/dist/ui/display/DetailHeader.css +53 -0
- package/dist/ui/display/DetailHeader.d.ts +22 -0
- package/dist/ui/display/DetailHeader.js +8 -0
- package/dist/ui/display/DetailList.css +26 -0
- package/dist/ui/display/DetailList.d.ts +13 -0
- package/dist/ui/display/DetailList.js +5 -0
- package/dist/ui/display/DetailNotFound.d.ts +17 -0
- package/dist/ui/display/DetailNotFound.js +39 -0
- package/dist/ui/display/Divider.css +6 -0
- package/dist/ui/display/Divider.d.ts +8 -0
- package/dist/ui/display/Divider.js +16 -0
- package/dist/ui/display/Divisor.css +30 -0
- package/dist/ui/display/Divisor.d.ts +11 -0
- package/dist/ui/display/Divisor.js +43 -0
- package/dist/ui/display/Icon.css +10 -0
- package/dist/ui/display/Icon.d.ts +14 -0
- package/dist/ui/display/Icon.js +144 -0
- package/dist/ui/display/Image.css +1 -0
- package/dist/ui/display/Image.d.ts +16 -0
- package/dist/ui/display/Image.js +19 -0
- package/dist/ui/display/Markdown.css +38 -0
- package/dist/ui/display/Markdown.d.ts +8 -0
- package/dist/ui/display/Markdown.js +140 -0
- package/dist/ui/display/Progress.css +39 -0
- package/dist/ui/display/Progress.d.ts +15 -0
- package/dist/ui/display/Progress.js +17 -0
- package/dist/ui/display/SectionTitle.d.ts +6 -0
- package/dist/ui/display/SectionTitle.js +6 -0
- package/dist/ui/display/Skeleton.css +20 -0
- package/dist/ui/display/Skeleton.d.ts +11 -0
- package/dist/ui/display/Skeleton.js +11 -0
- package/dist/ui/display/Spinner.css +20 -0
- package/dist/ui/display/Spinner.d.ts +12 -0
- package/dist/ui/display/Spinner.js +12 -0
- package/dist/ui/display/Svg.d.ts +13 -0
- package/dist/ui/display/Svg.js +17 -0
- package/dist/ui/display/Text.css +20 -0
- package/dist/ui/display/Text.d.ts +13 -0
- package/dist/ui/display/Text.js +15 -0
- package/dist/ui/display/catalog.d.ts +2 -0
- package/dist/ui/display/catalog.js +12 -0
- package/dist/ui/display/index.d.ts +22 -0
- package/dist/ui/display/index.js +14 -0
- package/dist/ui/embed/HtmlEmbed.d.ts +12 -0
- package/dist/ui/embed/HtmlEmbed.js +16 -0
- package/dist/ui/embed/index.d.ts +2 -0
- package/dist/ui/embed/index.js +1 -0
- package/dist/ui/forms/DangerZone.d.ts +8 -0
- package/dist/ui/forms/DangerZone.js +31 -0
- package/dist/ui/forms/Field.css +15 -0
- package/dist/ui/forms/Field.d.ts +28 -0
- package/dist/ui/forms/Field.js +25 -0
- package/dist/ui/forms/FieldGroup.css +15 -0
- package/dist/ui/forms/FieldGroup.d.ts +7 -0
- package/dist/ui/forms/FieldGroup.js +7 -0
- package/dist/ui/forms/Form.css +14 -0
- package/dist/ui/forms/Form.d.ts +18 -0
- package/dist/ui/forms/Form.js +17 -0
- package/dist/ui/forms/FormActions.css +11 -0
- package/dist/ui/forms/FormActions.d.ts +18 -0
- package/dist/ui/forms/FormActions.js +10 -0
- package/dist/ui/forms/FormSection.css +19 -0
- package/dist/ui/forms/FormSection.d.ts +7 -0
- package/dist/ui/forms/FormSection.js +7 -0
- package/dist/ui/forms/LoginForm.css +105 -0
- package/dist/ui/forms/LoginForm.d.ts +12 -0
- package/dist/ui/forms/LoginForm.js +137 -0
- package/dist/ui/forms/SchemaForm.css +81 -0
- package/dist/ui/forms/SchemaForm.d.ts +26 -0
- package/dist/ui/forms/SchemaForm.js +186 -0
- package/dist/ui/forms/SettingsContainer.d.ts +8 -0
- package/dist/ui/forms/SettingsContainer.js +8 -0
- package/dist/ui/forms/catalog.d.ts +2 -0
- package/dist/ui/forms/catalog.js +11 -0
- package/dist/ui/forms/index.d.ts +19 -0
- package/dist/ui/forms/index.js +12 -0
- package/dist/ui/forms/schema-walk.d.ts +50 -0
- package/dist/ui/forms/schema-walk.js +116 -0
- package/dist/ui/index.d.ts +58 -0
- package/dist/ui/index.js +63 -0
- package/dist/ui/layout/BarLayout.d.ts +2 -0
- package/dist/ui/layout/BarLayout.js +18 -0
- package/dist/ui/layout/Column.css +6 -0
- package/dist/ui/layout/Column.d.ts +12 -0
- package/dist/ui/layout/Column.js +13 -0
- package/dist/ui/layout/FloatingLayout.d.ts +2 -0
- package/dist/ui/layout/FloatingLayout.js +12 -0
- package/dist/ui/layout/Grid.css +5 -0
- package/dist/ui/layout/Grid.d.ts +13 -0
- package/dist/ui/layout/Grid.js +19 -0
- package/dist/ui/layout/InlineLayout.d.ts +2 -0
- package/dist/ui/layout/InlineLayout.js +13 -0
- package/dist/ui/layout/MountTitle.d.ts +12 -0
- package/dist/ui/layout/MountTitle.js +42 -0
- package/dist/ui/layout/RailLayout.d.ts +2 -0
- package/dist/ui/layout/RailLayout.js +38 -0
- package/dist/ui/layout/Row.css +16 -0
- package/dist/ui/layout/Row.d.ts +13 -0
- package/dist/ui/layout/Row.js +21 -0
- package/dist/ui/layout/SectionHeader.d.ts +10 -0
- package/dist/ui/layout/SectionHeader.js +65 -0
- package/dist/ui/layout/SingleLayout.d.ts +2 -0
- package/dist/ui/layout/SingleLayout.js +25 -0
- package/dist/ui/layout/SpatialCard.d.ts +9 -0
- package/dist/ui/layout/SpatialCard.js +30 -0
- package/dist/ui/layout/SpatialLayout.d.ts +2 -0
- package/dist/ui/layout/SpatialLayout.js +446 -0
- package/dist/ui/layout/SplitLayout.d.ts +2 -0
- package/dist/ui/layout/SplitLayout.js +159 -0
- package/dist/ui/layout/Splitter.d.ts +12 -0
- package/dist/ui/layout/Splitter.js +64 -0
- package/dist/ui/layout/StackHeader.d.ts +9 -0
- package/dist/ui/layout/StackHeader.js +87 -0
- package/dist/ui/layout/StackLayout.d.ts +2 -0
- package/dist/ui/layout/StackLayout.js +137 -0
- package/dist/ui/layout/TabLayout.d.ts +2 -0
- package/dist/ui/layout/TabLayout.js +145 -0
- package/dist/ui/layout/TabPanelLayout.d.ts +20 -0
- package/dist/ui/layout/TabPanelLayout.js +615 -0
- package/dist/ui/layout/catalog.d.ts +2 -0
- package/dist/ui/layout/catalog.js +10 -0
- package/dist/ui/layout/index.d.ts +17 -0
- package/dist/ui/layout/index.js +17 -0
- package/dist/ui/layout/register.d.ts +3 -0
- package/dist/ui/layout/register.js +25 -0
- package/dist/ui/media/Audio.css +1 -0
- package/dist/ui/media/Audio.d.ts +12 -0
- package/dist/ui/media/Audio.js +8 -0
- package/dist/ui/media/Video.css +1 -0
- package/dist/ui/media/Video.d.ts +16 -0
- package/dist/ui/media/Video.js +9 -0
- package/dist/ui/media/catalog.d.ts +2 -0
- package/dist/ui/media/catalog.js +5 -0
- package/dist/ui/media/index.d.ts +2 -0
- package/dist/ui/media/index.js +3 -0
- package/dist/ui/menu/ActionList.css +262 -0
- package/dist/ui/menu/ActionList.d.ts +19 -0
- package/dist/ui/menu/ActionList.js +369 -0
- package/dist/ui/menu/ContainerMenu.d.ts +13 -0
- package/dist/ui/menu/ContainerMenu.js +57 -0
- package/dist/ui/menu/ContextMenu.d.ts +27 -0
- package/dist/ui/menu/ContextMenu.js +93 -0
- package/dist/ui/menu/index.d.ts +10 -0
- package/dist/ui/menu/index.js +7 -0
- package/dist/ui/menu/token.d.ts +22 -0
- package/dist/ui/menu/token.js +145 -0
- package/dist/ui/menu/useChatPicker.d.ts +24 -0
- package/dist/ui/menu/useChatPicker.js +210 -0
- package/dist/ui/navigation/Breadcrumb.css +30 -0
- package/dist/ui/navigation/Breadcrumb.d.ts +14 -0
- package/dist/ui/navigation/Breadcrumb.js +12 -0
- package/dist/ui/navigation/Link.css +13 -0
- package/dist/ui/navigation/Link.d.ts +18 -0
- package/dist/ui/navigation/Link.js +43 -0
- package/dist/ui/navigation/Tabs.css +39 -0
- package/dist/ui/navigation/Tabs.d.ts +18 -0
- package/dist/ui/navigation/Tabs.js +55 -0
- package/dist/ui/navigation/Toolbar.css +25 -0
- package/dist/ui/navigation/Toolbar.d.ts +12 -0
- package/dist/ui/navigation/Toolbar.js +21 -0
- package/dist/ui/navigation/catalog.d.ts +2 -0
- package/dist/ui/navigation/catalog.js +5 -0
- package/dist/ui/navigation/index.d.ts +8 -0
- package/dist/ui/navigation/index.js +5 -0
- package/dist/ui/overlay/Modal.css +35 -0
- package/dist/ui/overlay/Modal.d.ts +12 -0
- package/dist/ui/overlay/Modal.js +57 -0
- package/dist/ui/overlay/Popup.d.ts +12 -0
- package/dist/ui/overlay/Popup.js +74 -0
- package/dist/ui/overlay/catalog.d.ts +2 -0
- package/dist/ui/overlay/catalog.js +4 -0
- package/dist/ui/overlay/index.d.ts +1 -0
- package/dist/ui/overlay/index.js +2 -0
- package/dist/ui/register.d.ts +6 -0
- package/dist/ui/register.js +26 -0
- package/package.json +115 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import './Toolbar.css';
|
|
3
|
+
export interface ToolbarProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
direction?: 'row' | 'column';
|
|
7
|
+
align?: CSSProperties['alignItems'];
|
|
8
|
+
justify?: CSSProperties['justifyContent'];
|
|
9
|
+
gap?: CSSProperties['gap'];
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function Toolbar({ className, style, direction, align, justify, gap, children, }: ToolbarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Toolbar.css';
|
|
3
|
+
// Thin styled container for any horizontal control strip (layout toolbars,
|
|
4
|
+
// titlebar slots, panel headers, ...). Owns padding, gap, border and bg via
|
|
5
|
+
// the `oo-toolbar` class so callers only place children inside.
|
|
6
|
+
//
|
|
7
|
+
// Intentionally non-opinionated about what goes in: caller decides whether
|
|
8
|
+
// items are buttons, selects, inline labels, or full React widgets. Use
|
|
9
|
+
// `direction='column'` for vertical control rails.
|
|
10
|
+
export function Toolbar({ className, style, direction = 'row', align, justify, gap, children, }) {
|
|
11
|
+
// Inline overrides only when a caller passed an explicit prop — otherwise
|
|
12
|
+
// we let Toolbar.css drive every value via tokens.
|
|
13
|
+
const inline = { ...style };
|
|
14
|
+
if (align !== undefined)
|
|
15
|
+
inline.alignItems = align;
|
|
16
|
+
if (justify !== undefined)
|
|
17
|
+
inline.justifyContent = justify;
|
|
18
|
+
if (gap !== undefined)
|
|
19
|
+
inline.gap = gap;
|
|
20
|
+
return (_jsx("div", { className: ['oo-toolbar', className].filter(Boolean).join(' '), "data-direction": direction, style: inline, children: children }));
|
|
21
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Catalog registration for navigation components (dynamic import — no eager load).
|
|
2
|
+
export const CATALOG_NAVIGATION_MAP = [
|
|
3
|
+
{ component: 'Tabs', category: 'page', renderer: { kind: 'react', load: () => import('./Tabs.js').then((m) => ({ default: m.Tabs })) } },
|
|
4
|
+
{ component: 'Link', category: 'inline', renderer: { kind: 'react', load: () => import('./Link.js').then((m) => ({ default: m.Link })) } },
|
|
5
|
+
];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Breadcrumb } from './Breadcrumb.js';
|
|
2
|
+
export type { BreadcrumbProps, BreadcrumbItem } from './Breadcrumb.js';
|
|
3
|
+
export { Tabs } from './Tabs.js';
|
|
4
|
+
export type { TabsProps, TabsTab } from './Tabs.js';
|
|
5
|
+
export { Toolbar } from './Toolbar.js';
|
|
6
|
+
export type { ToolbarProps } from './Toolbar.js';
|
|
7
|
+
export { Link, resolveLinkHref } from './Link.js';
|
|
8
|
+
export type { LinkProps, LinkKind } from './Link.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.oo-modal__backdrop {
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
background: rgba(0, 0, 0, 0.4);
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
z-index: var(--oo-z-overlay);
|
|
9
|
+
}
|
|
10
|
+
.oo-modal__card {
|
|
11
|
+
background: var(--oo-color-canvas);
|
|
12
|
+
color: var(--oo-color-fg);
|
|
13
|
+
border: 1px solid var(--oo-color-border);
|
|
14
|
+
border-radius: var(--oo-radius-sm);
|
|
15
|
+
padding: var(--oo-spacing-md);
|
|
16
|
+
min-width: 320px;
|
|
17
|
+
max-width: 80vw;
|
|
18
|
+
max-height: 80vh;
|
|
19
|
+
overflow: auto;
|
|
20
|
+
}
|
|
21
|
+
.oo-modal__header {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
align-items: center;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
margin-bottom: var(--oo-spacing-sm);
|
|
27
|
+
}
|
|
28
|
+
.oo-modal__close {
|
|
29
|
+
background: transparent;
|
|
30
|
+
border: none;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
color: inherit;
|
|
33
|
+
font: inherit;
|
|
34
|
+
padding: 0 var(--oo-spacing-xs);
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
weight?: number;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
child?: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
onClose?: () => void | Promise<void>;
|
|
10
|
+
dismissable?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Modal({ open, defaultOpen, title, child, children, onClose, dismissable, }: ModalProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { useWriteBack } from '../../react/mount-context.js';
|
|
4
|
+
import { NAMED_GLYPH } from '../display/Icon.js';
|
|
5
|
+
// Backdrop + centered card. `open` is bindable via `useWriteBack('open')` so
|
|
6
|
+
// the modal can close itself when bound to a DataBinding; uncontrolled (literal)
|
|
7
|
+
// open just keeps internal state and silently no-ops the write.
|
|
8
|
+
export function Modal({ open, defaultOpen, title, child, children, onClose, dismissable = true, }) {
|
|
9
|
+
const writeOpen = useWriteBack('open');
|
|
10
|
+
const [internalOpen, setInternalOpen] = useState(open ?? defaultOpen ?? false);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (open === undefined)
|
|
13
|
+
return;
|
|
14
|
+
setInternalOpen((current) => (current === open ? current : open));
|
|
15
|
+
}, [open]);
|
|
16
|
+
function close() {
|
|
17
|
+
if (!dismissable)
|
|
18
|
+
return;
|
|
19
|
+
setInternalOpen(false);
|
|
20
|
+
writeOpen(false);
|
|
21
|
+
void onClose?.();
|
|
22
|
+
}
|
|
23
|
+
if (!internalOpen)
|
|
24
|
+
return null;
|
|
25
|
+
const body = child ?? children;
|
|
26
|
+
return (_jsx("div", { onClick: close, style: {
|
|
27
|
+
position: 'fixed',
|
|
28
|
+
inset: 0,
|
|
29
|
+
background: 'rgba(0,0,0,0.4)',
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
zIndex: 2000,
|
|
34
|
+
}, children: _jsxs("div", { onClick: (e) => e.stopPropagation(), style: {
|
|
35
|
+
background: 'var(--oo-color-canvas, #fff)',
|
|
36
|
+
color: 'var(--oo-color-fg, inherit)',
|
|
37
|
+
border: '1px solid var(--oo-color-border)',
|
|
38
|
+
borderRadius: 'var(--oo-radius-sm, 4px)',
|
|
39
|
+
padding: 16,
|
|
40
|
+
minWidth: 320,
|
|
41
|
+
maxWidth: '80vw',
|
|
42
|
+
maxHeight: '80vh',
|
|
43
|
+
overflow: 'auto',
|
|
44
|
+
}, children: [title ? (_jsxs("div", { style: {
|
|
45
|
+
fontWeight: 600,
|
|
46
|
+
marginBottom: 8,
|
|
47
|
+
display: 'flex',
|
|
48
|
+
justifyContent: 'space-between',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
}, children: [_jsx("span", { children: title }), dismissable ? (_jsx("button", { type: "button", onClick: close, style: {
|
|
51
|
+
background: 'transparent',
|
|
52
|
+
border: 'none',
|
|
53
|
+
cursor: 'pointer',
|
|
54
|
+
font: 'inherit',
|
|
55
|
+
color: 'inherit',
|
|
56
|
+
}, "aria-label": "Close", children: NAMED_GLYPH.closePanel })) : null] })) : null, body] }) }));
|
|
57
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export interface PopupProps {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
closeOnOutsideClick?: boolean;
|
|
7
|
+
closeOnEscape?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function Popup({ x, y, onClose, closeOnOutsideClick, closeOnEscape, className, style, children, }: PopupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useLayoutEffect, useRef, useState, } from 'react';
|
|
3
|
+
// Reusable popup positioned at fixed (x, y). Handles outside-click close,
|
|
4
|
+
// Escape key close, and viewport-edge clamping. Used by the MenuPopup wrapper
|
|
5
|
+
// in CustomShell and available to any layout / app that wants an anchored
|
|
6
|
+
// floating panel.
|
|
7
|
+
//
|
|
8
|
+
// Decisions baked in (per PENDING):
|
|
9
|
+
// - No per-SurfaceArea portal. Caller renders <Popup> wherever it wants.
|
|
10
|
+
// - No graph-component registration. Popup is React-only for now — agent
|
|
11
|
+
// surfaces that want a graph-driven popup can wrap this in a built-in
|
|
12
|
+
// graph component later.
|
|
13
|
+
export function Popup({ x, y, onClose, closeOnOutsideClick = true, closeOnEscape = true, className, style, children, }) {
|
|
14
|
+
const ref = useRef(null);
|
|
15
|
+
const [pos, setPos] = useState({ left: x, top: y });
|
|
16
|
+
// Clamp to viewport once we know our own bounding box.
|
|
17
|
+
useLayoutEffect(() => {
|
|
18
|
+
if (!ref.current)
|
|
19
|
+
return;
|
|
20
|
+
const rect = ref.current.getBoundingClientRect();
|
|
21
|
+
const margin = 4;
|
|
22
|
+
const maxX = Math.max(margin, window.innerWidth - rect.width - margin);
|
|
23
|
+
const maxY = Math.max(margin, window.innerHeight - rect.height - margin);
|
|
24
|
+
setPos({
|
|
25
|
+
left: Math.max(margin, Math.min(x, maxX)),
|
|
26
|
+
top: Math.max(margin, Math.min(y, maxY)),
|
|
27
|
+
});
|
|
28
|
+
}, [x, y]);
|
|
29
|
+
// Outside-click close. We defer adding the listener one tick so the click
|
|
30
|
+
// that opened the popup doesn't immediately close it (the click handler
|
|
31
|
+
// that called onOpen lives in the same microtask as the document listener
|
|
32
|
+
// attachment, so the bubbling click would otherwise re-enter here).
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (!closeOnOutsideClick || !onClose)
|
|
35
|
+
return;
|
|
36
|
+
let mounted = true;
|
|
37
|
+
function onMouseDown(e) {
|
|
38
|
+
if (!mounted || !ref.current)
|
|
39
|
+
return;
|
|
40
|
+
if (ref.current.contains(e.target))
|
|
41
|
+
return;
|
|
42
|
+
onClose?.();
|
|
43
|
+
}
|
|
44
|
+
const id = setTimeout(() => {
|
|
45
|
+
if (mounted)
|
|
46
|
+
document.addEventListener('mousedown', onMouseDown);
|
|
47
|
+
}, 0);
|
|
48
|
+
return () => {
|
|
49
|
+
mounted = false;
|
|
50
|
+
clearTimeout(id);
|
|
51
|
+
document.removeEventListener('mousedown', onMouseDown);
|
|
52
|
+
};
|
|
53
|
+
}, [closeOnOutsideClick, onClose]);
|
|
54
|
+
// Escape close.
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
if (!closeOnEscape || !onClose)
|
|
57
|
+
return;
|
|
58
|
+
function onKey(e) {
|
|
59
|
+
if (e.key === 'Escape')
|
|
60
|
+
onClose?.();
|
|
61
|
+
}
|
|
62
|
+
document.addEventListener('keydown', onKey);
|
|
63
|
+
return () => document.removeEventListener('keydown', onKey);
|
|
64
|
+
}, [closeOnEscape, onClose]);
|
|
65
|
+
return (_jsx("div", { ref: ref, className: ['oo-popup', className].filter(Boolean).join(' '), style: {
|
|
66
|
+
position: 'fixed',
|
|
67
|
+
left: pos.left,
|
|
68
|
+
top: pos.top,
|
|
69
|
+
zIndex: 9999,
|
|
70
|
+
...style,
|
|
71
|
+
},
|
|
72
|
+
// Stop clicks from bubbling into the outside-click listener.
|
|
73
|
+
onMouseDown: (e) => e.stopPropagation(), children: children }));
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Modal } from './Modal.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Scena } from '../types/scena.js';
|
|
2
|
+
import type { Disposable } from '../types/disposable.js';
|
|
3
|
+
import type { ComponentDefinition } from '../types/component-registry.js';
|
|
4
|
+
export declare function registerCatalog(defs: ComponentDefinition[], scena: Scena): Disposable;
|
|
5
|
+
export declare function registerBuiltins(scena: Scena): Disposable;
|
|
6
|
+
export { registerBuiltinLayouts } from './layout/register.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { combineDisposables } from '../core/disposable.js';
|
|
2
|
+
import { CATALOG_LAYOUT_MAP } from './layout/catalog.js';
|
|
3
|
+
import { CATALOG_DISPLAY_MAP } from './display/catalog.js';
|
|
4
|
+
import { CATALOG_DATA_MAP } from './data/catalog.js';
|
|
5
|
+
import { CATALOG_NAVIGATION_MAP } from './navigation/catalog.js';
|
|
6
|
+
import { CATALOG_CONTROLS_MAP } from './control/catalog.js';
|
|
7
|
+
import { CATALOG_MEDIA_MAP } from './media/catalog.js';
|
|
8
|
+
import { CATALOG_OVERLAY_MAP } from './overlay/catalog.js';
|
|
9
|
+
import { CATALOG_FORMS_MAP } from './forms/catalog.js';
|
|
10
|
+
import { CATALOG_CHART_MAP } from './chart/catalog.js';
|
|
11
|
+
export function registerCatalog(defs, scena) {
|
|
12
|
+
return combineDisposables(...defs.map((d) => scena.components.register(d)));
|
|
13
|
+
}
|
|
14
|
+
// Registers everything scena ships out of the box. Each per-folder catalog uses
|
|
15
|
+
// dynamic import(), so this pulls no component code at import time — boot stays
|
|
16
|
+
// lean and components load on first render.
|
|
17
|
+
//
|
|
18
|
+
// IMPORTANT: import registerBuiltins from '@softov/scena/ui/builtins' (this
|
|
19
|
+
// module), NOT from the '@softov/scena/ui' barrel — the barrel re-exports
|
|
20
|
+
// every component, which a non-tree-shaking dev server fetches eagerly.
|
|
21
|
+
export function registerBuiltins(scena) {
|
|
22
|
+
return combineDisposables(registerCatalog(CATALOG_LAYOUT_MAP, scena), registerCatalog(CATALOG_DISPLAY_MAP, scena), registerCatalog(CATALOG_DATA_MAP, scena), registerCatalog(CATALOG_NAVIGATION_MAP, scena), registerCatalog(CATALOG_CONTROLS_MAP, scena), registerCatalog(CATALOG_MEDIA_MAP, scena), registerCatalog(CATALOG_OVERLAY_MAP, scena), registerCatalog(CATALOG_FORMS_MAP, scena), registerCatalog(CATALOG_CHART_MAP, scena));
|
|
23
|
+
}
|
|
24
|
+
// Re-exported here so the boot path can pull builtins + layouts from one
|
|
25
|
+
// barrel-free entry. layout/register.ts lazy-loads its layout components.
|
|
26
|
+
export { registerBuiltinLayouts } from './layout/register.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@softov/scena",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Graph-mounted reactive UI runtime (contracts + runtime)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Luiz Fernando Softov <lfs@softov.dev>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/softov/scena.git",
|
|
10
|
+
"directory": "packages/scena"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/softov/scena#readme",
|
|
13
|
+
"bugs": "https://github.com/softov/scena/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"ui",
|
|
16
|
+
"runtime",
|
|
17
|
+
"reactive",
|
|
18
|
+
"schema-driven",
|
|
19
|
+
"server-driven-ui",
|
|
20
|
+
"react"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"main": "./dist/core/index.js",
|
|
27
|
+
"types": "./dist/types/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/core/index.d.ts",
|
|
31
|
+
"default": "./dist/core/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./types": {
|
|
34
|
+
"types": "./dist/types/index.d.ts",
|
|
35
|
+
"default": "./dist/types/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./react": {
|
|
38
|
+
"types": "./dist/react/index.d.ts",
|
|
39
|
+
"default": "./dist/react/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./ui": {
|
|
42
|
+
"types": "./dist/ui/index.d.ts",
|
|
43
|
+
"default": "./dist/ui/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./ui/builtins": {
|
|
46
|
+
"types": "./dist/ui/register.d.ts",
|
|
47
|
+
"default": "./dist/ui/register.js"
|
|
48
|
+
},
|
|
49
|
+
"./ui/*": {
|
|
50
|
+
"types": "./dist/ui/*/index.d.ts",
|
|
51
|
+
"default": "./dist/ui/*/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./react/core": {
|
|
54
|
+
"types": "./dist/react/core.d.ts",
|
|
55
|
+
"default": "./dist/react/core.js"
|
|
56
|
+
},
|
|
57
|
+
"./styles": {
|
|
58
|
+
"types": "./dist/styles/index.d.ts",
|
|
59
|
+
"default": "./dist/styles/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./styles/*": "./dist/styles/*",
|
|
62
|
+
"./runtime": {
|
|
63
|
+
"types": "./dist/runtime/index.d.ts",
|
|
64
|
+
"default": "./dist/runtime/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./porta": {
|
|
67
|
+
"types": "./dist/porta/index.d.ts",
|
|
68
|
+
"default": "./dist/porta/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./porta/examples": {
|
|
71
|
+
"types": "./dist/porta/providers/examples/index.d.ts",
|
|
72
|
+
"default": "./dist/porta/providers/examples/index.js"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist",
|
|
77
|
+
"README.md",
|
|
78
|
+
"LICENSE"
|
|
79
|
+
],
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"registry": "https://registry.npmjs.org",
|
|
82
|
+
"access": "public"
|
|
83
|
+
},
|
|
84
|
+
"scripts": {
|
|
85
|
+
"build": "tsc -p tsconfig.json && node scripts/copy-assets.mjs",
|
|
86
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json",
|
|
87
|
+
"lint": "eslint src test",
|
|
88
|
+
"test": "vitest run",
|
|
89
|
+
"test:watch": "vitest"
|
|
90
|
+
},
|
|
91
|
+
"peerDependencies": {
|
|
92
|
+
"react": "^19.0.0",
|
|
93
|
+
"react-dom": "^19.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {
|
|
96
|
+
"react": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"react-dom": {
|
|
100
|
+
"optional": true
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"devDependencies": {
|
|
104
|
+
"@testing-library/react": "^16.1.0",
|
|
105
|
+
"@types/node": "^22.x",
|
|
106
|
+
"@types/react": "^19.0.0",
|
|
107
|
+
"@types/react-dom": "^19.0.0",
|
|
108
|
+
"jsdom": "^29.0.2",
|
|
109
|
+
"react": "^19.2.0",
|
|
110
|
+
"react-dom": "^19.2.0",
|
|
111
|
+
"typescript": "^5.9.3",
|
|
112
|
+
"vitest": "^4.1.4",
|
|
113
|
+
"yjs": "^13.6.20"
|
|
114
|
+
}
|
|
115
|
+
}
|