@septkit/ui 0.0.80 → 0.0.81

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 (26) hide show
  1. package/dist/dialecte/create-document-store.js +4 -4
  2. package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js} +69 -69
  3. package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js} +1 -1
  4. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
  5. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +6 -0
  6. package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js} +83 -83
  7. package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  8. package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js} +2 -2
  9. package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js} +47 -47
  10. package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js} +64 -138
  11. package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/utils.js +1 -1
  12. package/dist/external/.pnpm/{@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js → @dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js} +262 -234
  13. package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/merge/check-files/identity-warning.js +2 -1
  16. package/dist/merge/confirm/outcome.js +4 -4
  17. package/dist/merge/done/applied-focus.js +1 -1
  18. package/dist/merge/match/match.js +4 -4
  19. package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +1 -0
  20. package/dist/merge/session/merge.service.js +25 -19
  21. package/dist/merge/session/use-merge-session.js +11 -1
  22. package/dist/merge/wording.js +4 -4
  23. package/package.json +3 -3
  24. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
  25. package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +0 -5
  26. package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -22
@@ -0,0 +1,3 @@
1
+ import "../../../../../../@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js";
2
+ import { g as e, i as t, n, p as r, tt as i } from "../declaration.constants-DSLNk1wh.js";
3
+ export { r as SCL_ERRORS, i as TEMPLATE_NAME, t as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, n as presentationScope };
package/dist/index.d.ts CHANGED
@@ -3296,6 +3296,8 @@ export declare type MergeSessionParams = {
3296
3296
  sourceRef: Scl.Ref<'Function'> | Scl.Ref<'FunctionTemplate'> | Scl.Ref<'Application'> | Scl.Ref<TopologyStructuralTag>;
3297
3297
  /** Target parent the instance lives under / is placed into. */
3298
3298
  anchor: Scl.Ref<Scl.ElementsOf>;
3299
+ /** Element tags the consumer creates on instances and maintains itself: the merge does not list them as the project's own. */
3300
+ consumerManagedTags?: readonly Scl.ElementsOf[];
3299
3301
  /** The consumer's own step after the apply, run by the merge in its preview and its commit. */
3300
3302
  afterApply?: AfterApplyHook;
3301
3303
  };
@@ -1,4 +1,5 @@
1
- import { TEMPLATE_UUID_WARNING_INFO as e } from "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { i as e } from "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
2
+ import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
2
3
  //#region lib/merge/check-files/identity-warning.ts
3
4
  function t(t) {
4
5
  let r = e[t];
@@ -1,7 +1,7 @@
1
- import { d as e, f as t } from "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js";
2
- import "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js";
3
- import { _ as n } from "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
4
- import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { d as e, f as t } from "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js";
2
+ import "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js";
3
+ import { g as n } from "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
4
+ import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
5
5
  import { extractTitle as r, getAttributes as i } from "../session/merge.service.js";
6
6
  import { allGroups as a } from "../review/tree.js";
7
7
  import { countAttributeChanges as o, foldOperations as s } from "../session/staged-writes.js";
@@ -1,7 +1,7 @@
1
1
  //#region lib/merge/done/applied-focus.ts
2
2
  function e(e, n) {
3
3
  let { instances: r } = e;
4
- if (r.verb === "fsd") return r.functions[0];
4
+ if (r.verb === "fsd") return r.functions[0]?.ref;
5
5
  if (!(r.verb === "asd" && !r.applications[0])) return r.verb === "ssd" ? t(e) : t(e) ?? n.anchor;
6
6
  }
7
7
  function t(e) {
@@ -1,7 +1,7 @@
1
- import { f as e } from "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js";
2
- import "../../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js";
3
- import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
4
- import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { f as e } from "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js";
2
+ import "../../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js";
3
+ import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
4
+ import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
5
5
  import { extractTitle as t } from "../session/merge.service.js";
6
6
  //#region lib/merge/match/match.ts
7
7
  async function n(e) {
@@ -163,6 +163,7 @@ var ct = { class: "@container flex flex-wrap items-center justify-between gap-x-
163
163
  scenario: {},
164
164
  sourceRef: {},
165
165
  anchor: {},
166
+ consumerManagedTags: {},
166
167
  afterApply: { type: Function },
167
168
  source: {},
168
169
  target: {},
@@ -1,49 +1,55 @@
1
- import { i as e } from "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
2
- import "../../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { n as e } from "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
2
+ import "../../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
3
3
  //#region lib/merge/session/merge.service.ts
4
- async function t(e, t, n) {
5
- return n ? e.query.lifecycle.report({
4
+ async function t({ doc: e, target: t, resolved: n }) {
5
+ let { decisionMappings: r, consumerManagedTags: i } = n;
6
+ if (!r && !i) return e.query.lifecycle.report(t);
7
+ let a = {};
8
+ return r && (a.mappings = r), i && (a.consumerManagedTags = i), e.query.lifecycle.report({
6
9
  ...t,
7
- resolution: { mappings: n }
8
- }) : e.query.lifecycle.report(t);
10
+ resolution: a
11
+ });
9
12
  }
10
- function n({ decisions: e, decisionMappings: t, keepNameTypesFrom: n, afterApply: r }) {
13
+ function n({ decisions: e, decisionMappings: t, keepNameTypesFrom: n, consumerManagedTags: r, afterApply: i }) {
11
14
  return {
12
15
  decisions: e,
13
16
  mappings: t,
14
17
  keepNameTypesFrom: n,
15
- afterApply: r
18
+ consumerManagedTags: r,
19
+ afterApply: i
16
20
  };
17
21
  }
18
- async function r({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o, afterApply: s }) {
19
- let c = n({
22
+ async function r({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o, consumerManagedTags: s, afterApply: c }) {
23
+ let l = n({
20
24
  decisions: i,
21
25
  decisionMappings: a,
22
26
  keepNameTypesFrom: o,
23
- afterApply: s
27
+ consumerManagedTags: s,
28
+ afterApply: c
24
29
  });
25
30
  return { prepared: await e.prepare(async (e) => {
26
31
  await e.lifecycle.apply({
27
32
  ...t,
28
33
  report: r,
29
- resolution: c
34
+ resolution: l
30
35
  });
31
36
  }) };
32
37
  }
33
- async function i({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o, afterApply: s }) {
34
- let c = n({
38
+ async function i({ doc: e, target: t, report: r, decisions: i, decisionMappings: a, keepNameTypesFrom: o, consumerManagedTags: s, afterApply: c }) {
39
+ let l = n({
35
40
  decisions: i,
36
41
  decisionMappings: a,
37
42
  keepNameTypesFrom: o,
38
- afterApply: s
39
- }), l;
43
+ consumerManagedTags: s,
44
+ afterApply: c
45
+ }), u;
40
46
  return await e.transaction(async (e) => {
41
- l = await e.lifecycle.apply({
47
+ u = await e.lifecycle.apply({
42
48
  ...t,
43
49
  report: r,
44
- resolution: c
50
+ resolution: l
45
51
  });
46
- }), l;
52
+ }), u;
47
53
  }
48
54
  function a(t) {
49
55
  return e({ verb: t });
@@ -40,7 +40,14 @@ function p(p) {
40
40
  await L(), N.value = await t([p.sourceQuery, p.targetDocument.query]), j.value = await s(p.sourceQuery), await $();
41
41
  }
42
42
  async function L() {
43
- let e = await te(p.targetDocument, P(), new Map(g));
43
+ let e = await te({
44
+ doc: p.targetDocument,
45
+ target: P(),
46
+ resolved: {
47
+ decisionMappings: new Map(g),
48
+ consumerManagedTags: p.consumerManagedTags
49
+ }
50
+ });
44
51
  m.value = e;
45
52
  let t = await re({
46
53
  mappings: e.mappings,
@@ -204,6 +211,7 @@ function p(p) {
204
211
  decisions: t,
205
212
  decisionMappings: new Map(g),
206
213
  keepNameTypesFrom: C.value,
214
+ consumerManagedTags: p.consumerManagedTags,
207
215
  afterApply: p.afterApply
208
216
  });
209
217
  if (e !== Z) {
@@ -275,6 +283,7 @@ function p(p) {
275
283
  decisions: q(),
276
284
  decisionMappings: new Map(g),
277
285
  keepNameTypesFrom: C.value,
286
+ consumerManagedTags: p.consumerManagedTags,
278
287
  afterApply: p.afterApply
279
288
  });
280
289
  }
@@ -292,6 +301,7 @@ function p(p) {
292
301
  decisions: q(),
293
302
  decisionMappings: new Map(g),
294
303
  keepNameTypesFrom: C.value,
304
+ consumerManagedTags: p.consumerManagedTags,
295
305
  afterApply: p.afterApply
296
306
  });
297
307
  try {
@@ -1,7 +1,7 @@
1
- import { G as e, U as t } from "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js";
2
- import "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
3
- import { m as n } from "../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js";
4
- import "../external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
1
+ import { G as e, U as t } from "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js";
2
+ import "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js";
3
+ import { p as n } from "../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js";
4
+ import "../external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js";
5
5
  //#region lib/merge/wording.ts
6
6
  var r = {
7
7
  added: "new",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@septkit/ui",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
4
4
  "type": "module",
5
5
  "source": "lib/index.ts",
6
6
  "files": [
@@ -16,8 +16,8 @@
16
16
  "./uicss": "./dist/ui.css"
17
17
  },
18
18
  "dependencies": {
19
- "@dialecte/core": "0.8.0",
20
- "@dialecte/scl": "0.11.0",
19
+ "@dialecte/core": "0.9.0",
20
+ "@dialecte/scl": "0.14.0",
21
21
  "@lucide/vue": "^1.16.0",
22
22
  "@tailwindcss/vite": "4.2.2",
23
23
  "@vueuse/components": "^13.9.0",
@@ -1,3 +0,0 @@
1
- import { R as e } from "./utils-USNkj4sT.js";
2
- import { d as t, f as n, n as r } from "./helpers-DVShv41E.js";
3
- export { e as XSI_NAMESPACE, r as readAttribute, t as toRawRecord, n as toRef };
@@ -1,5 +0,0 @@
1
- import { G as e, H as t, U as n } from "./utils-USNkj4sT.js";
2
- import "./project-key-Ch34EtFa.js";
3
- import "./same-json-value-C6kUaoyt.js";
4
- import { V as r } from "./dialecte-gIPrRzni.js";
5
- export { r as bindExtensions, t as defineErrors, n as isKnownDialecteError, e as toDialecteError };
@@ -1,22 +0,0 @@
1
- import "../../../../../../@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
2
- import { _ as e, i as t, m as n, nt as r } from "../hooks-F61-rgXT.js";
3
- //#region node_modules/.pnpm/@dialecte+scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js
4
- var i = {
5
- "cross-type-template-uuid": {
6
- title: "Placeholder templateUuid reused across element types",
7
- description: "One templateUuid is carried by elements of several different types, so it cannot identify a single template element — it is an authoring placeholder, not real lineage.",
8
- fallback: "Template lineage is ignored for these elements: none is recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
9
- },
10
- "duplicate-instance-uuid": {
11
- title: "Duplicate instance uuid",
12
- description: "The same uuid is used by more than one element. Every instance uuid in an SCL must be unique, so uuid-based identity is ambiguous for the affected elements.",
13
- fallback: "Identity by uuid is ambiguous for the affected elements: which of them a reference or a template element resolves to is not defined."
14
- },
15
- "template-uuid-type-mismatch": {
16
- title: "templateUuid resolves to a different element type",
17
- description: "A templateUuid points in-file to an element of a different type than the one carrying it. An instance cannot derive from a template of another type, so the lineage is inconsistent.",
18
- fallback: "The mismatched lineage is ignored: the element is not recognised as an instance of a template element. A report then lists the template element as new and the existing element as an addition of the project."
19
- }
20
- };
21
- //#endregion
22
- export { n as SCL_ERRORS, r as TEMPLATE_NAME, i as TEMPLATE_UUID_WARNING_INFO, e as getPathSegment, t as presentationScope };