@valbuild/shared 0.148.7 → 0.149.7

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 (70) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/client/dist/valbuild-shared-client.cjs.dev.js +2 -1
  3. package/client/dist/valbuild-shared-client.cjs.prod.js +2 -1
  4. package/client/dist/valbuild-shared-client.esm.js +2 -1
  5. package/dist/acquireTypes-50960f2c.esm.js +1801 -0
  6. package/dist/acquireTypes-de10005d.cjs.dev.js +1815 -0
  7. package/dist/acquireTypes-e9467a2a.cjs.prod.js +1815 -0
  8. package/dist/createForOfIteratorHelper-3db5d737.esm.js +121 -0
  9. package/dist/createForOfIteratorHelper-90e6a8b6.cjs.prod.js +129 -0
  10. package/dist/createForOfIteratorHelper-d86bb352.cjs.dev.js +129 -0
  11. package/dist/declarations/src/internal/ApiRoutes.d.ts +3 -3
  12. package/dist/declarations/src/internal/index.d.ts +1 -0
  13. package/dist/declarations/src/internal/selfCheck.d.ts +51 -0
  14. package/dist/declarations/src/publish/buildProposal.d.ts +106 -0
  15. package/dist/declarations/src/publish/builder.d.ts +22 -0
  16. package/dist/declarations/src/publish/callJson.d.ts +21 -0
  17. package/dist/declarations/src/publish/index.d.ts +23 -0
  18. package/dist/declarations/src/publish/jobClient.d.ts +96 -0
  19. package/dist/declarations/src/publish/loadedLayer.d.ts +50 -0
  20. package/dist/declarations/src/publish/proposalProject.d.ts +2 -0
  21. package/dist/declarations/src/publish/publishClient.d.ts +95 -0
  22. package/dist/declarations/src/publish/runStudioDeploy.d.ts +244 -0
  23. package/dist/declarations/src/publish/runStudioJob.d.ts +102 -0
  24. package/dist/declarations/src/publish/runStudioPublish.d.ts +80 -0
  25. package/dist/declarations/src/typecheck/acquireTypes.d.ts +109 -0
  26. package/dist/declarations/src/typecheck/adeptSources.d.ts +9 -0
  27. package/dist/declarations/src/typecheck/index.d.ts +20 -0
  28. package/dist/declarations/src/typecheck/linkedFileSystem.d.ts +53 -0
  29. package/dist/declarations/src/typecheck/lockedVersions.d.ts +14 -0
  30. package/dist/declarations/src/typecheck/pnpmLayout.d.ts +95 -0
  31. package/dist/declarations/src/typecheck/pnpmLockfile.d.ts +57 -0
  32. package/dist/declarations/src/typecheck/proposalTypecheck.d.ts +76 -0
  33. package/dist/declarations/src/typecheck/testing/index.d.ts +6 -0
  34. package/dist/declarations/src/typecheck/testing/nodeModulesSources.d.ts +5 -0
  35. package/dist/declarations/src/typecheck/typecheckProject.d.ts +89 -0
  36. package/dist/declarations/src/typecheck/typescriptCompiler.d.ts +52 -0
  37. package/dist/{getSitemapTree-40d76bf8.cjs.prod.js → getSitemapTree-0fa0569c.cjs.dev.js} +5 -131
  38. package/dist/{getSitemapTree-cd006a36.esm.js → getSitemapTree-5afbc3ac.esm.js} +2 -121
  39. package/dist/{getSitemapTree-a7f2cc6d.cjs.dev.js → getSitemapTree-667bcb3c.cjs.prod.js} +5 -131
  40. package/dist/proposalProject-28550146.cjs.prod.js +18 -0
  41. package/dist/proposalProject-a3d3ad76.esm.js +16 -0
  42. package/dist/proposalProject-cdc53711.cjs.dev.js +18 -0
  43. package/dist/protocol-1c13de0d.cjs.prod.js +433 -0
  44. package/dist/protocol-3b9ef786.esm.js +413 -0
  45. package/dist/protocol-d8a6efda.cjs.dev.js +433 -0
  46. package/dist/slicedToArray-62e428df.cjs.dev.js +309 -0
  47. package/dist/slicedToArray-6cd80315.esm.js +299 -0
  48. package/dist/slicedToArray-af50e684.cjs.prod.js +309 -0
  49. package/internal/dist/valbuild-shared-internal.cjs.dev.js +419 -888
  50. package/internal/dist/valbuild-shared-internal.cjs.prod.js +419 -888
  51. package/internal/dist/valbuild-shared-internal.esm.js +236 -707
  52. package/package.json +27 -4
  53. package/publish/dist/valbuild-shared-publish.cjs.d.ts +2 -0
  54. package/publish/dist/valbuild-shared-publish.cjs.dev.js +2466 -0
  55. package/publish/dist/valbuild-shared-publish.cjs.js +7 -0
  56. package/publish/dist/valbuild-shared-publish.cjs.prod.js +2466 -0
  57. package/publish/dist/valbuild-shared-publish.esm.js +2428 -0
  58. package/publish/package.json +4 -0
  59. package/typecheck/dist/valbuild-shared-typecheck.cjs.d.ts +2 -0
  60. package/typecheck/dist/valbuild-shared-typecheck.cjs.dev.js +1173 -0
  61. package/typecheck/dist/valbuild-shared-typecheck.cjs.js +7 -0
  62. package/typecheck/dist/valbuild-shared-typecheck.cjs.prod.js +1173 -0
  63. package/typecheck/dist/valbuild-shared-typecheck.esm.js +1152 -0
  64. package/typecheck/package.json +4 -0
  65. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.d.ts +2 -0
  66. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.dev.js +202 -0
  67. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.js +7 -0
  68. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.prod.js +202 -0
  69. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.esm.js +177 -0
  70. package/typecheck/testing/package.json +4 -0
@@ -1,21 +1,12 @@
1
1
  'use strict';
2
2
 
3
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-d86bb352.cjs.dev.js');
3
4
  var core = require('@valbuild/core');
4
5
 
5
6
  var VAL_CONFIG_SESSION_STORAGE_KEY = "val-config";
6
7
  var VAL_THEME_SESSION_STORAGE_KEY = "val-theme";
7
8
  var VAL_AI_SESSION_STORAGE_KEY = "val-ai-session";
8
9
 
9
- function _typeof(o) {
10
- "@babel/helpers - typeof";
11
-
12
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
13
- return typeof o;
14
- } : function (o) {
15
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
16
- }, _typeof(o);
17
- }
18
-
19
10
  /**
20
11
  * The protocol between the studio's canvas and the page inside it.
21
12
  *
@@ -81,7 +72,7 @@ var DEFAULT_CANVAS_SELECTION_SOFT = "rgba(7, 148, 85, 0.4)";
81
72
 
82
73
  /** Narrow an unknown `event.data` to a message from the page. */
83
74
  function isValCanvasPageMessage(data) {
84
- if (_typeof(data) !== "object" || data === null) return false;
75
+ if (createForOfIteratorHelper._typeof(data) !== "object" || data === null) return false;
85
76
  var message = data;
86
77
  if (message.val !== VAL_CANVAS_MESSAGE) return false;
87
78
  return message.type === "ready" || message.type === "elements" || message.type === "clicked" || message.type === "pinch" || message.type === "zoom" || message.type === "refreshing";
@@ -109,7 +100,7 @@ function isCanvasSelectionColor(value) {
109
100
 
110
101
  /** Narrow an unknown `event.data` to a message from the studio. */
111
102
  function isValCanvasStudioMessage(data) {
112
- if (_typeof(data) !== "object" || data === null) return false;
103
+ if (createForOfIteratorHelper._typeof(data) !== "object" || data === null) return false;
113
104
  var message = data;
114
105
  if (message.val !== VAL_CANVAS_MESSAGE) return false;
115
106
  if (message.type === "theme") {
@@ -256,116 +247,6 @@ function isTanStackRoutesFolder(srcFolder) {
256
247
  return srcFolder === "/routes" || srcFolder === "/src/routes";
257
248
  }
258
249
 
259
- function _toPrimitive(t, r) {
260
- if ("object" != typeof t || !t) return t;
261
- var e = t[Symbol.toPrimitive];
262
- if (void 0 !== e) {
263
- var i = e.call(t, r || "default");
264
- if ("object" != typeof i) return i;
265
- throw new TypeError("@@toPrimitive must return a primitive value.");
266
- }
267
- return ("string" === r ? String : Number)(t);
268
- }
269
-
270
- function _toPropertyKey(t) {
271
- var i = _toPrimitive(t, "string");
272
- return "symbol" == typeof i ? i : i + "";
273
- }
274
-
275
- function _defineProperty(e, r, t) {
276
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
277
- value: t,
278
- enumerable: !0,
279
- configurable: !0,
280
- writable: !0
281
- }) : e[r] = t, e;
282
- }
283
-
284
- function ownKeys(e, r) {
285
- var t = Object.keys(e);
286
- if (Object.getOwnPropertySymbols) {
287
- var o = Object.getOwnPropertySymbols(e);
288
- r && (o = o.filter(function (r) {
289
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
290
- })), t.push.apply(t, o);
291
- }
292
- return t;
293
- }
294
- function _objectSpread2(e) {
295
- for (var r = 1; r < arguments.length; r++) {
296
- var t = null != arguments[r] ? arguments[r] : {};
297
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
298
- _defineProperty(e, r, t[r]);
299
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
300
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
301
- });
302
- }
303
- return e;
304
- }
305
-
306
- function _arrayLikeToArray(r, a) {
307
- (null == a || a > r.length) && (a = r.length);
308
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
309
- return n;
310
- }
311
-
312
- function _unsupportedIterableToArray(r, a) {
313
- if (r) {
314
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
315
- var t = {}.toString.call(r).slice(8, -1);
316
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
317
- }
318
- }
319
-
320
- function _createForOfIteratorHelper(r, e) {
321
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
322
- if (!t) {
323
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
324
- t && (r = t);
325
- var n = 0,
326
- F = function () {};
327
- return {
328
- s: F,
329
- n: function () {
330
- return n >= r.length ? {
331
- done: !0
332
- } : {
333
- done: !1,
334
- value: r[n++]
335
- };
336
- },
337
- e: function (r) {
338
- throw r;
339
- },
340
- f: F
341
- };
342
- }
343
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
344
- }
345
- var o,
346
- a = !0,
347
- u = !1;
348
- return {
349
- s: function () {
350
- t = t.call(r);
351
- },
352
- n: function () {
353
- var r = t.next();
354
- return a = r.done, r;
355
- },
356
- e: function (r) {
357
- u = !0, o = r;
358
- },
359
- f: function () {
360
- try {
361
- a || null == t.return || t.return();
362
- } finally {
363
- if (u) throw o;
364
- }
365
- }
366
- };
367
- }
368
-
369
250
  // Strictly speaking this should be in the framework packages but it's shared,
370
251
  // because we want to use it in the ui package. We want to resolve that somehow.
371
252
  //
@@ -379,7 +260,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
379
260
  name: "/",
380
261
  children: []
381
262
  };
382
- var _iterator = _createForOfIteratorHelper(paths),
263
+ var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(paths),
383
264
  _step;
384
265
  try {
385
266
  var _loop = function _loop() {
@@ -409,7 +290,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
409
290
  var isLast = index === pathParts.length - 1;
410
291
  var fullPath = "/" + pathParts.slice(0, index + 1).join("/");
411
292
  var sourcePath = core.Internal.joinModuleFilePathAndModulePath(moduleFilePath, "\"".concat(fullPath, "\""));
412
- var node = hasChildren ? _objectSpread2(_objectSpread2({
293
+ var node = hasChildren ? createForOfIteratorHelper._objectSpread2(createForOfIteratorHelper._objectSpread2({
413
294
  type: "node",
414
295
  name: part,
415
296
  pattern: pattern,
@@ -517,13 +398,6 @@ exports.VAL_CANVAS_MESSAGE = VAL_CANVAS_MESSAGE;
517
398
  exports.VAL_CANVAS_PARAM = VAL_CANVAS_PARAM;
518
399
  exports.VAL_CONFIG_SESSION_STORAGE_KEY = VAL_CONFIG_SESSION_STORAGE_KEY;
519
400
  exports.VAL_THEME_SESSION_STORAGE_KEY = VAL_THEME_SESSION_STORAGE_KEY;
520
- exports._arrayLikeToArray = _arrayLikeToArray;
521
- exports._createForOfIteratorHelper = _createForOfIteratorHelper;
522
- exports._defineProperty = _defineProperty;
523
- exports._objectSpread2 = _objectSpread2;
524
- exports._toPropertyKey = _toPropertyKey;
525
- exports._typeof = _typeof;
526
- exports._unsupportedIterableToArray = _unsupportedIterableToArray;
527
401
  exports.formatRoutePattern = formatRoutePattern;
528
402
  exports.getNextAppRouterSourceFolder = getNextAppRouterSourceFolder;
529
403
  exports.getPageRouterSitemapTree = getPageRouterSitemapTree;
@@ -1,19 +1,10 @@
1
+ import { _ as _typeof, a as _createForOfIteratorHelper, b as _objectSpread2 } from './createForOfIteratorHelper-3db5d737.esm.js';
1
2
  import { Internal, tanStackSegmentsOfRoutePath } from '@valbuild/core';
2
3
 
3
4
  var VAL_CONFIG_SESSION_STORAGE_KEY = "val-config";
4
5
  var VAL_THEME_SESSION_STORAGE_KEY = "val-theme";
5
6
  var VAL_AI_SESSION_STORAGE_KEY = "val-ai-session";
6
7
 
7
- function _typeof(o) {
8
- "@babel/helpers - typeof";
9
-
10
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
11
- return typeof o;
12
- } : function (o) {
13
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
14
- }, _typeof(o);
15
- }
16
-
17
8
  /**
18
9
  * The protocol between the studio's canvas and the page inside it.
19
10
  *
@@ -254,116 +245,6 @@ function isTanStackRoutesFolder(srcFolder) {
254
245
  return srcFolder === "/routes" || srcFolder === "/src/routes";
255
246
  }
256
247
 
257
- function _toPrimitive(t, r) {
258
- if ("object" != typeof t || !t) return t;
259
- var e = t[Symbol.toPrimitive];
260
- if (void 0 !== e) {
261
- var i = e.call(t, r || "default");
262
- if ("object" != typeof i) return i;
263
- throw new TypeError("@@toPrimitive must return a primitive value.");
264
- }
265
- return ("string" === r ? String : Number)(t);
266
- }
267
-
268
- function _toPropertyKey(t) {
269
- var i = _toPrimitive(t, "string");
270
- return "symbol" == typeof i ? i : i + "";
271
- }
272
-
273
- function _defineProperty(e, r, t) {
274
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
275
- value: t,
276
- enumerable: !0,
277
- configurable: !0,
278
- writable: !0
279
- }) : e[r] = t, e;
280
- }
281
-
282
- function ownKeys(e, r) {
283
- var t = Object.keys(e);
284
- if (Object.getOwnPropertySymbols) {
285
- var o = Object.getOwnPropertySymbols(e);
286
- r && (o = o.filter(function (r) {
287
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
288
- })), t.push.apply(t, o);
289
- }
290
- return t;
291
- }
292
- function _objectSpread2(e) {
293
- for (var r = 1; r < arguments.length; r++) {
294
- var t = null != arguments[r] ? arguments[r] : {};
295
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
296
- _defineProperty(e, r, t[r]);
297
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
298
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
299
- });
300
- }
301
- return e;
302
- }
303
-
304
- function _arrayLikeToArray(r, a) {
305
- (null == a || a > r.length) && (a = r.length);
306
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
307
- return n;
308
- }
309
-
310
- function _unsupportedIterableToArray(r, a) {
311
- if (r) {
312
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
313
- var t = {}.toString.call(r).slice(8, -1);
314
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
315
- }
316
- }
317
-
318
- function _createForOfIteratorHelper(r, e) {
319
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
320
- if (!t) {
321
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
322
- t && (r = t);
323
- var n = 0,
324
- F = function () {};
325
- return {
326
- s: F,
327
- n: function () {
328
- return n >= r.length ? {
329
- done: !0
330
- } : {
331
- done: !1,
332
- value: r[n++]
333
- };
334
- },
335
- e: function (r) {
336
- throw r;
337
- },
338
- f: F
339
- };
340
- }
341
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
342
- }
343
- var o,
344
- a = !0,
345
- u = !1;
346
- return {
347
- s: function () {
348
- t = t.call(r);
349
- },
350
- n: function () {
351
- var r = t.next();
352
- return a = r.done, r;
353
- },
354
- e: function (r) {
355
- u = !0, o = r;
356
- },
357
- f: function () {
358
- try {
359
- a || null == t.return || t.return();
360
- } finally {
361
- if (u) throw o;
362
- }
363
- }
364
- };
365
- }
366
-
367
248
  // Strictly speaking this should be in the framework packages but it's shared,
368
249
  // because we want to use it in the ui package. We want to resolve that somehow.
369
250
  //
@@ -508,4 +389,4 @@ function getPatternFromModuleFilePath(moduleFilePath, srcFolder) {
508
389
  .replace("/page.val.ts", "").replace("/page.val.js", "");
509
390
  }
510
391
 
511
- export { DEFAULT_CANVAS_SELECTION as D, VAL_CONFIG_SESSION_STORAGE_KEY as V, _createForOfIteratorHelper as _, VAL_THEME_SESSION_STORAGE_KEY as a, VAL_AI_SESSION_STORAGE_KEY as b, VAL_CANVAS_PARAM as c, VAL_CANVAS_MESSAGE as d, DEFAULT_CANVAS_SELECTION_SOFT as e, isValCanvasStudioMessage as f, isValCanvasFrame as g, formatRoutePattern as h, isValCanvasPageMessage as i, getNextAppRouterSourceFolder as j, getTanStackRouterSourceFolder as k, getPageRouterSourceFolder as l, isTanStackRoutesFolder as m, getPageRouterSitemapTree as n, getPatternFromModuleFilePath as o, parseRoutePattern as p, _objectSpread2 as q, _arrayLikeToArray as r, _unsupportedIterableToArray as s, _typeof as t, _defineProperty as u, _toPropertyKey as v, withValCanvasParam as w };
392
+ export { DEFAULT_CANVAS_SELECTION as D, VAL_CONFIG_SESSION_STORAGE_KEY as V, VAL_THEME_SESSION_STORAGE_KEY as a, VAL_AI_SESSION_STORAGE_KEY as b, VAL_CANVAS_PARAM as c, VAL_CANVAS_MESSAGE as d, DEFAULT_CANVAS_SELECTION_SOFT as e, isValCanvasStudioMessage as f, isValCanvasFrame as g, formatRoutePattern as h, isValCanvasPageMessage as i, getNextAppRouterSourceFolder as j, getTanStackRouterSourceFolder as k, getPageRouterSourceFolder as l, isTanStackRoutesFolder as m, getPageRouterSitemapTree as n, getPatternFromModuleFilePath as o, parseRoutePattern as p, withValCanvasParam as w };
@@ -1,21 +1,12 @@
1
1
  'use strict';
2
2
 
3
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-90e6a8b6.cjs.prod.js');
3
4
  var core = require('@valbuild/core');
4
5
 
5
6
  var VAL_CONFIG_SESSION_STORAGE_KEY = "val-config";
6
7
  var VAL_THEME_SESSION_STORAGE_KEY = "val-theme";
7
8
  var VAL_AI_SESSION_STORAGE_KEY = "val-ai-session";
8
9
 
9
- function _typeof(o) {
10
- "@babel/helpers - typeof";
11
-
12
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
13
- return typeof o;
14
- } : function (o) {
15
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
16
- }, _typeof(o);
17
- }
18
-
19
10
  /**
20
11
  * The protocol between the studio's canvas and the page inside it.
21
12
  *
@@ -81,7 +72,7 @@ var DEFAULT_CANVAS_SELECTION_SOFT = "rgba(7, 148, 85, 0.4)";
81
72
 
82
73
  /** Narrow an unknown `event.data` to a message from the page. */
83
74
  function isValCanvasPageMessage(data) {
84
- if (_typeof(data) !== "object" || data === null) return false;
75
+ if (createForOfIteratorHelper._typeof(data) !== "object" || data === null) return false;
85
76
  var message = data;
86
77
  if (message.val !== VAL_CANVAS_MESSAGE) return false;
87
78
  return message.type === "ready" || message.type === "elements" || message.type === "clicked" || message.type === "pinch" || message.type === "zoom" || message.type === "refreshing";
@@ -109,7 +100,7 @@ function isCanvasSelectionColor(value) {
109
100
 
110
101
  /** Narrow an unknown `event.data` to a message from the studio. */
111
102
  function isValCanvasStudioMessage(data) {
112
- if (_typeof(data) !== "object" || data === null) return false;
103
+ if (createForOfIteratorHelper._typeof(data) !== "object" || data === null) return false;
113
104
  var message = data;
114
105
  if (message.val !== VAL_CANVAS_MESSAGE) return false;
115
106
  if (message.type === "theme") {
@@ -256,116 +247,6 @@ function isTanStackRoutesFolder(srcFolder) {
256
247
  return srcFolder === "/routes" || srcFolder === "/src/routes";
257
248
  }
258
249
 
259
- function _toPrimitive(t, r) {
260
- if ("object" != typeof t || !t) return t;
261
- var e = t[Symbol.toPrimitive];
262
- if (void 0 !== e) {
263
- var i = e.call(t, r || "default");
264
- if ("object" != typeof i) return i;
265
- throw new TypeError("@@toPrimitive must return a primitive value.");
266
- }
267
- return ("string" === r ? String : Number)(t);
268
- }
269
-
270
- function _toPropertyKey(t) {
271
- var i = _toPrimitive(t, "string");
272
- return "symbol" == typeof i ? i : i + "";
273
- }
274
-
275
- function _defineProperty(e, r, t) {
276
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
277
- value: t,
278
- enumerable: !0,
279
- configurable: !0,
280
- writable: !0
281
- }) : e[r] = t, e;
282
- }
283
-
284
- function ownKeys(e, r) {
285
- var t = Object.keys(e);
286
- if (Object.getOwnPropertySymbols) {
287
- var o = Object.getOwnPropertySymbols(e);
288
- r && (o = o.filter(function (r) {
289
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
290
- })), t.push.apply(t, o);
291
- }
292
- return t;
293
- }
294
- function _objectSpread2(e) {
295
- for (var r = 1; r < arguments.length; r++) {
296
- var t = null != arguments[r] ? arguments[r] : {};
297
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
298
- _defineProperty(e, r, t[r]);
299
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
300
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
301
- });
302
- }
303
- return e;
304
- }
305
-
306
- function _arrayLikeToArray(r, a) {
307
- (null == a || a > r.length) && (a = r.length);
308
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
309
- return n;
310
- }
311
-
312
- function _unsupportedIterableToArray(r, a) {
313
- if (r) {
314
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
315
- var t = {}.toString.call(r).slice(8, -1);
316
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
317
- }
318
- }
319
-
320
- function _createForOfIteratorHelper(r, e) {
321
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
322
- if (!t) {
323
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
324
- t && (r = t);
325
- var n = 0,
326
- F = function () {};
327
- return {
328
- s: F,
329
- n: function () {
330
- return n >= r.length ? {
331
- done: !0
332
- } : {
333
- done: !1,
334
- value: r[n++]
335
- };
336
- },
337
- e: function (r) {
338
- throw r;
339
- },
340
- f: F
341
- };
342
- }
343
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
344
- }
345
- var o,
346
- a = !0,
347
- u = !1;
348
- return {
349
- s: function () {
350
- t = t.call(r);
351
- },
352
- n: function () {
353
- var r = t.next();
354
- return a = r.done, r;
355
- },
356
- e: function (r) {
357
- u = !0, o = r;
358
- },
359
- f: function () {
360
- try {
361
- a || null == t.return || t.return();
362
- } finally {
363
- if (u) throw o;
364
- }
365
- }
366
- };
367
- }
368
-
369
250
  // Strictly speaking this should be in the framework packages but it's shared,
370
251
  // because we want to use it in the ui package. We want to resolve that somehow.
371
252
  //
@@ -379,7 +260,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
379
260
  name: "/",
380
261
  children: []
381
262
  };
382
- var _iterator = _createForOfIteratorHelper(paths),
263
+ var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(paths),
383
264
  _step;
384
265
  try {
385
266
  var _loop = function _loop() {
@@ -409,7 +290,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
409
290
  var isLast = index === pathParts.length - 1;
410
291
  var fullPath = "/" + pathParts.slice(0, index + 1).join("/");
411
292
  var sourcePath = core.Internal.joinModuleFilePathAndModulePath(moduleFilePath, "\"".concat(fullPath, "\""));
412
- var node = hasChildren ? _objectSpread2(_objectSpread2({
293
+ var node = hasChildren ? createForOfIteratorHelper._objectSpread2(createForOfIteratorHelper._objectSpread2({
413
294
  type: "node",
414
295
  name: part,
415
296
  pattern: pattern,
@@ -517,13 +398,6 @@ exports.VAL_CANVAS_MESSAGE = VAL_CANVAS_MESSAGE;
517
398
  exports.VAL_CANVAS_PARAM = VAL_CANVAS_PARAM;
518
399
  exports.VAL_CONFIG_SESSION_STORAGE_KEY = VAL_CONFIG_SESSION_STORAGE_KEY;
519
400
  exports.VAL_THEME_SESSION_STORAGE_KEY = VAL_THEME_SESSION_STORAGE_KEY;
520
- exports._arrayLikeToArray = _arrayLikeToArray;
521
- exports._createForOfIteratorHelper = _createForOfIteratorHelper;
522
- exports._defineProperty = _defineProperty;
523
- exports._objectSpread2 = _objectSpread2;
524
- exports._toPropertyKey = _toPropertyKey;
525
- exports._typeof = _typeof;
526
- exports._unsupportedIterableToArray = _unsupportedIterableToArray;
527
401
  exports.formatRoutePattern = formatRoutePattern;
528
402
  exports.getNextAppRouterSourceFolder = getNextAppRouterSourceFolder;
529
403
  exports.getPageRouterSitemapTree = getPageRouterSitemapTree;
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var slicedToArray = require('./slicedToArray-af50e684.cjs.prod.js');
4
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-90e6a8b6.cjs.prod.js');
5
+
6
+ /** The proposal's project: the site's source, with what the proposal changed laid over it. */
7
+ function proposalProject(site, own) {
8
+ var out = createForOfIteratorHelper._objectSpread2({}, site);
9
+ for (var _i = 0, _Object$entries = Object.entries(own); _i < _Object$entries.length; _i++) {
10
+ var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
11
+ path = _Object$entries$_i[0],
12
+ text = _Object$entries$_i[1];
13
+ if (text === null) delete out[path];else out[path] = text;
14
+ }
15
+ return out;
16
+ }
17
+
18
+ exports.proposalProject = proposalProject;
@@ -0,0 +1,16 @@
1
+ import { g as _slicedToArray } from './slicedToArray-6cd80315.esm.js';
2
+ import { b as _objectSpread2 } from './createForOfIteratorHelper-3db5d737.esm.js';
3
+
4
+ /** The proposal's project: the site's source, with what the proposal changed laid over it. */
5
+ function proposalProject(site, own) {
6
+ var out = _objectSpread2({}, site);
7
+ for (var _i = 0, _Object$entries = Object.entries(own); _i < _Object$entries.length; _i++) {
8
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
9
+ path = _Object$entries$_i[0],
10
+ text = _Object$entries$_i[1];
11
+ if (text === null) delete out[path];else out[path] = text;
12
+ }
13
+ return out;
14
+ }
15
+
16
+ export { proposalProject as p };
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var slicedToArray = require('./slicedToArray-62e428df.cjs.dev.js');
4
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-d86bb352.cjs.dev.js');
5
+
6
+ /** The proposal's project: the site's source, with what the proposal changed laid over it. */
7
+ function proposalProject(site, own) {
8
+ var out = createForOfIteratorHelper._objectSpread2({}, site);
9
+ for (var _i = 0, _Object$entries = Object.entries(own); _i < _Object$entries.length; _i++) {
10
+ var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
11
+ path = _Object$entries$_i[0],
12
+ text = _Object$entries$_i[1];
13
+ if (text === null) delete out[path];else out[path] = text;
14
+ }
15
+ return out;
16
+ }
17
+
18
+ exports.proposalProject = proposalProject;