@code0-tech/pictor 0.0.0-mvp.40 → 0.0.0-mvp.42

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 (56) hide show
  1. package/dist/assets/components/data-table/DataTable.style.css +1 -0
  2. package/dist/assets/components/menu/Menu.style.css +1 -1
  3. package/dist/components/d-flow/DFlow.service.js +80 -100
  4. package/dist/components/d-flow-data-type/DFlowDataType.service.js +6 -7
  5. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +1 -1
  6. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +15 -15
  7. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +1 -1
  8. package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +17 -17
  9. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +1 -1
  10. package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +1 -1
  11. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -1
  12. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +87 -85
  13. package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +2 -1
  14. package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +2 -1
  15. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +5 -5
  16. package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +2 -1
  17. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +5 -5
  18. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +1 -1
  19. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +17 -17
  20. package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +5 -0
  21. package/dist/components/d-flow-node/DFlowNode.return.hook.js +27 -0
  22. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +90 -91
  23. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +1 -1
  24. package/dist/components/d-flow-validation/DNodeValidation.hook.js +33 -33
  25. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +2 -1
  26. package/dist/components/d-flow-validation/DValueValidation.hook.js +5 -5
  27. package/dist/components/d-project/DNamespaceProject.service.d.ts +2 -1
  28. package/dist/components/data-table/DataTable.d.ts +23 -0
  29. package/dist/components/data-table/DataTable.js +41 -0
  30. package/dist/components/data-table/DataTableColumn.d.ts +6 -0
  31. package/dist/components/data-table/DataTableColumn.js +22 -0
  32. package/dist/components/data-table/DataTableFilterInput.d.ts +18 -0
  33. package/dist/components/data-table/DataTableFilterInput.js +210 -0
  34. package/dist/components/data-table/DataTableFilterSuggestionMenu.d.ts +7 -0
  35. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +53 -0
  36. package/dist/components/data-table/index.d.ts +4 -0
  37. package/dist/components/data-table/index.js +11 -0
  38. package/dist/components/editor/Editor.d.ts +9 -3
  39. package/dist/components/editor/Editor.js +249 -174
  40. package/dist/components/menu/Menu.d.ts +5 -1
  41. package/dist/components/menu/Menu.js +73 -57
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +182 -171
  44. package/dist/node_modules/@lezer/highlight/dist/index.js +132 -169
  45. package/dist/utils/generics.d.ts +2 -1
  46. package/dist/utils/generics.js +84 -80
  47. package/package.json +32 -21
  48. package/dist/node_modules/@codemirror/language/dist/index.js +0 -429
  49. package/dist/node_modules/@codemirror/lint/dist/index.js +0 -515
  50. package/dist/node_modules/@codemirror/state/dist/index.js +0 -2614
  51. package/dist/node_modules/@codemirror/view/dist/index.js +0 -6227
  52. package/dist/node_modules/@lezer/common/dist/index.js +0 -1357
  53. package/dist/node_modules/@marijn/find-cluster-break/src/index.js +0 -69
  54. package/dist/node_modules/crelt/index.js +0 -27
  55. package/dist/node_modules/style-mod/src/style-mod.js +0 -109
  56. package/dist/node_modules/w3c-keyname/index.js +0 -88
@@ -1,4 +1,5 @@
1
- const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isArray(e), T = (e) => y(e) ? "genericKey" in e || "genericType" in e || "dataType" in e : !1, K = (e) => y(e) && "target" in e && Array.isArray(e.sourceDataTypeIdentifiers), R = (e) => y(e) && "variant" in e && "identifier" in e, M = (e) => y(e) && "variant" in e && "config" in e, _ = (e) => {
1
+ import { useReturnType as G } from "../components/d-flow-function/DFlowFunction.return.hook.js";
2
+ const _ = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isArray(e), d = (e) => y(e) ? "genericKey" in e || "genericType" in e || "dataType" in e : !1, A = (e) => y(e) && "target" in e && Array.isArray(e.sourceDataTypeIdentifiers), R = (e) => y(e) && "variant" in e && "identifier" in e, M = (e) => y(e) && "variant" in e && "config" in e, O = (e) => {
2
3
  if (e)
3
4
  return typeof e == "string" ? e : e?.dataType?.identifier ?? e?.genericType?.dataType?.identifier ?? void 0;
4
5
  }, P = (e, t) => {
@@ -7,27 +8,27 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
7
8
  }, b = (e) => !e || typeof e == "string" ? [] : e.genericType?.genericMappers ?? [], w = (e, t) => ({
8
9
  ...e,
9
10
  sourceDataTypeIdentifiers: t
10
- }), G = (e) => {
11
+ }), z = (e) => {
11
12
  const t = e.genericCombinationStrategies ?? [];
12
13
  return new Set(t.map((r) => r.type));
13
- }, D = (e) => {
14
+ }, C = (e) => {
14
15
  if (Array.isArray(e))
15
- return e.map(D);
16
+ return e.map(C);
16
17
  if (y(e)) {
17
18
  const t = {};
18
19
  return Object.entries(e).forEach(([r, s]) => {
19
- r === "__typename" || r === "id" || r === "createdAt" || r === "updatedAt" || (t[r] = D(s));
20
+ r === "__typename" || r === "id" || r === "createdAt" || r === "updatedAt" || (t[r] = C(s));
20
21
  }), t;
21
22
  }
22
23
  return e;
23
- }, O = (e, t) => {
24
+ }, S = (e, t) => {
24
25
  if (!t) return !e;
25
26
  if (typeof t == "string")
26
- return t === S ? !0 : _(e) === t;
27
+ return t === _ ? !0 : O(e) === t;
27
28
  if (t.genericKey) return !0;
28
- const s = _(t), a = _(e);
29
+ const s = O(t), a = O(e);
29
30
  return !!s && s === a;
30
- }, h = (e, t) => {
31
+ }, D = (e, t) => {
31
32
  switch (e.__typename) {
32
33
  case "DataTypeRulesContainsKeyConfig":
33
34
  case "DataTypeRulesContainsTypeConfig":
@@ -52,10 +53,10 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
52
53
  default:
53
54
  return e;
54
55
  }
55
- }, x = (e, t) => {
56
+ }, F = (e, t) => {
56
57
  switch (e.variant) {
57
58
  case "CONTAINS_KEY": {
58
- const r = h({
59
+ const r = D({
59
60
  ...e.config,
60
61
  __typename: "DataTypeRulesContainsKeyConfig"
61
62
  }, t);
@@ -65,7 +66,7 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
65
66
  };
66
67
  }
67
68
  case "CONTAINS_TYPE": {
68
- const r = h({
69
+ const r = D({
69
70
  ...e.config,
70
71
  __typename: "DataTypeRulesContainsTypeConfig"
71
72
  }, t);
@@ -75,7 +76,7 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
75
76
  };
76
77
  }
77
78
  case "RETURN_TYPE": {
78
- const r = h({
79
+ const r = D({
79
80
  ...e.config,
80
81
  __typename: "DataTypeRulesReturnTypeConfig"
81
82
  }, t);
@@ -85,7 +86,7 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
85
86
  };
86
87
  }
87
88
  case "INPUT_TYPES": {
88
- const r = h({
89
+ const r = D({
89
90
  ...e.config,
90
91
  __typename: "DataTypeRulesInputTypesConfig"
91
92
  }, t);
@@ -95,7 +96,7 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
95
96
  };
96
97
  }
97
98
  case "PARENT_TYPE": {
98
- const r = h({
99
+ const r = D({
99
100
  ...e.config,
100
101
  __typename: "DataTypeRulesParentTypeConfig"
101
102
  }, t);
@@ -107,41 +108,41 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
107
108
  default:
108
109
  return e;
109
110
  }
110
- }, z = (e, t, r) => {
111
+ }, Y = (e, t, r) => {
111
112
  const s = {}, a = new Set(r), c = (i, n) => {
112
113
  if (!i || !n) return;
113
114
  const f = P(i, a);
114
115
  if (f && a.has(f)) {
115
- T(n) && (s[f] = n);
116
+ d(n) && (s[f] = n);
116
117
  return;
117
118
  }
118
119
  const o = b(i);
119
120
  if (o.length === 0) return;
120
121
  const u = b(n);
121
122
  for (const p of o) {
122
- const l = u.find((g) => g.target === p.target);
123
+ const l = u.find((T) => T.target === p.target);
123
124
  if (!l) continue;
124
- const d = (p.sourceDataTypeIdentifiers ?? []).map((g) => P(g, a)).filter((g) => !!g && a.has(g)), I = G(p), C = l.sourceDataTypeIdentifiers ?? [];
125
- if ((I.has("AND") || I.has("OR")) && C.length === 1 && d.length === (p.sourceDataTypeIdentifiers?.length ?? 0))
126
- for (const g of d)
127
- s[g] = C[0];
125
+ const m = (p.sourceDataTypeIdentifiers ?? []).map((T) => P(T, a)).filter((T) => !!T && a.has(T)), g = z(p), I = l.sourceDataTypeIdentifiers ?? [];
126
+ if ((g.has("AND") || g.has("OR")) && I.length === 1 && m.length === (p.sourceDataTypeIdentifiers?.length ?? 0))
127
+ for (const T of m)
128
+ s[T] = I[0];
128
129
  else {
129
- const g = Math.min(p.sourceDataTypeIdentifiers?.length ?? 0, C.length);
130
- for (let A = 0; A < g; A++)
131
- c(p.sourceDataTypeIdentifiers[A], C[A]);
130
+ const T = Math.min(p.sourceDataTypeIdentifiers?.length ?? 0, I.length);
131
+ for (let h = 0; h < T; h++)
132
+ c(p.sourceDataTypeIdentifiers[h], I[h]);
132
133
  }
133
134
  }
134
135
  };
135
136
  return c(e, t), s;
136
137
  }, E = (e, t) => {
137
- if (!T(e)) return e;
138
+ if (!d(e)) return e;
138
139
  const {
139
140
  genericKey: r,
140
141
  genericType: s
141
142
  } = e;
142
143
  if (r && t.has(r)) {
143
144
  const c = t.get(r);
144
- return c && T(c) ? c : e;
145
+ return c && d(c) ? c : e;
145
146
  }
146
147
  if (!s) return e;
147
148
  const a = (s.genericMappers ?? []).map((c) => {
@@ -151,8 +152,8 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
151
152
  const f = n.genericKey;
152
153
  if (f && t.has(f)) {
153
154
  const o = t.get(f);
154
- o && K(o) ? i.push(...o.sourceDataTypeIdentifiers) : o && T(o) ? i.push(o) : i.push(n);
155
- } else T(n) ? i.push(E(n, t)) : i.push(n);
155
+ o && A(o) ? i.push(...o.sourceDataTypeIdentifiers) : o && d(o) ? i.push(o) : i.push(n);
156
+ } else d(n) ? i.push(E(n, t)) : i.push(n);
156
157
  }
157
158
  return w(c, i);
158
159
  });
@@ -163,15 +164,15 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
163
164
  genericMappers: a
164
165
  }
165
166
  };
166
- }, J = (e, t, r) => {
167
+ }, U = (e, t, r) => {
167
168
  const s = {}, a = new Set(r), c = (i, n, f) => {
168
169
  if (!(!i || !n || a.size === 0)) {
169
- if (T(i)) {
170
+ if (d(i)) {
170
171
  const o = i.genericKey;
171
- if (o && a.has(o) && (f ? s[o] = f : (K(n) || T(n)) && (s[o] = n), a.delete(o), a.size === 0))
172
+ if (o && a.has(o) && (f ? s[o] = f : (A(n) || d(n)) && (s[o] = n), a.delete(o), a.size === 0))
172
173
  return;
173
174
  }
174
- if (K(i) && K(n)) {
175
+ if (A(i) && A(n)) {
175
176
  const o = Math.min(i.sourceDataTypeIdentifiers?.length, n.sourceDataTypeIdentifiers?.length);
176
177
  for (let u = 0; u < o; u++)
177
178
  if (c(i.sourceDataTypeIdentifiers[u], n.sourceDataTypeIdentifiers[u], n), a.size === 0) return;
@@ -180,8 +181,8 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
180
181
  if (R(i) && R(n)) {
181
182
  const o = i.rules?.nodes ?? [], u = n.rules?.nodes ?? [], p = Math.min(o.length, u.length);
182
183
  for (let l = 0; l < p; l++) {
183
- const d = o[l], I = u[l];
184
- if (!(!d || !I) && (c(d, I), a.size === 0))
184
+ const m = o[l], g = u[l];
185
+ if (!(!m || !g) && (c(m, g), a.size === 0))
185
186
  return;
186
187
  }
187
188
  return;
@@ -204,54 +205,57 @@ const S = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
204
205
  }
205
206
  };
206
207
  return c(e, t), s;
207
- }, U = (e, t) => {
208
+ }, V = (e, t) => {
208
209
  const r = e.rules ? {
209
210
  ...e.rules,
210
211
  nodes: e.rules.nodes?.map((s) => s && {
211
212
  ...s,
212
- config: h(s.config, t)
213
+ config: D(s.config, t)
213
214
  })
214
215
  } : void 0;
215
216
  return {
216
217
  ...e,
217
218
  rules: r
218
219
  };
219
- }, k = (e, t, r, s) => {
220
- const a = /* @__PURE__ */ new Map(), c = e?.genericKeys ?? [];
221
- if (!e?.parameterDefinitions || c.length <= 0) return a;
222
- const i = new Set(c);
223
- return e.parameterDefinitions.forEach((n, f) => {
224
- const o = n.dataTypeIdentifier, u = t[f], p = r.getTypeFromValue(u, s);
225
- if (!o || !p) return;
226
- const l = z(o, p, c);
227
- for (const [d, I] of Object.entries(l))
228
- i.has(d) && (a.has(d) || a.set(d, I));
229
- }), a;
220
+ }, k = (e, t, r, s, a) => {
221
+ const c = /* @__PURE__ */ new Map(), i = e?.genericKeys ?? [];
222
+ if (!e?.parameterDefinitions || i.length <= 0) return c;
223
+ const n = new Set(i);
224
+ return e.parameterDefinitions.forEach((f, o) => {
225
+ const u = f.dataTypeIdentifier, p = t[o], l = p?.__typename === "ReferenceValue" ? (() => {
226
+ const g = a?.nodes?.nodes?.find((h) => h?.id === p.nodeFunctionId), I = g?.parameters?.nodes?.map((h) => h?.value) ?? [], T = s.getById(g?.functionDefinition?.id);
227
+ return G(T, I, r, s);
228
+ })() : r.getTypeFromValue(p, a);
229
+ if (!u || !l) return;
230
+ const m = Y(u, l, i);
231
+ for (const [g, I] of Object.entries(m))
232
+ n.has(g) && (c.has(g) || c.set(g, I));
233
+ }), c;
230
234
  };
231
- function F(e, t) {
235
+ function L(e, t) {
232
236
  if (e.variant !== t.variant) return !1;
233
237
  const r = t.rules?.nodes ?? [];
234
238
  if (r.length === 0) return !0;
235
239
  const s = e.rules?.nodes ?? [];
236
240
  for (const a of r) {
237
241
  if (!a) continue;
238
- if (!s.some((i) => i ? Y(i, a) : !1)) return !1;
242
+ if (!s.some((i) => i ? x(i, a) : !1)) return !1;
239
243
  }
240
244
  return !0;
241
245
  }
242
- function Y(e, t) {
246
+ function x(e, t) {
243
247
  if (e.variant !== t.variant) return !1;
244
248
  switch (t.variant) {
245
249
  case "CONTAINS_TYPE":
246
250
  case "RETURN_TYPE":
247
- return O(e.config.dataTypeIdentifier, t.config.dataTypeIdentifier);
251
+ return S(e.config.dataTypeIdentifier, t.config.dataTypeIdentifier);
248
252
  case "CONTAINS_KEY": {
249
253
  const r = e.config, s = t.config;
250
- return r.key !== s.key ? !1 : O(r.dataTypeIdentifier, s.dataTypeIdentifier);
254
+ return r.key !== s.key ? !1 : S(r.dataTypeIdentifier, s.dataTypeIdentifier);
251
255
  }
252
256
  case "INPUT_TYPES": {
253
257
  const r = e.config, a = t.config.inputTypes ?? [], c = r.inputTypes ?? [];
254
- return a.every((i) => c.some((n) => O(n.dataTypeIdentifier, i.dataTypeIdentifier)));
258
+ return a.every((i) => c.some((n) => S(n.dataTypeIdentifier, i.dataTypeIdentifier)));
255
259
  }
256
260
  case "ITEM_OF_COLLECTION": {
257
261
  const r = e.config.items ?? [], s = t.config.items ?? [];
@@ -266,11 +270,11 @@ function Y(e, t) {
266
270
  return r === s;
267
271
  }
268
272
  default:
269
- return JSON.stringify(D(e.config)) === JSON.stringify(D(t.config));
273
+ return JSON.stringify(C(e.config)) === JSON.stringify(C(t.config));
270
274
  }
271
275
  }
272
- function L(e, t) {
273
- const r = (i) => !!(i === S || T(i) && i.genericKey), s = (i, n) => r(i) || r(n) ? !0 : i == null || n == null ? i === n : Array.isArray(n) ? !Array.isArray(i) || i.length !== n.length ? !1 : i.every((f, o) => s(f, n[o])) : y(n) ? y(i) ? Object.keys(n).every((o) => s(i[o], n[o])) : !1 : i === n, a = D(e), c = D(t);
276
+ function v(e, t) {
277
+ const r = (i) => !!(i === _ || d(i) && i.genericKey), s = (i, n) => r(i) || r(n) ? !0 : i == null || n == null ? i === n : Array.isArray(n) ? !Array.isArray(i) || i.length !== n.length ? !1 : i.every((f, o) => s(f, n[o])) : y(n) ? y(i) ? Object.keys(n).every((o) => s(i[o], n[o])) : !1 : i === n, a = C(e), c = C(t);
274
278
  return s(a, c);
275
279
  }
276
280
  const j = (e, t) => {
@@ -296,7 +300,7 @@ const j = (e, t) => {
296
300
  }
297
301
  return e;
298
302
  }
299
- if (!T(e) || !e.genericType) return e;
303
+ if (!d(e) || !e.genericType) return e;
300
304
  const r = e.genericType.genericMappers?.map((s) => ({
301
305
  ...s,
302
306
  sourceDataTypeIdentifiers: s?.sourceDataTypeIdentifiers?.map((a) => j(a, t))
@@ -308,17 +312,17 @@ const j = (e, t) => {
308
312
  genericMappers: r
309
313
  }
310
314
  };
311
- }, m = (e) => {
315
+ }, K = (e) => {
312
316
  if (Array.isArray(e)) {
313
- const t = e.map(m);
317
+ const t = e.map(K);
314
318
  return t.length <= 1 ? t : t.every(y) ? [...t].sort((a, c) => JSON.stringify(a).localeCompare(JSON.stringify(c))) : t.every((a) => !Array.isArray(a) && !y(a)) ? [...t].sort((a, c) => JSON.stringify(a).localeCompare(JSON.stringify(c))) : t;
315
319
  }
316
320
  if (y(e)) {
317
321
  const t = e;
318
- return Object.keys(t).sort().reduce((r, s) => (r[s] = m(t[s]), r), {});
322
+ return Object.keys(t).sort().reduce((r, s) => (r[s] = K(t[s]), r), {});
319
323
  }
320
324
  return e;
321
- }, V = (e, t) => {
325
+ }, B = (e, t) => {
322
326
  if (!t.genericType) return /* @__PURE__ */ new Map();
323
327
  const r = new Set(e.genericKeys ?? []), s = /* @__PURE__ */ new Map();
324
328
  for (const a of t.genericType.genericMappers ?? []) {
@@ -330,52 +334,52 @@ const j = (e, t) => {
330
334
  }
331
335
  }
332
336
  return s;
333
- }, v = (e, t = []) => {
337
+ }, H = (e, t = []) => {
334
338
  const r = new Set(t), s = (n) => n ? r.size === 0 ? !0 : r.has(n) : !1, a = (n) => {
335
- const o = s(n.target) ? S : n.target, u = (n.sourceDataTypeIdentifiers ?? []).map((p) => i(p));
336
- return m({
339
+ const o = s(n.target) ? _ : n.target, u = (n.sourceDataTypeIdentifiers ?? []).map((p) => i(p));
340
+ return K({
337
341
  ...n,
338
342
  target: o,
339
343
  sourceDataTypeIdentifiers: u
340
344
  });
341
345
  }, c = (n) => {
342
- const o = s(n.genericKey) ? S : n.genericKey, u = {
346
+ const o = s(n.genericKey) ? _ : n.genericKey, u = {
343
347
  ...n,
344
348
  genericKey: o,
345
349
  dataType: n.dataType ? i(n.dataType) : n.dataType,
346
350
  genericType: n.genericType ? i(n.genericType) : n.genericType
347
351
  };
348
- return m(u);
352
+ return K(u);
349
353
  };
350
354
  function i(n) {
351
355
  if (n == null) return n;
352
356
  if (Array.isArray(n)) {
353
357
  const f = n.map((o) => i(o));
354
- return m(f);
358
+ return K(f);
355
359
  }
356
- if (T(n))
360
+ if (d(n))
357
361
  return c(n);
358
- if (K(n))
362
+ if (A(n))
359
363
  return a(n);
360
364
  if (y(n)) {
361
365
  const f = Object.entries(n).reduce((o, [u, p]) => (o[u] = i(p), o), {});
362
- return m(f);
366
+ return K(f);
363
367
  }
364
368
  return n;
365
369
  }
366
370
  return i(e);
367
371
  };
368
372
  export {
369
- F as isMatchingDataTypeObject,
370
- L as isMatchingType,
371
- U as replaceGenericKeysInDataTypeObject,
373
+ L as isMatchingDataTypeObject,
374
+ v as isMatchingType,
375
+ V as replaceGenericKeysInDataTypeObject,
372
376
  E as replaceGenericKeysInType,
373
- v as replaceGenericsAndSortType,
374
- h as replaceIdentifiersInConfig,
375
- x as replaceIdentifiersInRule,
376
- J as resolveAllGenericKeysInDataTypeObject,
377
- z as resolveGenericKeyMappings,
377
+ H as replaceGenericsAndSortType,
378
+ D as replaceIdentifiersInConfig,
379
+ F as replaceIdentifiersInRule,
380
+ U as resolveAllGenericKeysInDataTypeObject,
381
+ Y as resolveGenericKeyMappings,
378
382
  k as resolveGenericKeys,
379
383
  j as resolveType,
380
- V as targetForGenericKey
384
+ B as targetForGenericKey
381
385
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.0.0-mvp.40",
3
+ "version": "0.0.0-mvp.42",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -18,11 +18,14 @@
18
18
  "author": "CodeZero",
19
19
  "devDependencies": {
20
20
  "@ariakit/react": "^0.4.17",
21
- "@babel/plugin-proposal-decorators": "^7.28.6",
21
+ "@babel/plugin-proposal-decorators": "^7.29.0",
22
22
  "@babel/plugin-transform-class-properties": "^7.28.6",
23
- "@code0-tech/sagittarius-graphql-types": "^0.0.0-e610ffe24a7dc3cf7b4c285994830412410f229e",
23
+ "@code0-tech/sagittarius-graphql-types": "^0.0.0-703d578a55a3f0f20be3cb6892418f9e04d25716",
24
+ "@codemirror/autocomplete": "^6.20.0",
25
+ "@codemirror/lang-json": "^6.0.2",
24
26
  "@dagrejs/dagre": "^2.0.3",
25
27
  "@mdx-js/react": "^3.1.1",
28
+ "@monaco-editor/react": "^4.7.0",
26
29
  "@radix-ui/react-checkbox": "^1.3.3",
27
30
  "@radix-ui/react-context-menu": "^2.2.16",
28
31
  "@radix-ui/react-dialog": "^1.1.15",
@@ -31,7 +34,6 @@
31
34
  "@radix-ui/react-one-time-password-field": "^0.1.8",
32
35
  "@radix-ui/react-radio-group": "^1.3.8",
33
36
  "@radix-ui/react-scroll-area": "^1.2.10",
34
- "ldrs": "^1.1.9",
35
37
  "@radix-ui/react-tabs": "^1.1.13",
36
38
  "@radix-ui/react-toggle-group": "^1.1.11",
37
39
  "@radix-ui/react-tooltip": "^1.2.8",
@@ -48,11 +50,13 @@
48
50
  "@storybook/cli": "^10.1.11",
49
51
  "@storybook/react-vite": "^10.1.11",
50
52
  "@tabler/icons-react": "3.36.1",
51
- "@types/jest-image-snapshot": "^6.4.0",
53
+ "@types/jest-image-snapshot": "^6.4.1",
52
54
  "@types/react": "^19.2.8",
53
55
  "@types/react-dom": "^19.2.3",
54
56
  "@types/react-syntax-highlighter": "^15.5.13",
55
- "@vitejs/plugin-react": "^5.1.2",
57
+ "@uiw/codemirror-themes": "^4.25.4",
58
+ "@uiw/react-codemirror": "^4.25.4",
59
+ "@vitejs/plugin-react": "^5.1.3",
56
60
  "@vitest/browser-playwright": "^4.0.17",
57
61
  "@vitest/coverage-v8": "^4.0.17",
58
62
  "@xyflow/react": "^12.10.0",
@@ -66,13 +70,15 @@
66
70
  "identity-obj-proxy": "^3.0.0",
67
71
  "jest-image-snapshot": "^6.5.1",
68
72
  "js-md5": "^0.8.3",
73
+ "ldrs": "^1.1.9",
69
74
  "merge-props": "^6.0.0",
70
75
  "overlap-area": "^1.1.0",
71
76
  "playwright": "1.58.1",
72
77
  "react": "^19.2.3",
73
78
  "react-contenteditable": "^3.3.7",
74
79
  "react-dom": "^19.2.3",
75
- "react-resizable-panels": "^4.4.0",
80
+ "react-resizable-panels": "^4.6.2",
81
+ "react-syntax-highlighter": "^16.1.0",
76
82
  "react-zoom-pan-pinch": "^3.7.0",
77
83
  "rimraf": "^6.1.2",
78
84
  "sass": "^1.97.2",
@@ -87,12 +93,11 @@
87
93
  "vite-plugin-dts": "^4.5.4",
88
94
  "vite-plugin-lib-inject-css": "^2.2.2",
89
95
  "vitest": "^4.0.17",
90
- "@codemirror/autocomplete": "^6.20.0",
91
- "@codemirror/lang-json": "^6.0.2",
92
- "@monaco-editor/react": "^4.7.0",
93
- "@uiw/codemirror-themes": "^4.25.4",
94
- "@uiw/react-codemirror": "^4.25.4",
95
- "react-syntax-highlighter": "^16.1.0"
96
+ "@codemirror/lint": "^6.9.4",
97
+ "@codemirror/language": "^6.12.1",
98
+ "@codemirror/state": "^6.5.4",
99
+ "@codemirror/view": "^6.39.13",
100
+ "@lezer/common": "^1.5.1"
96
101
  },
97
102
  "main": "dist/index.js",
98
103
  "repository": {
@@ -105,8 +110,16 @@
105
110
  "types": "dist/index.d.ts",
106
111
  "peerDependencies": {
107
112
  "@ariakit/react": "^0.4.17",
108
- "@code0-tech/sagittarius-graphql-types": "0.0.0-e610ffe24a7dc3cf7b4c285994830412410f229e",
113
+ "@code0-tech/sagittarius-graphql-types": "0.0.0-703d578a55a3f0f20be3cb6892418f9e04d25716",
114
+ "@codemirror/autocomplete": "^6.20.0",
115
+ "@codemirror/lint": "^6.9.4",
116
+ "@codemirror/view": "^6.39.13",
117
+ "@codemirror/lang-json": "^6.0.2",
118
+ "@codemirror/state": "^6.5.4",
119
+ "@codemirror/language": "^6.12.1",
120
+ "@monaco-editor/react": "^4.7.0",
109
121
  "@radix-ui/react-checkbox": "^1.3.3",
122
+ "@lezer/common": "^1.5.1",
110
123
  "@radix-ui/react-context-menu": "^2.2.16",
111
124
  "@radix-ui/react-dialog": "^1.1.15",
112
125
  "@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -118,23 +131,21 @@
118
131
  "@radix-ui/react-toggle-group": "^1.1.11",
119
132
  "@radix-ui/react-tooltip": "^1.2.8",
120
133
  "@tabler/icons-react": "3.36.1",
134
+ "@uiw/codemirror-themes": "^4.25.4",
135
+ "@uiw/react-codemirror": "^4.25.4",
121
136
  "@xyflow/react": "^12.10.0",
122
137
  "cmdk": "^1.1.1",
123
138
  "js-md5": "^0.8.3",
139
+ "ldrs": "^1.1.9",
124
140
  "merge-props": "^6.0.0",
125
141
  "overlap-area": "^1.1.0",
126
142
  "react": "^18.0.0 || ^19.0.0",
127
143
  "react-contenteditable": "^3.3.7",
128
144
  "react-dom": "^18.0.0 || ^19.0.0",
129
145
  "react-resizable-panels": "^4.3.1",
146
+ "react-syntax-highlighter": "^16.1.0",
130
147
  "react-zoom-pan-pinch": "^3.7.0",
131
- "sonner": "^2.0.7",
132
- "@codemirror/autocomplete": "^6.20.0",
133
- "@codemirror/lang-json": "^6.0.2",
134
- "@monaco-editor/react": "^4.7.0",
135
- "@uiw/codemirror-themes": "^4.25.4",
136
- "@uiw/react-codemirror": "^4.25.4",
137
- "react-syntax-highlighter": "^16.1.0"
148
+ "sonner": "^2.0.7"
138
149
  },
139
150
  "publishConfig": {
140
151
  "access": "public"