@jini-ai/ui 0.3.14 → 0.4.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/CHANGELOG.md +143 -0
- package/README.md +120 -26
- package/dist/browser/index.js +1 -1
- package/dist/browser/useDismissOnOutsideOrEscape.d.ts +10 -1
- package/dist/browser/useDismissOnOutsideOrEscape.js +7 -4
- package/dist/browser/useGlobalKeydown.d.ts +14 -2
- package/dist/browser/useGlobalKeydown.js +8 -17
- package/dist/features/a2ui/catalog-from-registry.d.ts +6 -3
- package/dist/features/a2ui/catalog-from-registry.js +1 -1
- package/dist/features/a2ui/index.d.ts +1 -1
- package/dist/features/a2ui/protocol.d.ts +1 -1
- package/dist/features/a2ui/renderer.js +23 -10
- package/dist/features/a2ui/use-a2ui-surface.d.ts +11 -6
- package/dist/features/a2ui/use-a2ui-surface.js +40 -10
- package/dist/features/admin-widgets/components/ComingSoonNotice.d.ts +11 -0
- package/dist/features/admin-widgets/components/ComingSoonNotice.js +7 -0
- package/dist/features/admin-widgets/components/ComingSoonPanel.d.ts +10 -0
- package/dist/features/admin-widgets/components/ComingSoonPanel.js +10 -0
- package/dist/features/admin-widgets/components/ImagePreviewModal.d.ts +16 -0
- package/dist/features/admin-widgets/components/ImagePreviewModal.hooks.d.ts +13 -0
- package/dist/features/admin-widgets/components/ImagePreviewModal.hooks.js +46 -0
- package/dist/features/admin-widgets/components/ImagePreviewModal.js +13 -0
- package/dist/features/admin-widgets/components/InfoTip.d.ts +18 -0
- package/dist/features/admin-widgets/components/InfoTip.hooks.d.ts +16 -0
- package/dist/features/admin-widgets/components/InfoTip.hooks.js +45 -0
- package/dist/features/admin-widgets/components/InfoTip.js +12 -0
- package/dist/features/admin-widgets/components/SeeMore/SeeMore.d.ts +41 -0
- package/dist/features/admin-widgets/components/SeeMore/SeeMore.hooks.d.ts +14 -0
- package/dist/features/admin-widgets/components/SeeMore/SeeMore.hooks.js +57 -0
- package/dist/features/admin-widgets/components/SeeMore/SeeMore.js +24 -0
- package/dist/features/admin-widgets/components/Select/Select.d.ts +39 -0
- package/dist/features/admin-widgets/components/Select/Select.hooks.d.ts +105 -0
- package/dist/features/admin-widgets/components/Select/Select.hooks.js +359 -0
- package/dist/features/admin-widgets/components/Select/Select.js +46 -0
- package/dist/features/admin-widgets/index.d.ts +20 -0
- package/dist/features/admin-widgets/index.js +11 -0
- package/dist/features/admin-widgets/styles/admin-widgets.css +2 -0
- package/dist/features/appearance/constants.d.ts +2 -2
- package/dist/features/appearance/constants.js +2 -1
- package/dist/features/appearance/react/components/AppearanceTab.js +5 -5
- package/dist/features/appearance/rules.d.ts +10 -4
- package/dist/features/appearance/rules.js +5 -5
- package/dist/features/appearance/types.d.ts +1 -1
- package/dist/features/appearance/types.js +1 -1
- package/dist/features/asset-grid/react/components/AssetGrid.js +1 -1
- package/dist/features/asset-grid/react/components/DeleteConfirmDialog.js +1 -1
- package/dist/features/asset-grid/react/hooks/useAssetGridKeyboardShortcuts.js +23 -21
- package/dist/features/asset-grid/react/hooks/useAssetGridLiveUpdates.d.ts +1 -1
- package/dist/features/asset-grid/react/hooks/useAssetGridLiveUpdates.js +1 -1
- package/dist/features/asset-tree-browser/ports.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeCopyLocalPath.js +1 -1
- package/dist/features/browser-chrome/react/components/BrowserViewportControls.js +1 -1
- package/dist/features/browser-chrome/types.js +1 -1
- package/dist/features/command-palette/ports.js +1 -1
- package/dist/features/connectors/ConnectorsBrowser.js +2 -2
- package/dist/features/connectors/components/ConnectorCard.js +3 -3
- package/dist/features/connectors/components/ConnectorDetailDrawer.js +1 -1
- package/dist/features/connectors/components/ConnectorGrid.js +2 -2
- package/dist/features/connectors/components/ConnectorSearchBar.js +2 -2
- package/dist/features/connectors/components/ProviderTabBar.js +2 -2
- package/dist/features/connectors/constants.d.ts +1 -1
- package/dist/features/connectors/constants.js +1 -1
- package/dist/features/connectors/hooks/useConnectorAuthorization.js +1 -1
- package/dist/features/connectors/rules.d.ts +2 -2
- package/dist/features/connectors/rules.js +1 -1
- package/dist/features/connectors/types.d.ts +2 -2
- package/dist/features/connectors/types.js +1 -1
- package/dist/features/execution/react/components/ByokProviderForm.js +3 -3
- package/dist/features/execution/react/components/ExecutionTab.js +2 -2
- package/dist/features/execution/react/components/LocalCliAgentCard.js +3 -3
- package/dist/features/execution/react/components/LocalCliAgentList.js +2 -2
- package/dist/features/execution/react/components/ProviderChipGroup.js +2 -2
- package/dist/features/execution/react/components/SearchableModelSelect.js +1 -1
- package/dist/features/execution/rules.js +1 -1
- package/dist/features/file-dropzone/react/components/FileDropzone.js +5 -3
- package/dist/features/file-dropzone/react/hooks/useFileDropzone.d.ts +1 -1
- package/dist/features/file-dropzone/react/hooks/useFileDropzone.js +1 -1
- package/dist/features/file-dropzone/types.d.ts +1 -1
- package/dist/features/file-dropzone/types.js +1 -1
- package/dist/features/folder-path-drop/react/hooks/useFolderPathDropCapture.js +6 -4
- package/dist/features/html-editor/canvas-content-wrapper.js +1 -1
- package/dist/features/html-editor/canvas-embed-placeholders.js +7 -7
- package/dist/features/html-editor/canvas-style.d.ts +4 -0
- package/dist/features/html-editor/canvas-style.js +6 -21
- package/dist/features/html-viewer/constants.d.ts +1 -1
- package/dist/features/html-viewer/constants.js +1 -1
- package/dist/features/html-viewer/react/components/PresentMenu.js +1 -1
- package/dist/features/html-viewer/react/components/ZoomMenu.js +1 -1
- package/dist/features/html-viewer/types.d.ts +1 -1
- package/dist/features/html-viewer/types.js +1 -1
- package/dist/features/i18n/dictionaries/index.d.ts +2 -3
- package/dist/features/i18n/dictionaries/settings-dialog.en.d.ts +1 -1
- package/dist/features/i18n/dictionary-translator.d.ts +16 -0
- package/dist/features/i18n/dictionary-translator.js +14 -0
- package/dist/features/i18n/index.d.ts +3 -0
- package/dist/features/i18n/index.js +2 -0
- package/dist/features/i18n/locale.d.ts +1 -1
- package/dist/features/i18n/template-i18n.d.ts +26 -0
- package/dist/features/i18n/template-i18n.js +36 -0
- package/dist/features/iframe-pool/react/components/IframeKeepAliveProvider.d.ts +1 -1
- package/dist/features/iframe-pool/react/components/IframeKeepAliveProvider.js +1 -1
- package/dist/features/instructions/react/components/InstructionsTab.js +1 -1
- package/dist/features/integrations/react/components/ClientPicker.js +4 -4
- package/dist/features/integrations/react/components/CodexInstallToggleButton.js +1 -1
- package/dist/features/integrations/react/components/IntegrationsTab.js +2 -2
- package/dist/features/integrations/react/components/SnippetBlock.js +1 -1
- package/dist/features/integrations/types.d.ts +1 -1
- package/dist/features/integrations/types.js +1 -1
- package/dist/features/interactive-ui/index.js +13 -13
- package/dist/features/interactive-ui/interactive-ui.css +1 -1
- package/dist/features/interactive-ui/providers/recharts/bar-chart.js +1 -1
- package/dist/features/interactive-ui/providers/recharts/line-chart.js +1 -1
- package/dist/features/interactive-ui/providers/recharts/pie-chart.js +2 -2
- package/dist/features/interactive-ui/providers/shadcn/lib/utils.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/lib/utils.js +1 -1
- package/dist/features/interactive-ui/registry.d.ts +15 -4
- package/dist/features/interactive-ui/registry.js +5 -5
- package/dist/features/language/react/components/LanguageTab.js +2 -2
- package/dist/features/list-detail-panel/types.d.ts +1 -1
- package/dist/features/list-detail-panel/types.js +1 -1
- package/dist/features/mcp-ui/confirmation-store.js +2 -1
- package/dist/features/mcp-ui/surfaces/tokens.d.ts +17 -20
- package/dist/features/mcp-ui/surfaces/tokens.js +33 -35
- package/dist/features/media-providers/index.d.ts +1 -1
- package/dist/features/media-providers/index.js +1 -1
- package/dist/features/media-providers/react/components/MediaProvidersTab.js +4 -4
- package/dist/features/media-providers/rules.js +1 -1
- package/dist/features/memory/async-commit-guard.d.ts +1 -1
- package/dist/features/memory/constants.d.ts +1 -1
- package/dist/features/memory/constants.js +1 -1
- package/dist/features/memory/dependencies.d.ts +11 -23
- package/dist/features/memory/dependencies.js +116 -106
- package/dist/features/memory/index.d.ts +1 -1
- package/dist/features/memory/index.js +1 -1
- package/dist/features/memory/react/components/MemoryAdvancedModal.js +2 -2
- package/dist/features/memory/react/components/MemoryEntryCard.js +1 -1
- package/dist/features/memory/react/components/MemoryExtractionCard.js +1 -1
- package/dist/features/memory/react/components/MemoryHooksPanel.js +1 -1
- package/dist/features/memory/react/components/MemoryList.js +5 -5
- package/dist/features/memory/react/components/MemoryManualEditor.js +5 -5
- package/dist/features/memory/react/components/MemorySettingsPanel.js +1 -1
- package/dist/features/memory/react/hooks/useMemoryEntries.hooks.js +1 -1
- package/dist/features/memory/react/hooks/useMemoryNavigation.hooks.js +1 -1
- package/dist/features/memory/react/styles.js +1 -1
- package/dist/features/memory/rules.js +1 -1
- package/dist/features/memory/types.d.ts +1 -1
- package/dist/features/mention-autocomplete/react/hooks/useMentionAutocomplete.js +1 -1
- package/dist/features/notifications/react/components/NotificationsTab.js +7 -7
- package/dist/features/notifications/types.d.ts +1 -1
- package/dist/features/observability/boot-timing.js +2 -2
- package/dist/features/observability/stuck-run.js +1 -1
- package/dist/features/observability/white-screen.js +4 -4
- package/dist/features/panel-kit/fetch-query/adapter.react.d.ts +35 -0
- package/dist/features/panel-kit/fetch-query/adapter.react.js +122 -0
- package/dist/features/panel-kit/fetch-query/cache.d.ts +123 -0
- package/dist/features/panel-kit/fetch-query/cache.js +231 -0
- package/dist/features/panel-kit/fetch-query/environment.browser.d.ts +4 -0
- package/dist/features/panel-kit/fetch-query/environment.browser.js +25 -0
- package/dist/features/panel-kit/fetch-query/index.d.ts +4 -0
- package/dist/features/panel-kit/fetch-query/index.js +2 -0
- package/dist/features/panel-kit/fetch-query/types.d.ts +91 -0
- package/dist/features/panel-kit/fetch-query/types.js +2 -0
- package/dist/features/panel-kit/helpers/format-timestamp.d.ts +18 -0
- package/dist/features/panel-kit/helpers/format-timestamp.js +20 -0
- package/dist/features/panel-kit/helpers/permissions.d.ts +11 -0
- package/dist/features/panel-kit/helpers/permissions.js +10 -0
- package/dist/features/panel-kit/helpers/resolve-active-tab-id.d.ts +13 -0
- package/dist/features/panel-kit/helpers/resolve-active-tab-id.js +13 -0
- package/dist/features/panel-kit/helpers/retry-unreachable.d.ts +20 -0
- package/dist/features/panel-kit/helpers/retry-unreachable.js +39 -0
- package/dist/features/panel-kit/hooks/use-async-action.hooks.d.ts +13 -0
- package/dist/features/panel-kit/hooks/use-async-action.hooks.js +27 -0
- package/dist/features/panel-kit/hooks/use-dirty-guard.hooks.d.ts +18 -0
- package/dist/features/panel-kit/hooks/use-dirty-guard.hooks.js +33 -0
- package/dist/features/panel-kit/hooks/use-focus-trap.hooks.d.ts +11 -0
- package/dist/features/panel-kit/hooks/use-focus-trap.hooks.js +76 -0
- package/dist/features/panel-kit/hooks/use-serial-writes.hooks.d.ts +26 -0
- package/dist/features/panel-kit/hooks/use-serial-writes.hooks.js +41 -0
- package/dist/features/panel-kit/hooks/use-settlement-generation.hooks.d.ts +9 -0
- package/dist/features/panel-kit/hooks/use-settlement-generation.hooks.js +25 -0
- package/dist/features/panel-kit/index.d.ts +19 -0
- package/dist/features/panel-kit/index.js +13 -0
- package/dist/features/privacy/react/components/PrivacyTab.js +2 -2
- package/dist/features/privacy/types.d.ts +1 -1
- package/dist/features/privacy/types.js +1 -1
- package/dist/features/progress-card/reference-adapters.d.ts +1 -1
- package/dist/features/progress-card/rules.d.ts +1 -1
- package/dist/features/progress-card/rules.js +1 -1
- package/dist/features/progress-card/types.d.ts +1 -1
- package/dist/features/progress-card/types.js +1 -1
- package/dist/features/resource-dashboard/dependencies.d.ts +1 -1
- package/dist/features/resource-dashboard/ports.d.ts +1 -1
- package/dist/features/resource-dashboard/react/hooks/useResourceBoard.d.ts +1 -1
- package/dist/features/resource-dashboard/react/hooks/useResourceBoard.js +1 -1
- package/dist/features/resource-dashboard/rules.d.ts +1 -1
- package/dist/features/resource-dashboard/rules.js +2 -2
- package/dist/features/resource-dashboard/types.d.ts +4 -4
- package/dist/features/resource-dashboard/types.js +1 -1
- package/dist/features/schedule-picker/react/hooks/useRecurringSchedulePicker.js +1 -1
- package/dist/features/settings/dialog/styles/settings-dialog.css +62 -60
- package/dist/features/sketch-editor/constants.d.ts +1 -1
- package/dist/features/sketch-editor/constants.js +1 -1
- package/dist/features/sketch-editor/dom.d.ts +1 -1
- package/dist/features/sketch-editor/dom.js +1 -1
- package/dist/features/sketch-editor/react/hooks/useSketchDomEnhancements.d.ts +1 -1
- package/dist/features/sketch-editor/react/hooks/useSketchDomEnhancements.js +11 -9
- package/dist/features/sketch-editor/types.d.ts +1 -1
- package/dist/features/sketch-editor/types.js +1 -1
- package/dist/features/skills/react/components/SkillDraftForm.js +1 -1
- package/dist/features/skills/react/components/SkillRow.js +1 -1
- package/dist/features/skills/react/components/SkillsTab.js +2 -2
- package/dist/features/source-config-list/agent-handles.js +2 -2
- package/dist/features/source-config-list/react/hooks/useSourceConfigAddForm.d.ts +1 -1
- package/dist/features/source-config-list/react/hooks/useSourceConfigAddForm.js +1 -1
- package/dist/features/source-config-list/rules.d.ts +1 -1
- package/dist/features/source-config-list/rules.js +3 -3
- package/dist/features/source-config-list/types.d.ts +1 -1
- package/dist/features/source-config-list/types.js +1 -1
- package/dist/features/tab-launcher-menu/react/hooks/useTabLauncherMenu.js +1 -1
- package/dist/features/tab-strip/index.d.ts +4 -0
- package/dist/features/tab-strip/index.js +2 -0
- package/dist/features/tab-strip/react/components/TabBar.d.ts +23 -0
- package/dist/features/tab-strip/react/components/TabBar.hooks.d.ts +25 -0
- package/dist/features/tab-strip/react/components/TabBar.hooks.js +57 -0
- package/dist/features/tab-strip/react/components/TabBar.js +18 -0
- package/dist/features/tab-strip/react/components/TabStrip.js +2 -1
- package/dist/features/tab-strip/react/components/TabStripFrame.d.ts +3 -0
- package/dist/features/tab-strip/react/components/TabStripFrame.js +7 -0
- package/dist/features/tabbed-dialog/react/hooks/useTabbedDialog.js +1 -1
- package/dist/features/tabbed-dialog/styles/tabbed-dialog.css +8 -141
- package/dist/features/tabbed-dialog/types.d.ts +1 -1
- package/dist/features/tabbed-dialog/types.js +1 -1
- package/dist/features/version-manager/ports.d.ts +1 -1
- package/dist/features/version-manager/react/components/VersionPromptPopover.js +5 -3
- package/dist/features/version-manager/react/components/VersionRestoreControl.js +1 -1
- package/dist/features/version-manager/types.d.ts +1 -1
- package/dist/features/version-manager/types.js +1 -1
- package/dist/features/viewer-shell/dependencies.js +1 -1
- package/dist/features/viewer-shell/ports.d.ts +1 -1
- package/dist/features/viewer-shell/react/components/ViewportSwitcher.js +1 -1
- package/dist/features/viewer-shell/react/hooks/useMarkdownScrollSync.d.ts +1 -1
- package/dist/features/viewer-shell/react/hooks/useMarkdownScrollSync.js +1 -1
- package/dist/features/viewer-shell/types.d.ts +1 -1
- package/dist/features/viewer-shell/types.js +1 -1
- package/dist/index.d.ts +420 -0
- package/dist/index.js +421 -1
- package/dist/react/components/ComponentKitPreview.js +1 -1
- package/dist/react/components/EditorIcon.d.ts +1 -1
- package/dist/react/components/EditorIcon.js +22 -22
- package/dist/react/components/ExportDiagnosticsButton.d.ts +8 -1
- package/dist/react/components/ExportDiagnosticsButton.js +6 -6
- package/dist/react/components/PaletteTweaks.js +5 -5
- package/dist/react/hooks/useBrandFonts.d.ts +19 -4
- package/dist/react/hooks/useBrandFonts.js +11 -7
- package/dist/react/hooks/useDebouncedValue.d.ts +12 -1
- package/dist/react/hooks/useDebouncedValue.js +9 -4
- package/dist/react/hooks/useStableHandler.d.ts +3 -1
- package/dist/react/hooks/useStableHandler.js +1 -1
- package/dist/renderers/annotation-canvas/drawing.d.ts +4 -4
- package/dist/renderers/annotation-canvas/drawing.js +28 -15
- package/dist/renderers/annotation-canvas/react/components/AnnotationCanvas.js +2 -2
- package/dist/renderers/annotation-canvas/react/hooks/useAnnotationCanvas.js +4 -3
- package/dist/renderers/annotation-canvas/rules.d.ts +1 -1
- package/dist/renderers/annotation-canvas/theme.d.ts +13 -0
- package/dist/renderers/annotation-canvas/theme.js +16 -0
- package/dist/renderers/annotation-canvas/types.d.ts +1 -1
- package/dist/renderers/index.d.ts +1 -1
- package/dist/renderers/new-tab-preview.d.ts +3 -0
- package/dist/renderers/new-tab-preview.js +3 -1
- package/dist/renderers/preview-modal-shell/react/hooks/usePreviewModalShell.d.ts +1 -1
- package/dist/renderers/preview-modal-shell/react/hooks/usePreviewModalShell.js +1 -1
- package/dist/renderers/preview-modal-shell/rules.d.ts +1 -1
- package/dist/renderers/preview-modal-shell/types.d.ts +3 -3
- package/dist/renderers/preview-modal-shell/types.js +2 -2
- package/dist/renderers/react/components/ArtifactView.d.ts +1 -1
- package/dist/renderers/react/components/ArtifactView.js +1 -1
- package/dist/renderers/registry.d.ts +12 -6
- package/dist/renderers/registry.js +7 -9
- package/dist/renderers/renderers/html.js +2 -2
- package/dist/renderers/renderers/index.js +1 -1
- package/dist/renderers/renderers/markdown.js +2 -2
- package/dist/renderers/renderers/react-component.js +1 -1
- package/dist/renderers/renderers/svg.js +1 -1
- package/dist/renderers/shiki.js +1 -1
- package/dist/renderers/srcdoc/build.d.ts +1 -1
- package/dist/renderers/srcdoc/build.js +1 -1
- package/dist/renderers/url-load-decision.d.ts +1 -1
- package/dist/renderers/url-load-decision.js +1 -1
- package/dist/styles/admin.css +273 -0
- package/dist/styles/variables.css +117 -0
- package/dist/theme/apply.d.ts +9 -0
- package/dist/theme/apply.js +77 -0
- package/dist/theme/color-scheme.d.ts +8 -0
- package/dist/theme/color-scheme.js +9 -0
- package/dist/theme/default.d.ts +4 -0
- package/dist/theme/default.js +11 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.js +5 -0
- package/dist/theme/stylesheet.d.ts +8 -0
- package/dist/theme/stylesheet.js +14 -0
- package/dist/theme/types.d.ts +39 -0
- package/dist/theme/types.js +2 -0
- package/dist/theme/validation.d.ts +15 -0
- package/dist/theme/validation.js +55 -0
- package/dist/utils/appearance.js +1 -1
- package/dist/utils/browser-request.d.ts +12 -0
- package/dist/utils/browser-request.js +10 -0
- package/dist/utils/color-math.d.ts +20 -6
- package/dist/utils/color-math.js +12 -12
- package/dist/utils/copy-to-clipboard.d.ts +19 -8
- package/dist/utils/copy-to-clipboard.js +15 -11
- package/dist/utils/dom-subscriptions.js +1 -1
- package/dist/utils/endpoint-policy.d.ts +9 -3
- package/dist/utils/endpoint-policy.js +5 -5
- package/dist/utils/markdown-scroll-sync.js +3 -3
- package/dist/utils/notifications.d.ts +1 -1
- package/dist/utils/notifications.js +1 -1
- package/dist/utils/polygon-selection.d.ts +1 -1
- package/dist/utils/polygon-selection.js +1 -1
- package/dist/utils/scroll-tabs-with-wheel.d.ts +4 -1
- package/dist/utils/scroll-tabs-with-wheel.js +1 -1
- package/dist/utils/smooth-scroll-to-top.js +1 -1
- package/dist/utils/sse.d.ts +3 -1
- package/dist/utils/sse.js +1 -1
- package/package.json +105 -16
- package/dist/features/lexical-rich-text-editor/react/test-support/lexical-harness.d.ts +0 -11
- package/dist/features/lexical-rich-text-editor/react/test-support/lexical-harness.js +0 -35
|
@@ -1,144 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* shell itself was extracted into this product-neutral module: that file still carries the
|
|
10
|
-
* `tabs/*` content styling (fields, cards, agent lists, byok forms, …) and `@import`s this
|
|
11
|
-
* one so its four existing consumers keep receiving the complete rule set without adding a
|
|
12
|
-
* second import. A new, non-Settings host of `TabbedDialog` can import just this file
|
|
13
|
-
* (`@jini-ai/ui/tabbed-dialog.css`) for the chrome alone.
|
|
14
|
-
*
|
|
15
|
-
* Every value below resolves through a CSS custom property declared in the `:root` block.
|
|
16
|
-
* That indirection IS the override mechanism: redefine any token downstream (in a later
|
|
17
|
-
* stylesheet, or on a wrapper element) and the whole dialog re-skins without forking a
|
|
18
|
-
* single rule. Nothing here uses a hard-coded color outside that block. The tokens live in
|
|
19
|
-
* THIS file (rather than only in `settings-dialog.css`) because the chrome rules below
|
|
20
|
-
* depend on them directly — a host importing only this stylesheet still needs a rendered
|
|
21
|
-
* dialog, not just unstyled structure.
|
|
22
|
-
*
|
|
23
|
-
* Dark mode follows `prefers-color-scheme` and can be forced either way with
|
|
24
|
-
* `data-theme="dark"` / `data-theme="light"` on any ancestor — which is what
|
|
25
|
-
* `AppearanceTab`'s `applyAppearanceToDocument` already stamps onto
|
|
26
|
-
* `document.documentElement`.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
:root {
|
|
30
|
-
--jini-bg-panel: #fdfcfa;
|
|
31
|
-
--jini-bg-subtle: #f4f5f7;
|
|
32
|
-
--jini-bg-elevated: #fffefc;
|
|
33
|
-
--jini-border: #e1e5eb;
|
|
34
|
-
--jini-border-strong: #c9d0da;
|
|
35
|
-
|
|
36
|
-
--jini-text: #1a1916;
|
|
37
|
-
--jini-text-strong: #0d0c0a;
|
|
38
|
-
--jini-text-muted: #74716b;
|
|
39
|
-
--jini-text-disabled: #b3b0a8;
|
|
40
|
-
|
|
41
|
-
--jini-accent: #c96442;
|
|
42
|
-
--jini-accent-hover: #b45a3b;
|
|
43
|
-
|
|
44
|
-
--jini-success: #1f7a3a;
|
|
45
|
-
--jini-danger: #9c2a25;
|
|
46
|
-
--jini-warning: #b26200;
|
|
47
|
-
|
|
48
|
-
--jini-backdrop: rgba(28, 27, 26, 0.42);
|
|
49
|
-
--jini-shadow-xs: 0 1px 0 rgba(28, 27, 26, 0.04);
|
|
50
|
-
--jini-shadow-md: 0 6px 24px rgba(28, 27, 26, 0.07), 0 2px 6px rgba(28, 27, 26, 0.04);
|
|
51
|
-
--jini-shadow-lg: 0 24px 60px rgba(28, 27, 26, 0.16), 0 8px 16px rgba(28, 27, 26, 0.07);
|
|
52
|
-
|
|
53
|
-
--jini-radius-xs: 4px;
|
|
54
|
-
--jini-radius-sm: 6px;
|
|
55
|
-
--jini-radius: 8px;
|
|
56
|
-
/* Ported alongside OD's real Connectors/Skills CSS (2026-07-31) — OD's
|
|
57
|
-
`.skills-row`/`.ds-picker-popover` reach for a 10px radius distinct
|
|
58
|
-
from both `--radius` (8px, generic cards) and `--radius-lg` (12px,
|
|
59
|
-
modals/gate cards); rather than round that down to an existing step
|
|
60
|
-
and lose the distinction OD's own scale makes, this token was added. */
|
|
61
|
-
--jini-radius-md: 10px;
|
|
62
|
-
--jini-radius-lg: 12px;
|
|
63
|
-
--jini-radius-pill: 999px;
|
|
64
|
-
|
|
65
|
-
--jini-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
66
|
-
--jini-modal-padding: 24px;
|
|
67
|
-
--jini-sidebar-width: 240px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media (prefers-color-scheme: dark) {
|
|
71
|
-
:root {
|
|
72
|
-
--jini-bg-panel: #222120;
|
|
73
|
-
--jini-bg-subtle: #252321;
|
|
74
|
-
--jini-bg-elevated: #2a2825;
|
|
75
|
-
--jini-border: #333128;
|
|
76
|
-
--jini-border-strong: #46433c;
|
|
77
|
-
|
|
78
|
-
--jini-text: #e8e4dc;
|
|
79
|
-
--jini-text-strong: #f2ede4;
|
|
80
|
-
--jini-text-muted: #9a9690;
|
|
81
|
-
--jini-text-disabled: #4e4b46;
|
|
82
|
-
|
|
83
|
-
--jini-accent: #d97a56;
|
|
84
|
-
--jini-accent-hover: #e8896a;
|
|
85
|
-
|
|
86
|
-
--jini-success: #4caf72;
|
|
87
|
-
--jini-danger: #e06b65;
|
|
88
|
-
--jini-warning: #e09a40;
|
|
89
|
-
|
|
90
|
-
--jini-backdrop: rgba(0, 0, 0, 0.55);
|
|
91
|
-
--jini-shadow-xs: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
92
|
-
--jini-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
|
|
93
|
-
--jini-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* Explicit theme selection always wins over the media query, in both
|
|
98
|
-
directions — a host toggle must be able to force light inside a dark OS. */
|
|
99
|
-
:root[data-theme='dark'],
|
|
100
|
-
[data-theme='dark'] {
|
|
101
|
-
--jini-bg-panel: #222120;
|
|
102
|
-
--jini-bg-subtle: #252321;
|
|
103
|
-
--jini-bg-elevated: #2a2825;
|
|
104
|
-
--jini-border: #333128;
|
|
105
|
-
--jini-border-strong: #46433c;
|
|
106
|
-
--jini-text: #e8e4dc;
|
|
107
|
-
--jini-text-strong: #f2ede4;
|
|
108
|
-
--jini-text-muted: #9a9690;
|
|
109
|
-
--jini-text-disabled: #4e4b46;
|
|
110
|
-
--jini-accent: #d97a56;
|
|
111
|
-
--jini-accent-hover: #e8896a;
|
|
112
|
-
--jini-success: #4caf72;
|
|
113
|
-
--jini-danger: #e06b65;
|
|
114
|
-
--jini-warning: #e09a40;
|
|
115
|
-
--jini-backdrop: rgba(0, 0, 0, 0.55);
|
|
116
|
-
--jini-shadow-xs: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
117
|
-
--jini-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
|
|
118
|
-
--jini-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
:root[data-theme='light'],
|
|
122
|
-
[data-theme='light'] {
|
|
123
|
-
--jini-bg-panel: #fdfcfa;
|
|
124
|
-
--jini-bg-subtle: #f4f5f7;
|
|
125
|
-
--jini-bg-elevated: #fffefc;
|
|
126
|
-
--jini-border: #e1e5eb;
|
|
127
|
-
--jini-border-strong: #c9d0da;
|
|
128
|
-
--jini-text: #1a1916;
|
|
129
|
-
--jini-text-strong: #0d0c0a;
|
|
130
|
-
--jini-text-muted: #74716b;
|
|
131
|
-
--jini-text-disabled: #b3b0a8;
|
|
132
|
-
--jini-accent: #c96442;
|
|
133
|
-
--jini-accent-hover: #b45a3b;
|
|
134
|
-
--jini-success: #1f7a3a;
|
|
135
|
-
--jini-danger: #9c2a25;
|
|
136
|
-
--jini-warning: #b26200;
|
|
137
|
-
--jini-backdrop: rgba(28, 27, 26, 0.42);
|
|
138
|
-
--jini-shadow-xs: 0 1px 0 rgba(28, 27, 26, 0.04);
|
|
139
|
-
--jini-shadow-md: 0 6px 24px rgba(28, 27, 26, 0.07), 0 2px 6px rgba(28, 27, 26, 0.04);
|
|
140
|
-
--jini-shadow-lg: 0 24px 60px rgba(28, 27, 26, 0.16), 0 8px 16px rgba(28, 27, 26, 0.07);
|
|
141
|
-
}
|
|
1
|
+
/* The shell emits jini-tabbed-dialog-* classes without importing CSS, so hosts can choose this
|
|
2
|
+
opt-in default chrome or supply their own styling. SettingsDialogShell imports this stylesheet
|
|
3
|
+
through settings-dialog.css; other hosts can import @jini-ai/ui/tabbed-dialog.css alone.
|
|
4
|
+
|
|
5
|
+
The shared variable import makes that standalone choice usable. Override its custom properties
|
|
6
|
+
downstream or on a wrapper to reskin the chrome without copying the rules; content-tab styles
|
|
7
|
+
remain separate from this shell. */
|
|
8
|
+
@import "../../../styles/variables.css";
|
|
142
9
|
|
|
143
10
|
/* ============================================================
|
|
144
11
|
Dialog chrome
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* chrome. `SettingsDialogShell` now composes this module and supplies its own
|
|
9
9
|
* settings-flavoured label defaults (`t('Settings')`, `t('Settings sections')`, …) — see
|
|
10
10
|
* that component's doc comment. Original provenance: `SettingsDialog.tsx` (8,538 lines) in
|
|
11
|
-
* the vendored OD reference tree — see `packages/ui/
|
|
11
|
+
* the vendored OD reference tree — see `packages/ui/archived provenance ledger`.
|
|
12
12
|
*
|
|
13
13
|
* Only the dialog SHELL (sidebar nav + active-panel switching + modal chrome) is modeled
|
|
14
14
|
* here; a host supplies its own tabs as tab entries.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* chrome. `SettingsDialogShell` now composes this module and supplies its own
|
|
9
9
|
* settings-flavoured label defaults (`t('Settings')`, `t('Settings sections')`, …) — see
|
|
10
10
|
* that component's doc comment. Original provenance: `SettingsDialog.tsx` (8,538 lines) in
|
|
11
|
-
* the vendored OD reference tree — see `packages/ui/
|
|
11
|
+
* the vendored OD reference tree — see `packages/ui/archived provenance ledger`.
|
|
12
12
|
*
|
|
13
13
|
* Only the dialog SHELL (sidebar nav + active-panel switching + modal chrome) is modeled
|
|
14
14
|
* here; a host supplies its own tabs as tab entries.
|
|
@@ -25,7 +25,7 @@ export interface VersionManagerPort<TVersion extends VersionRecord = VersionReco
|
|
|
25
25
|
* `fileVersionPreviewOptions` (deck-sniffing, base-href resolution) is
|
|
26
26
|
* shared infrastructure the eventual `@jini-ai/renderers-react` sandbox
|
|
27
27
|
* core should own, which does not exist yet (see
|
|
28
|
-
* `packages/ui/
|
|
28
|
+
* `packages/ui/archived provenance ledger`'s `html-viewer` section). A host with a
|
|
29
29
|
* real sandbox core implements this by delegating to it; a host without
|
|
30
30
|
* one can just return `content` unchanged for a plain, unsandboxed
|
|
31
31
|
* preview. Either way this feature stays decoupled from that
|
|
@@ -11,9 +11,11 @@ export function VersionPromptPopover({ prompt, disabled, copied, onCopy, onOpenC
|
|
|
11
11
|
const [open, setOpen] = useState(false);
|
|
12
12
|
const wrapRef = useRef(null);
|
|
13
13
|
const popoverId = useId();
|
|
14
|
-
useDismissOnOutsideOrEscape(
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
useDismissOnOutsideOrEscape({
|
|
15
|
+
onDismiss: () => {
|
|
16
|
+
setOpen(false);
|
|
17
|
+
onOpenChange?.(false);
|
|
18
|
+
},
|
|
17
19
|
}, { enabled: open, containerRef: wrapRef });
|
|
18
20
|
return (_jsxs("div", { className: "jini-version-prompt-popover-wrap", ref: wrapRef, children: [_jsx("button", { type: "button", className: `jini-version-prompt-toggle${open ? ' active' : ''}`, "aria-expanded": open, "aria-controls": open ? popoverId : undefined, disabled: disabled, onClick: () => {
|
|
19
21
|
const next = !open;
|
|
@@ -10,7 +10,7 @@ export function VersionRestoreControl({ disabled, restoring, onRestore }) {
|
|
|
10
10
|
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
11
11
|
const wrapRef = useRef(null);
|
|
12
12
|
const popoverId = useId();
|
|
13
|
-
useDismissOnOutsideOrEscape(() => setConfirmOpen(false), { enabled: confirmOpen, containerRef: wrapRef });
|
|
13
|
+
useDismissOnOutsideOrEscape({ onDismiss: () => setConfirmOpen(false) }, { enabled: confirmOpen, containerRef: wrapRef });
|
|
14
14
|
return (_jsxs("div", { className: "jini-version-restore-wrap", ref: wrapRef, children: [_jsx("button", { type: "button", className: `jini-viewer-action primary jini-version-restore-action${confirmOpen ? ' active' : ''}`, disabled: disabled, "aria-haspopup": "dialog", "aria-expanded": confirmOpen, "aria-controls": confirmOpen ? popoverId : undefined, onClick: () => setConfirmOpen((value) => !value), children: restoring ? t('Restoring…') : t('Restore this version') }), confirmOpen ? (_jsxs("div", { className: "jini-version-restore-confirm", id: popoverId, role: "dialog", "aria-label": t('Restore this version?'), children: [_jsx("h3", { children: t('Restore this version?') }), _jsx("p", { children: t('The file’s current content will be replaced with this version.') }), _jsxs("div", { className: "jini-version-restore-confirm-actions", children: [_jsx("button", { type: "button", className: "jini-viewer-action", onClick: () => setConfirmOpen(false), children: t('Cancel') }), _jsx("button", { type: "button", className: "jini-viewer-action primary", disabled: disabled, onClick: () => {
|
|
15
15
|
setConfirmOpen(false);
|
|
16
16
|
onRestore();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* modal shell.
|
|
4
4
|
*
|
|
5
5
|
* Source: a vendored OD file-viewer god-component's version-history modal
|
|
6
|
-
* (`FileVersionManagerModal`). See `packages/ui/
|
|
6
|
+
* (`FileVersionManagerModal`). See `packages/ui/archived provenance ledger`'s
|
|
7
7
|
* `html-viewer` classification section for full provenance, the prior
|
|
8
8
|
* (incorrect) "OD-specific, saturated with analytics/deploy" filing this
|
|
9
9
|
* corrects, and what was deliberately left as a host-injected port.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* modal shell.
|
|
4
4
|
*
|
|
5
5
|
* Source: a vendored OD file-viewer god-component's version-history modal
|
|
6
|
-
* (`FileVersionManagerModal`). See `packages/ui/
|
|
6
|
+
* (`FileVersionManagerModal`). See `packages/ui/archived provenance ledger`'s
|
|
7
7
|
* `html-viewer` classification section for full provenance, the prior
|
|
8
8
|
* (incorrect) "OD-specific, saturated with analytics/deploy" filing this
|
|
9
9
|
* corrects, and what was deliberately left as a host-injected port.
|
|
@@ -5,7 +5,7 @@ import { copyToClipboard } from '../../utils/copy-to-clipboard.js';
|
|
|
5
5
|
* `features/connectors/`'s `createBrowserConnectorAuthPendingStorage`. */
|
|
6
6
|
export function createBrowserViewerClipboard() {
|
|
7
7
|
return {
|
|
8
|
-
copyText: (text) => copyToClipboard(text),
|
|
8
|
+
copyText: (text) => copyToClipboard({ text }),
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export function createDefaultViewerShellDependencies() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This feature is almost entirely presentational + pure logic (no fetch, no
|
|
3
|
-
* project/file transport — see `packages/ui/
|
|
3
|
+
* project/file transport — see `packages/ui/archived provenance ledger` for why the
|
|
4
4
|
* actual file-content loading, saving, and rendering pipelines were left
|
|
5
5
|
* out of scope). The one thing every consumer still needs a real browser
|
|
6
6
|
* API for is copy-to-clipboard, so that's the one injectable seam here,
|
|
@@ -25,7 +25,7 @@ export function ViewportSwitcher({ presets, viewport, onViewport, ariaLabel, tab
|
|
|
25
25
|
const menuRef = useRef(null);
|
|
26
26
|
const listboxId = useId();
|
|
27
27
|
const activePreset = presets.find((preset) => preset.id === viewport) ?? presets[0];
|
|
28
|
-
useDismissOnOutsideOrEscape(() => setOpen(false), { enabled: open, containerRef: menuRef });
|
|
28
|
+
useDismissOnOutsideOrEscape({ onDismiss: () => setOpen(false) }, { enabled: open, containerRef: menuRef });
|
|
29
29
|
if (!activePreset)
|
|
30
30
|
return null;
|
|
31
31
|
const activeLabel = activePreset.title ?? activePreset.label;
|
|
@@ -26,7 +26,7 @@ export interface UseMarkdownScrollSyncResult {
|
|
|
26
26
|
* measured). This is the generic mechanism behind the source component's
|
|
27
27
|
* split-pane markdown viewer — ported without its artifact-status gate, its
|
|
28
28
|
* autosave/upload pipeline, and its shiki-based syntax highlighting (all
|
|
29
|
-
* genuinely OD/product-specific; see `packages/ui/
|
|
29
|
+
* genuinely OD/product-specific; see `packages/ui/archived provenance ledger`).
|
|
30
30
|
*/
|
|
31
31
|
export declare function useMarkdownScrollSync(options: UseMarkdownScrollSyncOptions): UseMarkdownScrollSyncResult;
|
|
32
32
|
//# sourceMappingURL=useMarkdownScrollSync.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { computeSplitPaneScrollTarget, measureEditorBlockOffsets, measurePreview
|
|
|
8
8
|
* measured). This is the generic mechanism behind the source component's
|
|
9
9
|
* split-pane markdown viewer — ported without its artifact-status gate, its
|
|
10
10
|
* autosave/upload pipeline, and its shiki-based syntax highlighting (all
|
|
11
|
-
* genuinely OD/product-specific; see `packages/ui/
|
|
11
|
+
* genuinely OD/product-specific; see `packages/ui/archived provenance ledger`).
|
|
12
12
|
*/
|
|
13
13
|
export function useMarkdownScrollSync(options) {
|
|
14
14
|
const { mode, sourceText, editorRef, previewRef, previewSelector, resyncKey } = options;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* media-viewer shell (image/video/audio/svg/text/binary/document/sketch
|
|
6
6
|
* viewers all wrap the same toolbar+body chrome around a
|
|
7
7
|
* `{name,size,mtime}`-shaped file reference), plus its comment side-panel
|
|
8
|
-
* and markdown split-pane. See `packages/ui/
|
|
8
|
+
* and markdown split-pane. See `packages/ui/archived provenance ledger`'s
|
|
9
9
|
* `features/viewer-shell/` section for full provenance and what was
|
|
10
10
|
* deliberately dropped.
|
|
11
11
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* media-viewer shell (image/video/audio/svg/text/binary/document/sketch
|
|
6
6
|
* viewers all wrap the same toolbar+body chrome around a
|
|
7
7
|
* `{name,size,mtime}`-shaped file reference), plus its comment side-panel
|
|
8
|
-
* and markdown split-pane. See `packages/ui/
|
|
8
|
+
* and markdown split-pane. See `packages/ui/archived provenance ledger`'s
|
|
9
9
|
* `features/viewer-shell/` section for full provenance and what was
|
|
10
10
|
* deliberately dropped.
|
|
11
11
|
*
|