@skaile/forge-editor 6.4.1 → 6.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/code/CodeSurface.vue.d.ts +3 -3
- package/dist/core/document-markdown.d.ts +11 -6
- package/dist/core/document-markdown.js +34 -23
- package/dist/core/document-markdown.js.map +1 -1
- package/dist/core/soft-line-breaks.js +44 -0
- package/dist/core/soft-line-breaks.js.map +1 -0
- package/dist/document/DocumentSurface.vue.d.ts +3 -3
- package/dist/features/ai/components/AiReviewBar.js +1 -1
- package/dist/features/ai/components/AiSelectionMenu.js +1 -1
- package/dist/features/ai/components/AiSidebar.js +2 -2
- package/dist/features/ai/components/DocumentChatAnswer.js +1 -1
- package/dist/features/ai/components/SettingsModelProfiles.js +1 -1
- package/dist/features/ai/feature.js +1 -1
- package/dist/features/ai/index.js +7 -7
- package/dist/features/ai/react/AiSelectionMenu.js +4 -4
- package/dist/features/ai/react/AiSidebar.js +4 -4
- package/dist/features/ai/react/DocumentChatOps.js +1 -1
- package/dist/features/ai/react/ModelQuickSwitch.js +1 -1
- package/dist/features/ai/react/SettingsModelProfiles.js +1 -1
- package/dist/features/ai/react/use-ai-assistant.js +1 -1
- package/dist/features/ai/react/use-document-chat.js +1 -1
- package/dist/features/ai/use-ai-assistant.js +2 -2
- package/dist/features/ai/use-document-chat.js +1 -1
- package/dist/features/ai/vue.js +1 -1
- package/dist/features/authors/components/AuthorColorsPanel.js +1 -1
- package/dist/features/authors/components/SettingsAuthorsTab.js +1 -1
- package/dist/features/authors/index.js +1 -1
- package/dist/features/authors/react/AuthorColorsPanel.js +2 -2
- package/dist/features/authors/react/SettingsAuthorsTab.js +1 -1
- package/dist/features/authors/vue.js +1 -1
- package/dist/features/block-ui/index.js +1 -1
- package/dist/features/block-ui/react/BlockActionsOverlay.js +1 -1
- package/dist/features/block-ui/vue.js +1 -1
- package/dist/features/comments/react/CommentThreadView.js +1 -1
- package/dist/features/composites/components/CompositeInspector.js +8 -8
- package/dist/features/composites/components/ReferenceListFieldEditor.js +1 -1
- package/dist/features/composites/components/SettingsEditingTab.js +1 -1
- package/dist/features/composites/index.js +5 -5
- package/dist/features/composites/react/BibliographyEditor.js +1 -1
- package/dist/features/composites/react/CompositeChrome.js +1 -1
- package/dist/features/composites/react/CompositeDetails.js +1 -1
- package/dist/features/composites/react/CompositeInspector.js +3 -3
- package/dist/features/composites/react/CompositeTable.js +1 -1
- package/dist/features/composites/react/ReferenceListFieldEditor.js +1 -1
- package/dist/features/composites/react/ReferenceView.js +1 -1
- package/dist/features/composites/react/SettingsEditingTab.js +3 -3
- package/dist/features/composites/react.js +2 -2
- package/dist/features/composites/vue.js +2 -2
- package/dist/features/pruefung/vue.js +1 -1
- package/dist/features/themes/vue.js +1 -1
- package/dist/features/transfer/vue.js +1 -1
- package/dist/integrations/composite-ai/index.js +1 -1
- package/dist/markdown/MarkdownSurface.vue.d.ts +5 -5
- package/dist/react/EditorToolbar.js +2 -2
- package/dist/react/compose.js +2 -2
- package/dist/react/index.js +1 -1
- package/dist/search/react/SearchPanel.js +1 -1
- package/dist/tree/DocumentTree.js +1 -1
- package/dist/tree/react/DocumentTree.js +3 -3
- package/dist/tree/react/use-tree-model.js +2 -2
- package/dist/tree/use-tree-model.js +1 -1
- package/dist/vue/AdvancedEditor.vue.d.ts +4 -4
- package/dist/vue/SimpleEditor.vue.d.ts +4 -4
- package/dist/vue/components/EditorSurface.vue.d.ts +4 -4
- package/dist/vue/compose.js +2 -2
- package/dist/vue/index.js +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ import { propertyHostOf } from "../properties.js";
|
|
|
4
4
|
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
5
5
|
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
6
6
|
import { compositeFieldText, isStructuredField } from "../inspector-model.js";
|
|
7
|
-
import _sfc_main$1 from "./
|
|
8
|
-
import _sfc_main$2 from "./
|
|
9
|
-
import _sfc_main$3 from "./
|
|
10
|
-
import _sfc_main$4 from "./
|
|
7
|
+
import _sfc_main$1 from "./DocumentBadges.js";
|
|
8
|
+
import _sfc_main$2 from "./DerivationBadge.js";
|
|
9
|
+
import _sfc_main$3 from "./CompositeFieldEditor.js";
|
|
10
|
+
import _sfc_main$4 from "./InspectorSections.js";
|
|
11
11
|
import { useCompositeInspector } from "../use-composite-inspector.js";
|
|
12
12
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useId, withCtx } from "vue";
|
|
13
13
|
//#region src/features/composites/components/CompositeInspector.vue
|
|
@@ -109,7 +109,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
109
109
|
class: "text-sm font-semibold text-[var(--sk-fg-highlighted)]"
|
|
110
110
|
}, toDisplayString(unref(t)("composites.inspector.document")), 9, _hoisted_4),
|
|
111
111
|
createCommentVNode(" Chips of the whole document other features add (`EditorFeature.documentBadges`), e.g. the Freigabestatus. "),
|
|
112
|
-
createVNode(_sfc_main$
|
|
112
|
+
createVNode(_sfc_main$1, { editor: __props.editor }, null, 8, ["editor"])
|
|
113
113
|
]), createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "document"), createElementVNode("dl", _hoisted_6, [
|
|
114
114
|
createElementVNode("dt", _hoisted_7, toDisplayString(unref(t)("composites.inspector.composites")), 1),
|
|
115
115
|
unref(kinds).length ? (openBlock(), createElementBlock("dd", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(kinds), (kind) => {
|
|
@@ -267,7 +267,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
267
267
|
label: field.label,
|
|
268
268
|
size: "sm"
|
|
269
269
|
}, {
|
|
270
|
-
default: withCtx(() => [createCommentVNode(" Fields whose value is not text (reference, bibliography, derivation) have their own editors, as in the details card; a text input would overwrite the stored object with a string. "), unref(isStructuredField)(field) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.editor ? (openBlock(), createBlock(_sfc_main$
|
|
270
|
+
default: withCtx(() => [createCommentVNode(" Fields whose value is not text (reference, bibliography, derivation) have their own editors, as in the details card; a text input would overwrite the stored object with a string. "), unref(isStructuredField)(field) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.editor ? (openBlock(), createBlock(_sfc_main$3, {
|
|
271
271
|
key: 0,
|
|
272
272
|
editor: __props.editor,
|
|
273
273
|
row: unref(properties),
|
|
@@ -335,14 +335,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
335
335
|
label: unref(t)("composites.inspector.derivation"),
|
|
336
336
|
size: "sm"
|
|
337
337
|
}, {
|
|
338
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
338
|
+
default: withCtx(() => [createVNode(_sfc_main$2, {
|
|
339
339
|
editor: __props.editor,
|
|
340
340
|
node: unref(derivation).node
|
|
341
341
|
}, null, 8, ["editor", "node"])]),
|
|
342
342
|
_: 1
|
|
343
343
|
}, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
344
344
|
createCommentVNode(" Sections other features add (`EditorFeature.inspectorSections`), e.g. the Prüfstand. "),
|
|
345
|
-
__props.editor ? (openBlock(), createBlock(_sfc_main$
|
|
345
|
+
__props.editor ? (openBlock(), createBlock(_sfc_main$4, {
|
|
346
346
|
key: 3,
|
|
347
347
|
editor: __props.editor,
|
|
348
348
|
node: blockNode.value
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { setBlockProperty } from "../properties.js";
|
|
2
2
|
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
3
3
|
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
4
|
-
import { referenceListChipsOf, referenceListChoicesOf, withReferenceListEntry, withoutReferenceListEntry } from "../reference-list-model.js";
|
|
5
4
|
import { useCompositeRows } from "../use-composite-rows.js";
|
|
5
|
+
import { referenceListChipsOf, referenceListChoicesOf, withReferenceListEntry, withoutReferenceListEntry } from "../reference-list-model.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, toDisplayString, unref } from "vue";
|
|
7
7
|
//#region src/features/composites/components/ReferenceListFieldEditor.vue
|
|
8
8
|
const _hoisted_1 = { class: "flex w-full flex-col gap-1.5" };
|
|
@@ -4,9 +4,9 @@ import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
|
4
4
|
import { useEditorSettings } from "../../../vue/settings.js";
|
|
5
5
|
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
6
6
|
import { STRUCTURE_MODE_KEYS } from "../structure-mode.js";
|
|
7
|
-
import { BLOCK_TYPE_ICON_KEYS, DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, optionItems } from "../editing-settings-keys.js";
|
|
8
7
|
import { TREE_ROOT_KEYS } from "../tree-root.js";
|
|
9
8
|
import _sfc_main$1 from "../../../vue/components/SettingsSection.js";
|
|
9
|
+
import { BLOCK_TYPE_ICON_KEYS, DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, optionItems } from "../editing-settings-keys.js";
|
|
10
10
|
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, ref, unref, watch, withCtx, withKeys } from "vue";
|
|
11
11
|
//#region src/features/composites/components/SettingsEditingTab.vue
|
|
12
12
|
const _hoisted_1 = { class: "flex flex-col gap-8" };
|
|
@@ -25,8 +25,7 @@ import { BlockTypeJsonError, mergeBlockTypes, parseBlockTypes } from "./block-ty
|
|
|
25
25
|
import { citeEntriesOf, citeText, resolveCite } from "./cite-label.js";
|
|
26
26
|
import { normalizeReferences, referencesFromText } from "./reference-text.js";
|
|
27
27
|
import { compositeSchemaExtensions } from "./schema.js";
|
|
28
|
-
import {
|
|
29
|
-
import { EMBED_CLASS, embedViewOptions, mountEmbed } from "./embed-dom.js";
|
|
28
|
+
import { compositeSectionOf, observeCompositeAnchors } from "./anchors.js";
|
|
30
29
|
import { AcceptedChildren } from "./accepted-children.js";
|
|
31
30
|
import { derivedChipOf, derivedRowBadge } from "./badges.js";
|
|
32
31
|
import { isAiProposal } from "./ai-proposal.js";
|
|
@@ -46,9 +45,10 @@ import { CompositeSplit, childKindFor, generatedTitle, splitBodyAtRules, splitBo
|
|
|
46
45
|
import { Structure, structureOf } from "./structure.js";
|
|
47
46
|
import { STRUCTURE_MODE_KEYS } from "./structure-mode.js";
|
|
48
47
|
import { compositeFeatureCore } from "./feature.js";
|
|
49
|
-
import {
|
|
48
|
+
import { canMoveBlockInto, compositeOutline, documentOutline, moveBlockInto, moveIntoVerdict } from "./outline.js";
|
|
50
49
|
import { createCompositeRows } from "./rows-model.js";
|
|
51
|
-
import { TREE_ROOT_KEYS } from "./tree-root.js";
|
|
52
50
|
import { compositeFieldText, createCompositeInspector } from "./inspector-model.js";
|
|
53
|
-
import {
|
|
51
|
+
import { embedChainOf, embedKeyOf, embedStateOf } from "./embed-model.js";
|
|
52
|
+
import { EMBED_CLASS, embedViewOptions, mountEmbed } from "./embed-dom.js";
|
|
53
|
+
import { TREE_ROOT_KEYS } from "./tree-root.js";
|
|
54
54
|
export { AcceptedChildren, BASKET_IDS, BASKET_KEY, BLOCK_EMBED_NODE, BlockEmbedNode, BlockEmbedSuggestionPluginKey, BlockTypeJsonError, CITE_NODE, COLLECTION_ITEMS_KEY, COLLECTION_QUERY_KEY, COLLECTION_TYPE, COMPOSITE_CHROME_COUNT, CSL_TYPES, CiteNode, CiteSuggestionPluginKey, CompositeDescriptionNode, CompositeFocus, CompositeMerge, CompositeNode, CompositeSplit, CompositeTagsNode, CompositeTitleNode, DATA_VIEW_DEBOUNCE_MS, DATA_VIEW_LAYOUT_KEY, DATA_VIEW_QUERY_KEY, DATA_VIEW_TYPE, DEFAULT_LAYOUT, EMBED_CLASS, FOREIGN_CONTENT_REFRESH_MS, LAYOUT_IDS, REVEAL_ANCHOR_EVENT, REVEAL_PAGE_EVENT, ReferenceNode, ReferenceSuggestionPluginKey, SOURCE_MEDIA_TYPES, STRUCTURE_MODE_KEYS, SourceReveal, Structure, TITLE_HIDDEN_KEY, TREE_ROOT_KEYS, VIEW_LAYOUTS, acceptsChild, acceptsImport, addToCollection, aiBlockTypesOf, basketById, basketOf, bibOf, bibtexKey, bibtexOf, blockEmbedAttrsOf, blockEmbedMarkdown, blockEmbedSuggestion, blockPropertiesAt, blockPropertiesOf, blockTypeOf, blockTypesOf, blocksFromMarkdown, bodyMarkdown, canMoveBlockInto, carriesProperties, childKindFor, chooseDataViewLayout, citeAttrsOf, citeEntriesOf, citeFull, citeMarkdown, citeShort, citeSuggestion, citeText, collectionChoicesOf, collectionItemsOf, collectionQueryOf, collectionViewOf, compositeAiBrief, compositeBacklinks, compositeBasketsOf, compositeChromeBlocks, compositeConversions, compositeDescriptionText, compositeFeatureCore, compositeFence, compositeFieldText, compositeFocusKey, compositeFocusOf, compositeNodes, compositeOfRow, compositeOutline, compositeRowAt, compositeRows, compositeSchemaExtensions, compositeSectionOf, conditionValueOf, convertCompositeBlocks, createCollectionViewModel, createCompositeInspector, createCompositeRows, createDataViewModel, createEditorDataViewModel, createEditorQueryBuilder, createQueryBuilderModel, cslOf, cslTypeOptions, dataRowKeyOf, dataViewCountLabelOf, dataViewLayoutOf, dataViewQueryOf, defaultBaskets, defaultBlockTypes, defaultGroupFieldOf, definitionsOfQuery, derivedChipOf, derivedRowBadge, displayEnv, documentCompositeMarkdown, documentOutline, embedChainOf, embedKeyOf, embedStateOf, embedViewOptions, exportCheckInspectorSection, exportCheckSectionOf, exportIssueLabel, exportIssuesOf, fieldChoicesOf, fieldColumnsOf, fillCollectionFromQuery, flattenCompositesToHeadings, focusDecorations, foreignBlockOf, generatedTitle, groupHeadingsIntoComposites, headingGroupRange, headingsMarkdown, insertDataView, isAiProposal, isRootBlockType, layoutIdOf, localRowsOf, markdownFileName, mergeBlockTypes, mergeBody, metaWithProperty, missingRequirementsOf, mostUsedBlockTypeOf, mountEmbed, moveBlockInto, moveCollectionItem, moveIntoVerdict, newDataViewMeta, normalizeReferences, observeCompositeAnchors, opsOfField, parseBlockTypes, parseLocator, propertyHostOf, provideCheckProbe, referenceLabel, referenceMarkdown, referenceSuggestion, referenceTarget, referenceTitle, referencesFromText, removeCollectionItem, resolveCite, revealSource, rowFieldsOf, seekSource, setBlockProperty, setCollectionItems, setCollectionQuery, setCompositeDescription, setCompositeTags, setDataViewQuery, sourceOf, splitBodyAtRules, splitBodyByLength, splitComposite, structureBlocks as structureCompositeBlocks, structureOf, subscribeBlockChanges, subscribeExportCheck, subscribeForeignBlocks, tableColumnsOf, titleHiddenOf, typedBlockViewOptions, valueInputOf, viewModelOf, withCollectionItems, withItemMoved, withNewAddresses, yearOf };
|
|
@@ -4,9 +4,9 @@ import { Icon } from "../../../react/Icon.js";
|
|
|
4
4
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
5
5
|
import { Button } from "../../../react/ui/button.js";
|
|
6
6
|
import { Input } from "../../../react/ui/input.js";
|
|
7
|
+
import { bibFormOf, bibItemOf } from "../bibliography-form.js";
|
|
7
8
|
import { Textarea } from "../../../react/ui/textarea.js";
|
|
8
9
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
9
|
-
import { bibFormOf, bibItemOf } from "../bibliography-form.js";
|
|
10
10
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/features/composites/react/BibliographyEditor.tsx
|
|
@@ -9,8 +9,8 @@ import { Icon } from "../../../react/Icon.js";
|
|
|
9
9
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
10
10
|
import { useStore } from "../../../react/use-store.js";
|
|
11
11
|
import { useEditorSettings } from "../../../react/settings.js";
|
|
12
|
-
import { Popover, PopoverContent, PopoverTrigger } from "../../../react/ui/popover.js";
|
|
13
12
|
import { compositeSectionOf } from "../anchors.js";
|
|
13
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../../../react/ui/popover.js";
|
|
14
14
|
import { rowChipsOf } from "../chrome-badges.js";
|
|
15
15
|
import { useBadgeTick } from "./use-chrome-badges.js";
|
|
16
16
|
import { CompositeBasketMenu } from "./CompositeBasketMenu.js";
|
|
@@ -4,8 +4,8 @@ import { compositeBacklinks } from "../rows.js";
|
|
|
4
4
|
import { Icon } from "../../../react/Icon.js";
|
|
5
5
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
6
6
|
import { Button } from "../../../react/ui/button.js";
|
|
7
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
8
7
|
import { derivedNodeOf, detailFields } from "../details-model.js";
|
|
8
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
9
9
|
import { DerivationBadge } from "./DerivationBadge.js";
|
|
10
10
|
import { CompositeFieldEditor } from "./CompositeFieldEditor.js";
|
|
11
11
|
import { CompositeSummaryEditor } from "./CompositeSummaryEditor.js";
|
|
@@ -6,16 +6,16 @@ import { Icon } from "../../../react/Icon.js";
|
|
|
6
6
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
7
7
|
import { Badge } from "../../../react/ui/badge.js";
|
|
8
8
|
import { Input } from "../../../react/ui/input.js";
|
|
9
|
+
import { compositeFieldText, isStructuredField } from "../inspector-model.js";
|
|
10
|
+
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "../../../react/ui/popover.js";
|
|
11
|
+
import { DocumentBadges } from "./DocumentBadges.js";
|
|
9
12
|
import { Textarea } from "../../../react/ui/textarea.js";
|
|
10
13
|
import { Command, CommandInput, CommandItem, CommandList } from "../../../react/ui/command.js";
|
|
11
|
-
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "../../../react/ui/popover.js";
|
|
12
14
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
13
15
|
import { Label } from "../../../react/ui/label.js";
|
|
14
16
|
import { DerivationBadge } from "./DerivationBadge.js";
|
|
15
17
|
import { CompositeFieldEditor } from "./CompositeFieldEditor.js";
|
|
16
18
|
import { InspectorSections } from "./InspectorSections.js";
|
|
17
|
-
import { DocumentBadges } from "./DocumentBadges.js";
|
|
18
|
-
import { compositeFieldText, isStructuredField } from "../inspector-model.js";
|
|
19
19
|
import { useCompositeInspector } from "./use-composite-inspector.js";
|
|
20
20
|
import { useEffect, useId, useState } from "react";
|
|
21
21
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -6,8 +6,8 @@ import { useStore } from "../../../react/use-store.js";
|
|
|
6
6
|
import { Badge } from "../../../react/ui/badge.js";
|
|
7
7
|
import { Button } from "../../../react/ui/button.js";
|
|
8
8
|
import { Input } from "../../../react/ui/input.js";
|
|
9
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
10
9
|
import { createTableControls, fieldText, hasText, isLongText, sortIconOf, tableViewOf } from "../table-model.js";
|
|
10
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
11
11
|
import { useCompositeRows } from "./use-composite-rows.js";
|
|
12
12
|
import { TableBody, TableCell, TableHead, TableHeader, TableRow } from "../../../react/ui/table.js";
|
|
13
13
|
import { useMemo, useState } from "react";
|
|
@@ -3,9 +3,9 @@ import { cn } from "../../../react/ui/utils.js";
|
|
|
3
3
|
import { Icon } from "../../../react/Icon.js";
|
|
4
4
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
5
5
|
import { Button } from "../../../react/ui/button.js";
|
|
6
|
+
import { referenceListChipsOf, referenceListChoicesOf, withReferenceListEntry, withoutReferenceListEntry } from "../reference-list-model.js";
|
|
6
7
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
7
8
|
import { useCompositeRows } from "./use-composite-rows.js";
|
|
8
|
-
import { referenceListChipsOf, referenceListChoicesOf, withReferenceListEntry, withoutReferenceListEntry } from "../reference-list-model.js";
|
|
9
9
|
import { useMemo } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/features/composites/react/ReferenceListFieldEditor.tsx
|
|
@@ -4,8 +4,8 @@ import { referenceAttrsOf, resolveReference } from "../reference-label.js";
|
|
|
4
4
|
import { cn } from "../../../react/ui/utils.js";
|
|
5
5
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
6
6
|
import { Input } from "../../../react/ui/input.js";
|
|
7
|
-
import { Popover, PopoverAnchor, PopoverContent } from "../../../react/ui/popover.js";
|
|
8
7
|
import { revealSource } from "../reveal-source.js";
|
|
8
|
+
import { Popover, PopoverAnchor, PopoverContent } from "../../../react/ui/popover.js";
|
|
9
9
|
import { useEffect, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { NodeViewWrapper } from "@tiptap/react";
|
|
@@ -4,14 +4,14 @@ import { Icon } from "../../../react/Icon.js";
|
|
|
4
4
|
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
5
5
|
import { useEditorSettings } from "../../../react/settings.js";
|
|
6
6
|
import { Input } from "../../../react/ui/input.js";
|
|
7
|
+
import { STRUCTURE_MODE_KEYS } from "../structure-mode.js";
|
|
8
|
+
import { TREE_ROOT_KEYS } from "../tree-root.js";
|
|
9
|
+
import { BLOCK_TYPE_ICON_KEYS, DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, optionItems } from "../editing-settings-keys.js";
|
|
7
10
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../react/ui/select.js";
|
|
8
11
|
import { SettingsSection } from "../../../react/SettingsSection.js";
|
|
9
12
|
import { Label } from "../../../react/ui/label.js";
|
|
10
13
|
import { Switch } from "../../../react/ui/switch.js";
|
|
11
14
|
import { RadioGroup, RadioGroupItem } from "../../../react/ui/radio-group.js";
|
|
12
|
-
import { STRUCTURE_MODE_KEYS } from "../structure-mode.js";
|
|
13
|
-
import { BLOCK_TYPE_ICON_KEYS, DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, optionItems } from "../editing-settings-keys.js";
|
|
14
|
-
import { TREE_ROOT_KEYS } from "../tree-root.js";
|
|
15
15
|
import { useEffect, useId, useState } from "react";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region src/features/composites/react/SettingsEditingTab.tsx
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { embedViewOptions } from "./embed-dom.js";
|
|
2
1
|
import { typedBlockViewOptions } from "./node-views.js";
|
|
3
2
|
import { compositeFeatureCore } from "./feature.js";
|
|
3
|
+
import { embedViewOptions } from "./embed-dom.js";
|
|
4
|
+
import { DocumentBadges } from "./react/DocumentBadges.js";
|
|
4
5
|
import { BlockEmbedView } from "./react/BlockEmbedView.js";
|
|
5
6
|
import { CiteView } from "./react/CiteView.js";
|
|
6
7
|
import { CompositeView } from "./react/CompositeView.js";
|
|
@@ -20,7 +21,6 @@ import { EdgesSection } from "./react/EdgesSection.js";
|
|
|
20
21
|
import { ExportCheckSection } from "./react/ExportCheckSection.js";
|
|
21
22
|
import { FocusChip } from "./react/FocusChip.js";
|
|
22
23
|
import { SettingsEditingTab } from "./react/SettingsEditingTab.js";
|
|
23
|
-
import { DocumentBadges } from "./react/DocumentBadges.js";
|
|
24
24
|
import { CompositeInspector } from "./react/CompositeInspector.js";
|
|
25
25
|
import { CompositeTable } from "./react/CompositeTable.js";
|
|
26
26
|
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { embedViewOptions } from "./embed-dom.js";
|
|
2
1
|
import { typedBlockViewOptions } from "./node-views.js";
|
|
3
2
|
import { compositeFeatureCore } from "./feature.js";
|
|
3
|
+
import { embedViewOptions } from "./embed-dom.js";
|
|
4
|
+
import _sfc_main$13 from "./components/DocumentBadges.js";
|
|
4
5
|
import _sfc_main from "./components/BlockEmbedView.js";
|
|
5
6
|
import _sfc_main$1 from "./components/CiteView.js";
|
|
6
7
|
import _sfc_main$11 from "./components/CompositeView.js";
|
|
@@ -20,7 +21,6 @@ import _sfc_main$14 from "./components/EdgesSection.js";
|
|
|
20
21
|
import _sfc_main$16 from "./components/FocusChip.js";
|
|
21
22
|
import _sfc_main$18 from "./components/ReferenceView.js";
|
|
22
23
|
import _sfc_main$19 from "./components/SettingsEditingTab.js";
|
|
23
|
-
import _sfc_main$13 from "./components/DocumentBadges.js";
|
|
24
24
|
import _sfc_main$6 from "./components/CompositeInspector.js";
|
|
25
25
|
import _sfc_main$9 from "./components/CompositeTable.js";
|
|
26
26
|
import { VueNodeViewRenderer } from "@tiptap/vue-3";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pruefungFeatureCore } from "./feature.js";
|
|
2
1
|
import _sfc_main from "./components/PruefungBadge.js";
|
|
2
|
+
import { pruefungFeatureCore } from "./feature.js";
|
|
3
3
|
//#region src/features/pruefung/vue.ts
|
|
4
4
|
/** The Vue Prüfung feature (Nuxt UI): see `pruefungFeatureCore`. The Prüfstand section shows in the Typed block inspector and details card. */
|
|
5
5
|
function pruefungFeature(options = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { themesFeatureCore } from "./feature.js";
|
|
2
1
|
import _sfc_main from "./components/SettingsAppearanceTab.js";
|
|
2
|
+
import { themesFeatureCore } from "./feature.js";
|
|
3
3
|
import { getCurrentInstance } from "vue";
|
|
4
4
|
//#region src/features/themes/vue.ts
|
|
5
5
|
const started = /* @__PURE__ */ new WeakSet();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transferFeatureCore } from "./feature.js";
|
|
2
1
|
import _sfc_main from "./components/TransferMenu.js";
|
|
2
|
+
import { transferFeatureCore } from "./feature.js";
|
|
3
3
|
//#region src/features/transfer/vue.ts
|
|
4
4
|
/** The Vue transfer feature (Nuxt UI): see `transferFeatureCore`. */
|
|
5
5
|
function transferFeature(options = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { withHeading } from "../../features/ai/protocol/tasks.js";
|
|
2
2
|
import { ABILITY } from "../../core/schema/abilities.js";
|
|
3
3
|
import { compositeFence } from "../../features/composites/fences.js";
|
|
4
|
-
import { modelProfiles } from "../../features/ai/model-profiles.js";
|
|
5
4
|
import { structureOf } from "../../features/composites/structure.js";
|
|
5
|
+
import { modelProfiles } from "../../features/ai/model-profiles.js";
|
|
6
6
|
import { fillComposite, generateCompositeBody } from "./composite-fill.js";
|
|
7
7
|
import { canDeriveAfter, derivableBlockTypesOf, deriveComposite, discardDerived, isDerivableSource, writeDerivedBody } from "./derive.js";
|
|
8
8
|
import { canFetchBibliography, doiOf, fetchBibliography } from "./bibliography-fetch.js";
|
|
@@ -41,28 +41,28 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
41
41
|
settingsOpen: import("vue").WritableComputedRef<boolean, boolean>;
|
|
42
42
|
settingsTab: import("vue").WritableComputedRef<string | undefined, string | undefined>;
|
|
43
43
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
-
"update:modelValue": (markdown: string) => any;
|
|
45
|
-
ready: (editor: Editor) => any;
|
|
46
44
|
settingsOpen: (tab?: string | undefined) => any;
|
|
47
45
|
"update:sidebarOpen": (value: boolean) => any;
|
|
48
46
|
"update:commentsOpen": (value: boolean) => any;
|
|
47
|
+
"update:modelValue": (markdown: string) => any;
|
|
49
48
|
frontmatter: (frontmatter: string | null) => any;
|
|
49
|
+
ready: (editor: Editor) => any;
|
|
50
50
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
51
51
|
contentError: (error: Error) => any;
|
|
52
52
|
diagnostics: (diagnostics: MarkdownDiagnostic[]) => any;
|
|
53
53
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
54
|
-
"onUpdate:modelValue"?: ((markdown: string) => any) | undefined;
|
|
55
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
56
54
|
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
57
55
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
58
56
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((markdown: string) => any) | undefined;
|
|
59
58
|
onFrontmatter?: ((frontmatter: string | null) => any) | undefined;
|
|
59
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
60
60
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
61
61
|
onContentError?: ((error: Error) => any) | undefined;
|
|
62
62
|
onDiagnostics?: ((diagnostics: MarkdownDiagnostic[]) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
|
-
editable: boolean;
|
|
65
64
|
modelValue: string;
|
|
65
|
+
editable: boolean;
|
|
66
66
|
settingsUi: "internal" | "external";
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -6,10 +6,10 @@ import { Icon } from "./Icon.js";
|
|
|
6
6
|
import { useEditorI18n } from "./use-editor-i18n.js";
|
|
7
7
|
import { useStore } from "./use-store.js";
|
|
8
8
|
import { Button } from "./ui/button.js";
|
|
9
|
-
import { shortcutLabel } from "./key-labels.js";
|
|
10
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip.js";
|
|
11
9
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "./ui/dropdown-menu.js";
|
|
10
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip.js";
|
|
12
11
|
import { collapsedGroupMenu, fitToolbar } from "../core/toolbar-fit.js";
|
|
12
|
+
import { shortcutLabel } from "./key-labels.js";
|
|
13
13
|
import { Separator } from "./ui/separator.js";
|
|
14
14
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
package/dist/react/compose.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { coreUiFeature } from "../core/core-feature.js";
|
|
2
|
+
import { mediaFeature } from "../features/media/react.js";
|
|
3
|
+
import { AI_BINDINGS, layerCompositions } from "../presets/layer.js";
|
|
2
4
|
import { EditorCommandPalette } from "./EditorCommandPalette.js";
|
|
3
5
|
import { aiFeature } from "../features/ai/react.js";
|
|
4
6
|
import { authorsFeature } from "../features/authors/react.js";
|
|
@@ -6,13 +8,11 @@ import { blockUiFeature } from "../features/block-ui/react.js";
|
|
|
6
8
|
import { collabFeature } from "../features/collab/react.js";
|
|
7
9
|
import { commentsFeature } from "../features/comments/react.js";
|
|
8
10
|
import { compositeFeature } from "../features/composites/react.js";
|
|
9
|
-
import { mediaFeature } from "../features/media/react.js";
|
|
10
11
|
import { themesFeature } from "../features/themes/react.js";
|
|
11
12
|
import { pruefungFeature } from "../features/pruefung/react.js";
|
|
12
13
|
import { exploreFeature } from "../features/explore/react.js";
|
|
13
14
|
import { transferFeature } from "../features/transfer/react.js";
|
|
14
15
|
import { transcriptFeature } from "../features/transcript/react.js";
|
|
15
|
-
import { AI_BINDINGS, layerCompositions } from "../presets/layer.js";
|
|
16
16
|
//#region src/react/compose.ts
|
|
17
17
|
/** The React bindings of the UI-bound catalog features (`presets/catalog`: the rows with a `ui` part). */
|
|
18
18
|
const REACT_BINDINGS = {
|
package/dist/react/index.js
CHANGED
|
@@ -10,8 +10,8 @@ import { EditorUiContext, useEditorUi } from "./editor-ui.js";
|
|
|
10
10
|
import { reactNotifier } from "./notify.js";
|
|
11
11
|
import { SuggestionList, reactSuggestionRenderer } from "./suggestion-renderer.js";
|
|
12
12
|
import { EditorSurface } from "./EditorSurface.js";
|
|
13
|
-
import { EditorCommandPalette } from "./EditorCommandPalette.js";
|
|
14
13
|
import { useNotifier } from "./use-notifier.js";
|
|
14
|
+
import { EditorCommandPalette } from "./EditorCommandPalette.js";
|
|
15
15
|
import { SettingsSection } from "./SettingsSection.js";
|
|
16
16
|
import { EditorToolbar } from "./EditorToolbar.js";
|
|
17
17
|
import { Toaster } from "sonner";
|
|
@@ -3,8 +3,8 @@ import { cn } from "../../react/ui/utils.js";
|
|
|
3
3
|
import { Icon } from "../../react/Icon.js";
|
|
4
4
|
import { useEditorI18n } from "../../react/use-editor-i18n.js";
|
|
5
5
|
import { Button } from "../../react/ui/button.js";
|
|
6
|
-
import { Input } from "../../react/ui/input.js";
|
|
7
6
|
import { hitLabel } from "../search-model.js";
|
|
7
|
+
import { Input } from "../../react/ui/input.js";
|
|
8
8
|
import { useSearchModel } from "./use-search-model.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/search/react/SearchPanel.tsx
|
|
@@ -5,10 +5,10 @@ import { basketById } from "../features/composites/baskets.js";
|
|
|
5
5
|
import { useUiKit } from "../vue/kit/use-ui-kit.js";
|
|
6
6
|
import { useEditorSettings } from "../vue/settings.js";
|
|
7
7
|
import { useEditorI18n } from "../vue/use-editor-i18n.js";
|
|
8
|
-
import _sfc_main$1 from "../features/composites/components/DocumentBadges.js";
|
|
9
8
|
import { DRAG_MIME, focusCrumbs, indexItems, isOutlineHeader, itemBasket } from "./tree-items.js";
|
|
10
9
|
import { refocusRow, rowPosition } from "./row-focus.js";
|
|
11
10
|
import { rowOf } from "./tree-model.js";
|
|
11
|
+
import _sfc_main$1 from "../features/composites/components/DocumentBadges.js";
|
|
12
12
|
import { useTreeModel } from "./use-tree-model.js";
|
|
13
13
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, withCtx, withKeys, withModifiers } from "vue";
|
|
14
14
|
//#region src/tree/DocumentTree.vue
|
|
@@ -8,12 +8,12 @@ import { useEditorI18n } from "../../react/use-editor-i18n.js";
|
|
|
8
8
|
import { Button } from "../../react/ui/button.js";
|
|
9
9
|
import { useEditorSettings } from "../../react/settings.js";
|
|
10
10
|
import { Input } from "../../react/ui/input.js";
|
|
11
|
+
import { DRAG_MIME, focusCrumbs, isOutlineHeader, itemBasket } from "../tree-items.js";
|
|
12
|
+
import { Collapsible, CollapsibleContent } from "../../react/ui/collapsible.js";
|
|
13
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../react/ui/dropdown-menu.js";
|
|
11
14
|
import { Popover, PopoverContent, PopoverTrigger } from "../../react/ui/popover.js";
|
|
12
15
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../react/ui/tooltip.js";
|
|
13
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../react/ui/dropdown-menu.js";
|
|
14
16
|
import { DocumentBadges } from "../../features/composites/react/DocumentBadges.js";
|
|
15
|
-
import { DRAG_MIME, focusCrumbs, isOutlineHeader, itemBasket } from "../tree-items.js";
|
|
16
|
-
import { Collapsible, CollapsibleContent } from "../../react/ui/collapsible.js";
|
|
17
17
|
import { refocusRow, rowPosition } from "../row-focus.js";
|
|
18
18
|
import { rowOf } from "../tree-model.js";
|
|
19
19
|
import { useTreeModel } from "./use-tree-model.js";
|
|
@@ -2,10 +2,10 @@ import { useEditorContext } from "../../react/context.js";
|
|
|
2
2
|
import { Icon } from "../../react/Icon.js";
|
|
3
3
|
import { useEditorI18n } from "../../react/use-editor-i18n.js";
|
|
4
4
|
import { useEditorSettings } from "../../react/settings.js";
|
|
5
|
-
import { useNotifier } from "../../react/use-notifier.js";
|
|
6
|
-
import { useFileImport } from "../../features/media/react.js";
|
|
7
5
|
import { treeView } from "../tree-view-model.js";
|
|
8
6
|
import { createTreeModel } from "../tree-model.js";
|
|
7
|
+
import { useNotifier } from "../../react/use-notifier.js";
|
|
8
|
+
import { useFileImport } from "../../features/media/react.js";
|
|
9
9
|
import { createTreeExecutor, treeEditorOf } from "../tree-host.js";
|
|
10
10
|
import { createElement, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { toast } from "sonner";
|
|
@@ -3,10 +3,10 @@ import { useEditorSettings } from "../vue/settings.js";
|
|
|
3
3
|
import { useEditorContext } from "../vue/context.js";
|
|
4
4
|
import { useEditorI18n } from "../vue/use-editor-i18n.js";
|
|
5
5
|
import { useStoreRef } from "../vue/store-ref.js";
|
|
6
|
-
import { useFileImport } from "../features/media/vue.js";
|
|
7
6
|
import { treeView } from "./tree-view-model.js";
|
|
8
7
|
import { createTreeModel } from "./tree-model.js";
|
|
9
8
|
import { createTreeExecutor, treeEditorOf } from "./tree-host.js";
|
|
9
|
+
import { useFileImport } from "../features/media/vue.js";
|
|
10
10
|
import { computed, onScopeDispose, shallowRef, watch } from "vue";
|
|
11
11
|
//#region src/tree/use-tree-model.ts
|
|
12
12
|
/**
|
|
@@ -82,19 +82,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
82
82
|
editor: import("vue").ComputedRef<Editor | undefined>;
|
|
83
83
|
preset: ComposedEditor<Component>;
|
|
84
84
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
|
-
"update:modelValue": (content: JSONContent) => any;
|
|
86
|
-
ready: (editor: Editor) => any;
|
|
87
85
|
settingsOpen: (tab?: string | undefined) => any;
|
|
88
86
|
"update:sidebarOpen": (value: boolean) => any;
|
|
89
87
|
"update:commentsOpen": (value: boolean) => any;
|
|
88
|
+
"update:modelValue": (content: JSONContent) => any;
|
|
89
|
+
ready: (editor: Editor) => any;
|
|
90
90
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
91
91
|
contentError: (error: Error) => any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
93
|
-
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
94
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
95
93
|
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
96
94
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
97
95
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
96
|
+
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
97
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
98
98
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
99
99
|
onContentError?: ((error: Error) => any) | undefined;
|
|
100
100
|
}>, {
|
|
@@ -41,19 +41,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
41
41
|
editor: import("vue").ComputedRef<Editor | undefined>;
|
|
42
42
|
preset: EditorPreset<Component>;
|
|
43
43
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
-
"update:modelValue": (content: JSONContent) => any;
|
|
45
|
-
ready: (editor: Editor) => any;
|
|
46
44
|
settingsOpen: (tab?: string | undefined) => any;
|
|
47
45
|
"update:sidebarOpen": (value: boolean) => any;
|
|
48
46
|
"update:commentsOpen": (value: boolean) => any;
|
|
47
|
+
"update:modelValue": (content: JSONContent) => any;
|
|
48
|
+
ready: (editor: Editor) => any;
|
|
49
49
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
50
50
|
contentError: (error: Error) => any;
|
|
51
51
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
52
|
-
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
53
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
54
52
|
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
55
53
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
56
54
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
55
|
+
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
56
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
57
57
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
58
58
|
onContentError?: ((error: Error) => any) | undefined;
|
|
59
59
|
}>, {
|
|
@@ -43,19 +43,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
43
43
|
settingsOpen: import("vue").Ref<boolean, boolean>;
|
|
44
44
|
settingsTab: import("vue").Ref<string | undefined, string | undefined>;
|
|
45
45
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
-
"update:modelValue": (content: JSONContent) => any;
|
|
47
|
-
ready: (editor: Editor) => any;
|
|
48
46
|
settingsOpen: (tab?: string | undefined) => any;
|
|
49
47
|
"update:sidebarOpen": (value: boolean) => any;
|
|
50
48
|
"update:commentsOpen": (value: boolean) => any;
|
|
49
|
+
"update:modelValue": (content: JSONContent) => any;
|
|
50
|
+
ready: (editor: Editor) => any;
|
|
51
51
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
52
52
|
contentError: (error: Error) => any;
|
|
53
53
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
54
|
-
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
55
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
56
54
|
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
57
55
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
58
56
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
58
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
59
59
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
60
60
|
onContentError?: ((error: Error) => any) | undefined;
|
|
61
61
|
}>, {
|
package/dist/vue/compose.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { coreUiFeature } from "../core/core-feature.js";
|
|
2
|
-
import {
|
|
2
|
+
import { mediaFeature } from "../features/media/vue.js";
|
|
3
3
|
import _sfc_main from "./components/EditorCommandPalette.js";
|
|
4
4
|
import { aiFeature } from "../features/ai/vue.js";
|
|
5
5
|
import { authorsFeature } from "../features/authors/vue.js";
|
|
@@ -7,12 +7,12 @@ import { blockUiFeature } from "../features/block-ui/vue.js";
|
|
|
7
7
|
import { collabFeature } from "../features/collab/vue.js";
|
|
8
8
|
import { commentsFeature } from "../features/comments/vue.js";
|
|
9
9
|
import { compositeFeature } from "../features/composites/vue.js";
|
|
10
|
-
import { mediaFeature } from "../features/media/vue.js";
|
|
11
10
|
import { themesFeature } from "../features/themes/vue.js";
|
|
12
11
|
import { pruefungFeature } from "../features/pruefung/vue.js";
|
|
13
12
|
import { exploreFeature } from "../features/explore/vue.js";
|
|
14
13
|
import { transferFeature } from "../features/transfer/vue.js";
|
|
15
14
|
import { transcriptFeature } from "../features/transcript/vue.js";
|
|
15
|
+
import { AI_BINDINGS, layerCompositions } from "../presets/layer.js";
|
|
16
16
|
//#region src/vue/compose.ts
|
|
17
17
|
/** The Vue bindings of the UI-bound catalog features (`presets/catalog`: the rows with a `ui` part). */
|
|
18
18
|
const VUE_BINDINGS = {
|
package/dist/vue/index.js
CHANGED
|
@@ -11,8 +11,8 @@ import { vueSuggestionRenderer } from "./suggestion-renderer.js";
|
|
|
11
11
|
import _sfc_main$2 from "./components/EditorSettingsPanel.js";
|
|
12
12
|
import _sfc_main$1 from "./components/EditorSettingsModal.js";
|
|
13
13
|
import _sfc_main$3 from "./components/EditorSurface.js";
|
|
14
|
-
import _sfc_main from "./components/EditorCommandPalette.js";
|
|
15
14
|
import { useNotifier } from "./use-notifier.js";
|
|
15
|
+
import _sfc_main from "./components/EditorCommandPalette.js";
|
|
16
16
|
import _sfc_main$5 from "./components/SettingsSection.js";
|
|
17
17
|
import _sfc_main$4 from "./components/EditorToolbar.js";
|
|
18
18
|
export { EDITOR_CONTEXT, EDITOR_UI, _sfc_main as EditorCommandPalette, _sfc_main$1 as EditorSettingsModal, _sfc_main$2 as EditorSettingsPanel, _sfc_main$3 as EditorSurface, _sfc_main$4 as EditorToolbar, _sfc_main$5 as SettingsSection, _sfc_main$6 as SuggestionList, VUE_UI_KIT, attachNotifier, createEditor, createQueuedNotifier, storeFromRef, trackedStore, useEditorContext, useEditorI18n, useEditorSettings, useEditorUi, useNotifier, useStoreRef, useUiKit, useWritableStoreRef, vueSuggestionRenderer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skaile/forge-editor",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue and React editor library on TipTap v3 (Vue: Nuxt UI; React: shadcn/ui): framework-free features with Vue and React bindings, simple and advanced presets, tree-shakeable entries. Built ESM with type declarations.",
|
|
6
6
|
"license": "MIT",
|