@septkit/ui 0.0.42 → 0.0.44
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/dist/code/code-block.js +7 -0
- package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/code/diff.js +35 -0
- package/dist/code/highlight.js +30 -0
- package/dist/code/index.js +5 -0
- package/dist/code/xml-diff.js +5 -0
- package/dist/code/xml-diff.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/dialecte/composables/index.js +2 -1
- package/dist/dialecte/composables/use-active-document.js +24 -0
- package/dist/dialecte/create-document-store.js +3 -3
- package/dist/dialecte/index.js +2 -1
- package/dist/dialog/dialog-host.js +5 -0
- package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/dialog/dialog.js +5 -0
- package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/dialog/index.js +4 -0
- package/dist/dialog/use-dialog-host.js +32 -0
- package/dist/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/helpers.js +142 -0
- package/dist/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/index.js +3 -0
- package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js → @dialecte_core@0.4.6/node_modules/@dialecte/core/dist/project-wohrish5.js} +3352 -1170
- package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js → @dialecte_core@0.4.6/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/hooks-abaf9148.js +25264 -0
- package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +11 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/copy.js +16 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/text-wrap.js +22 -0
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js +11 -0
- package/dist/external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js +1299 -0
- package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js +34 -0
- package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.js +66 -0
- package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/java.js +3 -0
- package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
- package/dist/external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js +4 -0
- package/dist/external/.pnpm/@shikijs_types@3.23.0/node_modules/@shikijs/types/dist/index.js +8 -0
- package/dist/external/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +1576 -0
- package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +126 -43
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +84 -55
- package/dist/external/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +10 -0
- package/dist/external/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +257 -0
- package/dist/external/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +4 -0
- package/dist/external/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +7 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +11 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +6 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +49 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +28 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +7 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +6 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +8 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +48 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +86 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +10 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +39 -0
- package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +13 -0
- package/dist/external/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/external/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js +23 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js +419 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +487 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js +84 -0
- package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js +30 -0
- package/dist/external/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js +970 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +25 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +31 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +326 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +564 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +14 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +18 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +9 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +16 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +15 -0
- package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/external/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js +110 -0
- package/dist/external/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js +56 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js +94 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/internals.js +2 -0
- package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js +10 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContent.js +72 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js +101 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentModal.js +83 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js +74 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlay.js +48 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js +47 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js +61 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js +28 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/utils.js +17 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Menu/utils.js +16 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js +384 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.js +136 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js +119 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +27 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +67 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +136 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +28 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js +37 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js +82 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js +7 -2
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/browser.js +4 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/assert.js +6 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/calculate.js +73 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/callPanelCallbacks.js +19 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/compare.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/debounce.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/dom.js +20 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/events.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/layout.js +103 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/pivot.js +8 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/rects.js +6 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/registry.js +106 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/resizePanel.js +15 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/stackingOrder.js +57 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/storage.js +50 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/style.js +35 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/units.js +57 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/validation.js +39 -0
- package/dist/external/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +13 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +23 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +14 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +8 -0
- package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +17 -0
- package/dist/external/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +16 -0
- package/dist/index.d.ts +396 -21
- package/dist/index.js +24 -8
- package/dist/merge/build-view-model.js +168 -0
- package/dist/merge/decision-toggle.js +5 -0
- package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/merge/element-detail.js +5 -0
- package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/merge/index.js +6 -0
- package/dist/merge/merge-progress.js +5 -0
- package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/merge/merge-review.js +5 -0
- package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +305 -0
- package/dist/merge/merge-summary.js +5 -0
- package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/merge/merge-tree.js +5 -0
- package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/merge/merge.service.js +69 -0
- package/dist/merge/use-document-progress.js +27 -0
- package/dist/merge/use-merge-session.js +151 -0
- package/dist/ui.css +1 -1
- package/package.json +4 -2
- package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/helpers.js +0 -13
- package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/index.js +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { AcceptableValue } from 'reka-ui';
|
|
2
|
-
import {
|
|
2
|
+
import { ApplyResult } from '@dialecte/scl/v2019C1';
|
|
3
3
|
import { Component } from 'vue';
|
|
4
4
|
import { ComponentOptionsMixin } from 'vue';
|
|
5
5
|
import { ComponentProvideOptions } from 'vue';
|
|
6
6
|
import { ComputedRef } from 'vue';
|
|
7
7
|
import { DefineComponent } from 'vue';
|
|
8
|
+
import { DiffNode } from '@dialecte/scl/v2019C1';
|
|
9
|
+
import { DiffReport } from '@dialecte/scl/v2019C1';
|
|
8
10
|
import { ExtensionModule } from '@dialecte/core';
|
|
11
|
+
import { GroupDecision } from '@dialecte/scl/v2019C1';
|
|
12
|
+
import { InjectionKey } from 'vue';
|
|
13
|
+
import { LifecycleScenario } from '@dialecte/scl/v2019C1';
|
|
14
|
+
import { LifecycleTarget } from '@dialecte/scl/v2019C1';
|
|
15
|
+
import { LifecycleVerb } from '@dialecte/scl/v2019C1';
|
|
9
16
|
import { MaybeRefOrGetter } from 'vue';
|
|
10
17
|
import { ProjectChannelMessage } from '@dialecte/core';
|
|
11
18
|
import { PublicProps } from 'vue';
|
|
19
|
+
import { Reactive } from 'vue';
|
|
12
20
|
import { Ref } from 'vue';
|
|
21
|
+
import { Scl } from '@dialecte/scl/v2019C1';
|
|
22
|
+
import { ShallowRef } from 'vue';
|
|
13
23
|
|
|
14
24
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
15
25
|
|
|
@@ -44,13 +54,22 @@ size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
44
54
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
45
55
|
|
|
46
56
|
declare const __VLS_component_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
57
|
+
"update:open": (value: boolean) => any;
|
|
58
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
59
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
size: DialogSize;
|
|
62
|
+
closable: boolean;
|
|
63
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
|
|
65
|
+
declare const __VLS_component_5: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
47
66
|
select: (node: ExplorerNode) => any;
|
|
48
67
|
contextmenu: (payload: {
|
|
49
68
|
node: ExplorerNode;
|
|
50
69
|
event: MouseEvent;
|
|
51
70
|
}) => any;
|
|
52
71
|
"update:expanded": (state: ExplorerExpandedState) => any;
|
|
53
|
-
}, string, PublicProps, Readonly<
|
|
72
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
54
73
|
onSelect?: ((node: ExplorerNode) => any) | undefined;
|
|
55
74
|
onContextmenu?: ((payload: {
|
|
56
75
|
node: ExplorerNode;
|
|
@@ -71,6 +90,25 @@ declare type __VLS_Props = {
|
|
|
71
90
|
modifier?: 'wide' | 'block' | 'square' | 'circle';
|
|
72
91
|
};
|
|
73
92
|
|
|
93
|
+
declare type __VLS_Props_10 = {
|
|
94
|
+
detail: ElementDetailVM | undefined;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
declare type __VLS_Props_11 = MergeSessionParams & {
|
|
98
|
+
source?: FileMeta;
|
|
99
|
+
target?: FileMeta;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
declare type __VLS_Props_12 = {
|
|
103
|
+
items: ExplorerNode[];
|
|
104
|
+
/** Per-node metadata keyed by node id (change, role, groupId, path). */
|
|
105
|
+
meta: Record<string, MergeNodeMeta>;
|
|
106
|
+
/** Current decision per group id. */
|
|
107
|
+
decisions: Record<string, DecisionAction>;
|
|
108
|
+
/** Node ids to expand by default (the path to every change). */
|
|
109
|
+
expandedItems?: string[];
|
|
110
|
+
};
|
|
111
|
+
|
|
74
112
|
declare type __VLS_Props_2 = {
|
|
75
113
|
/** Trigger color */
|
|
76
114
|
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -101,15 +139,62 @@ declare type __VLS_Props_3 = {
|
|
|
101
139
|
};
|
|
102
140
|
|
|
103
141
|
declare type __VLS_Props_4 = {
|
|
142
|
+
/** Controlled open state (v-model:open). */
|
|
143
|
+
open: boolean;
|
|
144
|
+
title?: string;
|
|
145
|
+
size?: DialogSize;
|
|
146
|
+
closable?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Render in place (no teleport) and position `absolute`, so the dialog is
|
|
149
|
+
* confined to its nearest positioned ancestor instead of the whole viewport.
|
|
150
|
+
* The container must be `relative` + `overflow-hidden`.
|
|
151
|
+
*/
|
|
152
|
+
scoped?: boolean;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
declare type __VLS_Props_5 = {
|
|
156
|
+
host?: DialogController;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare type __VLS_Props_6 = {
|
|
104
160
|
items: ExplorerNode[];
|
|
105
161
|
expanded?: ExplorerExpandedState;
|
|
106
162
|
ariaLabel?: string;
|
|
107
163
|
};
|
|
108
164
|
|
|
165
|
+
declare type __VLS_Props_7 = {
|
|
166
|
+
/** Code to render. */
|
|
167
|
+
code?: string;
|
|
168
|
+
/** Shiki language id. Defaults to `xml`. */
|
|
169
|
+
lang?: string;
|
|
170
|
+
/** Optional per-line diff status, index-aligned with `code` lines. */
|
|
171
|
+
lineStatuses?: readonly LineStatus[];
|
|
172
|
+
loading?: boolean;
|
|
173
|
+
/** Start with word wrap enabled. */
|
|
174
|
+
wrap?: boolean;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
declare type __VLS_Props_8 = {
|
|
178
|
+
/** Baseline XML. Omit (or empty) for a purely-added element. */
|
|
179
|
+
before?: string;
|
|
180
|
+
/** Resulting XML. */
|
|
181
|
+
after?: string;
|
|
182
|
+
loading?: boolean;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
declare type __VLS_Props_9 = {
|
|
186
|
+
size?: 'xs' | 'sm' | 'md';
|
|
187
|
+
disabled?: boolean;
|
|
188
|
+
};
|
|
189
|
+
|
|
109
190
|
declare type __VLS_PublicProps = {
|
|
110
191
|
modelValue?: AcceptableValue;
|
|
111
192
|
} & __VLS_Props_3;
|
|
112
193
|
|
|
194
|
+
declare type __VLS_PublicProps_2 = {
|
|
195
|
+
modelValue: DecisionAction;
|
|
196
|
+
} & __VLS_Props_9;
|
|
197
|
+
|
|
113
198
|
declare function __VLS_template(): {
|
|
114
199
|
attrs: Partial<{}>;
|
|
115
200
|
slots: {
|
|
@@ -143,6 +228,17 @@ declare function __VLS_template_3(): {
|
|
|
143
228
|
};
|
|
144
229
|
|
|
145
230
|
declare function __VLS_template_4(): {
|
|
231
|
+
attrs: Partial<{}>;
|
|
232
|
+
slots: {
|
|
233
|
+
header?(_: {}): any;
|
|
234
|
+
default?(_: {}): any;
|
|
235
|
+
footer?(_: {}): any;
|
|
236
|
+
};
|
|
237
|
+
refs: {};
|
|
238
|
+
rootEl: any;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare function __VLS_template_5(): {
|
|
146
242
|
attrs: Partial<{}>;
|
|
147
243
|
slots: Readonly<{
|
|
148
244
|
'node-prefix'(props: {
|
|
@@ -177,6 +273,8 @@ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
|
177
273
|
|
|
178
274
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
179
275
|
|
|
276
|
+
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
277
|
+
|
|
180
278
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
181
279
|
new (): {
|
|
182
280
|
$slots: S;
|
|
@@ -201,12 +299,69 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
201
299
|
};
|
|
202
300
|
};
|
|
203
301
|
|
|
302
|
+
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
303
|
+
new (): {
|
|
304
|
+
$slots: S;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/** The component + props + options currently mounted in the host. */
|
|
309
|
+
export declare type ActiveDialog = {
|
|
310
|
+
component: Component;
|
|
311
|
+
props?: Record<string, unknown>;
|
|
312
|
+
options: DialogOptions;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Shell-agnostic observable used for the active document id — a current `value`
|
|
317
|
+
* plus `subscribe` (mirrors the shell's `Observable<T>`, whose value is
|
|
318
|
+
* `T | undefined`). Structural so the UI layer stays decoupled from
|
|
319
|
+
* `@septkit/shell-lib`.
|
|
320
|
+
*/
|
|
321
|
+
export declare type ActiveDocumentObservable<GenericValue> = {
|
|
322
|
+
readonly value: GenericValue | undefined;
|
|
323
|
+
subscribe(listener: (value: GenericValue | undefined) => void): () => void;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Minimal project surface `useActiveDocument` needs: the cross-realm readiness
|
|
328
|
+
* probe and the document opener. Real core/scl `Project`s satisfy it as-is.
|
|
329
|
+
*/
|
|
330
|
+
export declare type ActiveDocumentProject<GenericDocument> = {
|
|
331
|
+
getDocumentStatus: (documentId: string) => Promise<{
|
|
332
|
+
live: boolean;
|
|
333
|
+
ready: boolean;
|
|
334
|
+
}>;
|
|
335
|
+
openDocument: (documentId: string) => GenericDocument;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Consumer hook run INSIDE the merge transaction, right after `tx.lifecycle.apply`.
|
|
340
|
+
* Receives the `ApplyResult` (the instance roots the write produced) so a caller can
|
|
341
|
+
* layer domain-specific post-steps (e.g. naming, wiring) onto the same atomic tx for
|
|
342
|
+
* both preview and commit, keeping this service domain-agnostic.
|
|
343
|
+
*/
|
|
344
|
+
export declare type AfterApply = (tx: MergeTx, ctx: AfterApplyContext) => Promise<void> | void;
|
|
345
|
+
|
|
346
|
+
/** Context handed to {@link AfterApply}: the target plus what `apply` produced. */
|
|
347
|
+
declare type AfterApplyContext = {
|
|
348
|
+
target: LifecycleTarget;
|
|
349
|
+
report: DiffReport;
|
|
350
|
+
decisions: Map<string, GroupDecision>;
|
|
351
|
+
result: ApplyResult;
|
|
352
|
+
};
|
|
353
|
+
|
|
204
354
|
export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
205
355
|
|
|
206
356
|
export declare const CATEGORY_ELEMENTS: Record<string, string[]>;
|
|
207
357
|
|
|
358
|
+
/** How an element or attribute changed between the template and the instance. */
|
|
359
|
+
export declare type ChangeStatus = 'added' | 'removed' | 'modified' | 'unchanged';
|
|
360
|
+
|
|
208
361
|
declare function closeDropdown(): void;
|
|
209
362
|
|
|
363
|
+
export declare const CodeBlock: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
364
|
+
|
|
210
365
|
/**
|
|
211
366
|
* Collects the ids of every node that has children, for binding to
|
|
212
367
|
* Explorer's `expanded` v-model to expand the whole tree.
|
|
@@ -215,6 +370,9 @@ export declare function collectExpandableNodeIds(items: ExplorerNode[]): string[
|
|
|
215
370
|
|
|
216
371
|
export declare const Combobox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
217
372
|
|
|
373
|
+
/** Create a standalone dialog host (pure reactive state, no store). */
|
|
374
|
+
export declare function createDialogHost(): DialogController;
|
|
375
|
+
|
|
218
376
|
/**
|
|
219
377
|
* Build a per-extension reactive document store.
|
|
220
378
|
*
|
|
@@ -243,6 +401,29 @@ export declare function createDocumentStore<GenericBaseDocument, GenericAugmente
|
|
|
243
401
|
clear: () => void;
|
|
244
402
|
};
|
|
245
403
|
|
|
404
|
+
/** A user's binary choice on a decision group. */
|
|
405
|
+
export declare type DecisionAction = 'accept' | 'skip';
|
|
406
|
+
|
|
407
|
+
export declare const DecisionToggle: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
408
|
+
"update:modelValue": (value: DecisionAction) => any;
|
|
409
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
410
|
+
"onUpdate:modelValue"?: ((value: DecisionAction) => any) | undefined;
|
|
411
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
412
|
+
|
|
413
|
+
/** One attribute row in the element-detail panel (write-oriented +/- view). */
|
|
414
|
+
export declare type DetailAttribute = {
|
|
415
|
+
name: string;
|
|
416
|
+
status: ChangeStatus;
|
|
417
|
+
/** The current/instance value — the `-` line, present when modified/removed. */
|
|
418
|
+
before?: string;
|
|
419
|
+
/** The final value that will be written — the `+` line, present when added/modified. */
|
|
420
|
+
after?: string;
|
|
421
|
+
/** When set, the attribute is user-editable and its value renders as an input. */
|
|
422
|
+
editable?: EditableMode;
|
|
423
|
+
/** The engine auto-resolved a placement collision on this field (value = the resolved one). */
|
|
424
|
+
conflict?: boolean;
|
|
425
|
+
};
|
|
426
|
+
|
|
246
427
|
/**
|
|
247
428
|
* Message shapes posted on a dialecte project's BroadcastChannel — the public
|
|
248
429
|
* event contract of @dialecte/core. Alias of core's `ProjectChannelMessage`
|
|
@@ -250,8 +431,51 @@ export declare function createDocumentStore<GenericBaseDocument, GenericAugmente
|
|
|
250
431
|
*/
|
|
251
432
|
export declare type DialecteChannelMessage = ProjectChannelMessage;
|
|
252
433
|
|
|
434
|
+
export declare const Dialog: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
435
|
+
|
|
436
|
+
export declare type DialogController = {
|
|
437
|
+
/** Whether the host dialog is open. */
|
|
438
|
+
readonly open: Ref<boolean>;
|
|
439
|
+
/** The active dialog payload, or `undefined` when closed/empty. */
|
|
440
|
+
readonly active: ShallowRef<ActiveDialog | undefined>;
|
|
441
|
+
/** Open `component` in the host dialog with (type-checked) `props` and `options`. */
|
|
442
|
+
openDialog: <C extends Component>(component: C, props?: PropsOf<C>, options?: DialogOptions) => void;
|
|
443
|
+
/** Close the host dialog. */
|
|
444
|
+
close: () => void;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
export declare const DialogHost: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
448
|
+
|
|
449
|
+
/** Injection key for the ambient dialog host. */
|
|
450
|
+
export declare const dialogHostKey: InjectionKey<DialogController>;
|
|
451
|
+
|
|
452
|
+
/** Presentation options for a hosted dialog (passed through the dialog host). */
|
|
453
|
+
export declare type DialogOptions = {
|
|
454
|
+
/** Size preset. `full` fills the viewport, `fit` shrinks to the content. Default `md`. */
|
|
455
|
+
size?: DialogSize;
|
|
456
|
+
/** Optional heading shown in the dialog chrome. */
|
|
457
|
+
title?: string;
|
|
458
|
+
/** Whether the user may dismiss it (close button, escape, click-outside). Default `true`. */
|
|
459
|
+
closable?: boolean;
|
|
460
|
+
/** Confine the dialog to the host's container (in place, `absolute`) instead of the viewport. */
|
|
461
|
+
scoped?: boolean;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
/** The width/height presets a {@link Dialog} supports. */
|
|
465
|
+
export declare type DialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fit';
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Line-level unified diff (LCS). Unchanged lines are shared; a divergent region
|
|
469
|
+
* emits its removed lines (from `before`) then its added lines (from `after`),
|
|
470
|
+
* matching the familiar GitHub-style ordering.
|
|
471
|
+
*/
|
|
472
|
+
export declare function diffLines(before: string, after: string): UnifiedDiff;
|
|
473
|
+
|
|
253
474
|
export declare const Dropdown: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
254
475
|
|
|
476
|
+
/** How the UI may edit an attribute (schema-derived classifier). */
|
|
477
|
+
export declare type EditableMode = 'rename' | 'free';
|
|
478
|
+
|
|
255
479
|
export declare const ELEMENT_TO_COLOR: Record<string, ElementColor>;
|
|
256
480
|
|
|
257
481
|
export declare const ELEMENT_TO_ICON: Record<string, Component>;
|
|
@@ -261,6 +485,20 @@ export declare interface ElementColor {
|
|
|
261
485
|
background: string;
|
|
262
486
|
}
|
|
263
487
|
|
|
488
|
+
export declare const ElementDetail: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
489
|
+
edit: (attr: string, value: string) => any;
|
|
490
|
+
}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
|
|
491
|
+
onEdit?: ((attr: string, value: string) => any) | undefined;
|
|
492
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
493
|
+
|
|
494
|
+
/** View-model for the selected element's detail panel. */
|
|
495
|
+
export declare type ElementDetailVM = {
|
|
496
|
+
tag: string;
|
|
497
|
+
title: string;
|
|
498
|
+
change: ChangeStatus;
|
|
499
|
+
attributes: DetailAttribute[];
|
|
500
|
+
};
|
|
501
|
+
|
|
264
502
|
/**
|
|
265
503
|
* Controlled expand state (v-model:expanded). `scoped` is the exact list of
|
|
266
504
|
* expanded node ids; `all` expands every node with children and takes
|
|
@@ -279,24 +517,35 @@ export declare type ExplorerNode = {
|
|
|
279
517
|
children?: ExplorerNode[];
|
|
280
518
|
};
|
|
281
519
|
|
|
520
|
+
/** Map of named extension modules. */
|
|
521
|
+
export declare type ExtensionsConfig = Record<string, ExtensionModule>;
|
|
522
|
+
|
|
523
|
+
/** Display metadata for a merged file (source or target), shown in the review header. */
|
|
524
|
+
export declare type FileMeta = {
|
|
525
|
+
/** Display name (filename, typically without extension). */
|
|
526
|
+
label: string;
|
|
527
|
+
/** File-type badge (`Header.fileType` or extension). */
|
|
528
|
+
type?: string;
|
|
529
|
+
/** SCL `Header` @version. */
|
|
530
|
+
version: string;
|
|
531
|
+
/** SCL `Header` @revision. */
|
|
532
|
+
revision: string;
|
|
533
|
+
};
|
|
534
|
+
|
|
282
535
|
/**
|
|
283
|
-
*
|
|
284
|
-
*
|
|
536
|
+
* Render code to syntax-highlighted HTML using Shiki's VSCode grammars/themes.
|
|
537
|
+
* The JavaScript RegExp engine is used (not the WASM/oniguruma engine) so the
|
|
538
|
+
* build stays self-contained with no separate WASM asset to ship.
|
|
285
539
|
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
* Scl.Document, Scl.Query, Scl.Transaction, { behaviorDescription: typeof behaviorDescription }
|
|
289
|
-
* >
|
|
540
|
+
* When `lineStatuses` is provided, each line node gets a `diff add` / `diff remove`
|
|
541
|
+
* class so a diff background can be painted on top of the highlighting.
|
|
290
542
|
*/
|
|
291
|
-
export declare
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}) => Promise<Awaited<GenericResult>>;
|
|
296
|
-
};
|
|
543
|
+
export declare function highlightCode(code: string, options?: {
|
|
544
|
+
lang?: string;
|
|
545
|
+
lineStatuses?: readonly LineStatus[];
|
|
546
|
+
}): Promise<string>;
|
|
297
547
|
|
|
298
|
-
|
|
299
|
-
export declare type ExtensionsConfig = Record<string, ExtensionModule>;
|
|
548
|
+
export declare type LineStatus = 'added' | 'removed' | 'unchanged';
|
|
300
549
|
|
|
301
550
|
/**
|
|
302
551
|
* Minimal slice of a `Document` consumed by `useLiveData`: the id it queries
|
|
@@ -308,14 +557,113 @@ export declare type LiveDataDocument = {
|
|
|
308
557
|
channelName: string;
|
|
309
558
|
};
|
|
310
559
|
|
|
311
|
-
|
|
312
|
-
|
|
560
|
+
/**
|
|
561
|
+
* Per-node metadata the merge tree overlays on an `ExplorerNode` (keyed by node id).
|
|
562
|
+
* The tree itself is a plain `ExplorerNode[]`; this side map drives change colour, the
|
|
563
|
+
* decision control, and the spotlight/skip styling.
|
|
564
|
+
*/
|
|
565
|
+
export declare type MergeNodeMeta = {
|
|
566
|
+
change: ChangeStatus;
|
|
567
|
+
/** `primary` rows carry the decision control; `companion` rows are read-only side effects. */
|
|
568
|
+
role: 'primary' | 'companion' | 'plain';
|
|
569
|
+
/** The decision group this node belongs to (primary + companions share it). */
|
|
570
|
+
groupId?: string;
|
|
571
|
+
/** For a satellite companion that lives elsewhere: its real document path (shown as subtitle). */
|
|
572
|
+
path?: string;
|
|
313
573
|
};
|
|
314
574
|
|
|
315
|
-
export declare const
|
|
575
|
+
export declare const MergeReview: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
576
|
+
close: () => any;
|
|
577
|
+
applied: () => any;
|
|
578
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
579
|
+
onClose?: (() => any) | undefined;
|
|
580
|
+
onApplied?: (() => any) | undefined;
|
|
581
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
582
|
+
|
|
583
|
+
export declare type MergeSessionParams = {
|
|
584
|
+
targetDocument: Scl.Document;
|
|
585
|
+
sourceQuery: Scl.Query;
|
|
586
|
+
verb: LifecycleVerb;
|
|
587
|
+
/** Operation to perform: place a new instance, or reconcile the existing one. */
|
|
588
|
+
scenario: LifecycleScenario;
|
|
589
|
+
/** Source (template) element: a Function (fsd) or Application (asd). */
|
|
590
|
+
sourceRef: Scl.Ref<'Function'> | Scl.Ref<'Application'>;
|
|
591
|
+
/** Target parent the instance lives under / is placed into. */
|
|
592
|
+
anchor: Scl.Ref<Scl.ElementsOf>;
|
|
593
|
+
/** Optional consumer post-step run inside the merge tx (preview + commit). */
|
|
594
|
+
afterApply?: AfterApply;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
export declare const MergeTree: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
598
|
+
select: (node: ExplorerNode) => any;
|
|
599
|
+
"update:decision": (groupId: string, action: DecisionAction) => any;
|
|
600
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
601
|
+
onSelect?: ((node: ExplorerNode) => any) | undefined;
|
|
602
|
+
"onUpdate:decision"?: ((groupId: string, action: DecisionAction) => any) | undefined;
|
|
603
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
604
|
+
|
|
605
|
+
/** The transaction handle passed to `prepare`/`transaction` callbacks. */
|
|
606
|
+
declare type MergeTx = Parameters<Parameters<Scl.Document['prepare']>[0]>[0];
|
|
607
|
+
|
|
608
|
+
/** The props a component accepts (declared props + Vue built-ins like `onXxx` listeners). */
|
|
609
|
+
declare type PropsOf<C extends Component> = C extends new (...args: never[]) => {
|
|
610
|
+
$props: infer P;
|
|
611
|
+
} ? P : Record<string, never>;
|
|
612
|
+
|
|
613
|
+
/** Create (or adopt) a dialog host and provide it to descendants. Call once at the root. */
|
|
614
|
+
export declare function provideDialogHost(host?: DialogController): DialogController;
|
|
316
615
|
|
|
317
|
-
declare
|
|
318
|
-
|
|
616
|
+
export declare const SclExplorer: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
617
|
+
|
|
618
|
+
/** Per-node selection payload: what to preview and (if any) the change it carries. */
|
|
619
|
+
declare type StructuralNodeInfo = {
|
|
620
|
+
previewRef: Scl.Ref<Scl.ElementsOf>;
|
|
621
|
+
change: ChangeStatus;
|
|
622
|
+
role: 'primary' | 'companion' | 'plain';
|
|
623
|
+
groupId?: string;
|
|
624
|
+
node?: DiffNode;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
declare type StructuralTree = {
|
|
628
|
+
items: ExplorerNode[];
|
|
629
|
+
/** Per node-id metadata (change, role, groupId) for the explorer decoration. */
|
|
630
|
+
meta: Record<string, MergeNodeMeta>;
|
|
631
|
+
/** Selection payload per node id. */
|
|
632
|
+
index: Record<string, StructuralNodeInfo>;
|
|
633
|
+
/** Ids on the path to any change — the explorer opens these by default. */
|
|
634
|
+
expanded: string[];
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export declare type UnifiedDiff = {
|
|
638
|
+
/** Every line (removed + added + unchanged), joined for a single highlight pass. */
|
|
639
|
+
code: string;
|
|
640
|
+
/** Per-line status, index-aligned with the lines of `code`. */
|
|
641
|
+
statuses: LineStatus[];
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Reactively hydrate the shell's active document — race-safe across realms.
|
|
646
|
+
*
|
|
647
|
+
* The active-document id (shell `localStorage` `storage` event) and the
|
|
648
|
+
* project's document registry (BroadcastChannel) are not ordered across realms,
|
|
649
|
+
* so in an iframe extension the id can arrive before the document is registered
|
|
650
|
+
* / its records are readable. `project.getDocumentStatus(id)` reconciles this
|
|
651
|
+
* realm's store against persisted state first, so hydration never races ahead
|
|
652
|
+
* of the document. Results from a superseded switch are ignored.
|
|
653
|
+
*
|
|
654
|
+
* Cleanup runs automatically when used inside a component/effect scope; the
|
|
655
|
+
* returned `stop` lets scope-less callers (e.g. an extension bootstrap) tear it
|
|
656
|
+
* down manually.
|
|
657
|
+
*/
|
|
658
|
+
export declare function useActiveDocument<GenericDocument>(params: {
|
|
659
|
+
project: ActiveDocumentProject<GenericDocument>;
|
|
660
|
+
activeDocumentId: ActiveDocumentObservable<string>;
|
|
661
|
+
hydrate: (doc: GenericDocument) => void;
|
|
662
|
+
clear: () => void;
|
|
663
|
+
}): {
|
|
664
|
+
isReady: Ref<boolean>;
|
|
665
|
+
activeDocumentId: Ref<string | undefined>;
|
|
666
|
+
stop: () => void;
|
|
319
667
|
};
|
|
320
668
|
|
|
321
669
|
/**
|
|
@@ -337,6 +685,9 @@ export declare function useDialecteChannel(channelName: MaybeRefOrGetter<string
|
|
|
337
685
|
isSupported: Ref<boolean>;
|
|
338
686
|
};
|
|
339
687
|
|
|
688
|
+
/** Inject the ambient dialog host. Throws if no host was provided. */
|
|
689
|
+
export declare function useDialog(): DialogController;
|
|
690
|
+
|
|
340
691
|
/**
|
|
341
692
|
* Async data that refetches when its document changes.
|
|
342
693
|
*
|
|
@@ -356,6 +707,28 @@ export declare function useLiveData<T>(params: {
|
|
|
356
707
|
refresh: (delay?: number) => Promise<T | undefined>;
|
|
357
708
|
};
|
|
358
709
|
|
|
710
|
+
/**
|
|
711
|
+
* Drives one merge-review session: runs `report`, holds the decision map + selection,
|
|
712
|
+
* builds an element-scoped merged-XML preview from a single preview-apply, and commits.
|
|
713
|
+
* The UI panels read the reactive refs and call the setters.
|
|
714
|
+
*/
|
|
715
|
+
export declare function useMergeSession(params: MergeSessionParams): {
|
|
716
|
+
report: ShallowRef<DiffReport | undefined, DiffReport | undefined>;
|
|
717
|
+
decisions: Reactive<Map<string, GroupDecision>>;
|
|
718
|
+
structuralTree: ShallowRef<StructuralTree, StructuralTree>;
|
|
719
|
+
previewXml: ShallowRef<string | undefined, string | undefined>;
|
|
720
|
+
previewBeforeXml: ShallowRef<string | undefined, string | undefined>;
|
|
721
|
+
previewLoading: ShallowRef<boolean, boolean>;
|
|
722
|
+
load: () => Promise<void>;
|
|
723
|
+
setDecision: (groupId: string, action: "accept" | "skip") => void;
|
|
724
|
+
setValue: (groupId: string, attr: string, value: string) => void;
|
|
725
|
+
decisionOf: (groupId: string) => "accept" | "skip";
|
|
726
|
+
editedValue: (groupId: string, attr: string) => string | undefined;
|
|
727
|
+
select: (sel: StructuralNodeInfo | undefined) => void;
|
|
728
|
+
stagedAttributes: (ref: Scl.Ref<Scl.ElementsOf>) => Promise<Record<string, string | undefined>>;
|
|
729
|
+
commit: () => Promise<void>;
|
|
730
|
+
};
|
|
731
|
+
|
|
359
732
|
/**
|
|
360
733
|
* Async data that refetches when anything in the project changes:
|
|
361
734
|
* commits on any document, imports, removals, new documents.
|
|
@@ -374,4 +747,6 @@ export declare function useProjectLiveData<T>(params: {
|
|
|
374
747
|
refresh: (delay?: number) => Promise<T | undefined>;
|
|
375
748
|
};
|
|
376
749
|
|
|
750
|
+
export declare const XmlDiff: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
751
|
+
|
|
377
752
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import { createDocumentStore as e } from "./dialecte/create-document-store.js";
|
|
2
2
|
import { useDialecteChannel as t } from "./dialecte/composables/use-dialecte-channel.js";
|
|
3
3
|
import { useLiveData as n, useProjectLiveData as r } from "./dialecte/composables/use-live-data.js";
|
|
4
|
+
import { useActiveDocument as i } from "./dialecte/composables/use-active-document.js";
|
|
4
5
|
import "./dialecte/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import a from "./button/button.js";
|
|
7
|
+
import o from "./dropdown/dropdown.js";
|
|
8
|
+
import s from "./dropdown/combobox.js";
|
|
8
9
|
import "./dropdown/index.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import c from "./dialog/dialog.js";
|
|
11
|
+
import { createDialogHost as l, dialogHostKey as u, provideDialogHost as d, useDialog as f } from "./dialog/use-dialog-host.js";
|
|
12
|
+
import p from "./dialog/dialog-host.js";
|
|
13
|
+
import "./dialog/index.js";
|
|
14
|
+
import { CATEGORY_ELEMENTS as m, ELEMENT_TO_COLOR as h } from "./icons/element-color-map.generated.js";
|
|
15
|
+
import { ELEMENT_TO_ICON as g } from "./icons/element-icon-mapper.js";
|
|
16
|
+
import { collectExpandableNodeIds as _ } from "./explorer/collect-expandable-node-ids.js";
|
|
17
|
+
import v from "./explorer/explorer.js";
|
|
13
18
|
import "./explorer/index.js";
|
|
14
|
-
|
|
19
|
+
import { highlightCode as y } from "./code/highlight.js";
|
|
20
|
+
import b from "./code/code-block.js";
|
|
21
|
+
import { diffLines as x } from "./code/diff.js";
|
|
22
|
+
import S from "./code/xml-diff.js";
|
|
23
|
+
import "./code/index.js";
|
|
24
|
+
import C from "./merge/decision-toggle.js";
|
|
25
|
+
import w from "./merge/element-detail.js";
|
|
26
|
+
import T from "./merge/merge-tree.js";
|
|
27
|
+
import { useMergeSession as E } from "./merge/use-merge-session.js";
|
|
28
|
+
import D from "./merge/merge-review.js";
|
|
29
|
+
import "./merge/index.js";
|
|
30
|
+
export { a as Button, m as CATEGORY_ELEMENTS, b as CodeBlock, s as Combobox, C as DecisionToggle, c as Dialog, p as DialogHost, o as Dropdown, h as ELEMENT_TO_COLOR, g as ELEMENT_TO_ICON, w as ElementDetail, D as MergeReview, T as MergeTree, v as SclExplorer, S as XmlDiff, _ as collectExpandableNodeIds, l as createDialogHost, e as createDocumentStore, u as dialogHostKey, x as diffLines, y as highlightCode, d as provideDialogHost, i as useActiveDocument, t as useDialecteChannel, f as useDialog, n as useLiveData, E as useMergeSession, r as useProjectLiveData };
|