@septkit/ui 0.0.42 → 0.0.43

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.
Files changed (154) hide show
  1. package/dist/code/code-block.js +7 -0
  2. package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +63 -0
  3. package/dist/code/diff.js +35 -0
  4. package/dist/code/highlight.js +30 -0
  5. package/dist/code/index.js +5 -0
  6. package/dist/code/xml-diff.js +5 -0
  7. package/dist/code/xml-diff.vue_vue_type_script_setup_true_lang.js +33 -0
  8. package/dist/dialecte/composables/index.js +2 -1
  9. package/dist/dialecte/composables/use-active-document.js +24 -0
  10. package/dist/dialecte/create-document-store.js +3 -3
  11. package/dist/dialecte/index.js +2 -1
  12. package/dist/dialog/dialog-host.js +5 -0
  13. package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +33 -0
  14. package/dist/dialog/dialog.js +5 -0
  15. package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +72 -0
  16. package/dist/dialog/index.js +4 -0
  17. package/dist/dialog/use-dialog-host.js +32 -0
  18. package/dist/external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/helpers.js +142 -0
  19. package/dist/external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/index.js +3 -0
  20. package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js → @dialecte_core@0.4.5/node_modules/@dialecte/core/dist/project-wohrish5.js} +3352 -1170
  21. package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js → @dialecte_core@0.4.5/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
  22. package/dist/external/.pnpm/@dialecte_scl@0.3.3/node_modules/@dialecte/scl/dist/hooks-BTkrNj6r.js +25264 -0
  23. package/dist/external/.pnpm/@dialecte_scl@0.3.3/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
  24. 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
  25. 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
  26. 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
  27. 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
  28. package/dist/external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js +1299 -0
  29. package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js +34 -0
  30. package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.js +66 -0
  31. package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/java.js +3 -0
  32. package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
  33. package/dist/external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js +4 -0
  34. package/dist/external/.pnpm/@shikijs_types@3.23.0/node_modules/@shikijs/types/dist/index.js +8 -0
  35. package/dist/external/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +1576 -0
  36. 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
  37. 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
  38. package/dist/external/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +10 -0
  39. package/dist/external/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +257 -0
  40. package/dist/external/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +4 -0
  41. package/dist/external/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +7 -0
  42. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +11 -0
  43. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +6 -0
  44. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +49 -0
  45. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +28 -0
  46. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +7 -0
  47. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +6 -0
  48. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +8 -0
  49. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +48 -0
  50. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +86 -0
  51. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +10 -0
  52. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +39 -0
  53. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +13 -0
  54. package/dist/external/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
  55. package/dist/external/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
  56. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js +23 -0
  57. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js +419 -0
  58. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +487 -0
  59. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js +84 -0
  60. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js +30 -0
  61. package/dist/external/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js +970 -0
  62. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +25 -0
  63. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
  64. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +31 -0
  65. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +326 -0
  66. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
  67. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +564 -0
  68. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  69. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  70. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +14 -0
  71. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +18 -0
  72. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +9 -0
  73. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +9 -0
  74. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +9 -0
  75. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +16 -0
  76. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
  77. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +15 -0
  78. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +14 -0
  79. package/dist/external/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js +110 -0
  80. package/dist/external/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js +56 -0
  81. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js +94 -0
  82. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/internals.js +2 -0
  83. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js +10 -0
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. 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
  109. 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
  110. 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
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. 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
  118. 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
  119. 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
  120. 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
  121. 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
  122. 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
  123. package/dist/external/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
  124. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +13 -0
  125. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +23 -0
  126. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +8 -0
  127. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +14 -0
  128. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +8 -0
  129. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +8 -0
  130. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +17 -0
  131. package/dist/external/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +16 -0
  132. package/dist/index.d.ts +402 -2
  133. package/dist/index.js +24 -8
  134. package/dist/merge/build-view-model.js +168 -0
  135. package/dist/merge/decision-toggle.js +5 -0
  136. package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +40 -0
  137. package/dist/merge/element-detail.js +5 -0
  138. package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +53 -0
  139. package/dist/merge/index.js +6 -0
  140. package/dist/merge/merge-progress.js +5 -0
  141. package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +31 -0
  142. package/dist/merge/merge-review.js +5 -0
  143. package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +305 -0
  144. package/dist/merge/merge-summary.js +5 -0
  145. package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +76 -0
  146. package/dist/merge/merge-tree.js +5 -0
  147. package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +86 -0
  148. package/dist/merge/merge.service.js +69 -0
  149. package/dist/merge/use-document-progress.js +27 -0
  150. package/dist/merge/use-merge-session.js +151 -0
  151. package/dist/ui.css +1 -1
  152. package/package.json +4 -2
  153. package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/helpers.js +0 -13
  154. package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/index.js +0 -3
@@ -0,0 +1,7 @@
1
+ import e from "../_virtual/_plugin-vue_export-helper.js";
2
+ import t from "./code-block.vue_vue_type_script_setup_true_lang.js";
3
+ /* empty css */
4
+ //#region lib/code/code-block.vue
5
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-642c3143"]]);
6
+ //#endregion
7
+ export { n as default };
@@ -0,0 +1,63 @@
1
+ import { useClipboard as e } from "../external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
2
+ import t from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/check.js";
3
+ import n from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/copy.js";
4
+ import r from "../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";
5
+ import { highlightCode as i } from "./highlight.js";
6
+ import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, ref as p, shallowRef as m, toDisplayString as h, unref as g, watch as _ } from "vue";
7
+ //#region lib/code/code-block.vue?vue&type=script&setup=true&lang.ts
8
+ var v = {
9
+ key: 0,
10
+ class: "toolbar flex items-center justify-end gap-1"
11
+ }, y = { class: "code-scroll min-h-0 flex-1 overflow-auto" }, b = ["innerHTML"], x = {
12
+ key: 1,
13
+ class: "grid h-full place-items-center p-4 text-sm opacity-60"
14
+ }, S = /*@__PURE__*/ u({
15
+ __name: "code-block",
16
+ props: {
17
+ code: {},
18
+ lang: {},
19
+ lineStatuses: {},
20
+ loading: { type: Boolean },
21
+ wrap: { type: Boolean }
22
+ },
23
+ setup(u) {
24
+ let S = u, C = m(), w = p(S.wrap ?? !1), { copy: T, copied: E, isSupported: D } = e({ legacy: !0 });
25
+ return _(() => [
26
+ S.code,
27
+ S.lang,
28
+ S.lineStatuses
29
+ ], async ([e, t, n]) => {
30
+ if (!e) {
31
+ C.value = void 0;
32
+ return;
33
+ }
34
+ C.value = await i(e, {
35
+ lang: t,
36
+ lineStatuses: n
37
+ });
38
+ }, { immediate: !0 }), (e, i) => (f(), s("div", { class: d(["code-block flex h-full w-full flex-col", { wrap: w.value }]) }, [C.value ? (f(), s("div", v, [c("button", {
39
+ type: "button",
40
+ class: d(["tool-btn", { active: w.value }]),
41
+ title: "Toggle word wrap",
42
+ onClick: i[0] ||= (e) => w.value = !w.value
43
+ }, [l(g(r), { size: 13 }), i[2] ||= c("span", null, "Wrap", -1)], 2), g(D) && u.code ? (f(), s("button", {
44
+ key: 0,
45
+ type: "button",
46
+ class: "tool-btn",
47
+ title: "Copy",
48
+ onClick: i[1] ||= (e) => g(T)(u.code)
49
+ }, [g(E) ? (f(), a(g(t), {
50
+ key: 0,
51
+ size: 13
52
+ })) : (f(), a(g(n), {
53
+ key: 1,
54
+ size: 13
55
+ })), c("span", null, h(g(E) ? "Copied" : "Copy"), 1)])) : o("", !0)])) : o("", !0), c("div", y, [C.value ? (f(), s("div", {
56
+ key: 0,
57
+ class: "shiki-host",
58
+ innerHTML: C.value
59
+ }, null, 8, b)) : (f(), s("div", x, h(u.loading ? "Rendering…" : "Nothing to show."), 1))])], 2));
60
+ }
61
+ });
62
+ //#endregion
63
+ export { S as default };
@@ -0,0 +1,35 @@
1
+ //#region lib/code/diff.ts
2
+ function e(e) {
3
+ if (e === "") return [];
4
+ let t = e.replace(/\r\n?/g, "\n").split("\n");
5
+ return t.length > 1 && t[t.length - 1] === "" && t.pop(), t;
6
+ }
7
+ function t(t, n) {
8
+ let r = e(t), i = e(n), a = Array.from({ length: r.length + 1 }, () => Array.from({ length: i.length + 1 }).fill(0));
9
+ for (let e = r.length - 1; e >= 0; e--) for (let t = i.length - 1; t >= 0; t--) a[e][t] = r[e] === i[t] ? a[e + 1][t + 1] + 1 : Math.max(a[e + 1][t], a[e][t + 1]);
10
+ let o = [], s = 0, c = 0;
11
+ for (; s < r.length && c < i.length;) r[s] === i[c] ? (o.push({
12
+ text: r[s],
13
+ status: "unchanged"
14
+ }), s++, c++) : a[s + 1][c] >= a[s][c + 1] ? (o.push({
15
+ text: r[s],
16
+ status: "removed"
17
+ }), s++) : (o.push({
18
+ text: i[c],
19
+ status: "added"
20
+ }), c++);
21
+ for (; s < r.length;) o.push({
22
+ text: r[s++],
23
+ status: "removed"
24
+ });
25
+ for (; c < i.length;) o.push({
26
+ text: i[c++],
27
+ status: "added"
28
+ });
29
+ return {
30
+ code: o.map((e) => e.text).join("\n"),
31
+ statuses: o.map((e) => e.status)
32
+ };
33
+ }
34
+ //#endregion
35
+ export { t as diffLines };
@@ -0,0 +1,30 @@
1
+ import { createHighlighterCore as e } from "../external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js";
2
+ import { createJavaScriptRegexEngine as t } from "../external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js";
3
+ import n from "../external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js";
4
+ import r from "../external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js";
5
+ //#region lib/code/highlight.ts
6
+ var i = "github-dark";
7
+ async function a(e, t) {
8
+ let n = await s(), r = t?.lineStatuses;
9
+ return n.codeToHtml(e, {
10
+ lang: t?.lang ?? "xml",
11
+ theme: i,
12
+ transformers: r ? [{
13
+ name: "diff-lines",
14
+ line(e, t) {
15
+ let n = r[t - 1];
16
+ n === "added" ? this.addClassToHast(e, "diff add") : n === "removed" && this.addClassToHast(e, "diff remove");
17
+ }
18
+ }] : void 0
19
+ });
20
+ }
21
+ var o = null;
22
+ function s() {
23
+ return o ||= e({
24
+ langs: [n],
25
+ themes: [r],
26
+ engine: t()
27
+ }), o;
28
+ }
29
+ //#endregion
30
+ export { a as highlightCode };
@@ -0,0 +1,5 @@
1
+ import { highlightCode as e } from "./highlight.js";
2
+ import t from "./code-block.js";
3
+ import { diffLines as n } from "./diff.js";
4
+ import r from "./xml-diff.js";
5
+ export { t as CodeBlock, r as XmlDiff, n as diffLines, e as highlightCode };
@@ -0,0 +1,5 @@
1
+ import e from "./xml-diff.vue_vue_type_script_setup_true_lang.js";
2
+ //#region lib/code/xml-diff.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,33 @@
1
+ import e from "./code-block.js";
2
+ import { diffLines as t } from "./diff.js";
3
+ import { computed as n, createBlock as r, defineComponent as i, openBlock as a } from "vue";
4
+ //#region lib/code/xml-diff.vue?vue&type=script&setup=true&lang.ts
5
+ var o = /*@__PURE__*/ i({
6
+ __name: "xml-diff",
7
+ props: {
8
+ before: {},
9
+ after: {},
10
+ loading: { type: Boolean }
11
+ },
12
+ setup(i) {
13
+ let o = i, s = n(() => o.after == null ? {
14
+ code: void 0,
15
+ statuses: void 0
16
+ } : o.before == null ? {
17
+ code: o.after,
18
+ statuses: void 0
19
+ } : t(o.before, o.after));
20
+ return (t, n) => (a(), r(e, {
21
+ code: s.value.code,
22
+ "line-statuses": s.value.statuses,
23
+ lang: "xml",
24
+ loading: i.loading
25
+ }, null, 8, [
26
+ "code",
27
+ "line-statuses",
28
+ "loading"
29
+ ]));
30
+ }
31
+ });
32
+ //#endregion
33
+ export { o as default };
@@ -1,3 +1,4 @@
1
1
  import { useDialecteChannel as e } from "./use-dialecte-channel.js";
2
2
  import { useLiveData as t, useProjectLiveData as n } from "./use-live-data.js";
3
- export { e as useDialecteChannel, t as useLiveData, n as useProjectLiveData };
3
+ import { useActiveDocument as r } from "./use-active-document.js";
4
+ export { r as useActiveDocument, e as useDialecteChannel, t as useLiveData, n as useProjectLiveData };
@@ -0,0 +1,24 @@
1
+ import { getCurrentScope as e, onScopeDispose as t, ref as n } from "vue";
2
+ //#region lib/dialecte/composables/use-active-document.ts
3
+ function r(r) {
4
+ let { project: i, activeDocumentId: a, hydrate: o, clear: s } = r, c = n(!1), l = n(a.value);
5
+ async function u(e) {
6
+ if (l.value = e, !e) {
7
+ c.value = !1, s();
8
+ return;
9
+ }
10
+ let { ready: t } = await i.getDocumentStatus(e);
11
+ a.value === e && (t ? (o(i.openDocument(e)), c.value = !0) : (c.value = !1, s()));
12
+ }
13
+ u(a.value);
14
+ let d = a.subscribe((e) => void u(e)), f = () => {
15
+ d(), s();
16
+ };
17
+ return e() && t(f), {
18
+ isReady: c,
19
+ activeDocumentId: l,
20
+ stop: f
21
+ };
22
+ }
23
+ //#endregion
24
+ export { r as useActiveDocument };
@@ -1,6 +1,6 @@
1
- import { r as e } from "../external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js";
2
- import { ut as t } from "../external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js";
3
- import "../external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/index.js";
1
+ import { r as e } from "../external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/utils-C5_11hqg.js";
2
+ import { ut as t } from "../external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/project-wohrish5.js";
3
+ import "../external/.pnpm/@dialecte_core@0.4.5/node_modules/@dialecte/core/dist/index.js";
4
4
  import { computed as n, shallowRef as r } from "vue";
5
5
  //#region lib/dialecte/create-document-store.ts
6
6
  function i(i) {
@@ -1,5 +1,6 @@
1
1
  import { createDocumentStore as e } from "./create-document-store.js";
2
2
  import { useDialecteChannel as t } from "./composables/use-dialecte-channel.js";
3
3
  import { useLiveData as n, useProjectLiveData as r } from "./composables/use-live-data.js";
4
+ import { useActiveDocument as i } from "./composables/use-active-document.js";
4
5
  import "./composables/index.js";
5
- export { e as createDocumentStore, t as useDialecteChannel, n as useLiveData, r as useProjectLiveData };
6
+ export { e as createDocumentStore, i as useActiveDocument, t as useDialecteChannel, n as useLiveData, r as useProjectLiveData };
@@ -0,0 +1,5 @@
1
+ import e from "./dialog-host.vue_vue_type_script_setup_true_lang.js";
2
+ //#region lib/dialog/dialog-host.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,33 @@
1
+ import e from "./dialog.js";
2
+ import { useDialog as t } from "./use-dialog-host.js";
3
+ import { createBlock as n, createCommentVNode as r, defineComponent as i, mergeProps as a, normalizeProps as o, openBlock as s, resolveDynamicComponent as c, unref as l, withCtx as u } from "vue";
4
+ //#region lib/dialog/dialog-host.vue?vue&type=script&setup=true&lang.ts
5
+ var d = /*@__PURE__*/ i({
6
+ __name: "dialog-host",
7
+ props: { host: {} },
8
+ setup(i) {
9
+ let d = i.host ?? t();
10
+ function f(e) {
11
+ e || d.close();
12
+ }
13
+ return (t, i) => (s(), n(e, {
14
+ open: l(d).open.value,
15
+ size: l(d).active.value?.options.size,
16
+ title: l(d).active.value?.options.title,
17
+ closable: l(d).active.value?.options.closable ?? !0,
18
+ scoped: l(d).active.value?.options.scoped,
19
+ "onUpdate:open": f
20
+ }, {
21
+ default: u(() => [l(d).active.value ? (s(), n(c(l(d).active.value.component), o(a({ key: 0 }, l(d).active.value.props)), null, 16)) : r("", !0)]),
22
+ _: 1
23
+ }, 8, [
24
+ "open",
25
+ "size",
26
+ "title",
27
+ "closable",
28
+ "scoped"
29
+ ]));
30
+ }
31
+ });
32
+ //#endregion
33
+ export { d as default };
@@ -0,0 +1,5 @@
1
+ import e from "./dialog.vue_vue_type_script_setup_true_lang.js";
2
+ //#region lib/dialog/dialog.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,72 @@
1
+ import { DialogRoot_default as e } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js";
2
+ import { DialogContent_default as t } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContent.js";
3
+ import { DialogOverlay_default as n } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlay.js";
4
+ import { DialogPortal_default as r } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.js";
5
+ import { DialogTitle_default as i } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js";
6
+ import a from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js";
7
+ import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
8
+ //#region lib/dialog/dialog.vue?vue&type=script&setup=true&lang.ts
9
+ var b = { class: "flex items-center justify-between gap-2 p-2" }, x = {
10
+ key: 0,
11
+ class: "mt-3 px-4 pb-4"
12
+ }, S = /*@__PURE__*/ p({
13
+ __name: "dialog",
14
+ props: {
15
+ open: { type: Boolean },
16
+ title: {},
17
+ size: { default: "md" },
18
+ closable: {
19
+ type: Boolean,
20
+ default: !0
21
+ },
22
+ scoped: { type: Boolean }
23
+ },
24
+ emits: ["update:open"],
25
+ setup(p, { emit: S }) {
26
+ let C = p, w = S, T = o(() => C.size === "full" ? "inset-0" : `left-1/2 top-1/2 max-h-[90%] -translate-x-1/2 -translate-y-1/2 rounded-box ${{
27
+ sm: "max-w-sm",
28
+ md: "max-w-md",
29
+ lg: "max-w-2xl",
30
+ xl: "max-w-5xl",
31
+ fit: "w-fit max-w-fit"
32
+ }[C.size]}`), E = o(() => C.scoped ? "absolute" : "fixed");
33
+ function D(e) {
34
+ e || w("update:open", !1);
35
+ }
36
+ function O(e) {
37
+ C.closable || e.preventDefault();
38
+ }
39
+ return (o, S) => (h(), s(v(e), {
40
+ open: p.open,
41
+ "onUpdate:open": D
42
+ }, {
43
+ default: y(() => [f(v(r), { disabled: p.scoped }, {
44
+ default: y(() => [f(v(n), { class: m([E.value, "inset-0 z-40 bg-black/40"]) }, null, 8, ["class"]), f(v(t), {
45
+ class: m(["z-50 flex flex-col overflow-auto bg-base-100 text-base-content shadow-xl", [E.value, T.value]]),
46
+ onEscapeKeyDown: O,
47
+ onPointerDownOutside: O
48
+ }, {
49
+ default: y(() => [
50
+ u("header", b, [f(v(i), { class: m(p.title ? "text-base font-medium" : "sr-only") }, {
51
+ default: y(() => [d(_(p.title ?? "Dialog"), 1)]),
52
+ _: 1
53
+ }, 8, ["class"]), p.closable ? (h(), l("button", {
54
+ key: 0,
55
+ type: "button",
56
+ class: "btn btn-sm btn-circle btn-ghost -mr-1",
57
+ onClick: S[0] ||= (e) => w("update:open", !1)
58
+ }, [f(v(a), { class: "h-4 w-4" })])) : c("", !0)]),
59
+ g(o.$slots, "header"),
60
+ u("div", { class: m(["min-h-0 flex-1", p.size === "full" ? "" : "px-4 pb-4"]) }, [g(o.$slots, "default")], 2),
61
+ o.$slots.footer ? (h(), l("footer", x, [g(o.$slots, "footer")])) : c("", !0)
62
+ ]),
63
+ _: 3
64
+ }, 8, ["class"])]),
65
+ _: 3
66
+ }, 8, ["disabled"])]),
67
+ _: 3
68
+ }, 8, ["open"]));
69
+ }
70
+ });
71
+ //#endregion
72
+ export { S as default };
@@ -0,0 +1,4 @@
1
+ import e from "./dialog.js";
2
+ import { createDialogHost as t, dialogHostKey as n, provideDialogHost as r, useDialog as i } from "./use-dialog-host.js";
3
+ import a from "./dialog-host.js";
4
+ export { e as Dialog, a as DialogHost, t as createDialogHost, n as dialogHostKey, r as provideDialogHost, i as useDialog };
@@ -0,0 +1,32 @@
1
+ import { inject as e, markRaw as t, provide as n, ref as r, shallowRef as i } from "vue";
2
+ //#region lib/dialog/use-dialog-host.ts
3
+ function a() {
4
+ let e = r(!1), n = i();
5
+ function a(r, i, a = {}) {
6
+ n.value = {
7
+ component: t(r),
8
+ props: i,
9
+ options: a
10
+ }, e.value = !0;
11
+ }
12
+ function o() {
13
+ e.value = !1;
14
+ }
15
+ return {
16
+ open: e,
17
+ active: n,
18
+ openDialog: a,
19
+ close: o
20
+ };
21
+ }
22
+ var o = Symbol("septkit-dialog-host");
23
+ function s(e = a()) {
24
+ return n(o, e), e;
25
+ }
26
+ function c() {
27
+ let t = e(o);
28
+ if (!t) throw Error("useDialog() requires a DialogHost — call provideDialogHost() in a parent and mount <DialogHost>.");
29
+ return t;
30
+ }
31
+ //#endregion
32
+ export { a as createDialogHost, o as dialogHostKey, s as provideDialogHost, c as useDialog };
@@ -0,0 +1,142 @@
1
+ import { a as e, c as t, l as n, o as r, p as i, r as a, u as o } from "./utils-C5_11hqg.js";
2
+ //#region node_modules/.pnpm/@dialecte+core@0.4.5/node_modules/@dialecte/core/dist/helpers.js
3
+ var s = "db-id", c = {
4
+ uri: "http://dialecte.dev/XML/DEV",
5
+ prefix: "dev"
6
+ };
7
+ `${c.prefix}${s}`;
8
+ var l = {
9
+ uri: "http://www.w3.org/2001/XMLSchema-instance",
10
+ prefix: "xsi"
11
+ };
12
+ `${l.prefix}${l.uri}`;
13
+ function u(e, t) {
14
+ return e.tagName === t;
15
+ }
16
+ function d(e, t) {
17
+ return t.elements.includes(e);
18
+ }
19
+ function f(e) {
20
+ return {
21
+ id: e.id,
22
+ tagName: e.tagName,
23
+ namespace: e.namespace,
24
+ attributes: e.attributes,
25
+ value: e.value,
26
+ parent: e.parent,
27
+ children: e.children
28
+ };
29
+ }
30
+ function p(e) {
31
+ let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
32
+ return {
33
+ ...f(t),
34
+ status: r
35
+ };
36
+ }
37
+ function m(e) {
38
+ let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
39
+ return {
40
+ ...p({
41
+ record: t,
42
+ status: n
43
+ }),
44
+ tree: i
45
+ };
46
+ }
47
+ function h(e) {
48
+ let { dialecteConfig: t, tagName: n, attributes: r } = e;
49
+ return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
50
+ name: e,
51
+ value: r,
52
+ namespace: t.definition[n]?.attributes.details[e]?.namespace || void 0
53
+ }))).map((e) => g({
54
+ attribute: e,
55
+ dialecteConfig: t,
56
+ tagName: n
57
+ }));
58
+ }
59
+ function g(t) {
60
+ let { attribute: r, dialecteConfig: a, tagName: s } = t, c;
61
+ typeof r.namespace == "string" ? (c = o(a, r.namespace), c || i("UNKNOWN_NAMESPACE_PREFIX", {
62
+ detail: `Unknown namespace '${r.namespace}' on attribute '${r.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
63
+ ref: { tagName: s }
64
+ })) : c = r.namespace;
65
+ let l = r.name.indexOf(":");
66
+ if (!c && l !== -1) {
67
+ let e = r.name.slice(0, l);
68
+ e !== "xmlns" && (c = n(a, e), c || i("UNKNOWN_NAMESPACE_PREFIX", {
69
+ detail: `Unknown namespace prefix '${e}' on attribute '${r.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
70
+ ref: { tagName: s }
71
+ }));
72
+ }
73
+ return c && c.prefix && c.prefix !== "xmlns" ? {
74
+ ...r,
75
+ name: `${c.prefix}:${e(r.name)}`,
76
+ namespace: c
77
+ } : (r.namespace, {
78
+ ...r,
79
+ namespace: c
80
+ });
81
+ }
82
+ function _(e) {
83
+ return a(e, { detail: "The record or ref is undefined" }), {
84
+ id: e.id,
85
+ tagName: e.tagName
86
+ };
87
+ }
88
+ function v(e) {
89
+ let { dialecteConfig: n, hooks: r, record: i } = e, { id: a, tagName: o, attributes: s, namespace: c, value: l } = i, u = a ?? crypto.randomUUID(), d = s ? h({
90
+ tagName: o,
91
+ attributes: s,
92
+ dialecteConfig: n
93
+ }) : [], f = {
94
+ id: u,
95
+ tagName: o,
96
+ attributes: d,
97
+ namespace: c ?? {
98
+ prefix: "prefixNeededForNotSupportedNamespace",
99
+ uri: "uriNeededForNotSupportedNamespace"
100
+ },
101
+ value: l ?? "",
102
+ parent: i.parent ?? null,
103
+ children: i.children ?? []
104
+ }, p = Object.values(n.namespaces).map(({ uri: e }) => e), m = c?.uri != null && !p.includes(c.uri);
105
+ if (!(n.elements.includes(o) && !m)) return f;
106
+ let g = n.definition[o].attributes.sequence, _ = d.filter((e) => {
107
+ let t = g.includes(e.name), n = "namespace" in e && e.namespace != null;
108
+ if (!t && !n) return !1;
109
+ let r = e.value === void 0 || e.value === null || e.value === "";
110
+ return !(t && r);
111
+ }), v = n.namespaces.default.uri, y = _.map((e) => {
112
+ if ("namespace" in e && e.namespace?.uri === v) {
113
+ let { namespace: t, ...n } = e;
114
+ return n;
115
+ }
116
+ return e;
117
+ }), b = i.parent?.tagName, x = b ? n.definition[b]?.children?.details?.[o]?.namespace : void 0, S = {
118
+ ...f,
119
+ namespace: x ?? n.definition[o].namespace,
120
+ attributes: t(y, g)
121
+ };
122
+ return r?.afterStandardizedRecord && (S = r.afterStandardizedRecord({ record: S }), S = {
123
+ ...S,
124
+ attributes: t(S.attributes, g)
125
+ }), S;
126
+ }
127
+ function y(e) {
128
+ let { dialecteConfig: t, tagName: n, attributes: a } = e;
129
+ for (let e of a) {
130
+ let a = r({
131
+ dialecteConfig: t,
132
+ tagName: n,
133
+ attributeName: e.name
134
+ });
135
+ a.fixed !== void 0 && e.value !== a.fixed && i("FIXED_VALUE_VIOLATION", {
136
+ detail: `Attribute '${e.name}' on '${n}' is fixed to '${a.fixed}' but was set to '${String(e.value)}'.`,
137
+ ref: { tagName: n }
138
+ });
139
+ }
140
+ }
141
+ //#endregion
142
+ export { s as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, c as DIALECTE_DEV_NAMESPACE, l as XSI_NAMESPACE, y as assertNoFixedViolation, d as isElementOf, u as isRecordOf, v as standardizeRecord, h as toFullAttributeArray, f as toRawRecord, _ as toRef, p as toTrackedRecord, m as toTreeRecord };
@@ -0,0 +1,3 @@
1
+ import "./utils-C5_11hqg.js";
2
+ import { ut as e } from "./project-wohrish5.js";
3
+ export { e as bindExtensions };