@likec4/core 1.48.0 → 1.49.0

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 (134) hide show
  1. package/dist/THIRD-PARTY-LICENSES.md +1012 -0
  2. package/dist/_chunks/Builder.view-element.mjs +2 -3284
  3. package/dist/_chunks/LikeC4Model.d.mts +21 -25
  4. package/dist/_chunks/RichText.mjs +1 -148
  5. package/dist/_chunks/_types.d.mts +1 -5
  6. package/dist/_chunks/_types2.d.mts +2 -4
  7. package/dist/_chunks/assignTagColors.mjs +1 -24
  8. package/dist/_chunks/calcDriftsFromSnapshot.mjs +1 -379
  9. package/dist/_chunks/guards.d.mts +2026 -0
  10. package/dist/_chunks/guards.mjs +4 -0
  11. package/dist/_chunks/index.d.mts +255 -136
  12. package/dist/_chunks/libs/@mantine/colors-generator.mjs +2 -3403
  13. package/dist/_chunks/libs/@radix-ui/colors.mjs +1 -0
  14. package/dist/_chunks/libs/@ungap/structured-clone.mjs +1 -213
  15. package/dist/_chunks/libs/bail.mjs +1 -14
  16. package/dist/_chunks/libs/ccount.mjs +1 -25
  17. package/dist/_chunks/libs/character-entities-html4.mjs +1 -263
  18. package/dist/_chunks/libs/character-entities-legacy.mjs +1 -117
  19. package/dist/_chunks/libs/character-entities.mjs +2 -2136
  20. package/dist/_chunks/libs/comma-separated-tokens.mjs +1 -18
  21. package/dist/_chunks/libs/decode-named-character-reference.mjs +1 -21
  22. package/dist/_chunks/libs/defu.mjs +1 -42
  23. package/dist/_chunks/libs/devlop.mjs +1 -5
  24. package/dist/_chunks/libs/escape-string-regexp.mjs +1 -8
  25. package/dist/_chunks/libs/extend.mjs +1 -77
  26. package/dist/_chunks/libs/graphology-dag.mjs +1 -703
  27. package/dist/_chunks/libs/graphology.mjs +1 -4565
  28. package/dist/_chunks/libs/hast-util-sanitize.mjs +1 -863
  29. package/dist/_chunks/libs/hast-util-to-html.mjs +9 -2696
  30. package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
  31. package/dist/_chunks/libs/longest-streak.mjs +1 -30
  32. package/dist/_chunks/libs/markdown-table.mjs +2 -290
  33. package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +1 -653
  34. package/dist/_chunks/libs/mdast-util-from-markdown.mjs +3 -8522
  35. package/dist/_chunks/libs/mdast-util-gfm.mjs +15 -2393
  36. package/dist/_chunks/libs/mdast-util-to-hast.mjs +11 -1803
  37. package/dist/_chunks/libs/micromark-extension-gfm.mjs +1 -2243
  38. package/dist/_chunks/libs/mnemonist.d.mts +1 -91
  39. package/dist/_chunks/libs/mnemonist.mjs +1 -1978
  40. package/dist/_chunks/libs/natural-compare-lite.mjs +9 -42
  41. package/dist/_chunks/libs/ohash.mjs +1 -0
  42. package/dist/_chunks/libs/rehype-sanitize.mjs +1 -29
  43. package/dist/_chunks/libs/rehype-stringify.mjs +1 -34
  44. package/dist/_chunks/libs/remark-gfm.mjs +1 -36
  45. package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +3 -100
  46. package/dist/_chunks/libs/remark-parse.mjs +1 -39
  47. package/dist/_chunks/libs/remark-rehype.mjs +1 -171
  48. package/dist/_chunks/libs/remeda.mjs +1 -702
  49. package/dist/_chunks/libs/trough.mjs +1 -158
  50. package/dist/_chunks/libs/unified.mjs +1 -2212
  51. package/dist/_chunks/rolldown-runtime.mjs +1 -42
  52. package/dist/_chunks/{index3.d.mts → theme.d.mts} +15 -13
  53. package/dist/_chunks/{index7.d.mts → to-text.d.mts} +165 -29
  54. package/dist/_chunks/to-text.mjs +1 -0
  55. package/dist/_chunks/vector.d.mts +198 -0
  56. package/dist/_chunks/vector.mjs +1 -0
  57. package/dist/builder/index.d.mts +2 -8
  58. package/dist/builder/index.mjs +1 -662
  59. package/dist/compute-view/index.d.mts +86 -15
  60. package/dist/compute-view/index.mjs +2 -262
  61. package/dist/geometry/index.d.mts +2 -2
  62. package/dist/geometry/index.mjs +1 -3
  63. package/dist/index.d.mts +9 -13
  64. package/dist/index.mjs +1 -27
  65. package/dist/model/index.d.mts +4 -14
  66. package/dist/model/index.mjs +1 -11
  67. package/dist/styles/index.d.mts +2 -8
  68. package/dist/styles/index.mjs +1 -30
  69. package/dist/types/index.d.mts +3 -9
  70. package/dist/types/index.mjs +1 -15
  71. package/dist/utils/graphology/index.d.mts +1 -1
  72. package/dist/utils/graphology/index.mjs +1 -3
  73. package/dist/utils/index.d.mts +4 -11
  74. package/dist/utils/index.mjs +1 -17
  75. package/package.json +13 -12
  76. package/dist/_chunks/LikeC4Styles.mjs +0 -691
  77. package/dist/_chunks/RichText.d.mts +0 -84
  78. package/dist/_chunks/_aux.d.mts +0 -289
  79. package/dist/_chunks/_aux.mjs +0 -18
  80. package/dist/_chunks/connection.mjs +0 -0
  81. package/dist/_chunks/const.d.mts +0 -43
  82. package/dist/_chunks/const.mjs +0 -33
  83. package/dist/_chunks/expression-model.d.mts +0 -192
  84. package/dist/_chunks/expression-model.mjs +0 -103
  85. package/dist/_chunks/expression.d.mts +0 -347
  86. package/dist/_chunks/expression.mjs +0 -107
  87. package/dist/_chunks/find.d.mts +0 -82
  88. package/dist/_chunks/find.mjs +0 -646
  89. package/dist/_chunks/find2.d.mts +0 -78
  90. package/dist/_chunks/find2.mjs +0 -287
  91. package/dist/_chunks/fqnRef.d.mts +0 -58
  92. package/dist/_chunks/fqnRef.mjs +0 -41
  93. package/dist/_chunks/geometry.mjs +0 -335
  94. package/dist/_chunks/index2.d.mts +0 -937
  95. package/dist/_chunks/index4.d.mts +0 -62
  96. package/dist/_chunks/index5.d.mts +0 -42
  97. package/dist/_chunks/index6.d.mts +0 -43
  98. package/dist/_chunks/index8.d.mts +0 -144
  99. package/dist/_chunks/invariant.mjs +0 -18
  100. package/dist/_chunks/iterable.mjs +0 -146
  101. package/dist/_chunks/libs/graphology-types.d.mts +0 -601
  102. package/dist/_chunks/libs/graphology.d.mts +0 -6
  103. package/dist/_chunks/mnemonist.d.mts +0 -1
  104. package/dist/_chunks/mnemonist.mjs +0 -0
  105. package/dist/_chunks/model.mjs +0 -1898
  106. package/dist/_chunks/model2.mjs +0 -0
  107. package/dist/_chunks/relationships-view.mjs +0 -132
  108. package/dist/_chunks/scalar.d.mts +0 -109
  109. package/dist/_chunks/scalar.mjs +0 -84
  110. package/dist/_chunks/utils.mjs +0 -483
  111. package/dist/compute-view/relationships-view/index.d.mts +0 -16
  112. package/dist/compute-view/relationships-view/index.mjs +0 -7
  113. package/dist/model/connection/deployment/index.d.mts +0 -12
  114. package/dist/model/connection/deployment/index.mjs +0 -9
  115. package/dist/model/connection/index.d.mts +0 -14
  116. package/dist/model/connection/index.mjs +0 -10
  117. package/dist/model/connection/model/index.d.mts +0 -12
  118. package/dist/model/connection/model/index.mjs +0 -8
  119. package/dist/types/RichText.d.mts +0 -3
  120. package/dist/types/RichText.mjs +0 -7
  121. package/dist/types/_aux.d.mts +0 -3
  122. package/dist/types/_aux.mjs +0 -3
  123. package/dist/types/expression-model.d.mts +0 -6
  124. package/dist/types/expression-model.mjs +0 -7
  125. package/dist/types/expression.d.mts +0 -5
  126. package/dist/types/expression.mjs +0 -7
  127. package/dist/types/fqnRef.d.mts +0 -4
  128. package/dist/types/fqnRef.mjs +0 -7
  129. package/dist/types/scalar.d.mts +0 -2
  130. package/dist/types/scalar.mjs +0 -7
  131. package/dist/utils/iterable/index.d.mts +0 -9
  132. package/dist/utils/iterable/index.mjs +0 -3
  133. package/dist/utils/mnemonist.d.mts +0 -2
  134. package/dist/utils/mnemonist.mjs +0 -12
@@ -1,18 +1 @@
1
- //#region ../../node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
2
- /**
3
- * Serialize an array of strings or numbers to comma-separated tokens.
4
- *
5
- * @param {Array<string|number>} values
6
- * List of tokens.
7
- * @param {Options} [options]
8
- * Configuration for `stringify` (optional).
9
- * @returns {string}
10
- * Comma-separated tokens.
11
- */
12
- function stringify(values, options) {
13
- const settings = options || {};
14
- return (values[values.length - 1] === "" ? [...values, ""] : values).join((settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")).trim();
15
- }
16
-
17
- //#endregion
18
- export { stringify as t };
1
+ function stringify(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}export{stringify as t};
@@ -1,21 +1 @@
1
- import { t as characterEntities } from "./character-entities.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/decode-named-character-reference@1.0.2/node_modules/decode-named-character-reference/index.js
4
- const own = {}.hasOwnProperty;
5
- /**
6
- * Decode a single character reference (without the `&` or `;`).
7
- * You probably only need this when you’re building parsers yourself that follow
8
- * different rules compared to HTML.
9
- * This is optimized to be tiny in browsers.
10
- *
11
- * @param {string} value
12
- * `notin` (named), `#123` (deci), `#x123` (hexa).
13
- * @returns {string|false}
14
- * Decoded reference.
15
- */
16
- function decodeNamedCharacterReference(value) {
17
- return own.call(characterEntities, value) ? characterEntities[value] : false;
18
- }
19
-
20
- //#endregion
21
- export { decodeNamedCharacterReference as t };
1
+ import{t as characterEntities}from"./character-entities.mjs";const own={}.hasOwnProperty;function decodeNamedCharacterReference(e){return own.call(characterEntities,e)?characterEntities[e]:!1}export{decodeNamedCharacterReference as t};
@@ -1,42 +1 @@
1
- //#region ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
2
- function isPlainObject(value) {
3
- if (value === null || typeof value !== "object") return false;
4
- const prototype = Object.getPrototypeOf(value);
5
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
6
- if (Symbol.iterator in value) return false;
7
- if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
8
- return true;
9
- }
10
- function _defu(baseObject, defaults, namespace = ".", merger) {
11
- if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
12
- const object = Object.assign({}, defaults);
13
- for (const key in baseObject) {
14
- if (key === "__proto__" || key === "constructor") continue;
15
- const value = baseObject[key];
16
- if (value === null || value === void 0) continue;
17
- if (merger && merger(object, key, value, namespace)) continue;
18
- if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
19
- else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
20
- else object[key] = value;
21
- }
22
- return object;
23
- }
24
- function createDefu(merger) {
25
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
26
- }
27
- const defu = createDefu();
28
- const defuFn = createDefu((object, key, currentValue) => {
29
- if (object[key] !== void 0 && typeof currentValue === "function") {
30
- object[key] = currentValue(object[key]);
31
- return true;
32
- }
33
- });
34
- const defuArrayFn = createDefu((object, key, currentValue) => {
35
- if (Array.isArray(object[key]) && typeof currentValue === "function") {
36
- object[key] = currentValue(object[key]);
37
- return true;
38
- }
39
- });
40
-
41
- //#endregion
42
- export { defu as t };
1
+ function isPlainObject(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function _defu(n,r,i=`.`,a){if(!isPlainObject(r))return _defu(n,{},i,a);let o=Object.assign({},r);for(let r in n){if(r===`__proto__`||r===`constructor`)continue;let s=n[r];s!=null&&(a&&a(o,r,s,i)||(Array.isArray(s)&&Array.isArray(o[r])?o[r]=[...s,...o[r]]:isPlainObject(s)&&isPlainObject(o[r])?o[r]=_defu(s,o[r],(i?`${i}.`:``)+r.toString(),a):o[r]=s))}return o}function createDefu(e){return(...n)=>n.reduce((n,r)=>_defu(n,r,``,e),{})}const defu=createDefu();export{defu as t};
@@ -1,5 +1 @@
1
- //#region ../../node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js
2
- function ok() {}
3
-
4
- //#endregion
5
- export { ok as t };
1
+ function ok(){}export{ok as t};
@@ -1,8 +1 @@
1
- //#region ../../node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
2
- function escapeStringRegexp(string) {
3
- if (typeof string !== "string") throw new TypeError("Expected a string");
4
- return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
5
- }
6
-
7
- //#endregion
8
- export { escapeStringRegexp as t };
1
+ function escapeStringRegexp(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}export{escapeStringRegexp as t};
@@ -1,77 +1 @@
1
- import { t as __commonJSMin } from "../rolldown-runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js
4
- var require_extend = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- var hasOwn = Object.prototype.hasOwnProperty;
6
- var toStr = Object.prototype.toString;
7
- var defineProperty = Object.defineProperty;
8
- var gOPD = Object.getOwnPropertyDescriptor;
9
- var isArray = function isArray(arr) {
10
- if (typeof Array.isArray === "function") return Array.isArray(arr);
11
- return toStr.call(arr) === "[object Array]";
12
- };
13
- var isPlainObject = function isPlainObject(obj) {
14
- if (!obj || toStr.call(obj) !== "[object Object]") return false;
15
- var hasOwnConstructor = hasOwn.call(obj, "constructor");
16
- var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, "isPrototypeOf");
17
- if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) return false;
18
- var key;
19
- for (key in obj);
20
- return typeof key === "undefined" || hasOwn.call(obj, key);
21
- };
22
- var setProperty = function setProperty(target, options) {
23
- if (defineProperty && options.name === "__proto__") defineProperty(target, options.name, {
24
- enumerable: true,
25
- configurable: true,
26
- value: options.newValue,
27
- writable: true
28
- });
29
- else target[options.name] = options.newValue;
30
- };
31
- var getProperty = function getProperty(obj, name) {
32
- if (name === "__proto__") {
33
- if (!hasOwn.call(obj, name)) return;
34
- else if (gOPD) return gOPD(obj, name).value;
35
- }
36
- return obj[name];
37
- };
38
- module.exports = function extend() {
39
- var options, name, src, copy, copyIsArray, clone;
40
- var target = arguments[0];
41
- var i = 1;
42
- var length = arguments.length;
43
- var deep = false;
44
- if (typeof target === "boolean") {
45
- deep = target;
46
- target = arguments[1] || {};
47
- i = 2;
48
- }
49
- if (target == null || typeof target !== "object" && typeof target !== "function") target = {};
50
- for (; i < length; ++i) {
51
- options = arguments[i];
52
- if (options != null) for (name in options) {
53
- src = getProperty(target, name);
54
- copy = getProperty(options, name);
55
- if (target !== copy) {
56
- if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
57
- if (copyIsArray) {
58
- copyIsArray = false;
59
- clone = src && isArray(src) ? src : [];
60
- } else clone = src && isPlainObject(src) ? src : {};
61
- setProperty(target, {
62
- name,
63
- newValue: extend(deep, clone, copy)
64
- });
65
- } else if (typeof copy !== "undefined") setProperty(target, {
66
- name,
67
- newValue: copy
68
- });
69
- }
70
- }
71
- }
72
- return target;
73
- };
74
- }));
75
-
76
- //#endregion
77
- export { require_extend as t };
1
+ import{t as __commonJSMin}from"../rolldown-runtime.mjs";var require_extend=__commonJSMin(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function e(t){return typeof Array.isArray==`function`?Array.isArray(t):r.call(t)===`[object Array]`},s=function e(t){if(!t||r.call(t)!==`[object Object]`)return!1;var i=n.call(t,`constructor`),a=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,`isPrototypeOf`);if(t.constructor&&!i&&!a)return!1;for(var o in t);return o===void 0||n.call(t,o)},c=function e(t,n){i&&n.name===`__proto__`?i(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},l=function e(t,r){if(r===`__proto__`){if(!n.call(t,r))return;if(a)return a(t,r).value}return t[r]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));export{require_extend as t};