@terra-symposium/docs 0.1.17 → 0.1.72
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 +26 -7
- package/bin/terra-docs.mjs +187 -0
- package/lib-dist/assets/fonts/AUTHENTICSans-130.woff +0 -0
- package/lib-dist/assets/fonts/AUTHENTICSans-130.woff2 +0 -0
- package/lib-dist/assets/fonts/AUTHENTICSans-150.woff +0 -0
- package/lib-dist/assets/fonts/AUTHENTICSans-150.woff2 +0 -0
- package/lib-dist/assets/fonts/AUTHENTICSans-90.woff +0 -0
- package/lib-dist/assets/fonts/AUTHENTICSans-90.woff2 +0 -0
- package/lib-dist/assets/fonts/Avara-Bold.woff +0 -0
- package/lib-dist/assets/fonts/Avara-BoldItalic.woff +0 -0
- package/lib-dist/assets/fonts/InterVariable-Italic-latin-20260728.woff2 +0 -0
- package/lib-dist/assets/fonts/InterVariable-latin-20260728.woff2 +0 -0
- package/lib-dist/assets/fonts/README.md +7 -0
- package/lib-dist/assets/fonts/licenses/Inter-OFL-1.1.txt +92 -0
- package/lib-dist/assets/fonts/licenses/OFL-1.1.txt +93 -0
- package/lib-dist/{Docs.d.ts → components/Docs.d.ts} +1 -1
- package/lib-dist/components/Docs.d.ts.map +1 -0
- package/lib-dist/components/Docs.js +9 -0
- package/lib-dist/components/Docs.js.map +1 -0
- package/lib-dist/{LocalDocsWorkspace.d.ts → components/LocalDocsWorkspace.d.ts} +9 -2
- package/lib-dist/components/LocalDocsWorkspace.d.ts.map +1 -0
- package/lib-dist/{LocalDocsWorkspace.js → components/LocalDocsWorkspace.js} +83 -24
- package/lib-dist/components/LocalDocsWorkspace.js.map +1 -0
- package/lib-dist/components/NotFound.d.ts +8 -0
- package/lib-dist/components/NotFound.d.ts.map +1 -0
- package/lib-dist/components/NotFound.js +6 -0
- package/lib-dist/components/NotFound.js.map +1 -0
- package/lib-dist/components/SiteLayout.d.ts +25 -0
- package/lib-dist/components/SiteLayout.d.ts.map +1 -0
- package/lib-dist/components/SiteLayout.js +12 -0
- package/lib-dist/components/SiteLayout.js.map +1 -0
- package/lib-dist/{StaticWorkspace.d.ts → components/StaticWorkspace.d.ts} +7 -3
- package/lib-dist/components/StaticWorkspace.d.ts.map +1 -0
- package/lib-dist/{StaticWorkspace.js → components/StaticWorkspace.js} +106 -34
- package/lib-dist/components/StaticWorkspace.js.map +1 -0
- package/lib-dist/components/StrictLocalWorkspaceHarness.d.ts +10 -0
- package/lib-dist/components/StrictLocalWorkspaceHarness.d.ts.map +1 -0
- package/lib-dist/components/StrictLocalWorkspaceHarness.js +12 -0
- package/lib-dist/components/StrictLocalWorkspaceHarness.js.map +1 -0
- package/lib-dist/components/blocks.d.ts.map +1 -0
- package/lib-dist/{blocks.js → components/blocks.js} +88 -13
- package/lib-dist/components/blocks.js.map +1 -0
- package/lib-dist/{navigation.d.ts → components/navigation.d.ts} +3 -1
- package/lib-dist/components/navigation.d.ts.map +1 -0
- package/lib-dist/components/navigation.js.map +1 -0
- package/lib-dist/{terra → components/terra}/Workspace.d.ts +1 -1
- package/lib-dist/components/terra/Workspace.d.ts.map +1 -0
- package/lib-dist/components/terra/Workspace.js +190 -0
- package/lib-dist/components/terra/Workspace.js.map +1 -0
- package/lib-dist/components/terra/editor/TerraContentEditor.d.ts +16 -0
- package/lib-dist/components/terra/editor/TerraContentEditor.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/TerraContentEditor.js +358 -0
- package/lib-dist/components/terra/editor/TerraContentEditor.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/_blocks.d.ts +3 -4
- package/lib-dist/components/terra/editor/_blocks.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/_blocks.js +120 -0
- package/lib-dist/components/terra/editor/_blocks.js.map +1 -0
- package/lib-dist/components/terra/editor/docs/BlockContext.d.ts +7 -0
- package/lib-dist/components/terra/editor/docs/BlockContext.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/BlockContext.js +60 -0
- package/lib-dist/components/terra/editor/docs/BlockContext.js.map +1 -0
- package/lib-dist/components/terra/editor/docs/DocsAttachmentPicker.d.ts +12 -0
- package/lib-dist/components/terra/editor/docs/DocsAttachmentPicker.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/DocsAttachmentPicker.js +66 -0
- package/lib-dist/components/terra/editor/docs/DocsAttachmentPicker.js.map +1 -0
- package/lib-dist/components/terra/editor/docs/TerraToolbar.d.ts +12 -0
- package/lib-dist/components/terra/editor/docs/TerraToolbar.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/TerraToolbar.js +169 -0
- package/lib-dist/components/terra/editor/docs/TerraToolbar.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Callout.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_Callout.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Callout.js +11 -7
- package/lib-dist/components/terra/editor/docs/_Callout.js.map +1 -0
- package/lib-dist/components/terra/editor/docs/_CodeBlock.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_CodeBlock.js +111 -46
- package/lib-dist/components/terra/editor/docs/_CodeBlock.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_DocsCode.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_DocsCode.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_DocsCode.js +47 -14
- package/lib-dist/components/terra/editor/docs/_DocsCode.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_DocsImage.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_DocsImage.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/_DocsImage.js +62 -0
- package/lib-dist/components/terra/editor/docs/_DocsImage.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Embed.d.ts +3 -1
- package/lib-dist/components/terra/editor/docs/_Embed.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/_Embed.js +73 -0
- package/lib-dist/components/terra/editor/docs/_Embed.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Math.d.ts +2 -2
- package/lib-dist/components/terra/editor/docs/_Math.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Math.js +29 -17
- package/lib-dist/components/terra/editor/docs/_Math.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Nodes.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_Nodes.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/_Nodes.js +62 -0
- package/lib-dist/components/terra/editor/docs/_Nodes.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Raw.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_Raw.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Raw.js +8 -3
- package/lib-dist/components/terra/editor/docs/_Raw.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Table.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_Table.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/_Table.js +99 -0
- package/lib-dist/components/terra/editor/docs/_Table.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Tabs.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_Tabs.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_Tabs.js +36 -15
- package/lib-dist/components/terra/editor/docs/_Tabs.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_TsDocs.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_TsDocs.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_TsDocs.js +16 -14
- package/lib-dist/components/terra/editor/docs/_TsDocs.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_math_inline.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/_math_inline.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/_math_inline.js +2 -2
- package/lib-dist/components/terra/editor/docs/_math_inline.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/heading.d.ts +1 -1
- package/lib-dist/components/terra/editor/docs/heading.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/docs/heading.js +8 -5
- package/lib-dist/components/terra/editor/docs/heading.js.map +1 -0
- package/lib-dist/components/terra/editor/docs/index.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/docs/index.js.map +1 -0
- package/lib-dist/components/terra/editor/terra-content.styles.d.ts +3 -0
- package/lib-dist/components/terra/editor/terra-content.styles.d.ts.map +1 -0
- package/lib-dist/components/terra/editor/terra-content.styles.js +3 -0
- package/lib-dist/components/terra/editor/terra-content.styles.js.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/types.d.ts +2 -2
- package/lib-dist/components/terra/editor/types.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/editor/types.js +1 -1
- package/lib-dist/components/terra/editor/types.js.map +1 -0
- package/lib-dist/{terra → components/terra}/flow/Nodes.d.ts +2 -3
- package/lib-dist/components/terra/flow/Nodes.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/flow/Nodes.js +213 -106
- package/lib-dist/components/terra/flow/Nodes.js.map +1 -0
- package/lib-dist/{terra → components/terra}/flow/_chrome.d.ts +7 -9
- package/lib-dist/components/terra/flow/_chrome.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/flow/_chrome.js +329 -118
- package/lib-dist/components/terra/flow/_chrome.js.map +1 -0
- package/lib-dist/components/terra/flow/menuContext.d.ts.map +1 -0
- package/lib-dist/components/terra/flow/menuContext.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_attachments.d.ts +1 -1
- package/lib-dist/components/terra/pages/docs/_attachments.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_attachments.js +375 -131
- package/lib-dist/components/terra/pages/docs/_attachments.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/_blocks.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_blocks.js +42 -31
- package/lib-dist/components/terra/pages/docs/_blocks.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_editable.d.ts +2 -3
- package/lib-dist/components/terra/pages/docs/_editable.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_editable.js +82 -44
- package/lib-dist/components/terra/pages/docs/_editable.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_export-dialog.d.ts +1 -1
- package/lib-dist/components/terra/pages/docs/_export-dialog.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_export-dialog.js +17 -17
- package/lib-dist/components/terra/pages/docs/_export-dialog.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/_icons.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/_icons.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_main.d.ts +10 -7
- package/lib-dist/components/terra/pages/docs/_main.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/_main.js +710 -0
- package/lib-dist/components/terra/pages/docs/_main.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/_manage-attachments-dialog.d.ts +10 -0
- package/lib-dist/components/terra/pages/docs/_manage-attachments-dialog.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/_manage-attachments-dialog.js +597 -0
- package/lib-dist/components/terra/pages/docs/_manage-attachments-dialog.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_sidebar.d.ts +3 -12
- package/lib-dist/components/terra/pages/docs/_sidebar.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/_sidebar.js +1437 -0
- package/lib-dist/components/terra/pages/docs/_sidebar.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/_toc.d.ts +4 -0
- package/lib-dist/components/terra/pages/docs/_toc.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/_toc.js +212 -0
- package/lib-dist/components/terra/pages/docs/_toc.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/_toolbar-find-replace.d.ts +15 -0
- package/lib-dist/components/terra/pages/docs/_toolbar-find-replace.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/_toolbar-find-replace.js +207 -0
- package/lib-dist/components/terra/pages/docs/_toolbar-find-replace.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_toolbar.d.ts +3 -5
- package/lib-dist/components/terra/pages/docs/_toolbar.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_toolbar.js +318 -350
- package/lib-dist/components/terra/pages/docs/_toolbar.js.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_tree.d.ts +1 -4
- package/lib-dist/components/terra/pages/docs/_tree.d.ts.map +1 -0
- package/lib-dist/{terra → components/terra}/pages/docs/_tree.js +219 -264
- package/lib-dist/components/terra/pages/docs/_tree.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/use-block-nav.d.ts +5 -0
- package/lib-dist/components/terra/pages/docs/use-block-nav.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/use-block-nav.js +1306 -0
- package/lib-dist/components/terra/pages/docs/use-block-nav.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/use-media-paste.d.ts +5 -0
- package/lib-dist/components/terra/pages/docs/use-media-paste.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/use-media-paste.js +391 -0
- package/lib-dist/components/terra/pages/docs/use-media-paste.js.map +1 -0
- package/lib-dist/components/terra/pages/docs/use-render-tripwire.d.ts +2 -0
- package/lib-dist/components/terra/pages/docs/use-render-tripwire.d.ts.map +1 -0
- package/lib-dist/components/terra/pages/docs/use-render-tripwire.js +25 -0
- package/lib-dist/components/terra/pages/docs/use-render-tripwire.js.map +1 -0
- package/lib-dist/{terra/runtime → components/terra}/ui.d.ts +2 -5
- package/lib-dist/components/terra/ui.d.ts.map +1 -0
- package/lib-dist/components/terra/ui.js +20 -0
- package/lib-dist/components/terra/ui.js.map +1 -0
- package/lib-dist/components/workspace-demo-fixture.d.ts +35 -0
- package/lib-dist/components/workspace-demo-fixture.d.ts.map +1 -0
- package/lib-dist/components/workspace-demo-fixture.js +820 -0
- package/lib-dist/components/workspace-demo-fixture.js.map +1 -0
- package/lib-dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/lib-dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/lib-dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/lib-dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/lib-dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/lib-dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/lib-dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/lib-dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/lib-dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/lib-dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/lib-dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/lib-dist/lib/astro.d.ts +8 -0
- package/lib-dist/lib/astro.d.ts.map +1 -0
- package/lib-dist/lib/astro.js +27 -0
- package/lib-dist/lib/astro.js.map +1 -0
- package/lib-dist/lib/docs-theme.d.ts +7 -0
- package/lib-dist/lib/docs-theme.d.ts.map +1 -0
- package/lib-dist/lib/docs-theme.js +51 -0
- package/lib-dist/lib/docs-theme.js.map +1 -0
- package/lib-dist/lib/host-runtime.d.ts.map +1 -0
- package/lib-dist/{host-runtime.js → lib/host-runtime.js} +4 -2
- package/lib-dist/lib/host-runtime.js.map +1 -0
- package/lib-dist/{host.d.ts → lib/host.d.ts} +20 -0
- package/lib-dist/lib/host.d.ts.map +1 -0
- package/lib-dist/lib/host.js.map +1 -0
- package/lib-dist/lib/index.d.ts +34 -0
- package/lib-dist/lib/index.d.ts.map +1 -0
- package/lib-dist/lib/index.js +27 -0
- package/lib-dist/lib/index.js.map +1 -0
- package/lib-dist/{markdown-model.d.ts → lib/markdown-model.d.ts} +3 -3
- package/lib-dist/lib/markdown-model.d.ts.map +1 -0
- package/lib-dist/lib/markdown-model.js +2030 -0
- package/lib-dist/lib/markdown-model.js.map +1 -0
- package/lib-dist/lib/markdown.d.ts +3 -0
- package/lib-dist/lib/markdown.d.ts.map +1 -0
- package/lib-dist/lib/markdown.js +222 -0
- package/lib-dist/lib/markdown.js.map +1 -0
- package/lib-dist/{schema.d.ts → lib/schema.d.ts} +55 -23
- package/lib-dist/lib/schema.d.ts.map +1 -0
- package/lib-dist/{schema.js → lib/schema.js} +26 -18
- package/lib-dist/lib/schema.js.map +1 -0
- package/lib-dist/{terra/pages/docs/_custom.d.ts → lib/terra/custom-components.d.ts} +2 -2
- package/lib-dist/lib/terra/custom-components.d.ts.map +1 -0
- package/lib-dist/{terra/pages/docs/_custom.js → lib/terra/custom-components.js} +1 -1
- package/lib-dist/lib/terra/custom-components.js.map +1 -0
- package/lib-dist/lib/terra/docs/archive.d.ts +3 -0
- package/lib-dist/lib/terra/docs/archive.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/archive.js +654 -0
- package/lib-dist/lib/terra/docs/archive.js.map +1 -0
- package/lib-dist/lib/terra/docs/assets.d.ts +26 -0
- package/lib-dist/lib/terra/docs/assets.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/assets.js +74 -0
- package/lib-dist/lib/terra/docs/assets.js.map +1 -0
- package/lib-dist/lib/terra/docs/attachments.d.ts +4 -0
- package/lib-dist/lib/terra/docs/attachments.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/attachments.js +5 -0
- package/lib-dist/lib/terra/docs/attachments.js.map +1 -0
- package/lib-dist/lib/terra/docs/editor-dom.d.ts +50 -0
- package/lib-dist/lib/terra/docs/editor-dom.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/editor-dom.js +236 -0
- package/lib-dist/lib/terra/docs/editor-dom.js.map +1 -0
- package/lib-dist/lib/terra/docs/mutations.d.ts +10 -0
- package/lib-dist/lib/terra/docs/mutations.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/mutations.js +105 -0
- package/lib-dist/lib/terra/docs/mutations.js.map +1 -0
- package/lib-dist/lib/terra/docs/navigation.d.ts +6 -0
- package/lib-dist/lib/terra/docs/navigation.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/navigation.js +21 -0
- package/lib-dist/lib/terra/docs/navigation.js.map +1 -0
- package/lib-dist/lib/terra/docs/state.d.ts +185 -0
- package/lib-dist/lib/terra/docs/state.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/state.js +254 -0
- package/lib-dist/lib/terra/docs/state.js.map +1 -0
- package/lib-dist/lib/terra/docs/toolbar.d.ts +11 -0
- package/lib-dist/lib/terra/docs/toolbar.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/toolbar.js +41 -0
- package/lib-dist/lib/terra/docs/toolbar.js.map +1 -0
- package/lib-dist/lib/terra/docs/tree.d.ts +15 -0
- package/lib-dist/lib/terra/docs/tree.d.ts.map +1 -0
- package/lib-dist/lib/terra/docs/tree.js +61 -0
- package/lib-dist/lib/terra/docs/tree.js.map +1 -0
- package/lib-dist/{terra/pages/docs/_helpers.d.ts → lib/terra/docs/workspace.d.ts} +6 -8
- package/lib-dist/lib/terra/docs/workspace.d.ts.map +1 -0
- package/lib-dist/{terra/pages/docs/_helpers.js → lib/terra/docs/workspace.js} +39 -28
- package/lib-dist/lib/terra/docs/workspace.js.map +1 -0
- package/lib-dist/lib/terra/flow/_layout.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/flow/_layout.js +16 -6
- package/lib-dist/lib/terra/flow/_layout.js.map +1 -0
- package/lib-dist/{terra → lib/terra}/flow/powerSource.d.ts +1 -2
- package/lib-dist/lib/terra/flow/powerSource.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/flow/powerSource.js +10 -4
- package/lib-dist/lib/terra/flow/powerSource.js.map +1 -0
- package/lib-dist/{terra → lib/terra}/regex.mjs +11 -6
- package/lib-dist/lib/terra/runtime/action-proxy.d.ts +45 -0
- package/lib-dist/lib/terra/runtime/action-proxy.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/action-proxy.js +1 -1
- package/lib-dist/lib/terra/runtime/action-proxy.js.map +1 -0
- package/lib-dist/lib/terra/runtime/content/block-jsx.d.ts +23 -0
- package/lib-dist/lib/terra/runtime/content/block-jsx.d.ts.map +1 -0
- package/lib-dist/lib/terra/runtime/content/block-jsx.js +225 -0
- package/lib-dist/lib/terra/runtime/content/block-jsx.js.map +1 -0
- package/lib-dist/lib/terra/runtime/content/document-markdown.d.ts +41 -0
- package/lib-dist/lib/terra/runtime/content/document-markdown.d.ts.map +1 -0
- package/lib-dist/lib/terra/runtime/content/document-markdown.js +536 -0
- package/lib-dist/lib/terra/runtime/content/document-markdown.js.map +1 -0
- package/lib-dist/lib/terra/runtime/content/markdown.d.ts +109 -0
- package/lib-dist/lib/terra/runtime/content/markdown.d.ts.map +1 -0
- package/lib-dist/lib/terra/runtime/content/markdown.js +428 -0
- package/lib-dist/lib/terra/runtime/content/markdown.js.map +1 -0
- package/lib-dist/lib/terra/runtime/content.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/content.js +147 -62
- package/lib-dist/lib/terra/runtime/content.js.map +1 -0
- package/lib-dist/lib/terra/runtime/leaf.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/leaf.js +1 -1
- package/lib-dist/lib/terra/runtime/leaf.js.map +1 -0
- package/lib-dist/lib/terra/runtime/nodes.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/nodes.js +103 -31
- package/lib-dist/lib/terra/runtime/nodes.js.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/runtime.d.ts +8 -2
- package/lib-dist/lib/terra/runtime/runtime.d.ts.map +1 -0
- package/lib-dist/lib/terra/runtime/runtime.js +86 -0
- package/lib-dist/lib/terra/runtime/runtime.js.map +1 -0
- package/lib-dist/lib/terra/runtime/shared.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/shared.js +56 -11
- package/lib-dist/lib/terra/runtime/shared.js.map +1 -0
- package/lib-dist/lib/terra/runtime/types.d.ts +529 -0
- package/lib-dist/lib/terra/runtime/types.d.ts.map +1 -0
- package/lib-dist/{terra → lib/terra}/runtime/types.js +28 -2
- package/lib-dist/lib/terra/runtime/types.js.map +1 -0
- package/lib-dist/lib/workspace-types.d.ts +32 -0
- package/lib-dist/lib/workspace-types.d.ts.map +1 -0
- package/lib-dist/lib/workspace-types.js +2 -0
- package/lib-dist/lib/workspace-types.js.map +1 -0
- package/lib-dist/style.css +237 -1
- package/package.json +63 -38
- package/site/astro.config.mjs +67 -0
- package/site/docs-content-plugin.mjs +62 -0
- package/site/src/components/DocsSiteSearch.tsx +108 -0
- package/site/src/lib/catalog.ts +151 -0
- package/site/src/pages/404.astro +38 -0
- package/site/src/pages/[...slug].astro +49 -0
- package/site/src/styles/search.css +56 -0
- package/src/components/NotFound.astro +6 -0
- package/src/components/NotFound.tsx +48 -0
- package/src/{SiteLayout.astro → components/SiteLayout.astro} +17 -5
- package/src/{navigation.tsx → components/navigation.tsx} +3 -1
- package/lib-dist/Docs.d.ts.map +0 -1
- package/lib-dist/Docs.js +0 -60
- package/lib-dist/Docs.js.map +0 -1
- package/lib-dist/LocalDocsWorkspace.d.ts.map +0 -1
- package/lib-dist/LocalDocsWorkspace.js.map +0 -1
- package/lib-dist/SiteLayout.d.ts +0 -30
- package/lib-dist/SiteLayout.d.ts.map +0 -1
- package/lib-dist/SiteLayout.js +0 -34
- package/lib-dist/SiteLayout.js.map +0 -1
- package/lib-dist/StaticWorkspace.d.ts.map +0 -1
- package/lib-dist/StaticWorkspace.js.map +0 -1
- package/lib-dist/_Toolbar.d.ts +0 -7
- package/lib-dist/_Toolbar.d.ts.map +0 -1
- package/lib-dist/_Toolbar.js +0 -85
- package/lib-dist/_Toolbar.js.map +0 -1
- package/lib-dist/blocks.d.ts.map +0 -1
- package/lib-dist/blocks.js.map +0 -1
- package/lib-dist/docs-catalog.d.ts +0 -5
- package/lib-dist/docs-catalog.d.ts.map +0 -1
- package/lib-dist/docs-catalog.js +0 -38
- package/lib-dist/docs-catalog.js.map +0 -1
- package/lib-dist/docs-style.css +0 -31
- package/lib-dist/fonts/README.md +0 -5
- package/lib-dist/host-runtime.d.ts.map +0 -1
- package/lib-dist/host-runtime.js.map +0 -1
- package/lib-dist/host.d.ts.map +0 -1
- package/lib-dist/host.js.map +0 -1
- package/lib-dist/index.d.ts +0 -35
- package/lib-dist/index.d.ts.map +0 -1
- package/lib-dist/index.js +0 -28
- package/lib-dist/index.js.map +0 -1
- package/lib-dist/markdown-model.d.ts.map +0 -1
- package/lib-dist/markdown-model.js +0 -181
- package/lib-dist/markdown-model.js.map +0 -1
- package/lib-dist/markdown.d.ts +0 -3
- package/lib-dist/markdown.d.ts.map +0 -1
- package/lib-dist/markdown.js +0 -83
- package/lib-dist/markdown.js.map +0 -1
- package/lib-dist/navigation.d.ts.map +0 -1
- package/lib-dist/navigation.js.map +0 -1
- package/lib-dist/schema.d.ts.map +0 -1
- package/lib-dist/schema.js.map +0 -1
- package/lib-dist/terra/Workspace.d.ts.map +0 -1
- package/lib-dist/terra/Workspace.js +0 -9
- package/lib-dist/terra/Workspace.js.map +0 -1
- package/lib-dist/terra/editor/TerraContentEditor.d.ts +0 -10
- package/lib-dist/terra/editor/TerraContentEditor.d.ts.map +0 -1
- package/lib-dist/terra/editor/TerraContentEditor.js +0 -47
- package/lib-dist/terra/editor/TerraContentEditor.js.map +0 -1
- package/lib-dist/terra/editor/_blocks.d.ts.map +0 -1
- package/lib-dist/terra/editor/_blocks.js +0 -110
- package/lib-dist/terra/editor/_blocks.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Callout.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Callout.js.map +0 -1
- package/lib-dist/terra/editor/docs/_CodeBlock.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_CodeBlock.js.map +0 -1
- package/lib-dist/terra/editor/docs/_DocsCode.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_DocsCode.js.map +0 -1
- package/lib-dist/terra/editor/docs/_DocsImage.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_DocsImage.js +0 -62
- package/lib-dist/terra/editor/docs/_DocsImage.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Embed.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Embed.js +0 -27
- package/lib-dist/terra/editor/docs/_Embed.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Math.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Math.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Nodes.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Nodes.js +0 -52
- package/lib-dist/terra/editor/docs/_Nodes.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Raw.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Raw.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Table.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Table.js +0 -71
- package/lib-dist/terra/editor/docs/_Table.js.map +0 -1
- package/lib-dist/terra/editor/docs/_Tabs.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_Tabs.js.map +0 -1
- package/lib-dist/terra/editor/docs/_TsDocs.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_TsDocs.js.map +0 -1
- package/lib-dist/terra/editor/docs/_math_inline.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/_math_inline.js.map +0 -1
- package/lib-dist/terra/editor/docs/heading.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/heading.js.map +0 -1
- package/lib-dist/terra/editor/docs/index.d.ts.map +0 -1
- package/lib-dist/terra/editor/docs/index.js.map +0 -1
- package/lib-dist/terra/editor/types.d.ts.map +0 -1
- package/lib-dist/terra/editor/types.js.map +0 -1
- package/lib-dist/terra/flow/Nodes.d.ts.map +0 -1
- package/lib-dist/terra/flow/Nodes.js.map +0 -1
- package/lib-dist/terra/flow/_chrome.d.ts.map +0 -1
- package/lib-dist/terra/flow/_chrome.js.map +0 -1
- package/lib-dist/terra/flow/_layout.d.ts.map +0 -1
- package/lib-dist/terra/flow/_layout.js.map +0 -1
- package/lib-dist/terra/flow/menuContext.d.ts.map +0 -1
- package/lib-dist/terra/flow/menuContext.js.map +0 -1
- package/lib-dist/terra/flow/powerSource.d.ts.map +0 -1
- package/lib-dist/terra/flow/powerSource.js.map +0 -1
- package/lib-dist/terra/pages/docs/_attachments.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_attachments.js.map +0 -1
- package/lib-dist/terra/pages/docs/_blocks.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_blocks.js.map +0 -1
- package/lib-dist/terra/pages/docs/_custom.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_custom.js.map +0 -1
- package/lib-dist/terra/pages/docs/_editable.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_editable.js.map +0 -1
- package/lib-dist/terra/pages/docs/_export-dialog.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_export-dialog.js.map +0 -1
- package/lib-dist/terra/pages/docs/_helpers.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_helpers.js.map +0 -1
- package/lib-dist/terra/pages/docs/_icons.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_icons.js.map +0 -1
- package/lib-dist/terra/pages/docs/_main.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_main.js +0 -1959
- package/lib-dist/terra/pages/docs/_main.js.map +0 -1
- package/lib-dist/terra/pages/docs/_sidebar.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_sidebar.js +0 -2450
- package/lib-dist/terra/pages/docs/_sidebar.js.map +0 -1
- package/lib-dist/terra/pages/docs/_toolbar.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_toolbar.js.map +0 -1
- package/lib-dist/terra/pages/docs/_tree.d.ts.map +0 -1
- package/lib-dist/terra/pages/docs/_tree.js.map +0 -1
- package/lib-dist/terra/runtime/action-proxy.d.ts +0 -5
- package/lib-dist/terra/runtime/action-proxy.d.ts.map +0 -1
- package/lib-dist/terra/runtime/action-proxy.js.map +0 -1
- package/lib-dist/terra/runtime/content.d.ts.map +0 -1
- package/lib-dist/terra/runtime/content.js.map +0 -1
- package/lib-dist/terra/runtime/leaf.d.ts.map +0 -1
- package/lib-dist/terra/runtime/leaf.js.map +0 -1
- package/lib-dist/terra/runtime/nodes.d.ts.map +0 -1
- package/lib-dist/terra/runtime/nodes.js.map +0 -1
- package/lib-dist/terra/runtime/runtime.d.ts.map +0 -1
- package/lib-dist/terra/runtime/runtime.js +0 -50
- package/lib-dist/terra/runtime/runtime.js.map +0 -1
- package/lib-dist/terra/runtime/shared.d.ts.map +0 -1
- package/lib-dist/terra/runtime/shared.js.map +0 -1
- package/lib-dist/terra/runtime/types.d.ts +0 -266
- package/lib-dist/terra/runtime/types.d.ts.map +0 -1
- package/lib-dist/terra/runtime/types.js.map +0 -1
- package/lib-dist/terra/runtime/ui.d.ts.map +0 -1
- package/lib-dist/terra/runtime/ui.js +0 -16
- package/lib-dist/terra/runtime/ui.js.map +0 -1
- package/lib-dist/workspace.d.ts +0 -78
- package/lib-dist/workspace.d.ts.map +0 -1
- package/lib-dist/workspace.js +0 -151
- package/lib-dist/workspace.js.map +0 -1
- package/src/style.css +0 -733
- /package/lib-dist/{fonts → assets/fonts}/Avara-Bold.woff2 +0 -0
- /package/lib-dist/{fonts → assets/fonts}/Avara-BoldItalic.woff2 +0 -0
- /package/lib-dist/{fonts → assets/fonts}/OFL-1.1.txt +0 -0
- /package/lib-dist/{blocks.d.ts → components/blocks.d.ts} +0 -0
- /package/lib-dist/{navigation.js → components/navigation.js} +0 -0
- /package/lib-dist/{terra → components/terra}/editor/docs/_CodeBlock.d.ts +0 -0
- /package/lib-dist/{terra → components/terra}/editor/docs/index.d.ts +0 -0
- /package/lib-dist/{terra → components/terra}/editor/docs/index.js +0 -0
- /package/lib-dist/{terra → components/terra}/flow/menuContext.d.ts +0 -0
- /package/lib-dist/{terra → components/terra}/flow/menuContext.js +0 -0
- /package/lib-dist/{terra → components/terra}/pages/docs/_blocks.d.ts +0 -0
- /package/lib-dist/{terra → components/terra}/pages/docs/_icons.d.ts +0 -0
- /package/lib-dist/{terra → components/terra}/pages/docs/_icons.js +0 -0
- /package/lib-dist/{host-runtime.d.ts → lib/host-runtime.d.ts} +0 -0
- /package/lib-dist/{host.js → lib/host.js} +0 -0
- /package/lib-dist/{terra → lib/terra}/flow/_layout.d.ts +0 -0
- /package/lib-dist/{terra → lib/terra}/runtime/content.d.ts +0 -0
- /package/lib-dist/{terra → lib/terra}/runtime/leaf.d.ts +0 -0
- /package/lib-dist/{terra → lib/terra}/runtime/nodes.d.ts +0 -0
- /package/lib-dist/{terra → lib/terra}/runtime/shared.d.ts +0 -0
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type DocsPermissionLevel = 'read' | 'write';
|
|
3
|
-
export type Mode = 'view' | 'edit' | 'attachments';
|
|
4
|
-
export type DocTableCell = {
|
|
5
|
-
_key?: string;
|
|
6
|
-
_type?: 'cell';
|
|
7
|
-
content?: DocBody;
|
|
8
|
-
html?: string;
|
|
9
|
-
markdown?: string;
|
|
10
|
-
};
|
|
11
|
-
export type DocBlock = {
|
|
12
|
-
_type: string;
|
|
13
|
-
_key?: string;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
};
|
|
16
|
-
export type DocBody = DocBlock[];
|
|
17
|
-
export type DocVer = {
|
|
18
|
-
_key?: string;
|
|
19
|
-
ver?: string;
|
|
20
|
-
content?: string | DocBody;
|
|
21
|
-
contentJson: string;
|
|
22
|
-
body?: DocBody;
|
|
23
|
-
component?: string;
|
|
24
|
-
description: string;
|
|
25
|
-
title: string;
|
|
26
|
-
savedAt: string;
|
|
27
|
-
};
|
|
28
|
-
export type Md = {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
content?: string | DocVer[] | DocBody | null;
|
|
31
|
-
description?: string;
|
|
32
|
-
component?: string;
|
|
33
|
-
order?: number;
|
|
34
|
-
path?: string;
|
|
35
|
-
pathname?: string;
|
|
36
|
-
src?: string;
|
|
37
|
-
title?: string;
|
|
38
|
-
sources?: string[];
|
|
39
|
-
};
|
|
40
|
-
export type ActionRes<T = unknown> = {
|
|
41
|
-
data?: T;
|
|
42
|
-
error?: any;
|
|
43
|
-
};
|
|
44
|
-
export type Draft = {
|
|
45
|
-
content?: string | DocBody | null;
|
|
46
|
-
description?: string;
|
|
47
|
-
path?: string;
|
|
48
|
-
title?: string;
|
|
49
|
-
source: string;
|
|
50
|
-
};
|
|
51
|
-
export type EditorSel = any;
|
|
52
|
-
export type EditorRefs = any;
|
|
53
|
-
export type EditorSurface = any;
|
|
54
|
-
export type ToolbarState = any;
|
|
55
|
-
export type EditorState = any;
|
|
56
|
-
export type PathProps = {
|
|
57
|
-
pathname: string;
|
|
58
|
-
};
|
|
59
|
-
export type Leaf = {
|
|
60
|
-
type: 'leaf';
|
|
61
|
-
origName: string;
|
|
62
|
-
path?: string;
|
|
63
|
-
url: string;
|
|
64
|
-
permission: DocsPermissionLevel;
|
|
65
|
-
title?: string;
|
|
66
|
-
description?: string;
|
|
67
|
-
contributors?: string[];
|
|
68
|
-
content?: unknown;
|
|
69
|
-
source?: string;
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
};
|
|
72
|
-
export type Branch = {
|
|
73
|
-
type: 'branch';
|
|
74
|
-
origName: string;
|
|
75
|
-
children: Tree[];
|
|
76
|
-
permission: DocsPermissionLevel;
|
|
77
|
-
title?: string;
|
|
78
|
-
url?: string;
|
|
79
|
-
firstLeafUrl?: string;
|
|
80
|
-
hue?: number;
|
|
81
|
-
[key: string]: any;
|
|
82
|
-
};
|
|
83
|
-
export type Tree = Leaf | Branch;
|
|
84
|
-
export type AttchType = 'image' | 'pdf' | 'youtube' | 'tsdocs' | 'website' | 'file' | 'doc';
|
|
85
|
-
export type Sister = {
|
|
86
|
-
content?: unknown;
|
|
87
|
-
id?: string;
|
|
88
|
-
path: string;
|
|
89
|
-
name: string;
|
|
90
|
-
isMd: boolean;
|
|
91
|
-
title?: string;
|
|
92
|
-
type?: string;
|
|
93
|
-
sourceUrl?: string;
|
|
94
|
-
source?: string;
|
|
95
|
-
unavailable?: boolean;
|
|
96
|
-
};
|
|
97
|
-
export type DocsTreeMenuAction = {
|
|
98
|
-
destructive?: boolean;
|
|
99
|
-
disabled?: boolean;
|
|
100
|
-
icon?: ReactNode;
|
|
101
|
-
label: string;
|
|
102
|
-
onSelect?: () => void;
|
|
103
|
-
separator?: boolean;
|
|
104
|
-
subActions?: DocsTreeMenuAction[];
|
|
105
|
-
};
|
|
106
|
-
export type DocsExportOpts = {
|
|
107
|
-
flatten: boolean;
|
|
108
|
-
format: 'raw' | 'pdf';
|
|
109
|
-
filters: {
|
|
110
|
-
pages: boolean;
|
|
111
|
-
pdfs: boolean;
|
|
112
|
-
images: boolean;
|
|
113
|
-
youtube: boolean;
|
|
114
|
-
tsdocs: boolean;
|
|
115
|
-
other: boolean;
|
|
116
|
-
};
|
|
117
|
-
merges: {
|
|
118
|
-
pages: boolean;
|
|
119
|
-
pdfs: boolean;
|
|
120
|
-
images: boolean;
|
|
121
|
-
youtube: boolean;
|
|
122
|
-
tsdocs: boolean;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
export type ExportTgt = {
|
|
126
|
-
paths: string[];
|
|
127
|
-
rootDir: string;
|
|
128
|
-
filename: string;
|
|
129
|
-
title: string;
|
|
130
|
-
nodeIds?: string[];
|
|
131
|
-
} | null;
|
|
132
|
-
export type AttchTgt = {
|
|
133
|
-
path: string;
|
|
134
|
-
title: string;
|
|
135
|
-
scope: 'section' | 'group' | 'leaf';
|
|
136
|
-
node: Tree;
|
|
137
|
-
};
|
|
138
|
-
export type DelTgt = {
|
|
139
|
-
kind: 'section' | 'branch' | 'leaf';
|
|
140
|
-
path: string;
|
|
141
|
-
bPath?: string;
|
|
142
|
-
slugPath?: string;
|
|
143
|
-
active?: boolean;
|
|
144
|
-
title: string;
|
|
145
|
-
origNode?: Tree;
|
|
146
|
-
} | null;
|
|
147
|
-
export type PromptState = {
|
|
148
|
-
open: boolean;
|
|
149
|
-
title: string;
|
|
150
|
-
description?: string;
|
|
151
|
-
label: string;
|
|
152
|
-
value: string;
|
|
153
|
-
onSave: (val: string) => void;
|
|
154
|
-
onCancel?: () => void;
|
|
155
|
-
} | null;
|
|
156
|
-
export type BlockOpt = {
|
|
157
|
-
group: 'type' | 'insert';
|
|
158
|
-
icon: any;
|
|
159
|
-
label: string;
|
|
160
|
-
value: string;
|
|
161
|
-
onSelect: () => void;
|
|
162
|
-
};
|
|
163
|
-
export type RepoComponentWithLabel = {
|
|
164
|
-
name: string;
|
|
165
|
-
label?: string;
|
|
166
|
-
component?: any;
|
|
167
|
-
displayLabel?: string;
|
|
168
|
-
[key: string]: any;
|
|
169
|
-
};
|
|
170
|
-
export type MenuTree = {
|
|
171
|
-
components: RepoComponentWithLabel[];
|
|
172
|
-
folders: Record<string, MenuTree>;
|
|
173
|
-
};
|
|
174
|
-
export type DragState = {
|
|
175
|
-
active: boolean;
|
|
176
|
-
path: string;
|
|
177
|
-
kind: 'leaf';
|
|
178
|
-
} | {
|
|
179
|
-
fPath: string;
|
|
180
|
-
kind: 'branch';
|
|
181
|
-
pPath: string;
|
|
182
|
-
};
|
|
183
|
-
export type ReorderDropState = {
|
|
184
|
-
key: string;
|
|
185
|
-
position: 'after' | 'before' | 'inside';
|
|
186
|
-
};
|
|
187
|
-
export type TableRow<TCell = DocTableCell> = {
|
|
188
|
-
_key: string;
|
|
189
|
-
_type: 'row';
|
|
190
|
-
cells: TCell[];
|
|
191
|
-
};
|
|
192
|
-
export type BlockTgt = HTMLElement & {
|
|
193
|
-
__blockActions?: any[];
|
|
194
|
-
};
|
|
195
|
-
export type TsDocsItem = {
|
|
196
|
-
slug: string;
|
|
197
|
-
title: string;
|
|
198
|
-
body: DocBody;
|
|
199
|
-
};
|
|
200
|
-
export type Edge = any;
|
|
201
|
-
export type FlowNode = any;
|
|
202
|
-
export type FlowEdgeData = any;
|
|
203
|
-
export type NodeData = any;
|
|
204
|
-
export type Pos = any;
|
|
205
|
-
export type DagreNode = any;
|
|
206
|
-
export type FlowNodeLike = any;
|
|
207
|
-
export type FlowSize = any;
|
|
208
|
-
export type NodesProps = any;
|
|
209
|
-
export type GroupNodeData = any;
|
|
210
|
-
export type PowerSrcGraph = any;
|
|
211
|
-
export type DocsContentPtMarkDef = {
|
|
212
|
-
_key?: string;
|
|
213
|
-
_type?: string;
|
|
214
|
-
href?: string;
|
|
215
|
-
[key: string]: any;
|
|
216
|
-
};
|
|
217
|
-
export type DocsContentPtSpan = {
|
|
218
|
-
_key?: string;
|
|
219
|
-
_type?: string;
|
|
220
|
-
marks?: string[];
|
|
221
|
-
text?: string;
|
|
222
|
-
[key: string]: any;
|
|
223
|
-
};
|
|
224
|
-
export type DocsNodesDraft = Record<string, boolean | string | undefined>;
|
|
225
|
-
export type Field = {
|
|
226
|
-
key: string;
|
|
227
|
-
kind: string;
|
|
228
|
-
label: string;
|
|
229
|
-
placeholder?: string;
|
|
230
|
-
textarea?: boolean;
|
|
231
|
-
tooltip: string;
|
|
232
|
-
};
|
|
233
|
-
export type DocsAttachment = any;
|
|
234
|
-
export type EditorToolbarAdapter = any;
|
|
235
|
-
export type PortableEditorBlock = any;
|
|
236
|
-
export type DocsPermSrc = any;
|
|
237
|
-
export type User = any;
|
|
238
|
-
export type DocsNestedContent = any;
|
|
239
|
-
export type TerraContent = any;
|
|
240
|
-
export type Problem = any;
|
|
241
|
-
export type ArticleContent = any;
|
|
242
|
-
export type DocsContent = any;
|
|
243
|
-
export type ProblemContent = any;
|
|
244
|
-
export type StructureQuestion = any;
|
|
245
|
-
export type TraversalGraph = any;
|
|
246
|
-
export type ArcGraph = any;
|
|
247
|
-
export type ArcGraphEdge = any;
|
|
248
|
-
export type Arc = any;
|
|
249
|
-
export type Viewpoint = any;
|
|
250
|
-
export type FlowMenuContext = any;
|
|
251
|
-
export type DocsBlockEditorProps = any;
|
|
252
|
-
export type PortableTextBlockRendererProps = any;
|
|
253
|
-
export type PortableTextBlockEditorProps = any;
|
|
254
|
-
export type InlineObjectRenderProps = any;
|
|
255
|
-
export type JSX = any;
|
|
256
|
-
export declare const DOCS_BLOCK_SCHEMAS: Record<string, {
|
|
257
|
-
fields: Array<{
|
|
258
|
-
name: string;
|
|
259
|
-
type: string;
|
|
260
|
-
}>;
|
|
261
|
-
}>;
|
|
262
|
-
export declare const PROBLEM_BLOCK_TYPES: readonly ["hint", "headline", "nodes", "entity", "definition", "countryReference", "notes", "photo", "audio", "video", "choicesReference", "question", "prompts", "timer", "table", "map", "tabs", "accordion"];
|
|
263
|
-
export declare const TERRA_CONTAINER_TYPES: readonly ["tabs", "accordion", "callout"];
|
|
264
|
-
export declare const ARTICLE_INLINE_SCHEMAS: {};
|
|
265
|
-
export declare const PROBLEM_BLOCK_SCHEMAS: {};
|
|
266
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/terra/runtime/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAClH,MAAM,MAAM,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAC5E,MAAM,MAAM,OAAO,GAAG,QAAQ,EAAE,CAAC;AACjC,MAAM,MAAM,MAAM,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,GA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AAwB,CAAC,KAAK,EAAE,KAAK;;;IAC5C,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS;IACjD,MAAM;CACP;AACD,wBAAgB,KAAK,CAAC,EAAE,KAAyB,EAAE,WAAgB,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAE5H;AACD,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAC1D,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAEvG"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
export class ErrorBoundary extends Component {
|
|
4
|
-
state = { error: null };
|
|
5
|
-
static getDerivedStateFromError(error) { return { error }; }
|
|
6
|
-
componentDidCatch(_error, _info) { }
|
|
7
|
-
render() { return this.state.error ? (this.props.fallback?.(this.state.error) ?? _jsx("div", { role: "alert", children: this.state.error.message })) : this.props.children; }
|
|
8
|
-
}
|
|
9
|
-
export function Empty({ title = 'Nothing to show', description = '' }) {
|
|
10
|
-
return _jsxs("div", { className: "flex min-h-24 flex-col items-center justify-center gap-2 p-6 text-center text-primary-11", children: [_jsx("strong", { className: "text-primary-12", children: title }), description && _jsx("span", { children: description })] });
|
|
11
|
-
}
|
|
12
|
-
export const IMG_RESPONSIVE = 'max-w-full object-contain';
|
|
13
|
-
export default function User({ user }) {
|
|
14
|
-
return _jsx("span", { className: "text-sm text-primary-11", children: user?.name ?? user?.email ?? '' });
|
|
15
|
-
}
|
|
16
|
-
//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ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
export type DocsAttachment = {
|
|
3
|
-
title: string;
|
|
4
|
-
href: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
size?: number;
|
|
7
|
-
};
|
|
8
|
-
export type DocsLeaf = {
|
|
9
|
-
id?: string;
|
|
10
|
-
path?: string;
|
|
11
|
-
title: string;
|
|
12
|
-
href: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
updatedAt?: string;
|
|
15
|
-
attachments?: DocsAttachment[];
|
|
16
|
-
};
|
|
17
|
-
export type DocsGroup = {
|
|
18
|
-
title: string;
|
|
19
|
-
id?: string;
|
|
20
|
-
path?: string;
|
|
21
|
-
leaves: DocsLeaf[];
|
|
22
|
-
};
|
|
23
|
-
export type DocsSection = {
|
|
24
|
-
title: string;
|
|
25
|
-
id?: string;
|
|
26
|
-
path?: string;
|
|
27
|
-
groups: DocsGroup[];
|
|
28
|
-
};
|
|
29
|
-
export type DocsTreeActionName = 'create-leaf' | 'rename-leaf' | 'duplicate-leaf' | 'delete-leaf' | 'move-leaf' | 'move-leaf-up' | 'move-leaf-down' | 'manage-attachments' | 'download-leaf' | 'rename-group' | 'delete-group' | 'move-group-up' | 'move-group-down' | 'rename-section' | 'delete-section' | 'download-section';
|
|
30
|
-
export type DocsTreeAction = {
|
|
31
|
-
name: DocsTreeActionName;
|
|
32
|
-
section: DocsSection;
|
|
33
|
-
group?: DocsGroup;
|
|
34
|
-
leaf?: DocsLeaf;
|
|
35
|
-
};
|
|
36
|
-
/** Host actions own mutations and authorization. The package renders controls only for allowed actions. */
|
|
37
|
-
export type DocsTreeActions = {
|
|
38
|
-
available: (action: DocsTreeAction) => boolean;
|
|
39
|
-
perform: (action: DocsTreeAction) => void | Promise<void>;
|
|
40
|
-
};
|
|
41
|
-
/** Remote persistence is host-owned. Local repository pages omit this provider. */
|
|
42
|
-
export type DocsRemoteProvider = {
|
|
43
|
-
loadDraft: (slug: string) => Promise<{
|
|
44
|
-
markdown: string;
|
|
45
|
-
revision: number;
|
|
46
|
-
}>;
|
|
47
|
-
saveDraft: (slug: string, markdown: string, expectedRevision: number) => Promise<number>;
|
|
48
|
-
publish: (slug: string, expectedRevision: number) => Promise<number>;
|
|
49
|
-
history: (slug: string) => Promise<unknown[]>;
|
|
50
|
-
uploadAttachment?: (slug: string, file: File) => Promise<DocsAttachment>;
|
|
51
|
-
};
|
|
52
|
-
export type DocsCapabilities = {
|
|
53
|
-
edit?: boolean;
|
|
54
|
-
save?: boolean;
|
|
55
|
-
history?: boolean;
|
|
56
|
-
publish?: boolean;
|
|
57
|
-
};
|
|
58
|
-
export type DocsMode = 'view' | 'attachments' | 'edit';
|
|
59
|
-
export declare function DocsWorkspaceNavigation({ sections, currentPath, actions, }: {
|
|
60
|
-
sections: DocsSection[];
|
|
61
|
-
currentPath: string;
|
|
62
|
-
actions?: DocsTreeActions | undefined;
|
|
63
|
-
}): JSX.Element;
|
|
64
|
-
export declare function DocsWorkspaceToolbar({ attachments, capabilities, onEdit, onSave, onHistory, onPublish, remoteProvider, onModeChange, }: {
|
|
65
|
-
attachments?: DocsAttachment[];
|
|
66
|
-
capabilities?: DocsCapabilities | undefined;
|
|
67
|
-
onEdit?: (() => void) | undefined;
|
|
68
|
-
onSave?: (() => void) | undefined;
|
|
69
|
-
onHistory?: (() => void) | undefined;
|
|
70
|
-
onPublish?: (() => void) | undefined;
|
|
71
|
-
remoteProvider?: DocsRemoteProvider | undefined;
|
|
72
|
-
onModeChange?: ((mode: DocsMode) => void) | undefined;
|
|
73
|
-
}): JSX.Element;
|
|
74
|
-
export declare function DocsAttachmentsView({ attachments, onUpload, }: {
|
|
75
|
-
attachments?: DocsAttachment[];
|
|
76
|
-
onUpload?: ((file: File) => void | Promise<void>) | undefined;
|
|
77
|
-
}): JSX.Element;
|
|
78
|
-
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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sxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { Button, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, Input, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, ToggleGroup, ToggleGroupItem, } from '@terra-symposium/styling/ui';
|
|
4
|
-
import { DocumentAttachment, Download, Link, OverflowMenuVertical, TrashCan, } from '@carbon/icons-react';
|
|
5
|
-
function attachmentKind(attachment) {
|
|
6
|
-
const type = attachment.type?.toLowerCase() ?? '';
|
|
7
|
-
const path = attachment.href.toLowerCase().split('?')[0] ?? '';
|
|
8
|
-
if (type.startsWith('image/') || /\.(png|jpe?g|gif|webp|svg)$/.test(path))
|
|
9
|
-
return 'Images';
|
|
10
|
-
if (type.startsWith('video/') || /\.(mp4|webm|mov)$/.test(path))
|
|
11
|
-
return 'Videos';
|
|
12
|
-
if (type === 'text/html' ||
|
|
13
|
-
(/^(https?:)?\/\//.test(attachment.href) && !path.match(/\.[a-z0-9]+$/)))
|
|
14
|
-
return 'Links';
|
|
15
|
-
return 'Files';
|
|
16
|
-
}
|
|
17
|
-
function firstLeaf(section) {
|
|
18
|
-
return section.groups.flatMap((group) => group.leaves)[0]?.href ?? '/';
|
|
19
|
-
}
|
|
20
|
-
function sectionForPath(sections, path) {
|
|
21
|
-
return Math.max(0, sections.findIndex((section) => section.groups.some((group) => group.leaves.some((leaf) => leaf.href === path))));
|
|
22
|
-
}
|
|
23
|
-
export function DocsWorkspaceNavigation({ sections, currentPath, actions, }) {
|
|
24
|
-
const [sectionIndex, setSectionIndex] = useState(() => sectionForPath(sections, currentPath));
|
|
25
|
-
const [query, setQuery] = useState('');
|
|
26
|
-
const [error, setError] = useState('');
|
|
27
|
-
useEffect(() => setSectionIndex(sectionForPath(sections, currentPath)), [sections, currentPath]);
|
|
28
|
-
const section = sections[sectionIndex];
|
|
29
|
-
const groups = section?.groups ?? [];
|
|
30
|
-
const run = (action) => {
|
|
31
|
-
if (!actions?.available(action))
|
|
32
|
-
return;
|
|
33
|
-
if (action.name.startsWith('delete-') &&
|
|
34
|
-
!window.confirm(`Delete ${action.leaf?.title ?? action.group?.title ?? action.section.title}? This action cannot be undone.`))
|
|
35
|
-
return;
|
|
36
|
-
setError('');
|
|
37
|
-
void Promise.resolve(actions.perform(action)).catch((reason) => setError(reason instanceof Error ? reason.message : 'Action failed.'));
|
|
38
|
-
};
|
|
39
|
-
const leafAction = (name, group, leaf) => ({ name, section: section, group, leaf });
|
|
40
|
-
const menuItems = (group, leaf, kind) => {
|
|
41
|
-
const Item = kind === 'context' ? ContextMenuItem : DropdownMenuItem;
|
|
42
|
-
const Separator = kind === 'context' ? ContextMenuSeparator : DropdownMenuSeparator;
|
|
43
|
-
return (_jsxs(_Fragment, { children: [_jsx(Item, { onSelect: () => window.open(leaf.href, '_blank', 'noopener,noreferrer'), children: "Open in new tab" }), _jsxs(Item, { onSelect: () => {
|
|
44
|
-
void navigator.clipboard.writeText(new URL(leaf.href, window.location.href).href);
|
|
45
|
-
}, children: [_jsx(Link, { className: "size-4" }), "Copy link"] }), _jsxs(Item, { onSelect: () => {
|
|
46
|
-
sessionStorage.setItem('terra-docs:mode', 'attachments');
|
|
47
|
-
window.location.assign(leaf.href);
|
|
48
|
-
}, children: [_jsx(DocumentAttachment, { className: "size-4" }), "Attachments view"] }), actions &&
|
|
49
|
-
[
|
|
50
|
-
'move-leaf-up',
|
|
51
|
-
'move-leaf-down',
|
|
52
|
-
'move-leaf',
|
|
53
|
-
'rename-leaf',
|
|
54
|
-
'duplicate-leaf',
|
|
55
|
-
'manage-attachments',
|
|
56
|
-
'download-leaf',
|
|
57
|
-
'delete-leaf',
|
|
58
|
-
]
|
|
59
|
-
.filter((name) => actions.available(leafAction(name, group, leaf)))
|
|
60
|
-
.map((name, index) => (_jsxs("span", { children: [index === 0 && _jsx(Separator, {}), _jsx(Item, { onSelect: () => run(leafAction(name, group, leaf)), children: name === 'move-leaf-up' ? ('Move up') : name === 'move-leaf-down' ? ('Move down') : name === 'move-leaf' ? ('Move to group') : name === 'rename-leaf' ? ('Rename page') : name === 'duplicate-leaf' ? ('Duplicate page') : name === 'manage-attachments' ? ('Manage attachments') : name === 'download-leaf' ? (_jsxs(_Fragment, { children: [_jsx(Download, { className: "size-4" }), "Download page"] })) : (_jsxs(_Fragment, { children: [_jsx(TrashCan, { className: "size-4" }), "Delete page"] })) })] }, name)))] }));
|
|
61
|
-
};
|
|
62
|
-
return (_jsxs("nav", { className: "terra-docs-workspace-nav", "aria-label": "Documentation", children: [_jsx("label", { className: "terra-docs-control-label", htmlFor: "terra-docs-section", children: "Section" }), _jsxs("div", { className: "terra-docs-workspace-section-select", children: [_jsxs(Select, { value: String(sectionIndex), onValueChange: (value) => {
|
|
63
|
-
const index = Number(value);
|
|
64
|
-
setSectionIndex(index);
|
|
65
|
-
setQuery('');
|
|
66
|
-
const href = sections[index] && firstLeaf(sections[index]);
|
|
67
|
-
if (href)
|
|
68
|
-
window.location.assign(href);
|
|
69
|
-
}, children: [_jsx(SelectTrigger, { id: "terra-docs-section", "aria-label": "Section", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: sections.map((entry, index) => (_jsx(SelectItem, { value: String(index), children: entry.title }, `${entry.title}-${index}`))) })] }), section && actions && (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "xs", "aria-label": `Actions for section ${section.title}`, children: _jsx(OverflowMenuVertical, { size: 16 }) }) }), _jsx(DropdownMenuContent, { children: ['rename-section', 'download-section', 'delete-section']
|
|
70
|
-
.filter((name) => actions.available({ name, section }))
|
|
71
|
-
.map((name) => (_jsx(DropdownMenuItem, { onSelect: () => run({ name, section }), children: name === 'rename-section'
|
|
72
|
-
? 'Rename section'
|
|
73
|
-
: name === 'download-section'
|
|
74
|
-
? 'Download section'
|
|
75
|
-
: 'Delete section' }, name))) })] }))] }), _jsx(Input, { "aria-label": "Search pages", placeholder: "Search pages", value: query, onChange: (event) => setQuery(event.currentTarget.value) }), error && _jsx("p", { role: "alert", children: error }), _jsx("div", { className: "terra-docs-workspace-groups", children: groups
|
|
76
|
-
.filter((group) => !query ||
|
|
77
|
-
group.title.toLowerCase().includes(query.toLowerCase()) ||
|
|
78
|
-
group.leaves.some((leaf) => leaf.title.toLowerCase().includes(query.toLowerCase())))
|
|
79
|
-
.map((group, index) => (_jsxs("div", { className: "terra-docs-workspace-group", children: [_jsxs("div", { className: "terra-docs-workspace-group-heading", children: [_jsx("h2", { children: group.title }), actions && (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "xs", "aria-label": `Actions for group ${group.title}`, children: _jsx(OverflowMenuVertical, { size: 16 }) }) }), _jsx(DropdownMenuContent, { children: [
|
|
80
|
-
'create-leaf',
|
|
81
|
-
'move-group-up',
|
|
82
|
-
'move-group-down',
|
|
83
|
-
'rename-group',
|
|
84
|
-
'delete-group',
|
|
85
|
-
]
|
|
86
|
-
.filter((name) => actions.available({ name, section: section, group }))
|
|
87
|
-
.map((name) => (_jsx(DropdownMenuItem, { onSelect: () => run({ name, section: section, group }), children: name === 'create-leaf'
|
|
88
|
-
? 'New page'
|
|
89
|
-
: name === 'move-group-up'
|
|
90
|
-
? 'Move group up'
|
|
91
|
-
: name === 'move-group-down'
|
|
92
|
-
? 'Move group down'
|
|
93
|
-
: name === 'rename-group'
|
|
94
|
-
? 'Rename group'
|
|
95
|
-
: 'Delete group' }, name))) })] }))] }), _jsx("ul", { children: group.leaves
|
|
96
|
-
.filter((leaf) => !query ||
|
|
97
|
-
group.title.toLowerCase().includes(query.toLowerCase()) ||
|
|
98
|
-
leaf.title.toLowerCase().includes(query.toLowerCase()))
|
|
99
|
-
.map((leaf, leafIndex) => (_jsxs("li", { children: [_jsxs(ContextMenu, { children: [_jsx(ContextMenuTrigger, { asChild: true, children: _jsx("a", { href: leaf.href, "aria-current": leaf.href === currentPath ? 'page' : undefined, children: leaf.title }) }), _jsx(ContextMenuContent, { children: menuItems(group, leaf, 'context') })] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "xs", "aria-label": `Actions for ${leaf.title}`, children: _jsx(OverflowMenuVertical, { size: 16 }) }) }), _jsx(DropdownMenuContent, { children: menuItems(group, leaf, 'dropdown') })] })] }, `${leaf.href}-${leafIndex}`))) })] }, `${group.title}-${index}`))) }), groups.length === 0 && _jsx("p", { className: "terra-docs-empty", children: "No pages in this section." })] }));
|
|
100
|
-
}
|
|
101
|
-
export function DocsWorkspaceToolbar({ attachments = [], capabilities = {}, onEdit, onSave, onHistory, onPublish, remoteProvider, onModeChange, }) {
|
|
102
|
-
const [mode, setMode] = useState('view');
|
|
103
|
-
const [attachmentFilter, setAttachmentFilter] = useState('All');
|
|
104
|
-
const attachmentTypes = [...new Set(attachments.map(attachmentKind))];
|
|
105
|
-
useEffect(() => {
|
|
106
|
-
const requested = sessionStorage.getItem('terra-docs:mode');
|
|
107
|
-
if (requested === 'attachments') {
|
|
108
|
-
setMode('attachments');
|
|
109
|
-
onModeChange?.('attachments');
|
|
110
|
-
sessionStorage.removeItem('terra-docs:mode');
|
|
111
|
-
}
|
|
112
|
-
}, [onModeChange]);
|
|
113
|
-
useEffect(() => {
|
|
114
|
-
const element = document.querySelector('.terra-docs-site');
|
|
115
|
-
if (element)
|
|
116
|
-
element.dataset.docsMode = mode;
|
|
117
|
-
return () => {
|
|
118
|
-
if (element)
|
|
119
|
-
delete element.dataset.docsMode;
|
|
120
|
-
};
|
|
121
|
-
}, [mode]);
|
|
122
|
-
return (_jsxs("div", { className: "terra-docs-workspace-toolbar", role: "toolbar", "aria-label": "Document controls", "data-can-edit": Boolean(capabilities.edit && remoteProvider), children: [_jsxs(Select, { size: "xs", value: mode, onValueChange: (value) => {
|
|
123
|
-
const next = value;
|
|
124
|
-
setMode(next);
|
|
125
|
-
onModeChange?.(next);
|
|
126
|
-
if (next === 'edit')
|
|
127
|
-
onEdit?.();
|
|
128
|
-
}, children: [_jsx(SelectTrigger, { "aria-label": "Mode", children: _jsx(SelectValue, {}) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: "view", children: "View" }), capabilities.edit && remoteProvider && _jsx(SelectItem, { value: "edit", children: "Edit" }), _jsx(SelectItem, { value: "attachments", children: "Attachments" })] })] }), mode === 'attachments' && attachmentTypes.length > 1 && (_jsx(ToggleGroup, { type: "single", value: attachmentFilter, onValueChange: (value) => {
|
|
129
|
-
const next = value || 'All';
|
|
130
|
-
setAttachmentFilter(next);
|
|
131
|
-
window.dispatchEvent(new CustomEvent('terra-docs:attachment-filter', { detail: next }));
|
|
132
|
-
}, "aria-label": "Filter attachments", children: ['All', ...attachmentTypes].map((kind) => (_jsx(ToggleGroupItem, { value: kind, size: "sm", children: kind }, kind))) })), mode === 'edit' && capabilities.save && (_jsx(Button, { type: "button", size: "xs", onClick: onSave, children: "Save" })), mode === 'edit' && capabilities.history && (_jsx(Button, { type: "button", size: "xs", variant: "ghost", onClick: onHistory, children: "History" })), mode === 'edit' && capabilities.publish && (_jsx(Button, { type: "button", size: "xs", variant: "tonal", onClick: onPublish, children: "Publish" }))] }));
|
|
133
|
-
}
|
|
134
|
-
export function DocsAttachmentsView({ attachments = [], onUpload, }) {
|
|
135
|
-
const [filter, setFilter] = useState('All');
|
|
136
|
-
useEffect(() => {
|
|
137
|
-
const update = (event) => setFilter(event.detail);
|
|
138
|
-
window.addEventListener('terra-docs:attachment-filter', update);
|
|
139
|
-
return () => window.removeEventListener('terra-docs:attachment-filter', update);
|
|
140
|
-
}, []);
|
|
141
|
-
const visible = filter === 'All'
|
|
142
|
-
? attachments
|
|
143
|
-
: attachments.filter((attachment) => attachmentKind(attachment) === filter);
|
|
144
|
-
return (_jsxs("section", { className: "terra-docs-attachments-view", "aria-label": "Attachments", children: [_jsx("h2", { children: "Attachments" }), onUpload && (_jsxs("label", { className: "terra-docs-attachment-upload", children: ["Add attachment", ' ', _jsx("input", { type: "file", onChange: (event) => {
|
|
145
|
-
const file = event.currentTarget.files?.[0];
|
|
146
|
-
if (file)
|
|
147
|
-
void onUpload(file);
|
|
148
|
-
event.currentTarget.value = '';
|
|
149
|
-
} })] })), visible.length ? (_jsx("ul", { children: visible.map((attachment, index) => (_jsxs("li", { children: [_jsx("a", { href: attachment.href, target: "_blank", rel: "noopener noreferrer", children: attachment.title }), attachment.type && _jsx("span", { children: attachment.type })] }, `${attachment.href}-${index}`))) })) : (_jsx("p", { children: "No attachments found." }))] }));
|
|
150
|
-
}
|
|
151
|
-
//# sourceMappingURL=workspace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EACL,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,IAAI,EACJ,oBAAoB,EACpB,QAAQ,GACT,MAAM,qBAAqB,CAAC;AA0D7B,SAAS,cAAc,CAAC,UAA0B;IAChD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,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