@highstate/designer 0.9.18 → 0.9.20

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 (170) hide show
  1. package/.output/nitro.json +3 -3
  2. package/.output/public/_nuxt/20zRBBOT.js +276 -0
  3. package/.output/public/_nuxt/3cWt8vz3.js +1 -0
  4. package/.output/public/_nuxt/{xVLoeQ-B.js → 4-z0BBBK.js} +1 -1
  5. package/.output/public/_nuxt/B6Kaf1Zv.js +1 -0
  6. package/.output/public/_nuxt/B7eyK5kF.js +1 -0
  7. package/.output/public/_nuxt/{CPSgaaQ0.js → BBm9Ui4P.js} +1 -1
  8. package/.output/public/_nuxt/BCeRv53V.js +1 -0
  9. package/.output/public/_nuxt/BFHRoLmv.js +1 -0
  10. package/.output/public/_nuxt/BKG_vmA6.js +1 -0
  11. package/.output/public/_nuxt/BMQs3vM5.js +2 -0
  12. package/.output/public/_nuxt/BTT16DZE.js +1 -0
  13. package/.output/public/_nuxt/{B7grBCAR.js → BUBm2gu0.js} +1 -1
  14. package/.output/public/_nuxt/BUVU2BiV.js +1 -0
  15. package/.output/public/_nuxt/BZsnSVZa.js +1 -0
  16. package/.output/public/_nuxt/BZxTtwKO.js +1 -0
  17. package/.output/public/_nuxt/Bc22Y1oD.js +1 -0
  18. package/.output/public/_nuxt/BdJnfSuv.js +1 -0
  19. package/.output/public/_nuxt/BfUh6PEC.js +1 -0
  20. package/.output/public/_nuxt/BhJD15Lv.js +1 -0
  21. package/.output/public/_nuxt/BvXvCmL7.js +1 -0
  22. package/.output/public/_nuxt/C1NBlWY6.js +1 -0
  23. package/.output/public/_nuxt/C3tTPg4E.js +1 -0
  24. package/.output/public/_nuxt/CHdpI9cE.js +1 -0
  25. package/.output/public/_nuxt/CJbwedTO.js +1 -0
  26. package/.output/public/_nuxt/CXMRj2GR.js +1 -0
  27. package/.output/public/_nuxt/CgH_TWd3.js +1 -0
  28. package/.output/public/_nuxt/CjzOrk9n.js +1 -0
  29. package/.output/public/_nuxt/CnSrlJ1t.js +1 -0
  30. package/.output/public/_nuxt/CpdUDRp-.js +1 -0
  31. package/.output/public/_nuxt/CucSXtnI.js +16 -0
  32. package/.output/public/_nuxt/{CNBtkm4J.js → D0GxoeXH.js} +2 -2
  33. package/.output/public/_nuxt/D2AD0cA7.js +1 -0
  34. package/.output/public/_nuxt/D2QRMlri.js +1 -0
  35. package/.output/public/_nuxt/D5OlmvkM.js +1 -0
  36. package/.output/public/_nuxt/D6E-gKom.js +12 -0
  37. package/.output/public/_nuxt/DBdpdpK3.js +1 -0
  38. package/.output/public/_nuxt/DEnsbvQE.js +1 -0
  39. package/.output/public/_nuxt/DFH86FKQ.js +1 -0
  40. package/.output/public/_nuxt/DKZb-7H-.js +2 -0
  41. package/.output/public/_nuxt/DMvBTgJm.js +1 -0
  42. package/.output/public/_nuxt/DOgaXG8Y.js +1 -0
  43. package/.output/public/_nuxt/{ClbN2oa7.js → DRIP7i-G.js} +2 -2
  44. package/.output/public/_nuxt/DUARq8BM.js +1 -0
  45. package/.output/public/_nuxt/DVV-1Xgo.js +1 -0
  46. package/.output/public/_nuxt/DW9frVpz.js +1 -0
  47. package/.output/public/_nuxt/DWDpKQJN.js +1 -0
  48. package/.output/public/_nuxt/Dbgx9Kfk.js +1 -0
  49. package/.output/public/_nuxt/DbomWJMC.js +1 -0
  50. package/.output/public/_nuxt/Df5-uBpS.js +1 -0
  51. package/.output/public/_nuxt/DgxepGqe.js +1 -0
  52. package/.output/public/_nuxt/DjN4qVUp.js +1 -0
  53. package/.output/public/_nuxt/DmQuAe0a.js +1 -0
  54. package/.output/public/_nuxt/DnkIt1sE.js +1 -0
  55. package/.output/public/_nuxt/DpdC86Cg.js +1 -0
  56. package/.output/public/_nuxt/DrMaf3PA.js +5 -0
  57. package/.output/public/_nuxt/Dsv_PvmI.js +1 -0
  58. package/.output/public/_nuxt/DuztTtWK.js +1 -0
  59. package/.output/public/_nuxt/DxhSsuVH.js +1 -0
  60. package/.output/public/_nuxt/G46Y9AKK.js +1 -0
  61. package/.output/public/_nuxt/SecretValueField.SMGlmIfE.css +1 -0
  62. package/.output/public/_nuxt/TqsILp0j.js +2 -0
  63. package/.output/public/_nuxt/XVH4GPVs.js +1 -0
  64. package/.output/public/_nuxt/_pageId_.Be9XJqQA.css +1 -0
  65. package/.output/public/_nuxt/apt5CXWJ.js +2 -0
  66. package/.output/public/_nuxt/builds/latest.json +1 -1
  67. package/.output/public/_nuxt/builds/meta/4aa61a2b-8c04-489d-bc5e-b3c10756c7d5.json +1 -0
  68. package/.output/public/_nuxt/{entry.YsT17dxl.css → entry.B__IA1SB.css} +1 -1
  69. package/.output/public/_nuxt/error-404.Ctkhr_Pq.css +1 -0
  70. package/.output/public/_nuxt/error-500.BsWzRwYo.css +1 -0
  71. package/.output/public/_nuxt/{graph-resolver-ClVztv7P.js → graph-resolver-r_0JlXH_.js} +100 -100
  72. package/.output/public/_nuxt/gt3opOQe.js +1 -0
  73. package/.output/public/_nuxt/index.CdaM9XKS.css +1 -0
  74. package/.output/public/_nuxt/j6gS8Wqd.js +1 -0
  75. package/.output/public/_nuxt/jhVMpA5V.js +1 -0
  76. package/.output/public/_nuxt/koatKMQr.js +26 -0
  77. package/.output/public/_nuxt/oZs8U75K.js +1 -0
  78. package/.output/public/_nuxt/operations.3bVU1gWl.css +1 -0
  79. package/.output/public/_nuxt/rwNeRj8A.js +1 -0
  80. package/.output/public/_nuxt/settings.DE1a_g5Y.css +1 -0
  81. package/.output/public/_nuxt/{vuetify.C_sYHwU6.css → vuetify.uXRHzFBB.css} +1 -1
  82. package/.output/public/_nuxt/whD7B6hi.js +1 -0
  83. package/.output/public/_nuxt/yJRFOr9c.js +1 -0
  84. package/.output/public/_nuxt/yb5mHxB5.js +1 -0
  85. package/.output/server/index.mjs +3686 -2213
  86. package/.output/server/index.mjs.map +1 -1
  87. package/.output/server/node_modules/@babel/parser/lib/index.js +7 -2
  88. package/.output/server/node_modules/@babel/parser/package.json +2 -2
  89. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +24 -25
  90. package/.output/server/node_modules/@vue/compiler-core/package.json +4 -4
  91. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
  92. package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
  93. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1 -1
  94. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  95. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +4 -4
  96. package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
  97. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +51 -47
  98. package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
  99. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +18 -16
  100. package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
  101. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +26 -4
  102. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  103. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +14 -3
  104. package/.output/server/node_modules/@vue/shared/package.json +1 -1
  105. package/.output/server/node_modules/copy-anything/dist/index.js +36 -0
  106. package/.output/server/node_modules/copy-anything/package.json +108 -0
  107. package/.output/server/node_modules/is-what/dist/index.js +171 -0
  108. package/.output/server/node_modules/is-what/package.json +128 -0
  109. package/.output/server/node_modules/superjson/dist/accessDeep.js +123 -0
  110. package/.output/server/node_modules/superjson/dist/class-registry.js +22 -0
  111. package/.output/server/node_modules/superjson/dist/custom-transformer-registry.js +16 -0
  112. package/.output/server/node_modules/superjson/dist/double-indexed-kv.js +21 -0
  113. package/.output/server/node_modules/superjson/dist/index.js +89 -0
  114. package/.output/server/node_modules/superjson/dist/is.js +35 -0
  115. package/.output/server/node_modules/superjson/dist/pathstringifier.js +29 -0
  116. package/.output/server/node_modules/superjson/dist/plainer.js +173 -0
  117. package/.output/server/node_modules/superjson/dist/registry.js +26 -0
  118. package/.output/server/node_modules/superjson/dist/transformer.js +197 -0
  119. package/.output/server/node_modules/superjson/dist/util.js +45 -0
  120. package/.output/server/node_modules/superjson/package.json +79 -0
  121. package/.output/server/node_modules/unhead/dist/plugins.mjs +14 -8
  122. package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
  123. package/.output/server/node_modules/unhead/dist/shared/{unhead.C13swrCa.mjs → unhead.BYvz9V1x.mjs} +1 -6
  124. package/.output/server/node_modules/unhead/dist/shared/{unhead.Di5OD67x.mjs → unhead.BpRRHAhY.mjs} +4 -0
  125. package/.output/server/node_modules/unhead/dist/shared/{unhead.CAk5S5m6.mjs → unhead.DH45uomy.mjs} +1 -1
  126. package/.output/server/node_modules/unhead/dist/shared/{unhead.DeCxexjU.mjs → unhead.Djo8ep_Y.mjs} +1 -1
  127. package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
  128. package/.output/server/node_modules/unhead/package.json +1 -1
  129. package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
  130. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
  131. package/.output/server/node_modules/vue/package.json +6 -6
  132. package/.output/server/node_modules/vue-bundle-renderer/package.json +13 -13
  133. package/.output/server/package.json +16 -13
  134. package/package.json +16 -12
  135. package/.output/public/_nuxt/84XNjSIe.js +0 -1
  136. package/.output/public/_nuxt/BKmAPqal.js +0 -1
  137. package/.output/public/_nuxt/BLOpwnqT.js +0 -1
  138. package/.output/public/_nuxt/BTEhxafZ.js +0 -1
  139. package/.output/public/_nuxt/B_wu9Dqv.js +0 -1
  140. package/.output/public/_nuxt/BebE75YV.js +0 -1
  141. package/.output/public/_nuxt/Bm_zuxCd.js +0 -1
  142. package/.output/public/_nuxt/BvYfgXkl.js +0 -1
  143. package/.output/public/_nuxt/C-_oQ9hf.js +0 -1
  144. package/.output/public/_nuxt/COWjEZnb.js +0 -1
  145. package/.output/public/_nuxt/CYRjgJw9.js +0 -26
  146. package/.output/public/_nuxt/Cj-b45ZR.js +0 -1
  147. package/.output/public/_nuxt/CtMxL075.js +0 -21
  148. package/.output/public/_nuxt/D-pF80u_.js +0 -1
  149. package/.output/public/_nuxt/D0Gq3ULd.js +0 -1
  150. package/.output/public/_nuxt/DCWrMWBD.js +0 -1
  151. package/.output/public/_nuxt/DEsY2yuF.js +0 -1
  152. package/.output/public/_nuxt/DPvdOr2J.js +0 -1
  153. package/.output/public/_nuxt/DbtIzDGy.js +0 -1
  154. package/.output/public/_nuxt/DwheRqRn.js +0 -1
  155. package/.output/public/_nuxt/SVGiTNnK.js +0 -1
  156. package/.output/public/_nuxt/SettingsDataTable.BLJqwlEK.css +0 -1
  157. package/.output/public/_nuxt/UQxqNY8s.js +0 -273
  158. package/.output/public/_nuxt/about.fWlW3EhQ.css +0 -1
  159. package/.output/public/_nuxt/builds/meta/b0e10f5e-bdc5-4007-9281-161aa323adf1.json +0 -1
  160. package/.output/public/_nuxt/error-404.CH3riSrg.css +0 -1
  161. package/.output/public/_nuxt/error-500.C8Qk6cR7.css +0 -1
  162. package/.output/public/_nuxt/index.smtD6lYF.css +0 -1
  163. package/.output/public/_nuxt/instances.CGwVkdDM.css +0 -1
  164. package/.output/public/_nuxt/oVh4WQ21.js +0 -1
  165. package/.output/public/_nuxt/operations.BfCOaoAx.css +0 -1
  166. package/.output/public/_nuxt/operations.DvUkbQbt.css +0 -1
  167. package/.output/public/_nuxt/p5ZwBirz.js +0 -1
  168. package/.output/public/_nuxt/secrets._PitGGJK.css +0 -1
  169. package/.output/public/_nuxt/settings.BCRf8MgD.css +0 -1
  170. package/.output/public/_nuxt/terminals.B07MGsh3.css +0 -1
@@ -0,0 +1,197 @@
1
+ import { isBigint, isDate, isInfinite, isMap, isNaNValue, isRegExp, isSet, isUndefined, isSymbol, isArray, isError, isTypedArray, isURL, } from './is.js';
2
+ import { findArr } from './util.js';
3
+ function simpleTransformation(isApplicable, annotation, transform, untransform) {
4
+ return {
5
+ isApplicable,
6
+ annotation,
7
+ transform,
8
+ untransform,
9
+ };
10
+ }
11
+ const simpleRules = [
12
+ simpleTransformation(isUndefined, 'undefined', () => null, () => undefined),
13
+ simpleTransformation(isBigint, 'bigint', v => v.toString(), v => {
14
+ if (typeof BigInt !== 'undefined') {
15
+ return BigInt(v);
16
+ }
17
+ console.error('Please add a BigInt polyfill.');
18
+ return v;
19
+ }),
20
+ simpleTransformation(isDate, 'Date', v => v.toISOString(), v => new Date(v)),
21
+ simpleTransformation(isError, 'Error', (v, superJson) => {
22
+ const baseError = {
23
+ name: v.name,
24
+ message: v.message,
25
+ };
26
+ superJson.allowedErrorProps.forEach(prop => {
27
+ baseError[prop] = v[prop];
28
+ });
29
+ return baseError;
30
+ }, (v, superJson) => {
31
+ const e = new Error(v.message);
32
+ e.name = v.name;
33
+ e.stack = v.stack;
34
+ superJson.allowedErrorProps.forEach(prop => {
35
+ e[prop] = v[prop];
36
+ });
37
+ return e;
38
+ }),
39
+ simpleTransformation(isRegExp, 'regexp', v => '' + v, regex => {
40
+ const body = regex.slice(1, regex.lastIndexOf('/'));
41
+ const flags = regex.slice(regex.lastIndexOf('/') + 1);
42
+ return new RegExp(body, flags);
43
+ }),
44
+ simpleTransformation(isSet, 'set',
45
+ // (sets only exist in es6+)
46
+ // eslint-disable-next-line es5/no-es6-methods
47
+ v => [...v.values()], v => new Set(v)),
48
+ simpleTransformation(isMap, 'map', v => [...v.entries()], v => new Map(v)),
49
+ simpleTransformation((v) => isNaNValue(v) || isInfinite(v), 'number', v => {
50
+ if (isNaNValue(v)) {
51
+ return 'NaN';
52
+ }
53
+ if (v > 0) {
54
+ return 'Infinity';
55
+ }
56
+ else {
57
+ return '-Infinity';
58
+ }
59
+ }, Number),
60
+ simpleTransformation((v) => v === 0 && 1 / v === -Infinity, 'number', () => {
61
+ return '-0';
62
+ }, Number),
63
+ simpleTransformation(isURL, 'URL', v => v.toString(), v => new URL(v)),
64
+ ];
65
+ function compositeTransformation(isApplicable, annotation, transform, untransform) {
66
+ return {
67
+ isApplicable,
68
+ annotation,
69
+ transform,
70
+ untransform,
71
+ };
72
+ }
73
+ const symbolRule = compositeTransformation((s, superJson) => {
74
+ if (isSymbol(s)) {
75
+ const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
76
+ return isRegistered;
77
+ }
78
+ return false;
79
+ }, (s, superJson) => {
80
+ const identifier = superJson.symbolRegistry.getIdentifier(s);
81
+ return ['symbol', identifier];
82
+ }, v => v.description, (_, a, superJson) => {
83
+ const value = superJson.symbolRegistry.getValue(a[1]);
84
+ if (!value) {
85
+ throw new Error('Trying to deserialize unknown symbol');
86
+ }
87
+ return value;
88
+ });
89
+ const constructorToName = [
90
+ Int8Array,
91
+ Uint8Array,
92
+ Int16Array,
93
+ Uint16Array,
94
+ Int32Array,
95
+ Uint32Array,
96
+ Float32Array,
97
+ Float64Array,
98
+ Uint8ClampedArray,
99
+ ].reduce((obj, ctor) => {
100
+ obj[ctor.name] = ctor;
101
+ return obj;
102
+ }, {});
103
+ const typedArrayRule = compositeTransformation(isTypedArray, v => ['typed-array', v.constructor.name], v => [...v], (v, a) => {
104
+ const ctor = constructorToName[a[1]];
105
+ if (!ctor) {
106
+ throw new Error('Trying to deserialize unknown typed array');
107
+ }
108
+ return new ctor(v);
109
+ });
110
+ export function isInstanceOfRegisteredClass(potentialClass, superJson) {
111
+ if (potentialClass?.constructor) {
112
+ const isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
113
+ return isRegistered;
114
+ }
115
+ return false;
116
+ }
117
+ const classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
118
+ const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
119
+ return ['class', identifier];
120
+ }, (clazz, superJson) => {
121
+ const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
122
+ if (!allowedProps) {
123
+ return { ...clazz };
124
+ }
125
+ const result = {};
126
+ allowedProps.forEach(prop => {
127
+ result[prop] = clazz[prop];
128
+ });
129
+ return result;
130
+ }, (v, a, superJson) => {
131
+ const clazz = superJson.classRegistry.getValue(a[1]);
132
+ if (!clazz) {
133
+ throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
134
+ }
135
+ return Object.assign(Object.create(clazz.prototype), v);
136
+ });
137
+ const customRule = compositeTransformation((value, superJson) => {
138
+ return !!superJson.customTransformerRegistry.findApplicable(value);
139
+ }, (value, superJson) => {
140
+ const transformer = superJson.customTransformerRegistry.findApplicable(value);
141
+ return ['custom', transformer.name];
142
+ }, (value, superJson) => {
143
+ const transformer = superJson.customTransformerRegistry.findApplicable(value);
144
+ return transformer.serialize(value);
145
+ }, (v, a, superJson) => {
146
+ const transformer = superJson.customTransformerRegistry.findByName(a[1]);
147
+ if (!transformer) {
148
+ throw new Error('Trying to deserialize unknown custom value');
149
+ }
150
+ return transformer.deserialize(v);
151
+ });
152
+ const compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
153
+ export const transformValue = (value, superJson) => {
154
+ const applicableCompositeRule = findArr(compositeRules, rule => rule.isApplicable(value, superJson));
155
+ if (applicableCompositeRule) {
156
+ return {
157
+ value: applicableCompositeRule.transform(value, superJson),
158
+ type: applicableCompositeRule.annotation(value, superJson),
159
+ };
160
+ }
161
+ const applicableSimpleRule = findArr(simpleRules, rule => rule.isApplicable(value, superJson));
162
+ if (applicableSimpleRule) {
163
+ return {
164
+ value: applicableSimpleRule.transform(value, superJson),
165
+ type: applicableSimpleRule.annotation,
166
+ };
167
+ }
168
+ return undefined;
169
+ };
170
+ const simpleRulesByAnnotation = {};
171
+ simpleRules.forEach(rule => {
172
+ simpleRulesByAnnotation[rule.annotation] = rule;
173
+ });
174
+ export const untransformValue = (json, type, superJson) => {
175
+ if (isArray(type)) {
176
+ switch (type[0]) {
177
+ case 'symbol':
178
+ return symbolRule.untransform(json, type, superJson);
179
+ case 'class':
180
+ return classRule.untransform(json, type, superJson);
181
+ case 'custom':
182
+ return customRule.untransform(json, type, superJson);
183
+ case 'typed-array':
184
+ return typedArrayRule.untransform(json, type, superJson);
185
+ default:
186
+ throw new Error('Unknown transformation: ' + type);
187
+ }
188
+ }
189
+ else {
190
+ const transformation = simpleRulesByAnnotation[type];
191
+ if (!transformation) {
192
+ throw new Error('Unknown transformation: ' + type);
193
+ }
194
+ return transformation.untransform(json, superJson);
195
+ }
196
+ };
197
+ //# sourceMappingURL=transformer.js.map
@@ -0,0 +1,45 @@
1
+ function valuesOfObj(record) {
2
+ if ('values' in Object) {
3
+ // eslint-disable-next-line es5/no-es6-methods
4
+ return Object.values(record);
5
+ }
6
+ const values = [];
7
+ // eslint-disable-next-line no-restricted-syntax
8
+ for (const key in record) {
9
+ if (record.hasOwnProperty(key)) {
10
+ values.push(record[key]);
11
+ }
12
+ }
13
+ return values;
14
+ }
15
+ export function find(record, predicate) {
16
+ const values = valuesOfObj(record);
17
+ if ('find' in values) {
18
+ // eslint-disable-next-line es5/no-es6-methods
19
+ return values.find(predicate);
20
+ }
21
+ const valuesNotNever = values;
22
+ for (let i = 0; i < valuesNotNever.length; i++) {
23
+ const value = valuesNotNever[i];
24
+ if (predicate(value)) {
25
+ return value;
26
+ }
27
+ }
28
+ return undefined;
29
+ }
30
+ export function forEach(record, run) {
31
+ Object.entries(record).forEach(([key, value]) => run(value, key));
32
+ }
33
+ export function includes(arr, value) {
34
+ return arr.indexOf(value) !== -1;
35
+ }
36
+ export function findArr(record, predicate) {
37
+ for (let i = 0; i < record.length; i++) {
38
+ const value = record[i];
39
+ if (predicate(value)) {
40
+ return value;
41
+ }
42
+ }
43
+ return undefined;
44
+ }
45
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1,79 @@
1
+ {
2
+ "version": "2.2.2",
3
+ "license": "MIT",
4
+ "type": "module",
5
+ "typings": "dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "exports": {
8
+ ".": "./dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "engines": {
14
+ "node": ">=16"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "test": "vitest run",
19
+ "lint": "tsdx lint",
20
+ "prepack": "yarn build",
21
+ "prepare": "husky install",
22
+ "publish-please": "publish-please",
23
+ "prepublishOnly": "publish-please guard"
24
+ },
25
+ "importSort": {
26
+ ".ts": {
27
+ "style": "module"
28
+ }
29
+ },
30
+ "prettier": {
31
+ "printWidth": 80,
32
+ "semi": true,
33
+ "singleQuote": true,
34
+ "trailingComma": "es5"
35
+ },
36
+ "name": "superjson",
37
+ "author": {
38
+ "name": "Simon Knott",
39
+ "email": "info@simonknott.de",
40
+ "url": "https://simonknott.de"
41
+ },
42
+ "contributors": [
43
+ {
44
+ "name": "Dylan Brookes",
45
+ "email": "dylan@brookes.net",
46
+ "url": "https://github.com/merelinguist"
47
+ },
48
+ {
49
+ "name": "Brandon Bayer",
50
+ "email": "b@bayer.w",
51
+ "url": "https://twitter.com/flybayer"
52
+ }
53
+ ],
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/blitz-js/superjson"
57
+ },
58
+ "devDependencies": {
59
+ "@types/debug": "^4.1.5",
60
+ "@types/mongodb": "^3.6.12",
61
+ "@types/node": "^18.7.18",
62
+ "benchmark": "^2.1.4",
63
+ "decimal.js": "^10.3.1",
64
+ "eslint-plugin-es5": "^1.5.0",
65
+ "husky": "^6.0.0",
66
+ "mongodb": "^3.6.6",
67
+ "publish-please": "^5.5.2",
68
+ "tsdx": "^0.14.1",
69
+ "typescript": "^4.2.4",
70
+ "vitest": "^0.34.6"
71
+ },
72
+ "dependencies": {
73
+ "copy-anything": "^3.0.2"
74
+ },
75
+ "resolutions": {
76
+ "**/@typescript-eslint/eslint-plugin": "^4.11.1",
77
+ "**/@typescript-eslint/parser": "^4.11.1"
78
+ }
79
+ }
@@ -1,11 +1,21 @@
1
- export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.DeCxexjU.mjs';
1
+ export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.Djo8ep_Y.mjs';
2
2
  import { d as defineHeadPlugin } from './shared/unhead.CApf5sj3.mjs';
3
3
  export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.CApf5sj3.mjs';
4
4
  import './shared/unhead.DZbvapt-.mjs';
5
- import './shared/unhead.C13swrCa.mjs';
5
+ import './shared/unhead.BYvz9V1x.mjs';
6
6
  import './shared/unhead.DQc16pHI.mjs';
7
7
  import './shared/unhead.yem5I2v_.mjs';
8
8
 
9
+ const META_TRANSFORMABLE_URL = [
10
+ "og:url",
11
+ "og:image",
12
+ "og:image:secure_url",
13
+ "twitter:image",
14
+ "twitter:image:src",
15
+ "og:video",
16
+ "og:video:secure_url",
17
+ "og:see_also"
18
+ ];
9
19
  function CanonicalPlugin(options) {
10
20
  return (head) => {
11
21
  let host = options.canonicalHost || (!head.ssr ? window.location.origin : "");
@@ -30,12 +40,8 @@ function CanonicalPlugin(options) {
30
40
  hooks: {
31
41
  "tags:resolve": (ctx) => {
32
42
  for (const tag of ctx.tags) {
33
- if (tag.tag === "meta") {
34
- if (tag.props.property?.startsWith("og:image") || tag.props.name?.startsWith("twitter:image")) {
35
- tag.props.content = resolvePath(tag.props.content);
36
- } else if (tag.props?.property === "og:url") {
37
- tag.props.content = resolvePath(tag.props.content);
38
- }
43
+ if (tag.tag === "meta" && (META_TRANSFORMABLE_URL.includes(tag.props?.property) || META_TRANSFORMABLE_URL.includes(tag.props?.name))) {
44
+ tag.props.content = resolvePath(tag.props.content);
39
45
  } else if (tag.tag === "link" && tag.props.rel === "canonical") {
40
46
  tag.props.href = resolvePath(tag.props.href);
41
47
  }
@@ -1,7 +1,7 @@
1
- import { a as createUnhead } from './shared/unhead.CAk5S5m6.mjs';
1
+ import { a as createUnhead } from './shared/unhead.DH45uomy.mjs';
2
2
  import { T as TagsWithInnerContent, S as SelfClosingTags$1 } from './shared/unhead.yem5I2v_.mjs';
3
3
  import 'hookable';
4
- import './shared/unhead.Di5OD67x.mjs';
4
+ import './shared/unhead.BpRRHAhY.mjs';
5
5
  import './shared/unhead.DZbvapt-.mjs';
6
6
 
7
7
  // @__NO_SIDE_EFFECTS__
@@ -67,7 +67,7 @@ function createHead(options = {}) {
67
67
  return unhead;
68
68
  }
69
69
 
70
- const Attrs = /(\w+)(?:=["']([^"']*)["'])?/g;
70
+ const Attrs = /(\w+-?\w+)(?:=["']([^"']*)["'])?/g;
71
71
  const HtmlTag = /<html[^>]*>/;
72
72
  const BodyTag = /<body[^>]*>/;
73
73
  const HeadContent = /<head[^>]*>(.*?)<\/head>/s;
@@ -1,5 +1,4 @@
1
1
  const SepSub = "%separator";
2
- const SepSubRE = new RegExp(`${SepSub}(?:\\s*${SepSub})*`, "g");
3
2
  function sub(p, token, isJson = false) {
4
3
  let val;
5
4
  if (token === "s" || token === "pageTitle") {
@@ -36,11 +35,7 @@ function processTemplateParams(s, p, sep, isJson = false) {
36
35
  return re !== void 0 ? re : token;
37
36
  }).trim();
38
37
  if (hasSepSub) {
39
- if (s.endsWith(SepSub))
40
- s = s.slice(0, -SepSub.length);
41
- if (s.startsWith(SepSub))
42
- s = s.slice(SepSub.length);
43
- s = s.replace(SepSubRE, sep || "").trim();
38
+ s = s.split(SepSub).map((part) => part.trim()).filter((part) => part !== "").join(sep ? ` ${sep} ` : " ");
44
39
  }
45
40
  return s;
46
41
  }
@@ -112,6 +112,10 @@ function normalizeProps(tag, input) {
112
112
  if (!input) {
113
113
  return tag;
114
114
  }
115
+ if (tag.tag === "templateParams") {
116
+ tag.props = input;
117
+ return tag;
118
+ }
115
119
  Object.entries(input).forEach(([key, value]) => {
116
120
  if (value === null) {
117
121
  tag.props[key] = null;
@@ -1,5 +1,5 @@
1
1
  import { createHooks } from 'hookable';
2
- import { n as normalizeEntryToTags, d as dedupeKey, i as isMetaArrayDupeKey } from './unhead.Di5OD67x.mjs';
2
+ import { n as normalizeEntryToTags, d as dedupeKey, i as isMetaArrayDupeKey } from './unhead.BpRRHAhY.mjs';
3
3
  import { t as tagWeight, s as sortTags } from './unhead.DZbvapt-.mjs';
4
4
  import { c as UsesMergeStrategy, V as ValidHeadTags } from './unhead.yem5I2v_.mjs';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { d as defineHeadPlugin } from './unhead.CApf5sj3.mjs';
2
2
  import { s as sortTags } from './unhead.DZbvapt-.mjs';
3
- import { p as processTemplateParams } from './unhead.C13swrCa.mjs';
3
+ import { p as processTemplateParams } from './unhead.BYvz9V1x.mjs';
4
4
 
5
5
  const formatKey = (k) => !k.includes(":key") ? k.split(":").join(":key:") : k;
6
6
  const AliasSortingPlugin = defineHeadPlugin({
@@ -1,5 +1,5 @@
1
1
  export { D as DupeableTags, H as HasElementTags, M as MetaTagsArrayable, b as ScriptNetworkEvents, S as SelfClosingTags, a as TagConfigKeys, T as TagsWithInnerContent, U as UniqueTags, c as UsesMergeStrategy, V as ValidHeadTags } from './shared/unhead.yem5I2v_.mjs';
2
- export { d as dedupeKey, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, a as normalizeProps, w as walkResolver } from './shared/unhead.Di5OD67x.mjs';
2
+ export { d as dedupeKey, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, a as normalizeProps, w as walkResolver } from './shared/unhead.BpRRHAhY.mjs';
3
3
  export { r as resolveMetaKeyType, a as resolveMetaKeyValue, b as resolvePackedMetaObjectValue, u as unpackMeta } from './shared/unhead.DQc16pHI.mjs';
4
4
  export { s as sortTags, t as tagWeight } from './shared/unhead.DZbvapt-.mjs';
5
- export { p as processTemplateParams } from './shared/unhead.C13swrCa.mjs';
5
+ export { p as processTemplateParams } from './shared/unhead.BYvz9V1x.mjs';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "2.0.12",
4
+ "version": "2.0.14",
5
5
  "description": "Full-stack <head> manager built for any framework.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.5.17
2
+ * vue v3.5.20
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.5.17
2
+ * vue v3.5.20
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue",
3
- "version": "3.5.17",
3
+ "version": "3.5.20",
4
4
  "description": "The progressive JavaScript framework for building modern web UI.",
5
5
  "main": "index.js",
6
6
  "module": "dist/vue.runtime.esm-bundler.js",
@@ -95,11 +95,11 @@
95
95
  },
96
96
  "homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
97
97
  "dependencies": {
98
- "@vue/shared": "3.5.17",
99
- "@vue/runtime-dom": "3.5.17",
100
- "@vue/compiler-dom": "3.5.17",
101
- "@vue/compiler-sfc": "3.5.17",
102
- "@vue/server-renderer": "3.5.17"
98
+ "@vue/shared": "3.5.20",
99
+ "@vue/compiler-dom": "3.5.20",
100
+ "@vue/runtime-dom": "3.5.20",
101
+ "@vue/compiler-sfc": "3.5.20",
102
+ "@vue/server-renderer": "3.5.20"
103
103
  },
104
104
  "peerDependencies": {
105
105
  "typescript": "*"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-bundle-renderer",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Bundle Renderer for Vue 3.0",
5
5
  "repository": "nuxt-contrib/vue-bundle-renderer",
6
6
  "license": "MIT",
@@ -32,19 +32,19 @@
32
32
  "test": "pnpm lint && pnpm vitest run --coverage && tsc --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "ufo": "^1.5.4"
35
+ "ufo": "^1.6.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^20.16.6",
39
- "@vitest/coverage-v8": "^2.1.1",
40
- "changelogen": "^0.5.7",
41
- "eslint": "^9.11.1",
42
- "typescript": "^5.6.2",
43
- "unbuild": "^2.0.0",
44
- "vite": "^5.4.7",
45
- "vitest": "2.1.1",
46
- "vue": "3.5.8",
47
- "@nuxt/eslint-config": "^0.5.7"
38
+ "@types/node": "^22.16.5",
39
+ "@vitest/coverage-v8": "^3.2.4",
40
+ "changelogen": "^0.6.2",
41
+ "eslint": "^9.32.0",
42
+ "typescript": "^5.8.3",
43
+ "unbuild": "^3.6.0",
44
+ "vite": "^7.0.6",
45
+ "vitest": "3.2.4",
46
+ "vue": "3.5.18",
47
+ "@nuxt/eslint-config": "^1.7.1"
48
48
  },
49
- "packageManager": "pnpm@9.11.0"
49
+ "packageManager": "pnpm@10.13.1"
50
50
  }
@@ -1,28 +1,31 @@
1
1
  {
2
2
  "name": "@highstate/designer-prod",
3
- "version": "0.9.16",
3
+ "version": "0.9.19",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
7
- "@babel/parser": "7.28.0",
7
+ "@babel/parser": "7.28.3",
8
8
  "@trpc/server": "11.4.3",
9
- "@vue/compiler-core": "3.5.17",
10
- "@vue/compiler-dom": "3.5.17",
11
- "@vue/compiler-ssr": "3.5.17",
12
- "@vue/reactivity": "3.5.17",
13
- "@vue/runtime-core": "3.5.17",
14
- "@vue/runtime-dom": "3.5.17",
15
- "@vue/server-renderer": "3.5.17",
16
- "@vue/shared": "3.5.17",
9
+ "@vue/compiler-core": "3.5.20",
10
+ "@vue/compiler-dom": "3.5.20",
11
+ "@vue/compiler-ssr": "3.5.20",
12
+ "@vue/reactivity": "3.5.20",
13
+ "@vue/runtime-core": "3.5.20",
14
+ "@vue/runtime-dom": "3.5.20",
15
+ "@vue/server-renderer": "3.5.20",
16
+ "@vue/shared": "3.5.20",
17
+ "copy-anything": "3.0.5",
17
18
  "devalue": "5.1.1",
18
19
  "entities": "4.5.0",
19
20
  "estree-walker": "2.0.2",
20
21
  "hookable": "5.5.3",
22
+ "is-what": "4.1.16",
21
23
  "source-map-js": "1.2.1",
24
+ "superjson": "2.2.2",
22
25
  "ufo": "1.6.1",
23
- "unhead": "2.0.12",
24
- "vue": "3.5.17",
25
- "vue-bundle-renderer": "2.1.1",
26
+ "unhead": "2.0.14",
27
+ "vue": "3.5.20",
28
+ "vue-bundle-renderer": "2.1.2",
26
29
  "ws": "8.18.3",
27
30
  "zod": "4.0.5"
28
31
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@highstate/designer",
3
- "version": "0.9.18",
3
+ "version": "0.9.20",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
- "dev": "FORCE_COLOR=true nuxt dev --host | pino-pretty",
7
+ "dev": "FORCE_COLOR=true NODE_OPTIONS=--trace-warnings nuxt dev --host | pino-pretty",
8
8
  "generate": "nuxt generate",
9
9
  "preview": "nuxt preview",
10
10
  "prepare": "nuxt prepare"
@@ -44,6 +44,7 @@
44
44
  "@xterm/addon-web-links": "^0.11.0",
45
45
  "@xterm/addon-webgl": "^0.18.0",
46
46
  "@xterm/xterm": "^5.5.0",
47
+ "age-encryption": "^0.2.3",
47
48
  "async-mutex": "^0.5.0",
48
49
  "codemirror": "^6.0.1",
49
50
  "dockview-vue": "^4.2.3",
@@ -56,32 +57,35 @@
56
57
  "marked": "^15.0.7",
57
58
  "marked-highlight": "^2.2.1",
58
59
  "monaco-editor": "^0.52.2",
59
- "nanoid": "^5.0.9",
60
- "nuxt": "^4.0.1",
60
+ "monaco-yaml": "^5.3.1",
61
+ "nuxt": "^4.0.3",
61
62
  "pinia": "^2.2.7",
62
63
  "pino": "^9.6.0",
63
64
  "pino-pretty": "^13.0.0",
64
65
  "qrcode": "^1.5.4",
65
66
  "remeda": "^2.21.0",
66
67
  "shiki": "^3.3.0",
68
+ "superjson": "^2.2.2",
67
69
  "trpc-nuxt": "^1.0.4",
68
70
  "typescript": "^5.7.2",
69
71
  "vite-plugin-node-polyfills": "^0.24.0",
72
+ "vitest": "^3.2.4",
70
73
  "vue": "^3.5.13",
71
74
  "vue-codemirror6": "^1.3.8",
72
75
  "vue-qrcode": "^2.2.2",
73
76
  "vue-router": "latest",
74
- "vuetify-nuxt-module": "^0.18.3",
77
+ "vuetify-nuxt-module": "^0.18.7",
75
78
  "ws": "^8.18.0",
76
79
  "yaml": "^2.7.0",
77
- "zod": "^4.0.5"
80
+ "zod": "^4.0.5",
81
+ "zxcvbn-typescript": "^5.0.1"
78
82
  },
79
83
  "dependencies": {
80
- "@highstate/backend": "^0.9.18",
81
- "@highstate/backend-api": "^0.9.18",
82
- "@highstate/contract": "^0.9.18",
83
- "age-encryption": "^0.2.3",
84
- "monaco-yaml": "^5.3.1"
84
+ "@highstate/backend": "^0.9.20",
85
+ "@highstate/backend-api": "^0.9.20",
86
+ "@highstate/contract": "^0.9.20",
87
+ "@paralleldrive/cuid2": "^2.2.2",
88
+ "@prisma/internals": "^6.14.0"
85
89
  },
86
- "gitHead": "9ebcd7da56b00b8ca08bf52cc8438f527338cd64"
90
+ "gitHead": "4bf9183450c2c6f51d6a99d77efc379ff5c7b7ef"
87
91
  }
@@ -1 +0,0 @@
1
- import{b as m,_ as N}from"./B_wu9Dqv.js";import{l as P,m as U,_ as A}from"./UQxqNY8s.js";import{F as D,aL as g,a as $,j as v,L as E,W as H,$ as a,X as u,a1 as r,G as i,b as _,aM as C,a2 as S,a3 as y,a0 as O}from"./CYRjgJw9.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";const Q={class:"instances-page"},R={class:"instances-table"},W={class:"d-flex align-center"},q={class:"d-flex flex-column"},F={class:"text-body-1 font-weight-medium"},G={class:"text-caption text-medium-emphasis"},M=D({__name:"instances",async setup(X){let n,o;const{projectStore:c,instancesStore:x,libraryStore:p}=P();c.initializing?([n,o]=g(()=>U(()=>c.initialized).toBe(!0)),await n,o(),c.addLibraryRoot()):([n,o]=g(()=>c.initialize1()),await n,o(),[n,o]=g(()=>c.initialize2()),await n,o());const k=$({search:void 0,count:10,sort:"asc"}),{itemsPerPage:d,sortBy:f,searchQuery:l}=useSettingsTable(k),z=[m.name,m.id,m.created,{title:"Type",key:"type",sortable:!1},{title:"Status",key:"status",sortable:!1},m.actions],T=v(()=>Array.from(x.instances.values()).map(e=>({...e,meta:{displayName:e.name,description:`Instance of ${e.type}`,createdAt:new Date().getTime(),updatedAt:new Date().getTime(),id:e.id}}))),b=v(()=>{let e=T.value;if(l.value){const t=l.value.toLowerCase();e=e.filter(s=>s.name.toLowerCase().includes(t)||s.id.toLowerCase().includes(t)||s.type.toLowerCase().includes(t))}return e}),V=v(()=>{const t=d.value;return b.value.slice(0,t)}),L=e=>p.library.components[e.type]?.meta.title||e.type||"Unknown",h=e=>{const t=x.getValidationOutput(e.id);return t?.status==="error"?{text:"Error",color:"error"}:t?.status==="warning"?{text:"Warning",color:"warning"}:t?.status==="ok"?{text:"Valid",color:"success"}:{text:"Unknown",color:"grey"}},w=e=>p.library.components[e.type]?.meta.icon||"mdi-cube-outline",I=e=>p.library.components[e.type]?.meta.iconColor||"primary",j=e=>e.name||"Unnamed Instance",B=e=>p.library.components[e.type]?.meta.description||`Instance of ${e.type}`;return(e,t)=>(H(),E("div",Q,[t[4]||(t[4]=a("div",{class:"page-header mb-6"},[a("div",{class:"d-flex align-center justify-space-between"},[a("div",null,[a("h2",{class:"text-h5 font-weight-medium mb-1"},"Project Instances"),a("p",{class:"text-body-2 text-medium-emphasis ma-0"}," View and manage instances in your project. Instances are deployed components that make up your infrastructure. ")])])],-1)),a("div",R,[u(i(N),{"items-per-page":i(d),"onUpdate:itemsPerPage":t[0]||(t[0]=s=>_(d)?d.value=s:null),"sort-by":i(f),"onUpdate:sortBy":t[1]||(t[1]=s=>_(f)?f.value=s:null),search:i(l),"onUpdate:search":t[2]||(t[2]=s=>_(l)?l.value=s:null),headers:z,items:i(V),"items-length":i(b).length,loading:!1,"search-placeholder":"Search instances..."},{"item.meta.title":r(({item:s})=>[a("div",W,[u(O,{icon:w(s),color:I(s),class:"mr-4",size:"24"},null,8,["icon","color"]),a("div",q,[a("div",F,y(j(s)),1),a("div",G,y(B(s)),1)])])]),"item.type":r(({item:s})=>[u(C,{color:I(s),"prepend-icon":w(s),variant:"flat",size:"small",class:"text-capitalize"},{default:r(()=>[S(y(L(s)),1)]),_:2},1032,["color","prepend-icon"])]),"item.status":r(({item:s})=>[u(C,{color:h(s).color,variant:"flat",size:"small"},{default:r(()=>[S(y(h(s).text),1)]),_:2},1032,["color"])]),"item.actions":r(({})=>t[3]||(t[3]=[a("div",{class:"text-caption text-medium-emphasis"},"No actions",-1)])),_:2},1032,["items-per-page","sort-by","search","items","items-length"])])]))}}),te=A(M,[["__scopeId","data-v-cc27d2d3"]]);export{te as default};