@viswa-test/creative-workspace-ui-component 0.0.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/README.md +352 -0
- package/dist/_virtual/_tslib.js +2 -0
- package/dist/_virtual/_tslib.js.map +1 -0
- package/dist/cjs/_virtual/_tslib.js +2 -0
- package/dist/cjs/_virtual/_tslib.js.map +1 -0
- package/dist/cjs/components/ScopeTree/HighlightedText.js +2 -0
- package/dist/cjs/components/ScopeTree/HighlightedText.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeAddAction.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeAddAction.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeMenu.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeMenu.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeNode.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeNode.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeNodeHeader.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeNodeHeader.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeSectionItem.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeSectionItem.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeSidebar.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeSidebar.js.map +1 -0
- package/dist/cjs/components/ScopeTree/TreeTooltip.js +2 -0
- package/dist/cjs/components/ScopeTree/TreeTooltip.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +2 -0
- package/dist/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +2 -0
- package/dist/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +2 -0
- package/dist/cjs/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +2 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +2 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/primitive/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-id/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-presence/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +2 -0
- package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -0
- package/dist/cjs/node_modules/style-inject/dist/style-inject.es.js +2 -0
- package/dist/cjs/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
- package/dist/cjs/styles/ScopeTree.module.css.js +2 -0
- package/dist/cjs/styles/ScopeTree.module.css.js.map +1 -0
- package/dist/cjs/utils/treeUtils.js +2 -0
- package/dist/cjs/utils/treeUtils.js.map +1 -0
- package/dist/components/ScopeTree/HighlightedText.js +2 -0
- package/dist/components/ScopeTree/HighlightedText.js.map +1 -0
- package/dist/components/ScopeTree/TreeAddAction.js +2 -0
- package/dist/components/ScopeTree/TreeAddAction.js.map +1 -0
- package/dist/components/ScopeTree/TreeMenu.js +2 -0
- package/dist/components/ScopeTree/TreeMenu.js.map +1 -0
- package/dist/components/ScopeTree/TreeNode.js +2 -0
- package/dist/components/ScopeTree/TreeNode.js.map +1 -0
- package/dist/components/ScopeTree/TreeNodeHeader.js +2 -0
- package/dist/components/ScopeTree/TreeNodeHeader.js.map +1 -0
- package/dist/components/ScopeTree/TreeSectionItem.js +2 -0
- package/dist/components/ScopeTree/TreeSectionItem.js.map +1 -0
- package/dist/components/ScopeTree/TreeSidebar.js +2 -0
- package/dist/components/ScopeTree/TreeSidebar.js.map +1 -0
- package/dist/components/ScopeTree/TreeTooltip.js +2 -0
- package/dist/components/ScopeTree/TreeTooltip.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +2 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +2 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -0
- package/dist/node_modules/style-inject/dist/style-inject.es.js +2 -0
- package/dist/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
- package/dist/styles/ScopeTree.module.css.js +2 -0
- package/dist/styles/ScopeTree.module.css.js.map +1 -0
- package/dist/types/src/App.d.ts +3 -0
- package/dist/types/src/App.d.ts.map +1 -0
- package/dist/types/src/RequirementAiTest.d.ts +12 -0
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/HighlightedText.d.ts +8 -0
- package/dist/types/src/components/ScopeTree/HighlightedText.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeAddAction.d.ts +8 -0
- package/dist/types/src/components/ScopeTree/TreeAddAction.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeMenu.d.ts +17 -0
- package/dist/types/src/components/ScopeTree/TreeMenu.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeNode.d.ts +26 -0
- package/dist/types/src/components/ScopeTree/TreeNode.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeNodeHeader.d.ts +17 -0
- package/dist/types/src/components/ScopeTree/TreeNodeHeader.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeSectionItem.d.ts +16 -0
- package/dist/types/src/components/ScopeTree/TreeSectionItem.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeSidebar.d.ts +21 -0
- package/dist/types/src/components/ScopeTree/TreeSidebar.d.ts.map +1 -0
- package/dist/types/src/components/ScopeTree/TreeTooltip.d.ts +10 -0
- package/dist/types/src/components/ScopeTree/TreeTooltip.d.ts.map +1 -0
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts +31 -0
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts +25 -0
- package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/CustomPopover/CustomPopover.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/CustomPopover/CustomPopover.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.d.ts +64 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.d.ts +22 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.d.ts +21 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts +26 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/types/gapRiskSidebar.types.d.ts +248 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/types/gapRiskSidebar.types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +369 -0
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +38 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/EditorDropdown/EditorDropdown.d.ts +16 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/EditorDropdown/EditorDropdown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/LinkEditor/LinkEditorButton/LinkEditorButton.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/LinkEditor/LinkEditorButton/LinkEditorButton.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/Table/tableHelpers.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/components/Table/tableHelpers.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.d.ts +32 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/enums.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/enums.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/models.d.ts +48 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/models.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/hooks/useModal.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/hooks/useModal.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/hooks/useOnClickOutside.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/hooks/useOnClickOutside.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +26 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialString.d.ts +6 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialString.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/CommentEditorTheme.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/CommentEditorTheme.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/ui/Button.d.ts +19 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/ui/Button.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/ui/ContentEditable.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/ui/ContentEditable.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/ui/Modal.d.ts +16 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/ui/Modal.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/commentsHelper.d.ts +21 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/commentsHelper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/joinClasses.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/joinClasses.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/commenting/index.d.ts +52 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/commenting/index.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts +19 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +27 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationRenderer.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +34 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +58 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts +58 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.d.ts +29 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +50 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +72 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/AiGapIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/AiGapIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.d.ts +6 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronDown.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronDown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronUpIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ExternalLinkIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ExternalLinkIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/MessageCircleIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/MessageCircleIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/NotebookIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/NotebookIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts +74 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.d.ts +35 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.d.ts +30 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/CloseIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/CloseIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/searchwaveform.d.ts +41 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/searchwaveform.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.d.ts +16 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.d.ts +23 -0
- package/dist/types/src/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/LoadingScreen.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/LoadingScreen.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/image-citation/ImageCitationContent.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/citations/image-citation/ImageCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationContent.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/types.d.ts +28 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts +72 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/StormeeContent.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/StormeeContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/FullScreenIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/FullScreenIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitation.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationIcon.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.d.ts +23 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +56 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +65 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.d.ts +26 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts +44 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/segment/ExampleComponentWrapper.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/segment/ExampleComponentWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/segment/SegmentLoader.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/segment/SegmentLoader.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/ReplaceLearnedTags.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/ReplaceLearnedTags.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/StreamingScreenSidebar.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/StreamingScreenSidebar.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/SubfeatureBlock.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/SubfeatureBlock.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/UserStoryScreen.d.ts +47 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/UserStoryScreen.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts +31 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +70 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.d.ts +22 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.d.ts +43 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.d.ts +18 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.d.ts +26 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +29 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +114 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +19 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/hooks/useApprovalStatus.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/hooks/useApprovalStatus.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/hooks/useDiffEditReviewMode.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/hooks/useDiffEditReviewMode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +41 -0
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/AiGapIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/icons/AiGapIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/AiReasoningIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/icons/AiReasoningIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/BigEnoughIcon.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/icons/BigEnoughIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/BookmarkIcon.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/icons/BookmarkIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/BrainRed.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/icons/BrainRed.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/CheckIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/CheckIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/ChevronDownIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/ChevronDownIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/ChevronUpIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/CognitiveDecision.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/icons/CognitiveDecision.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/MeetingHighlightsIcon.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/icons/MeetingHighlightsIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/MenuUnfoldIcon.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/icons/MenuUnfoldIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/PencilIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/PencilIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/ReasoningBulbIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/icons/ReasoningBulbIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/RelevanceScoreIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/icons/RelevanceScoreIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/SidebarCloseIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/SidebarCloseIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/SidebarOpenIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/SidebarOpenIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/icons/TrashIcon.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/icons/TrashIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/interfaces/approval-screen.interface.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/interfaces/approval-screen.interface.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +47 -0
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +316 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/Accordian.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/shared/Accordian.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/AtomicButton.d.ts +22 -0
- package/dist/types/src/features/RequirementAI/shared/AtomicButton.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/CitationAIConfidenceDisplay.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/shared/CitationAIConfidenceDisplay.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/CitationLoadingIndicator.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/shared/CitationLoadingIndicator.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/shared/CodeViewer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/GeneratedCodeCitation.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/shared/GeneratedCodeCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +46 -0
- package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts +6 -0
- package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/store/ref.context.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/store/ref.context.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +449 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +136 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts +82 -0
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +22 -0
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/streaming-block.type.d.ts +30 -0
- package/dist/types/src/features/RequirementAI/types/streaming-block.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/user.type.d.ts +21 -0
- package/dist/types/src/features/RequirementAI/types/user.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/css.utils.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/utils/css.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/diff-edit.utils.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/utils/diff-edit.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/helpers.d.ts +6 -0
- package/dist/types/src/features/RequirementAI/utils/helpers.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/json-helper.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/utils/json-helper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/learned-tag.utils.d.ts +33 -0
- package/dist/types/src/features/RequirementAI/utils/learned-tag.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/user-story.utils.d.ts +16 -0
- package/dist/types/src/features/RequirementAI/utils/user-story.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/userstory-approval-transform.utils.d.ts +33 -0
- package/dist/types/src/features/RequirementAI/utils/userstory-approval-transform.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/userstory-approval.utils.d.ts +41 -0
- package/dist/types/src/features/RequirementAI/utils/userstory-approval.utils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts +124 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts +26 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts +26 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts +123 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts +92 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts +12 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts +12 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts +12 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts +3 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +183 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts +32 -0
- package/dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts +33 -0
- package/dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts +42 -0
- package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts +48 -0
- package/dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts +17 -0
- package/dist/types/src/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts +4 -0
- package/dist/types/src/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.context.d.ts +53 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.context.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.d.ts +4 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.theme.d.ts +98 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.theme.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.types.d.ts +277 -0
- package/dist/types/src/features/UserStoryImport/UserStoryPicker.types.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/BackNav.d.ts +10 -0
- package/dist/types/src/features/UserStoryImport/components/BackNav.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/Badge.d.ts +10 -0
- package/dist/types/src/features/UserStoryImport/components/Badge.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/BrowseProjectsButton.d.ts +9 -0
- package/dist/types/src/features/UserStoryImport/components/BrowseProjectsButton.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/CardGrid.d.ts +9 -0
- package/dist/types/src/features/UserStoryImport/components/CardGrid.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/CardProceedButton.d.ts +7 -0
- package/dist/types/src/features/UserStoryImport/components/CardProceedButton.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/ContentArea.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/ContentArea.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/Footer.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/Footer.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/Header.d.ts +12 -0
- package/dist/types/src/features/UserStoryImport/components/Header.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/NavRow.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/NavRow.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/ProceedButton.d.ts +9 -0
- package/dist/types/src/features/UserStoryImport/components/ProceedButton.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/ProjectCard.d.ts +13 -0
- package/dist/types/src/features/UserStoryImport/components/ProjectCard.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/ResizeHandle.d.ts +10 -0
- package/dist/types/src/features/UserStoryImport/components/ResizeHandle.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/ScopeDropdown.d.ts +14 -0
- package/dist/types/src/features/UserStoryImport/components/ScopeDropdown.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SearchInput.d.ts +12 -0
- package/dist/types/src/features/UserStoryImport/components/SearchInput.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SectionHeading.d.ts +13 -0
- package/dist/types/src/features/UserStoryImport/components/SectionHeading.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/ShowMore.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/ShowMore.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/Sidebar.d.ts +12 -0
- package/dist/types/src/features/UserStoryImport/components/Sidebar.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SidebarFavoritesList.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/SidebarFavoritesList.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SidebarProjectList.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/SidebarProjectList.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SidebarSection.d.ts +24 -0
- package/dist/types/src/features/UserStoryImport/components/SidebarSection.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SortDropdown.d.ts +14 -0
- package/dist/types/src/features/UserStoryImport/components/SortDropdown.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/SplitLayout.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/SplitLayout.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/Toolbar.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/components/Toolbar.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/TypeDropdown.d.ts +14 -0
- package/dist/types/src/features/UserStoryImport/components/TypeDropdown.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/UserStoryCard.d.ts +13 -0
- package/dist/types/src/features/UserStoryImport/components/UserStoryCard.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/UserStoryImportDialog.d.ts +10 -0
- package/dist/types/src/features/UserStoryImport/components/UserStoryImportDialog.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/UserStoryScopeDropdown.d.ts +13 -0
- package/dist/types/src/features/UserStoryImport/components/UserStoryScopeDropdown.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/usePanelResize.d.ts +13 -0
- package/dist/types/src/features/UserStoryImport/components/usePanelResize.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/components/useProjectUserStory.d.ts +33 -0
- package/dist/types/src/features/UserStoryImport/components/useProjectUserStory.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/hooks/useFilteredItems.d.ts +10 -0
- package/dist/types/src/features/UserStoryImport/hooks/useFilteredItems.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/hooks/useUSPData.d.ts +28 -0
- package/dist/types/src/features/UserStoryImport/hooks/useUSPData.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/hooks/useUserStoryPickerState.d.ts +4 -0
- package/dist/types/src/features/UserStoryImport/hooks/useUserStoryPickerState.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/index.d.ts +65 -0
- package/dist/types/src/features/UserStoryImport/index.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/lib/CustomTooltip.d.ts +13 -0
- package/dist/types/src/features/UserStoryImport/lib/CustomTooltip.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/lib/Tooltip.d.ts +8 -0
- package/dist/types/src/features/UserStoryImport/lib/Tooltip.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/lib/adaptLabel.d.ts +2 -0
- package/dist/types/src/features/UserStoryImport/lib/adaptLabel.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/lib/cn.d.ts +4 -0
- package/dist/types/src/features/UserStoryImport/lib/cn.d.ts.map +1 -0
- package/dist/types/src/features/UserStoryImport/lib/dialog.d.ts +22 -0
- package/dist/types/src/features/UserStoryImport/lib/dialog.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/types/CodeCitationTypes.d.ts +46 -0
- package/dist/types/src/types/CodeCitationTypes.d.ts.map +1 -0
- package/dist/types/src/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts +23 -0
- package/dist/types/src/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts.map +1 -0
- package/dist/types/src/types/epubItems.d.ts +23 -0
- package/dist/types/src/types/epubItems.d.ts.map +1 -0
- package/dist/types/src/types.d.ts +26 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/dist/types/src/utils/CustomSkeleton.d.ts +2 -0
- package/dist/types/src/utils/CustomSkeleton.d.ts.map +1 -0
- package/dist/types/src/utils/SkeletonLoader.d.ts +3 -0
- package/dist/types/src/utils/SkeletonLoader.d.ts.map +1 -0
- package/dist/types/src/utils/api.d.ts +2 -0
- package/dist/types/src/utils/api.d.ts.map +1 -0
- package/dist/types/src/utils/codeCitations.utils.d.ts +9 -0
- package/dist/types/src/utils/codeCitations.utils.d.ts.map +1 -0
- package/dist/types/src/utils/colors.d.ts +5 -0
- package/dist/types/src/utils/colors.d.ts.map +1 -0
- package/dist/types/src/utils/date.d.ts +1 -0
- package/dist/types/src/utils/date.d.ts.map +1 -0
- package/dist/types/src/utils/helperFunctions.d.ts +6 -0
- package/dist/types/src/utils/helperFunctions.d.ts.map +1 -0
- package/dist/types/src/utils/regexHelperService.d.ts +9 -0
- package/dist/types/src/utils/regexHelperService.d.ts.map +1 -0
- package/dist/types/src/utils/sanitizeHtml.d.ts +5 -0
- package/dist/types/src/utils/sanitizeHtml.d.ts.map +1 -0
- package/dist/types/src/utils/themeManager.d.ts +13 -0
- package/dist/types/src/utils/themeManager.d.ts.map +1 -0
- package/dist/types/src/utils/treeUtils.d.ts +17 -0
- package/dist/types/src/utils/treeUtils.d.ts.map +1 -0
- package/dist/types/src/utils/urlQueryParamService.d.ts +2 -0
- package/dist/types/src/utils/urlQueryParamService.d.ts.map +1 -0
- package/dist/types/src/utils/variableHelperService.d.ts +7 -0
- package/dist/types/src/utils/variableHelperService.d.ts.map +1 -0
- package/dist/utils/treeUtils.js +2 -0
- package/dist/utils/treeUtils.js.map +1 -0
- package/package.json +212 -0
package/README.md
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
# TreeSidebar Component
|
|
2
|
+
|
|
3
|
+
A hierarchical tree navigation component for rendering nested scope/node structures with expandable sections, search, and configurable actions. The component is part of the `@e-llm-studio/creative-workspace-ui-component` package and can be used independently in any React application.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Introduction
|
|
8
|
+
|
|
9
|
+
TreeSidebar is a standalone component from the `@e-llm-studio/creative-workspace-ui-component` package designed to provide a fully generic, hierarchical tree navigation panel. Its primary purpose is to render a tree of nodes (e.g. Global → Scope → Subscope) with expandable sections, search filtering, and optional action handlers. The consuming team controls what actions are available by passing or omitting handler props — if a handler is not passed, the corresponding button is not rendered.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **Hierarchical tree rendering** — Supports unlimited nesting levels (Global → Scope → Subscope → ...)
|
|
16
|
+
- **Expand/collapse** — Each node is independently expandable; root node auto-expands on load
|
|
17
|
+
- **Section items** — Each node can show configurable section tabs (e.g. Learnings, Stations) below it when expanded
|
|
18
|
+
- **Search filtering** — Pass a `searchQuery` to filter nodes by name; non-matching subtrees are hidden
|
|
19
|
+
- **Configurable node types** — Control labels, add-child labels and child types via `nodeTypesConfig`
|
|
20
|
+
- **Configurable sections** — Control which sections appear per node via `sectionsConfig`
|
|
21
|
+
- **Conditional actions** — Add, Rename, Delete buttons only render when the corresponding handler prop is passed
|
|
22
|
+
- **Children count badge** — Optional badge showing number of direct children per node
|
|
23
|
+
- **Section badge** — Optional badge on section items showing metrics (e.g. learnings count)
|
|
24
|
+
- **Inline styles only** — No Tailwind or MUI dependency, works in any consuming app regardless of styling setup
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
The TreeSidebar component is part of the `@e-llm-studio/creative-workspace-ui-component` package.
|
|
31
|
+
|
|
32
|
+
### Using npm
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @e-llm-studio/creative-workspace-ui-component
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Using yarn
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
yarn add @e-llm-studio/creative-workspace-ui-component
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Import Statement
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { TreeSidebar } from "@e-llm-studio/creative-workspace-ui-component";
|
|
48
|
+
// or via subpath
|
|
49
|
+
import { TreeSidebar } from "@e-llm-studio/creative-workspace-ui-component/TreeSidebar";
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
### Basic Example
|
|
57
|
+
|
|
58
|
+
Here's a simple example demonstrating how to use TreeSidebar with minimal props:
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
import { TreeSidebar } from "@e-llm-studio/creative-workspace-ui-component";
|
|
62
|
+
import { BookOpen } from "lucide-react";
|
|
63
|
+
|
|
64
|
+
const treeData = {
|
|
65
|
+
id: "root",
|
|
66
|
+
name: "Global Scope",
|
|
67
|
+
type: "GLOBAL" as const,
|
|
68
|
+
metrics: { learningsCount: 10 },
|
|
69
|
+
children: [
|
|
70
|
+
{
|
|
71
|
+
id: "scope-1",
|
|
72
|
+
name: "Scope 1",
|
|
73
|
+
type: "SCOPE" as const,
|
|
74
|
+
metrics: { learningsCount: 5 },
|
|
75
|
+
children: [],
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default function App() {
|
|
81
|
+
return (
|
|
82
|
+
<TreeSidebar
|
|
83
|
+
data={treeData}
|
|
84
|
+
sectionsConfig={[
|
|
85
|
+
{
|
|
86
|
+
id: "learnings",
|
|
87
|
+
label: "Learnings",
|
|
88
|
+
icon: BookOpen,
|
|
89
|
+
badgeKey: "learningsCount",
|
|
90
|
+
},
|
|
91
|
+
]}
|
|
92
|
+
nodeTypesConfig={[
|
|
93
|
+
{ type: "GLOBAL", label: "Global", addChildLabel: "Add Scope", addChildType: "SCOPE" },
|
|
94
|
+
{ type: "SCOPE", label: "Scope" },
|
|
95
|
+
]}
|
|
96
|
+
onSectionSelect={(nodeId, sectionId) => console.log(nodeId, sectionId)}
|
|
97
|
+
/>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Key Props Explained:**
|
|
103
|
+
- `data`: The root node of the tree — pass `null` to render nothing
|
|
104
|
+
- `sectionsConfig`: Defines which section tabs appear under each expanded node
|
|
105
|
+
- `nodeTypesConfig`: Defines node labels and add-child behavior per depth level
|
|
106
|
+
- `onSectionSelect`: Fired when a section tab is clicked — returns the selected `nodeId` and `sectionId`
|
|
107
|
+
|
|
108
|
+
### Advanced Example
|
|
109
|
+
|
|
110
|
+
This example demonstrates all action handlers and badge visibility controls:
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
import { TreeSidebar } from "@e-llm-studio/creative-workspace-ui-component";
|
|
114
|
+
import { BookOpen } from "lucide-react";
|
|
115
|
+
|
|
116
|
+
export default function AdvancedExample() {
|
|
117
|
+
return (
|
|
118
|
+
<TreeSidebar
|
|
119
|
+
data={treeData}
|
|
120
|
+
sectionsConfig={[
|
|
121
|
+
{
|
|
122
|
+
id: "learnings",
|
|
123
|
+
label: "Learnings",
|
|
124
|
+
icon: BookOpen,
|
|
125
|
+
badgeKey: "learningsCount",
|
|
126
|
+
},
|
|
127
|
+
]}
|
|
128
|
+
nodeTypesConfig={[
|
|
129
|
+
{ type: "GLOBAL", label: "Global", addChildLabel: "Add Scope", addChildType: "SCOPE" },
|
|
130
|
+
{ type: "SCOPE", label: "Scope" },
|
|
131
|
+
]}
|
|
132
|
+
onSectionSelect={(nodeId, sectionId) => handleSelect(nodeId, sectionId)}
|
|
133
|
+
onAddChild={(parentId, childType, parentName) => handleAdd(parentId, childType, parentName)}
|
|
134
|
+
onRenameChild={(scopeId, initialName) => handleRename(scopeId, initialName)}
|
|
135
|
+
onDeleteChild={(scopeId, scopeName, learningsCount) => handleDelete(scopeId, scopeName, learningsCount)}
|
|
136
|
+
showChildrenCount={true}
|
|
137
|
+
showSectionBadge={true}
|
|
138
|
+
/>
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Customization Tips:**
|
|
144
|
+
- Only pass the action handlers (`onAddChild`, `onRenameChild`, `onDeleteChild`) your use case needs — unneeded buttons won't render
|
|
145
|
+
- Use `showChildrenCount={false}` to hide the children count badge on node headers
|
|
146
|
+
- Use `showSectionBadge={false}` to hide the metric badge on section items
|
|
147
|
+
- Use `searchQuery` with `onSearchCountChange` to implement a search bar above the tree
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## API Reference
|
|
152
|
+
|
|
153
|
+
### Props
|
|
154
|
+
|
|
155
|
+
| Prop | Type | Required | Default | Description |
|
|
156
|
+
|------|------|----------|---------|-------------|
|
|
157
|
+
| `data` | `ScopeTreeNode \| null` | ✅ | — | Root node of the tree. Pass `null` to render nothing. |
|
|
158
|
+
| `sectionsConfig` | `TreeSectionConfig[]` | ❌ | `[]` | Defines section tabs shown under each expanded node. |
|
|
159
|
+
| `nodeTypesConfig` | `NodeTypeConfig[]` | ❌ | `[]` | Defines node labels and add-child behavior per depth level. |
|
|
160
|
+
| `defaultExpandedIds` | `string[]` | ❌ | `[]` | Node IDs to expand by default on first render. |
|
|
161
|
+
| `searchQuery` | `string` | ❌ | `''` | Filters nodes by name. Non-matching subtrees are hidden. |
|
|
162
|
+
| `onSearchCountChange` | `(count: number) => void` | ❌ | — | Fired when the search result count changes. |
|
|
163
|
+
| `onSectionSelect` | `(nodeId: string, sectionId: string) => void` | ❌ | — | Fired when a section tab is clicked. Returns the node ID and section ID. |
|
|
164
|
+
| `onAddChild` | `(parentId: string, childType: 'SCOPE' \| 'SUBSCOPE', parentName?: string) => void` | ❌ | — | If passed, an Add button appears in the node menu. |
|
|
165
|
+
| `onRenameChild` | `(scopeId: string, initialName: string) => void` | ❌ | — | If passed, a Rename button appears in the node menu. |
|
|
166
|
+
| `onDeleteChild` | `(scopeId: string, scopeName: string, learningsCount: number) => void` | ❌ | — | If passed, a Delete button appears in the node menu. |
|
|
167
|
+
| `selectedRuleSetId` | `string \| null` | ❌ | — | ID of the node to auto-select on load. |
|
|
168
|
+
| `activeSectionId` | `string` | ❌ | — | Section ID to auto-activate alongside `selectedRuleSetId`. |
|
|
169
|
+
| `showChildrenCount` | `boolean` | ❌ | `true` | Whether to show the children count badge on node headers. |
|
|
170
|
+
| `showSectionBadge` | `boolean` | ❌ | `true` | Whether to show the metric badge on section items. |
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### `TreeSectionConfig`
|
|
175
|
+
|
|
176
|
+
| Field | Type | Required | Description |
|
|
177
|
+
|-------|------|----------|-------------|
|
|
178
|
+
| `id` | `string` | ✅ | Unique section identifier. |
|
|
179
|
+
| `label` | `string` | ✅ | Display label for the section tab. |
|
|
180
|
+
| `icon` | `ElementType` | ✅ | Lucide icon component to show next to the label. |
|
|
181
|
+
| `badgeKey` | `keyof NodeMetrics` | ❌ | Maps to a key in `node.metrics` to show as a badge count. |
|
|
182
|
+
| `isVisible` | `(node: ScopeTreeNode, depth: number) => boolean` | ❌ | Optional visibility check per node. If omitted, section is visible for all nodes. |
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
### `NodeTypeConfig`
|
|
187
|
+
|
|
188
|
+
| Field | Type | Required | Description |
|
|
189
|
+
|-------|------|----------|-------------|
|
|
190
|
+
| `type` | `string` | ✅ | Node type identifier (e.g. `'GLOBAL'`, `'SCOPE'`, `'SUBSCOPE'`). |
|
|
191
|
+
| `label` | `string` | ✅ | Display label used in delete confirmation text. |
|
|
192
|
+
| `addChildLabel` | `string` | ❌ | Label for the add child button (e.g. `'Add Scope'`). Required if `addChildType` is set. |
|
|
193
|
+
| `addChildType` | `string` | ❌ | The type of child node to create. If omitted, no add button is shown for this node type. |
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
### `ScopeTreeNode`
|
|
198
|
+
|
|
199
|
+
| Field | Type | Required | Description |
|
|
200
|
+
|-------|------|----------|-------------|
|
|
201
|
+
| `id` | `string` | ✅ | Unique identifier for the node. |
|
|
202
|
+
| `name` | `string` | ✅ | Display name of the node. |
|
|
203
|
+
| `type` | `'GLOBAL' \| 'SCOPE' \| 'SUBSCOPE' \| 'Custom'` | ✅ | Node type. |
|
|
204
|
+
| `metrics` | `NodeMetrics` | ✅ | Metric values used by section badges. |
|
|
205
|
+
| `children` | `ScopeTreeNode[]` | ✅ | Child nodes. Pass `[]` for leaf nodes. |
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Type Definitions
|
|
210
|
+
|
|
211
|
+
```ts
|
|
212
|
+
export interface TreeSidebarProps {
|
|
213
|
+
data: ScopeTreeNode | null;
|
|
214
|
+
defaultExpandedIds?: string[];
|
|
215
|
+
onSectionSelect?: (nodeId: string, sectionId: string) => void;
|
|
216
|
+
onNodeOptionsClick?: (nodeId: string) => void;
|
|
217
|
+
onAddChild?: (parentId: string, childType: 'SCOPE' | 'SUBSCOPE', parentName?: string) => void;
|
|
218
|
+
onRenameChild?: (scopeId: string, initialName: string) => void;
|
|
219
|
+
onDeleteChild?: (scopeId: string, scopeName: string, learningsCount: number) => void;
|
|
220
|
+
searchQuery?: string;
|
|
221
|
+
onSearchCountChange?: (count: number) => void;
|
|
222
|
+
sectionsConfig?: TreeSectionConfig[];
|
|
223
|
+
nodeTypesConfig?: NodeTypeConfig[];
|
|
224
|
+
selectedRuleSetId?: string | null;
|
|
225
|
+
activeSectionId?: string;
|
|
226
|
+
showChildrenCount?: boolean;
|
|
227
|
+
showSectionBadge?: boolean;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface TreeSectionConfig {
|
|
231
|
+
id: string;
|
|
232
|
+
label: string;
|
|
233
|
+
icon: any;
|
|
234
|
+
badgeKey?: keyof NodeMetrics;
|
|
235
|
+
isVisible?: (node: ScopeTreeNode, depth: number) => boolean;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface NodeTypeConfig {
|
|
239
|
+
type: string;
|
|
240
|
+
label: string;
|
|
241
|
+
addChildLabel?: string;
|
|
242
|
+
addChildType?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface ScopeTreeNode {
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
type: 'GLOBAL' | 'SCOPE' | 'SUBSCOPE' | 'Custom';
|
|
249
|
+
metrics: NodeMetrics;
|
|
250
|
+
children: ScopeTreeNode[];
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface NodeMetrics {
|
|
254
|
+
learningsCount: number;
|
|
255
|
+
stationsCount?: number;
|
|
256
|
+
}
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Examples
|
|
262
|
+
|
|
263
|
+
### With search
|
|
264
|
+
|
|
265
|
+
```tsx
|
|
266
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
267
|
+
const [searchCount, setSearchCount] = useState(0);
|
|
268
|
+
|
|
269
|
+
<>
|
|
270
|
+
<input
|
|
271
|
+
value={searchQuery}
|
|
272
|
+
onChange={(e) => setSearchQuery(e.target.value)}
|
|
273
|
+
placeholder="Search scopes..."
|
|
274
|
+
/>
|
|
275
|
+
<span>{searchCount} results</span>
|
|
276
|
+
<TreeSidebar
|
|
277
|
+
data={treeData}
|
|
278
|
+
sectionsConfig={sectionsConfig}
|
|
279
|
+
nodeTypesConfig={nodeTypesConfig}
|
|
280
|
+
searchQuery={searchQuery}
|
|
281
|
+
onSearchCountChange={setSearchCount}
|
|
282
|
+
/>
|
|
283
|
+
</>
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### With only rename and delete (no add)
|
|
287
|
+
|
|
288
|
+
```tsx
|
|
289
|
+
<TreeSidebar
|
|
290
|
+
data={treeData}
|
|
291
|
+
sectionsConfig={sectionsConfig}
|
|
292
|
+
nodeTypesConfig={nodeTypesConfig}
|
|
293
|
+
onRenameChild={(scopeId, name) => handleRename(scopeId, name)}
|
|
294
|
+
onDeleteChild={(scopeId, name, count) => handleDelete(scopeId, name, count)}
|
|
295
|
+
/>
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### With badges hidden
|
|
299
|
+
|
|
300
|
+
```tsx
|
|
301
|
+
<TreeSidebar
|
|
302
|
+
data={treeData}
|
|
303
|
+
sectionsConfig={sectionsConfig}
|
|
304
|
+
nodeTypesConfig={nodeTypesConfig}
|
|
305
|
+
showChildrenCount={false}
|
|
306
|
+
showSectionBadge={false}
|
|
307
|
+
/>
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### With auto-selected node
|
|
311
|
+
|
|
312
|
+
```tsx
|
|
313
|
+
<TreeSidebar
|
|
314
|
+
data={treeData}
|
|
315
|
+
sectionsConfig={sectionsConfig}
|
|
316
|
+
nodeTypesConfig={nodeTypesConfig}
|
|
317
|
+
selectedRuleSetId="scope-1"
|
|
318
|
+
activeSectionId="learnings"
|
|
319
|
+
/>
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
### With multiple sections
|
|
323
|
+
|
|
324
|
+
```tsx
|
|
325
|
+
import { BookOpen, RadioTower } from 'lucide-react';
|
|
326
|
+
|
|
327
|
+
<TreeSidebar
|
|
328
|
+
data={treeData}
|
|
329
|
+
sectionsConfig={[
|
|
330
|
+
{ id: 'learnings', label: 'Learnings', icon: BookOpen, badgeKey: 'learningsCount' },
|
|
331
|
+
{
|
|
332
|
+
id: 'stations',
|
|
333
|
+
label: 'Stations',
|
|
334
|
+
icon: RadioTower,
|
|
335
|
+
badgeKey: 'stationsCount',
|
|
336
|
+
isVisible: (node, depth) => depth > 0, // Only show for non-root nodes
|
|
337
|
+
},
|
|
338
|
+
]}
|
|
339
|
+
nodeTypesConfig={nodeTypesConfig}
|
|
340
|
+
/>
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Notes
|
|
346
|
+
|
|
347
|
+
- `TreeSidebar` is **display-only** — no internal data fetching. All state and data management lives in the consuming app.
|
|
348
|
+
- Action buttons (Add, Rename, Delete) are **conditionally rendered** — only shown when the corresponding handler prop is passed.
|
|
349
|
+
- The `nodeTypesConfig` array maps to tree depth — index `0` applies to the root node, index `1` to its children, and so on. If the tree is deeper than the config array, the last config entry is reused.
|
|
350
|
+
- Delete is automatically **disabled** for nodes that have children, with a tooltip explaining why.
|
|
351
|
+
- The root node auto-expands on load and whenever `data` changes.
|
|
352
|
+
- Search expansion is automatic — all ancestor nodes of matching results are expanded.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var r=function(){return r=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},r.apply(this,arguments)};function t(r,t,e){if(e||2===arguments.length)for(var n,o=0,p=t.length;o<p;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return r.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;export{r as __assign,t as __spreadArray};
|
|
2
|
+
//# sourceMappingURL=_tslib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_tslib.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.__assign=function(){return exports.__assign=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var s in e=arguments[t])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},exports.__assign.apply(this,arguments)},"function"==typeof SuppressedError&&SuppressedError,exports.__spreadArray=function(r,e,t){if(t||2===arguments.length)for(var o,s=0,n=e.length;s<n;s++)!o&&s in e||(o||(o=Array.prototype.slice.call(e,0,s)),o[s]=e[s]);return r.concat(o||Array.prototype.slice.call(e))};
|
|
2
|
+
//# sourceMappingURL=_tslib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_tslib.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("../../styles/ScopeTree.module.css.js");exports.HighlightedText=function(i){var s=i.text,n=i.highlight;if(!n||!n.trim())return r.jsx(r.Fragment,{children:s});var a=new RegExp("(".concat(n,")"),"gi"),l=s.split(a);return r.jsx(r.Fragment,{children:l.map(function(i,s){return a.test(i)?r.jsx("span",e.__assign({className:t.default.highlightText},{children:i}),s):r.jsx("span",{children:i},s)})})};
|
|
2
|
+
//# sourceMappingURL=HighlightedText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightedText.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),r=require("lucide-react"),t=require("../../styles/ScopeTree.module.css.js");exports.TreeAddAction=function(i){var a=i.label,d=i.onAdd;return s.jsxs("button",e.__assign({className:t.default.addAction,onClick:d},{children:[s.jsx("span",e.__assign({className:t.default.addIcon},{children:s.jsx(r.Plus,{size:16,strokeWidth:2.5})})),a]}))};
|
|
2
|
+
//# sourceMappingURL=TreeAddAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeAddAction.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),n=require("react"),i=require("lucide-react"),o=require("../../styles/ScopeTree.module.css.js"),r=require("./TreeTooltip.js");exports.TreeMenu=function(s){var a=s.options,u=void 0===a?[]:a,c=s.buttonClassName,l=void 0===c?"":c,d=s.iconSize,p=void 0===d?16:d,m=n.useState(!1),f=m[0],v=m[1],_=n.useState(!1),g=_[0],j=_[1],b=n.useRef(null),h=n.useRef(null);n.useEffect(function(){var e=function(e){b.current&&!b.current.contains(e.target)&&v(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);return t.jsxs("div",e.__assign({className:o.default.menuContainer,ref:b},{children:[t.jsx("div",{children:t.jsx("button",e.__assign({ref:h,type:"button",className:l||o.default.optionsButton,onClick:function(e){if(e.stopPropagation(),!f&&h.current){var t=h.current.getBoundingClientRect(),n=window.innerHeight-t.bottom,i=40*u.length+20;j(n<i)}v(!f)}},{children:t.jsx(i.MoreVertical,{size:p,"aria-hidden":"true"})}))}),f&&t.jsx("div",e.__assign({className:"".concat(o.default.menuDropdown," ").concat(g?o.default.menuDropdownTop:o.default.menuDropdownBottom),role:"menu","aria-orientation":"vertical"},{children:u.map(function(n,i){var s=t.jsxs("button",e.__assign({disabled:n.disabled,onClick:function(e){var t;(e.stopPropagation(),n.disabled)||((t=n.onClick)&&"function"==typeof t&&t(),v(!1))},className:"".concat(o.default.menuOption," ").concat(n.disabled?o.default.menuOptionDisabled:""," ").concat(n.className||""),role:"menuitem"},{children:[n.icon&&t.jsx(n.icon,{size:16,className:o.default.menuOptionIcon}),n.label]}),"btn-".concat(i));return n.tooltip&&n.disabled?t.jsx("div",e.__assign({className:o.default.tooltipWrapper,onClick:function(e){return e.stopPropagation()}},{children:t.jsx(r.TreeTooltip,e.__assign({content:n.tooltip,placement:"right"},{children:t.jsx("div",e.__assign({style:{width:"100%"}},{children:s}))}))}),i):t.jsx("div",e.__assign({style:{width:"100%"}},{children:s}),i)})}))]}))};
|
|
2
|
+
//# sourceMappingURL=TreeMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeMenu.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),i=require("lucide-react"),d=require("../../styles/ScopeTree.module.css.js"),o=require("./TreeNodeHeader.js"),r=require("./TreeSectionItem.js"),l=require("./TreeAddAction.js"),t=function(a){var s,c,u=a.node,h=a.depth,v=void 0===h?0:h,p=a.nodePath,C=void 0===p?[]:p,g=a.expandedNodeIds,f=a.activeSelection,m=a.onToggleExpand,b=a.onSectionSelect,y=a.onNodeOptionsClick,T=a.onAddChild,_=a.onRenameChild,x=a.onDeleteChild,A=a.searchQuery,j=a.sectionsConfig,S=void 0===j?[]:j,N=a.nodeTypesConfig,P=void 0===N?[]:N,k=a.showChildrenCount,q=void 0===k||k,w=a.showSectionBadge,I=void 0===w||w,E=e.__spreadArray(e.__spreadArray([],C,!0),[u.id],!1),L=g.has(u.id),O=!!f&&f.nodePath[f.nodePath.length-1]===u.id,D=!!f&&(f.nodePath.includes(u.id)&&!O),Q=function(e,n){if(!n)return!0;var i=n.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(function(e){return Q(e,n)})};if(!Q(u,A||""))return null;var R=v>=P.length-1?P[P.length-1]:P[v],B=!!(null==R?void 0:R.addChildType);return n.jsxs("div",e.__assign({className:d.default.nodeWrapper,style:{"--tree-depth":v}},{children:[n.jsx(o.TreeNodeHeader,{name:u.name,isExpanded:L,isSelected:O,isAncestor:D,childrenCount:q?null===(s=u.children)||void 0===s?void 0:s.length:void 0,onToggleExpand:function(e){e.stopPropagation(),m(u.id)},onClick:function(){return m(u.id)},searchQuery:A,menuOptions:e.__spreadArray(e.__spreadArray(e.__spreadArray([],B&&T?[{label:R.addChildLabel||"Add Child",icon:i.Plus,onClick:function(){return null==T?void 0:T(u.id,R.addChildType,u.name)}}]:[],!0),_?[{label:"Rename",icon:i.Pencil,onClick:function(){return null==_?void 0:_(u.id,u.name)}}]:[],!0),x?[{label:"Delete ".concat((null==R?void 0:R.label)||"Node"),icon:i.Trash2,onClick:function(){var e;return null==x?void 0:x(u.id,u.name,(null===(e=u.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:u.children&&u.children.length>0,tooltip:"This scope cannot be deleted because other scopes inherit learnings from it.",className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[],!0)}),L&&n.jsxs("div",e.__assign({className:d.default.childrenWrapper},{children:[S.filter(function(e){return!e.isVisible||e.isVisible(u,v)}).map(function(e){var i;return n.jsx(r.TreeSectionItem,{icon:e.icon,label:e.label,badgeCount:I&&e.badgeKey?null===(i=u.metrics)||void 0===i?void 0:i[e.badgeKey]:void 0,isActive:O&&(null==f?void 0:f.sectionId)===e.id,onClick:function(){return b(E,e.id)}},"".concat(u.id,"-").concat(e.id))}),null===(c=u.children)||void 0===c?void 0:c.map(function(e){return n.jsx(t,{node:e,depth:v+1,nodePath:E,expandedNodeIds:g,activeSelection:f,onToggleExpand:m,onSectionSelect:b,onNodeOptionsClick:y,onAddChild:T,onRenameChild:_,onDeleteChild:x,searchQuery:A,sectionsConfig:S,nodeTypesConfig:P,showChildrenCount:q,showSectionBadge:I},e.id)}),B&&T&&n.jsx(l.TreeAddAction,{label:R.addChildLabel||"Add Child",onAdd:function(){return null==T?void 0:T(u.id,R.addChildType,u.name)}})]}))]}))};exports.TreeNode=t;
|
|
2
|
+
//# sourceMappingURL=TreeNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),t=require("lucide-react"),s=require("../../styles/ScopeTree.module.css.js"),o=require("./TreeMenu.js"),r=require("./HighlightedText.js");exports.TreeNodeHeader=function(a){var i=a.name,d=a.isExpanded,c=a.isSelected,l=a.isAncestor,u=a.isExpandable,h=void 0===u||u,x=a.onToggleExpand,f=a.onClick,g=a.menuOptions,p=a.searchQuery,j=a.childrenCount,v=c?s.default.nodeHeaderSelected:l?s.default.nodeHeaderAncestor:"",_=c||l;return n.jsxs("div",e.__assign({className:"".concat(s.default.nodeHeader," ").concat(v),onClick:f,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}},{children:[n.jsx("div",e.__assign({className:"".concat(s.default.chevron," ").concat(d?s.default.chevronExpanded:""," ").concat(h?"":s.default.chevronHidden),onClick:function(e){h&&x(e)},role:"button",tabIndex:h?0:-1},{children:n.jsx(t.ChevronDown,{size:16,strokeWidth:_?2.5:2,color:_?"#2563EB":"#64748B"})})),n.jsx("div",e.__assign({className:s.default.folderIcon},{children:n.jsx(t.FolderOpen,{size:18,strokeWidth:_?2.5:2,color:_?"currentColor":"#64748B"})})),n.jsx("span",e.__assign({className:s.default.nodeName},{children:n.jsx(r.HighlightedText,{text:i,highlight:p})})),void 0!==j&&j>0&&n.jsx("span",e.__assign({className:"".concat(s.default.badge," ").concat(c?s.default.badgeActive:"")},{children:j})),g&&g.length>0&&n.jsx("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:n.jsx(o.TreeMenu,{options:g,buttonClassName:s.default.optionsButton,iconSize:16})}))]}))};
|
|
2
|
+
//# sourceMappingURL=TreeNodeHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeNodeHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),t=require("../../styles/ScopeTree.module.css.js");exports.TreeSectionItem=function(a){var i=a.icon,l=a.label,n=a.badgeCount,c=a.isActive,r=void 0!==c&&c,o=a.onClick;return s.jsxs("div",e.__assign({className:"".concat(t.default.pill," ").concat(r?t.default.pillActive:""),onClick:o,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o())}},{children:[s.jsx("div",e.__assign({className:t.default.pillIcon},{children:s.jsx(i,{size:18,strokeWidth:r?2.5:2})})),s.jsx("span",e.__assign({className:t.default.pillLabel},{children:l})),"number"==typeof n&&s.jsx("span",e.__assign({className:"".concat(t.default.badge," ").concat(r?t.default.badgeActive:"")},{children:n}))]}))};
|
|
2
|
+
//# sourceMappingURL=TreeSectionItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeSectionItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),t=require("react"),o=require("../../styles/ScopeTree.module.css.js"),i=require("../../utils/treeUtils.js"),r=require("./TreeNode.js");exports.TreeSidebar=function(d){var c=d.data,u=d.defaultExpandedIds,a=void 0===u?[]:u,s=d.onSectionSelect,l=d.onNodeOptionsClick,f=d.onAddChild,h=d.onRenameChild,v=d.onDeleteChild,C=d.searchQuery,S=void 0===C?"":C,w=d.onSearchCountChange,p=d.sectionsConfig,g=d.nodeTypesConfig,E=d.selectedRuleSetId,j=d.activeSectionId,x=d.showChildrenCount,y=d.showSectionBadge,_=void 0===y||y,m=t.useState(new Set(c?e.__spreadArray([c.id],a,!0):a)),I=m[0],N=m[1],T=t.useState(null),q=T[0],L=T[1];t.useEffect(function(){c&&N(function(e){if(!e.has(c.id)){var n=new Set(e);return n.add(c.id),n}return e})},[null==c?void 0:c.id]),t.useEffect(function(){if(c&&E&&j){var e=i.findNodePathById(c,E);e&&(L({nodePath:e,sectionId:j}),N(function(n){var t=new Set(n);return e.forEach(function(e){return t.add(e)}),t}))}},[c,E,j]),t.useEffect(function(){if(S&&c){var e=new Set,n=function(t){var o=S.toLowerCase(),i=t.name.toLowerCase().includes(o),r=!1;t.children&&t.children.forEach(function(e){n(e)&&(r=!0)});var d=i||r;return d&&r&&e.add(t.id),d};n(c),N(e)}},[S,c]);var P=function(e,n){if(!n)return 0;var t=0,o=n.toLowerCase();return e.name.toLowerCase().includes(o)&&t++,e.children&&e.children.forEach(function(e){t+=P(e,n)}),t};t.useEffect(function(){w&&c&&w(P(c,S))},[S,c,w]);return c?n.jsx("div",e.__assign({className:o.default.treeContainer},{children:n.jsx(r.TreeNode,{node:c,expandedNodeIds:I,activeSelection:q,onToggleExpand:function(e){N(function(n){var t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t})},onSectionSelect:function(e,n){L({nodePath:e,sectionId:n}),s&&s(e[e.length-1],n)},onNodeOptionsClick:function(e){l&&l(e)},onAddChild:f?function(e,n,t){f&&f(e,n,t)}:void 0,onRenameChild:h?function(e,n){h&&h(e,n)}:void 0,onDeleteChild:v?function(e,n,t){v&&v(e,n,t)}:void 0,searchQuery:S,sectionsConfig:p,nodeTypesConfig:g,showChildrenCount:x,showSectionBadge:_})})):null};
|
|
2
|
+
//# sourceMappingURL=TreeSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeSidebar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),r=require("../../node_modules/@radix-ui/react-tooltip/dist/index.mjs.js"),s=require("../../styles/ScopeTree.module.css.js");exports.TreeTooltip=function(o){var i=o.content,a=o.children,l=o.placement,n=void 0===l?"top":l,d=o.withArrow,c=void 0!==d&&d;return i?e.jsx(r.Provider,{children:e.jsxs(r.Root,t.__assign({delayDuration:100},{children:[e.jsx(r.Trigger,t.__assign({asChild:!0},{children:a})),e.jsx(r.Portal,{children:e.jsxs(r.Content,t.__assign({side:n,sideOffset:4,className:s.default.tooltipContent},{children:[c&&e.jsx("svg",t.__assign({width:8,height:8,viewBox:"0 0 8 8",className:s.default.tooltipArrow,style:{top:{bottom:0,left:"50%",transform:"translate(-50%, 100%)"},bottom:{top:0,left:"50%",transform:"translate(-50%, -100%) rotate(180deg)"},left:{right:0,top:"50%",transform:"translate(100%, -50%) rotate(-90deg)"},right:{left:0,top:"50%",transform:"translate(-100%, -50%) rotate(90deg)"}}[n]},{children:e.jsx("polygon",{points:"0,0 8,0 4,8"})})),i]}))})]}))}):a};
|
|
2
|
+
//# sourceMappingURL=TreeTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeTooltip.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/dist/floating-ui.utils.mjs.js");function t(t,n,i){let{reference:a,floating:l}=t;const r=e.getSideAxis(n),o=e.getAlignmentAxis(n),s=e.getAxisLength(o),c=e.getSide(n),f="y"===r,m=a.x+a.width/2-l.width/2,g=a.y+a.height/2-l.height/2,d=a[s]/2-l[s]/2;let u;switch(c){case"top":u={x:m,y:a.y-l.height};break;case"bottom":u={x:m,y:a.y+a.height};break;case"right":u={x:a.x+a.width,y:g};break;case"left":u={x:a.x-l.width,y:g};break;default:u={x:a.x,y:a.y}}switch(e.getAlignment(n)){case"start":u[o]-=d*(i&&f?-1:1);break;case"end":u[o]+=d*(i&&f?-1:1)}return u}async function n(t,n){var i;void 0===n&&(n={});const{x:a,y:l,platform:r,rects:o,elements:s,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:u=0}=e.evaluate(n,t),p=e.getPaddingObject(u),x=s[d?"floating"===g?"reference":"floating":g],h=e.rectToClientRect(await r.getClippingRect({element:null==(i=await(null==r.isElement?void 0:r.isElement(x)))||i?x:x.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:m,strategy:c})),y="floating"===g?{x:a,y:l,width:o.floating.width,height:o.floating.height}:o.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},A=e.rectToClientRect(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:c}):y);return{top:(h.top-A.top+p.top)/v.y,bottom:(A.bottom-h.bottom+p.bottom)/v.y,left:(h.left-A.left+p.left)/v.x,right:(A.right-h.right+p.right)/v.x}}function i(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function a(t){return e.sides.some(e=>t[e]>=0)}function l(t){const n=e.min(...t.map(e=>e.left)),i=e.min(...t.map(e=>e.top));return{x:n,y:i,width:e.max(...t.map(e=>e.right))-n,height:e.max(...t.map(e=>e.bottom))-i}}const r=new Set(["left","top"]);exports.rectToClientRect=e.rectToClientRect,exports.arrow=t=>({name:"arrow",options:t,async fn(n){const{x:i,y:a,placement:l,rects:r,platform:o,elements:s,middlewareData:c}=n,{element:f,padding:m=0}=e.evaluate(t,n)||{};if(null==f)return{};const g=e.getPaddingObject(m),d={x:i,y:a},u=e.getAlignmentAxis(l),p=e.getAxisLength(u),x=await o.getDimensions(f),h="y"===u,y=h?"top":"left",w=h?"bottom":"right",v=h?"clientHeight":"clientWidth",A=r.reference[p]+r.reference[u]-d[u]-r.floating[p],b=d[u]-r.reference[u],R=await(null==o.getOffsetParent?void 0:o.getOffsetParent(f));let O=R?R[v]:0;O&&await(null==o.isElement?void 0:o.isElement(R))||(O=s.floating[v]||r.floating[p]);const S=A/2-b/2,P=O/2-x[p]/2-1,T=e.min(g[y],P),D=e.min(g[w],P),E=T,C=O-x[p]-D,L=O/2-x[p]/2+S,k=e.clamp(E,L,C),j=!c.arrow&&null!=e.getAlignment(l)&&L!==k&&r.reference[p]/2-(L<E?T:D)-x[p]/2<0,H=j?L<E?L-E:L-C:0;return{[u]:d[u]+H,data:{[u]:k,centerOffset:L-k-H,...j&&{alignmentOffset:H}},reset:j}}}),exports.autoPlacement=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var i,a,l;const{rects:r,middlewareData:o,placement:s,platform:c,elements:f}=n,{crossAxis:m=!1,alignment:g,allowedPlacements:d=e.placements,autoAlignment:u=!0,...p}=e.evaluate(t,n),x=void 0!==g||d===e.placements?function(t,n,i){return(t?[...i.filter(n=>e.getAlignment(n)===t),...i.filter(n=>e.getAlignment(n)!==t)]:i.filter(t=>e.getSide(t)===t)).filter(i=>!t||e.getAlignment(i)===t||!!n&&e.getOppositeAlignmentPlacement(i)!==i)}(g||null,u,d):d,h=await c.detectOverflow(n,p),y=(null==(i=o.autoPlacement)?void 0:i.index)||0,w=x[y];if(null==w)return{};const v=e.getAlignmentSides(w,r,await(null==c.isRTL?void 0:c.isRTL(f.floating)));if(s!==w)return{reset:{placement:x[0]}};const A=[h[e.getSide(w)],h[v[0]],h[v[1]]],b=[...(null==(a=o.autoPlacement)?void 0:a.overflows)||[],{placement:w,overflows:A}],R=x[y+1];if(R)return{data:{index:y+1,overflows:b},reset:{placement:R}};const O=b.map(t=>{const n=e.getAlignment(t.placement);return[t.placement,n&&m?t.overflows.slice(0,2).reduce((e,t)=>e+t,0):t.overflows[0],t.overflows]}).sort((e,t)=>e[1]-t[1]),S=(null==(l=O.filter(t=>t[2].slice(0,e.getAlignment(t[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||O[0][0];return S!==s?{data:{index:y+1,overflows:b},reset:{placement:S}}:{}}}},exports.computePosition=async(e,i,a)=>{const{placement:l="bottom",strategy:r="absolute",middleware:o=[],platform:s}=a,c=s.detectOverflow?s:{...s,detectOverflow:n},f=await(null==s.isRTL?void 0:s.isRTL(i));let m=await s.getElementRects({reference:e,floating:i,strategy:r}),{x:g,y:d}=t(m,l,f),u=l,p=0;const x={};for(let n=0;n<o.length;n++){const a=o[n];if(!a)continue;const{name:h,fn:y}=a,{x:w,y:v,data:A,reset:b}=await y({x:g,y:d,initialPlacement:l,placement:u,strategy:r,middlewareData:x,rects:m,platform:c,elements:{reference:e,floating:i}});g=null!=w?w:g,d=null!=v?v:d,x[h]={...x[h],...A},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(u=b.placement),b.rects&&(m=!0===b.rects?await s.getElementRects({reference:e,floating:i,strategy:r}):b.rects),({x:g,y:d}=t(m,u,f))),n=-1)}return{x:g,y:d,placement:u,strategy:r,middlewareData:x}},exports.detectOverflow=n,exports.flip=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var i,a;const{placement:l,middlewareData:r,rects:o,initialPlacement:s,platform:c,elements:f}=n,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:d,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:x=!0,...h}=e.evaluate(t,n);if(null!=(i=r.arrow)&&i.alignmentOffset)return{};const y=e.getSide(l),w=e.getSideAxis(s),v=e.getSide(s)===s,A=await(null==c.isRTL?void 0:c.isRTL(f.floating)),b=d||(v||!x?[e.getOppositePlacement(s)]:e.getExpandedPlacements(s)),R="none"!==p;!d&&R&&b.push(...e.getOppositeAxisPlacements(s,x,p,A));const O=[s,...b],S=await c.detectOverflow(n,h),P=[];let T=(null==(a=r.flip)?void 0:a.overflows)||[];if(m&&P.push(S[y]),g){const t=e.getAlignmentSides(l,o,A);P.push(S[t[0]],S[t[1]])}if(T=[...T,{placement:l,overflows:P}],!P.every(e=>e<=0)){var D,E;const t=((null==(D=r.flip)?void 0:D.index)||0)+1,n=O[t];if(n){if(!("alignment"===g&&w!==e.getSideAxis(n))||T.every(t=>e.getSideAxis(t.placement)!==w||t.overflows[0]>0))return{data:{index:t,overflows:T},reset:{placement:n}}}let i=null==(E=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!i)switch(u){case"bestFit":{var C;const t=null==(C=T.filter(t=>{if(R){const n=e.getSideAxis(t.placement);return n===w||"y"===n}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];t&&(i=t);break}case"initialPlacement":i=s}if(l!==i)return{reset:{placement:i}}}return{}}}},exports.hide=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:l,platform:r}=n,{strategy:o="referenceHidden",...s}=e.evaluate(t,n);switch(o){case"referenceHidden":{const e=i(await r.detectOverflow(n,{...s,elementContext:"reference"}),l.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:a(e)}}}case"escaped":{const e=i(await r.detectOverflow(n,{...s,altBoundary:!0}),l.floating);return{data:{escapedOffsets:e,escaped:a(e)}}}default:return{}}}}},exports.inline=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(n){const{placement:i,elements:a,rects:r,platform:o,strategy:s}=n,{padding:c=2,x:f,y:m}=e.evaluate(t,n),g=Array.from(await(null==o.getClientRects?void 0:o.getClientRects(a.reference))||[]),d=function(t){const n=t.slice().sort((e,t)=>e.y-t.y),i=[];let a=null;for(let e=0;e<n.length;e++){const t=n[e];!a||t.y-a.y>a.height/2?i.push([t]):i[i.length-1].push(t),a=t}return i.map(t=>e.rectToClientRect(l(t)))}(g),u=e.rectToClientRect(l(g)),p=e.getPaddingObject(c);const x=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=f&&null!=m)return d.find(e=>f>e.left-p.left&&f<e.right+p.right&&m>e.top-p.top&&m<e.bottom+p.bottom)||u;if(d.length>=2){if("y"===e.getSideAxis(i)){const t=d[0],n=d[d.length-1],a="top"===e.getSide(i),l=t.top,r=n.bottom,o=a?t.left:n.left,s=a?t.right:n.right;return{top:l,bottom:r,left:o,right:s,width:s-o,height:r-l,x:o,y:l}}const t="left"===e.getSide(i),n=e.max(...d.map(e=>e.right)),a=e.min(...d.map(e=>e.left)),l=d.filter(e=>t?e.left===a:e.right===n),r=l[0].top,o=l[l.length-1].bottom;return{top:r,bottom:o,left:a,right:n,width:n-a,height:o-r,x:a,y:r}}return u}},floating:a.floating,strategy:s});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},exports.limitShift=function(t){return void 0===t&&(t={}),{options:t,fn(n){const{x:i,y:a,placement:l,rects:o,middlewareData:s}=n,{offset:c=0,mainAxis:f=!0,crossAxis:m=!0}=e.evaluate(t,n),g={x:i,y:a},d=e.getSideAxis(l),u=e.getOppositeAxis(d);let p=g[u],x=g[d];const h=e.evaluate(c,n),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(f){const e="y"===u?"height":"width",t=o.reference[u]-o.floating[e]+y.mainAxis,n=o.reference[u]+o.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(m){var w,v;const t="y"===u?"width":"height",n=r.has(e.getSide(l)),i=o.reference[d]-o.floating[t]+(n&&(null==(w=s.offset)?void 0:w[d])||0)+(n?0:y.crossAxis),a=o.reference[d]+o.reference[t]+(n?0:(null==(v=s.offset)?void 0:v[d])||0)-(n?y.crossAxis:0);x<i?x=i:x>a&&(x=a)}return{[u]:p,[d]:x}}}},exports.offset=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var i,a;const{x:l,y:o,placement:s,middlewareData:c}=n,f=await async function(t,n){const{placement:i,platform:a,elements:l}=t,o=await(null==a.isRTL?void 0:a.isRTL(l.floating)),s=e.getSide(i),c=e.getAlignment(i),f="y"===e.getSideAxis(i),m=r.has(s)?-1:1,g=o&&f?-1:1,d=e.evaluate(n,t);let{mainAxis:u,crossAxis:p,alignmentAxis:x}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&"number"==typeof x&&(p="end"===c?-1*x:x),f?{x:p*g,y:u*m}:{x:u*m,y:p*g}}(n,t);return s===(null==(i=c.offset)?void 0:i.placement)&&null!=(a=c.arrow)&&a.alignmentOffset?{}:{x:l+f.x,y:o+f.y,data:{...f,placement:s}}}}},exports.shift=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:i,y:a,placement:l,platform:r}=n,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=e.evaluate(t,n),m={x:i,y:a},g=await r.detectOverflow(n,f),d=e.getSideAxis(e.getSide(l)),u=e.getOppositeAxis(d);let p=m[u],x=m[d];if(o){const t="y"===u?"bottom":"right",n=p+g["y"===u?"top":"left"],i=p-g[t];p=e.clamp(n,p,i)}if(s){const t="y"===d?"bottom":"right",n=x+g["y"===d?"top":"left"],i=x-g[t];x=e.clamp(n,x,i)}const h=c.fn({...n,[u]:p,[d]:x});return{...h,data:{x:h.x-i,y:h.y-a,enabled:{[u]:o,[d]:s}}}}}},exports.size=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(n){var i,a;const{placement:l,rects:r,platform:o,elements:s}=n,{apply:c=()=>{},...f}=e.evaluate(t,n),m=await o.detectOverflow(n,f),g=e.getSide(l),d=e.getAlignment(l),u="y"===e.getSideAxis(l),{width:p,height:x}=r.floating;let h,y;"top"===g||"bottom"===g?(h=g,y=d===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=g,h="end"===d?"top":"bottom");const w=x-m.top-m.bottom,v=p-m.left-m.right,A=e.min(x-m[h],w),b=e.min(p-m[y],v),R=!n.middlewareData.shift;let O=A,S=b;if(null!=(i=n.middlewareData.shift)&&i.enabled.x&&(S=v),null!=(a=n.middlewareData.shift)&&a.enabled.y&&(O=w),R&&!d){const t=e.max(m.left,0),n=e.max(m.right,0),i=e.max(m.top,0),a=e.max(m.bottom,0);u?S=p-2*(0!==t||0!==n?t+n:e.max(m.left,m.right)):O=x-2*(0!==i||0!==a?i+a:e.max(m.top,m.bottom))}await c({...n,availableWidth:S,availableHeight:O});const P=await o.getDimensions(s.floating);return p!==P.width||x!==P.height?{reset:{rects:!0}}:{}}}};
|
|
2
|
+
//# sourceMappingURL=floating-ui.core.mjs.js.map
|