@valbuild/shared 0.150.2 → 0.150.8

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 (41) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/client/dist/valbuild-shared-client.cjs.dev.js +8 -2
  3. package/client/dist/valbuild-shared-client.cjs.prod.js +8 -2
  4. package/client/dist/valbuild-shared-client.esm.js +2 -2
  5. package/dist/{acquireTypes-50960f2c.esm.js → acquireTypes-6e2f7961.esm.js} +2 -2
  6. package/dist/{acquireTypes-de10005d.cjs.dev.js → acquireTypes-84a4077a.cjs.dev.js} +6 -6
  7. package/dist/{acquireTypes-e9467a2a.cjs.prod.js → acquireTypes-dd976839.cjs.prod.js} +6 -6
  8. package/dist/{createForOfIteratorHelper-3db5d737.esm.js → createForOfIteratorHelper-666a6d17.esm.js} +31 -15
  9. package/dist/{createForOfIteratorHelper-90e6a8b6.cjs.prod.js → createForOfIteratorHelper-87a33eff.cjs.dev.js} +31 -15
  10. package/dist/{createForOfIteratorHelper-d86bb352.cjs.dev.js → createForOfIteratorHelper-fef4fa7d.cjs.prod.js} +31 -15
  11. package/dist/declarations/src/client/index.d.ts +1 -0
  12. package/dist/declarations/src/internal/ApiRoutes.d.ts +8 -0
  13. package/dist/declarations/src/internal/elementPicker.d.ts +96 -0
  14. package/dist/declarations/src/internal/index.d.ts +1 -0
  15. package/dist/declarations/src/internal/theme/accentRamp.d.ts +20 -0
  16. package/dist/declarations/src/internal/valCanvasProtocol.d.ts +36 -0
  17. package/dist/{getSitemapTree-667bcb3c.cjs.prod.js → getSitemapTree-873f7266.cjs.prod.js} +333 -2
  18. package/dist/{getSitemapTree-5afbc3ac.esm.js → getSitemapTree-b6161fd8.esm.js} +328 -3
  19. package/dist/{getSitemapTree-0fa0569c.cjs.dev.js → getSitemapTree-be70d9fc.cjs.dev.js} +333 -2
  20. package/dist/{proposalProject-a3d3ad76.esm.js → proposalProject-689c24cc.esm.js} +2 -2
  21. package/dist/{proposalProject-cdc53711.cjs.dev.js → proposalProject-926f2c68.cjs.dev.js} +2 -2
  22. package/dist/{proposalProject-28550146.cjs.prod.js → proposalProject-fab0c026.cjs.prod.js} +2 -2
  23. package/dist/{protocol-1c13de0d.cjs.prod.js → protocol-4e2a455b.cjs.prod.js} +1 -1
  24. package/dist/{protocol-3b9ef786.esm.js → protocol-7ddc1a71.esm.js} +1 -1
  25. package/dist/{protocol-d8a6efda.cjs.dev.js → protocol-ac1c3ec7.cjs.dev.js} +1 -1
  26. package/dist/{slicedToArray-6cd80315.esm.js → slicedToArray-22567815.esm.js} +2 -18
  27. package/dist/{slicedToArray-62e428df.cjs.dev.js → slicedToArray-c8a29f6b.cjs.dev.js} +1 -18
  28. package/dist/{slicedToArray-af50e684.cjs.prod.js → slicedToArray-d99b4e2e.cjs.prod.js} +1 -18
  29. package/internal/dist/valbuild-shared-internal.cjs.dev.js +71 -10
  30. package/internal/dist/valbuild-shared-internal.cjs.prod.js +71 -10
  31. package/internal/dist/valbuild-shared-internal.esm.js +63 -9
  32. package/package.json +2 -2
  33. package/publish/dist/valbuild-shared-publish.cjs.dev.js +6 -6
  34. package/publish/dist/valbuild-shared-publish.cjs.prod.js +6 -6
  35. package/publish/dist/valbuild-shared-publish.esm.js +4 -4
  36. package/typecheck/dist/valbuild-shared-typecheck.cjs.dev.js +7 -7
  37. package/typecheck/dist/valbuild-shared-typecheck.cjs.prod.js +7 -7
  38. package/typecheck/dist/valbuild-shared-typecheck.esm.js +5 -5
  39. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.dev.js +4 -4
  40. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.prod.js +4 -4
  41. package/typecheck/testing/dist/valbuild-shared-typecheck-testing.esm.js +3 -3
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-d86bb352.cjs.dev.js');
5
+ var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-87a33eff.cjs.dev.js');
6
6
  var core = require('@valbuild/core');
7
- var slicedToArray = require('../../dist/slicedToArray-62e428df.cjs.dev.js');
7
+ var slicedToArray = require('../../dist/slicedToArray-c8a29f6b.cjs.dev.js');
8
8
  var zod = require('zod');
9
- var protocol = require('../../dist/protocol-d8a6efda.cjs.dev.js');
9
+ var protocol = require('../../dist/protocol-ac1c3ec7.cjs.dev.js');
10
10
  var zodValidationError = require('zod-validation-error');
11
- var getSitemapTree = require('../../dist/getSitemapTree-0fa0569c.cjs.dev.js');
11
+ var getSitemapTree = require('../../dist/getSitemapTree-be70d9fc.cjs.dev.js');
12
12
  var FlexSearch = require('flexsearch');
13
13
  var utils = require('../../dist/utils-d3d8b4b5.cjs.dev.js');
14
14
 
@@ -619,7 +619,7 @@ function convertListItemToRemirrorParagraph(rtChildren) {
619
619
  var newChild = convertParagraphToRemirror(child.children);
620
620
  if (lastChild.type === "paragraph" && newChild.type === "paragraph") {
621
621
  if (newChild.content) {
622
- lastChildContent.push.apply(lastChildContent, slicedToArray._toConsumableArray(newChild.content));
622
+ lastChildContent.push.apply(lastChildContent, createForOfIteratorHelper._toConsumableArray(newChild.content));
623
623
  } else {
624
624
  // no content - skip
625
625
  }
@@ -3479,7 +3479,13 @@ var Api = {
3479
3479
  query: {
3480
3480
  limit: onlyOneStringQueryParam.optional(),
3481
3481
  cursor_updatedAt: onlyOneStringQueryParam.optional(),
3482
- cursor_id: onlyOneStringQueryParam.optional()
3482
+ cursor_id: onlyOneStringQueryParam.optional(),
3483
+ /**
3484
+ * The proposal the Studio is in, by name: lists that proposal's
3485
+ * chats, everyone's, instead of your own (valbuild/home
3486
+ * `docs/proposals.md`, Flow H).
3487
+ */
3488
+ proposal: onlyOneStringQueryParam.optional()
3483
3489
  },
3484
3490
  cookies: createForOfIteratorHelper._defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
3485
3491
  },
@@ -3490,7 +3496,9 @@ var Api = {
3490
3496
  id: zod.z.string(),
3491
3497
  name: zod.z.string().nullable(),
3492
3498
  createdAt: zod.z.string(),
3493
- updatedAt: zod.z.string()
3499
+ updatedAt: zod.z.string(),
3500
+ /** Who is in a proposal's chat, starter first. */
3501
+ authorIds: zod.z.array(zod.z.string()).optional()
3494
3502
  })),
3495
3503
  nextCursor: zod.z.object({
3496
3504
  updatedAt: zod.z.string(),
@@ -3534,6 +3542,8 @@ var Api = {
3534
3542
  status: zod.z.literal(200),
3535
3543
  json: zod.z.object({
3536
3544
  messages: zod.z.array(zod.z.object({
3545
+ /** Who asked, on a user message in a proposal's chat. */
3546
+ authorId: zod.z.string().nullable().optional(),
3537
3547
  role: zod.z.string(),
3538
3548
  content: zod.z.union([zod.z.string(), zod.z.array(zod.z.union([zod.z.object({
3539
3549
  type: zod.z.literal("text"),
@@ -7530,7 +7540,7 @@ function accentRamp(accent) {
7530
7540
  * Empty when nothing is set, which is what makes "no theme" cost nothing.
7531
7541
  */
7532
7542
  function themeCustomProperties(theme) {
7533
- var properties = {};
7543
+ var properties = createForOfIteratorHelper._objectSpread2({}, theme.proposal ? proposalCustomProperties(theme.proposal) : {});
7534
7544
  if (theme.accent) {
7535
7545
  var ramp = accentRamp(theme.accent);
7536
7546
  if (ramp !== null) {
@@ -7589,6 +7599,50 @@ function themeCustomProperties(theme) {
7589
7599
  return properties;
7590
7600
  }
7591
7601
 
7602
+ /**
7603
+ * The proposal colour's tokens, for light and dark at once.
7604
+ *
7605
+ * The six `--*-proposal` tokens are declared per mode in `index.css`, each as
7606
+ * `var(--theme-proposal-<mode>-<token>, <Val's violet>)`, so the ones written
7607
+ * here are picked up where the mode block is declared -- on every element the
7608
+ * Studio stamps `data-mode` on, which is where these go (see
7609
+ * `themeCustomProperties` on why a `var()` resolves where it is declared).
7610
+ * Both modes' values are written because an element does not know which mode
7611
+ * its subtree will be in by the time it is styled.
7612
+ *
7613
+ * From the same ramp as the accent: the hue is the project's, the lightness
7614
+ * of each step Val's, so the steps chosen here have the contrast Val's violet
7615
+ * had. Text on the filled colour is white unless white would not read, then
7616
+ * the ramp's darkest step. Empty for a value that is not a usable hex, so
7617
+ * Val's violet stays.
7618
+ */
7619
+ function proposalCustomProperties(hex) {
7620
+ var ramp = accentRamp(hex);
7621
+ if (ramp === null) return {};
7622
+ var onFill = function onFill(fill) {
7623
+ return contrastRatio("#ffffff", fill) >= 4.5 ? "#ffffff" : ramp[1000];
7624
+ };
7625
+ var soft = hexToRgb(ramp[500]);
7626
+ var softDark = soft === null ? ramp[900] : "rgba(".concat(soft.map(function (c) {
7627
+ return Math.round(c * 255);
7628
+ }).join(", "), ", 0.16)");
7629
+ return {
7630
+ "--theme-proposal-light-bg": ramp[700],
7631
+ "--theme-proposal-light-bg-hover": ramp[800],
7632
+ "--theme-proposal-light-bg-soft": ramp[100],
7633
+ "--theme-proposal-light-fg": ramp[700],
7634
+ "--theme-proposal-light-fg-on": onFill(ramp[700]),
7635
+ "--theme-proposal-light-border": ramp[400],
7636
+ // 700 in dark too: 600 left white text below AA for some hues.
7637
+ "--theme-proposal-dark-bg": ramp[700],
7638
+ "--theme-proposal-dark-bg-hover": ramp[600],
7639
+ "--theme-proposal-dark-bg-soft": softDark,
7640
+ "--theme-proposal-dark-fg": ramp[300],
7641
+ "--theme-proposal-dark-fg-on": onFill(ramp[700]),
7642
+ "--theme-proposal-dark-border": ramp[700]
7643
+ };
7644
+ }
7645
+
7592
7646
  /**
7593
7647
  * WCAG relative luminance of a six-digit hex.
7594
7648
  *
@@ -8270,7 +8324,7 @@ function selectionClosure(patchSets, selected, patchIds) {
8270
8324
  try {
8271
8325
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
8272
8326
  var group = _step4.value;
8273
- if (slicedToArray._toConsumableArray(group).some(function (id) {
8327
+ if (createForOfIteratorHelper._toConsumableArray(group).some(function (id) {
8274
8328
  return wanted.has(id);
8275
8329
  })) {
8276
8330
  var _iterator6 = createForOfIteratorHelper._createForOfIteratorHelper(group),
@@ -8553,7 +8607,7 @@ function _selfCheck() {
8553
8607
  case 15:
8554
8608
  for (_i2 = 0, _Object$entries2 = Object.entries(result); _i2 < _Object$entries2.length; _i2++) {
8555
8609
  _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2), _sourcePath = _Object$entries2$_i[0], _list = _Object$entries2$_i[1];
8556
- (_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, slicedToArray._toConsumableArray(_list));
8610
+ (_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, createForOfIteratorHelper._toConsumableArray(_list));
8557
8611
  }
8558
8612
  case 16:
8559
8613
  _context.n = 2;
@@ -8640,6 +8694,10 @@ exports.VAL_CANVAS_MESSAGE = getSitemapTree.VAL_CANVAS_MESSAGE;
8640
8694
  exports.VAL_CANVAS_PARAM = getSitemapTree.VAL_CANVAS_PARAM;
8641
8695
  exports.VAL_CONFIG_SESSION_STORAGE_KEY = getSitemapTree.VAL_CONFIG_SESSION_STORAGE_KEY;
8642
8696
  exports.VAL_THEME_SESSION_STORAGE_KEY = getSitemapTree.VAL_THEME_SESSION_STORAGE_KEY;
8697
+ exports.attachElementPicker = getSitemapTree.attachElementPicker;
8698
+ exports.createPickerOverlay = getSitemapTree.createPickerOverlay;
8699
+ exports.describeElement = getSitemapTree.describeElement;
8700
+ exports.elementLabel = getSitemapTree.elementLabel;
8643
8701
  exports.formatRoutePattern = getSitemapTree.formatRoutePattern;
8644
8702
  exports.getNextAppRouterSourceFolder = getSitemapTree.getNextAppRouterSourceFolder;
8645
8703
  exports.getPageRouterSitemapTree = getSitemapTree.getPageRouterSitemapTree;
@@ -8650,7 +8708,9 @@ exports.isTanStackRoutesFolder = getSitemapTree.isTanStackRoutesFolder;
8650
8708
  exports.isValCanvasFrame = getSitemapTree.isValCanvasFrame;
8651
8709
  exports.isValCanvasPageMessage = getSitemapTree.isValCanvasPageMessage;
8652
8710
  exports.isValCanvasStudioMessage = getSitemapTree.isValCanvasStudioMessage;
8711
+ exports.modifierLabel = getSitemapTree.modifierLabel;
8653
8712
  exports.parseRoutePattern = getSitemapTree.parseRoutePattern;
8713
+ exports.startElementPicking = getSitemapTree.startElementPicking;
8654
8714
  exports.withValCanvasParam = getSitemapTree.withValCanvasParam;
8655
8715
  exports.AA_LARGE = AA_LARGE;
8656
8716
  exports.AA_TEXT = AA_TEXT;
@@ -8792,6 +8852,7 @@ exports.memoizePerRequest = memoizePerRequest;
8792
8852
  exports.newestCommitSha = newestCommitSha;
8793
8853
  exports.partitionValidationErrors = partitionValidationErrors;
8794
8854
  exports.performSearch = performSearch;
8855
+ exports.proposalCustomProperties = proposalCustomProperties;
8795
8856
  exports.relativeLuminance = relativeLuminance;
8796
8857
  exports.remirrorToRichTextSource = remirrorToRichTextSource;
8797
8858
  exports.removeModule = removeModule;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-90e6a8b6.cjs.prod.js');
5
+ var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js');
6
6
  var core = require('@valbuild/core');
7
- var slicedToArray = require('../../dist/slicedToArray-af50e684.cjs.prod.js');
7
+ var slicedToArray = require('../../dist/slicedToArray-d99b4e2e.cjs.prod.js');
8
8
  var zod = require('zod');
9
- var protocol = require('../../dist/protocol-1c13de0d.cjs.prod.js');
9
+ var protocol = require('../../dist/protocol-4e2a455b.cjs.prod.js');
10
10
  var zodValidationError = require('zod-validation-error');
11
- var getSitemapTree = require('../../dist/getSitemapTree-667bcb3c.cjs.prod.js');
11
+ var getSitemapTree = require('../../dist/getSitemapTree-873f7266.cjs.prod.js');
12
12
  var FlexSearch = require('flexsearch');
13
13
  var utils = require('../../dist/utils-32bcaca2.cjs.prod.js');
14
14
 
@@ -619,7 +619,7 @@ function convertListItemToRemirrorParagraph(rtChildren) {
619
619
  var newChild = convertParagraphToRemirror(child.children);
620
620
  if (lastChild.type === "paragraph" && newChild.type === "paragraph") {
621
621
  if (newChild.content) {
622
- lastChildContent.push.apply(lastChildContent, slicedToArray._toConsumableArray(newChild.content));
622
+ lastChildContent.push.apply(lastChildContent, createForOfIteratorHelper._toConsumableArray(newChild.content));
623
623
  } else {
624
624
  // no content - skip
625
625
  }
@@ -3479,7 +3479,13 @@ var Api = {
3479
3479
  query: {
3480
3480
  limit: onlyOneStringQueryParam.optional(),
3481
3481
  cursor_updatedAt: onlyOneStringQueryParam.optional(),
3482
- cursor_id: onlyOneStringQueryParam.optional()
3482
+ cursor_id: onlyOneStringQueryParam.optional(),
3483
+ /**
3484
+ * The proposal the Studio is in, by name: lists that proposal's
3485
+ * chats, everyone's, instead of your own (valbuild/home
3486
+ * `docs/proposals.md`, Flow H).
3487
+ */
3488
+ proposal: onlyOneStringQueryParam.optional()
3483
3489
  },
3484
3490
  cookies: createForOfIteratorHelper._defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
3485
3491
  },
@@ -3490,7 +3496,9 @@ var Api = {
3490
3496
  id: zod.z.string(),
3491
3497
  name: zod.z.string().nullable(),
3492
3498
  createdAt: zod.z.string(),
3493
- updatedAt: zod.z.string()
3499
+ updatedAt: zod.z.string(),
3500
+ /** Who is in a proposal's chat, starter first. */
3501
+ authorIds: zod.z.array(zod.z.string()).optional()
3494
3502
  })),
3495
3503
  nextCursor: zod.z.object({
3496
3504
  updatedAt: zod.z.string(),
@@ -3534,6 +3542,8 @@ var Api = {
3534
3542
  status: zod.z.literal(200),
3535
3543
  json: zod.z.object({
3536
3544
  messages: zod.z.array(zod.z.object({
3545
+ /** Who asked, on a user message in a proposal's chat. */
3546
+ authorId: zod.z.string().nullable().optional(),
3537
3547
  role: zod.z.string(),
3538
3548
  content: zod.z.union([zod.z.string(), zod.z.array(zod.z.union([zod.z.object({
3539
3549
  type: zod.z.literal("text"),
@@ -7530,7 +7540,7 @@ function accentRamp(accent) {
7530
7540
  * Empty when nothing is set, which is what makes "no theme" cost nothing.
7531
7541
  */
7532
7542
  function themeCustomProperties(theme) {
7533
- var properties = {};
7543
+ var properties = createForOfIteratorHelper._objectSpread2({}, theme.proposal ? proposalCustomProperties(theme.proposal) : {});
7534
7544
  if (theme.accent) {
7535
7545
  var ramp = accentRamp(theme.accent);
7536
7546
  if (ramp !== null) {
@@ -7589,6 +7599,50 @@ function themeCustomProperties(theme) {
7589
7599
  return properties;
7590
7600
  }
7591
7601
 
7602
+ /**
7603
+ * The proposal colour's tokens, for light and dark at once.
7604
+ *
7605
+ * The six `--*-proposal` tokens are declared per mode in `index.css`, each as
7606
+ * `var(--theme-proposal-<mode>-<token>, <Val's violet>)`, so the ones written
7607
+ * here are picked up where the mode block is declared -- on every element the
7608
+ * Studio stamps `data-mode` on, which is where these go (see
7609
+ * `themeCustomProperties` on why a `var()` resolves where it is declared).
7610
+ * Both modes' values are written because an element does not know which mode
7611
+ * its subtree will be in by the time it is styled.
7612
+ *
7613
+ * From the same ramp as the accent: the hue is the project's, the lightness
7614
+ * of each step Val's, so the steps chosen here have the contrast Val's violet
7615
+ * had. Text on the filled colour is white unless white would not read, then
7616
+ * the ramp's darkest step. Empty for a value that is not a usable hex, so
7617
+ * Val's violet stays.
7618
+ */
7619
+ function proposalCustomProperties(hex) {
7620
+ var ramp = accentRamp(hex);
7621
+ if (ramp === null) return {};
7622
+ var onFill = function onFill(fill) {
7623
+ return contrastRatio("#ffffff", fill) >= 4.5 ? "#ffffff" : ramp[1000];
7624
+ };
7625
+ var soft = hexToRgb(ramp[500]);
7626
+ var softDark = soft === null ? ramp[900] : "rgba(".concat(soft.map(function (c) {
7627
+ return Math.round(c * 255);
7628
+ }).join(", "), ", 0.16)");
7629
+ return {
7630
+ "--theme-proposal-light-bg": ramp[700],
7631
+ "--theme-proposal-light-bg-hover": ramp[800],
7632
+ "--theme-proposal-light-bg-soft": ramp[100],
7633
+ "--theme-proposal-light-fg": ramp[700],
7634
+ "--theme-proposal-light-fg-on": onFill(ramp[700]),
7635
+ "--theme-proposal-light-border": ramp[400],
7636
+ // 700 in dark too: 600 left white text below AA for some hues.
7637
+ "--theme-proposal-dark-bg": ramp[700],
7638
+ "--theme-proposal-dark-bg-hover": ramp[600],
7639
+ "--theme-proposal-dark-bg-soft": softDark,
7640
+ "--theme-proposal-dark-fg": ramp[300],
7641
+ "--theme-proposal-dark-fg-on": onFill(ramp[700]),
7642
+ "--theme-proposal-dark-border": ramp[700]
7643
+ };
7644
+ }
7645
+
7592
7646
  /**
7593
7647
  * WCAG relative luminance of a six-digit hex.
7594
7648
  *
@@ -8270,7 +8324,7 @@ function selectionClosure(patchSets, selected, patchIds) {
8270
8324
  try {
8271
8325
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
8272
8326
  var group = _step4.value;
8273
- if (slicedToArray._toConsumableArray(group).some(function (id) {
8327
+ if (createForOfIteratorHelper._toConsumableArray(group).some(function (id) {
8274
8328
  return wanted.has(id);
8275
8329
  })) {
8276
8330
  var _iterator6 = createForOfIteratorHelper._createForOfIteratorHelper(group),
@@ -8553,7 +8607,7 @@ function _selfCheck() {
8553
8607
  case 15:
8554
8608
  for (_i2 = 0, _Object$entries2 = Object.entries(result); _i2 < _Object$entries2.length; _i2++) {
8555
8609
  _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2), _sourcePath = _Object$entries2$_i[0], _list = _Object$entries2$_i[1];
8556
- (_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, slicedToArray._toConsumableArray(_list));
8610
+ (_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, createForOfIteratorHelper._toConsumableArray(_list));
8557
8611
  }
8558
8612
  case 16:
8559
8613
  _context.n = 2;
@@ -8640,6 +8694,10 @@ exports.VAL_CANVAS_MESSAGE = getSitemapTree.VAL_CANVAS_MESSAGE;
8640
8694
  exports.VAL_CANVAS_PARAM = getSitemapTree.VAL_CANVAS_PARAM;
8641
8695
  exports.VAL_CONFIG_SESSION_STORAGE_KEY = getSitemapTree.VAL_CONFIG_SESSION_STORAGE_KEY;
8642
8696
  exports.VAL_THEME_SESSION_STORAGE_KEY = getSitemapTree.VAL_THEME_SESSION_STORAGE_KEY;
8697
+ exports.attachElementPicker = getSitemapTree.attachElementPicker;
8698
+ exports.createPickerOverlay = getSitemapTree.createPickerOverlay;
8699
+ exports.describeElement = getSitemapTree.describeElement;
8700
+ exports.elementLabel = getSitemapTree.elementLabel;
8643
8701
  exports.formatRoutePattern = getSitemapTree.formatRoutePattern;
8644
8702
  exports.getNextAppRouterSourceFolder = getSitemapTree.getNextAppRouterSourceFolder;
8645
8703
  exports.getPageRouterSitemapTree = getSitemapTree.getPageRouterSitemapTree;
@@ -8650,7 +8708,9 @@ exports.isTanStackRoutesFolder = getSitemapTree.isTanStackRoutesFolder;
8650
8708
  exports.isValCanvasFrame = getSitemapTree.isValCanvasFrame;
8651
8709
  exports.isValCanvasPageMessage = getSitemapTree.isValCanvasPageMessage;
8652
8710
  exports.isValCanvasStudioMessage = getSitemapTree.isValCanvasStudioMessage;
8711
+ exports.modifierLabel = getSitemapTree.modifierLabel;
8653
8712
  exports.parseRoutePattern = getSitemapTree.parseRoutePattern;
8713
+ exports.startElementPicking = getSitemapTree.startElementPicking;
8654
8714
  exports.withValCanvasParam = getSitemapTree.withValCanvasParam;
8655
8715
  exports.AA_LARGE = AA_LARGE;
8656
8716
  exports.AA_TEXT = AA_TEXT;
@@ -8792,6 +8852,7 @@ exports.memoizePerRequest = memoizePerRequest;
8792
8852
  exports.newestCommitSha = newestCommitSha;
8793
8853
  exports.partitionValidationErrors = partitionValidationErrors;
8794
8854
  exports.performSearch = performSearch;
8855
+ exports.proposalCustomProperties = proposalCustomProperties;
8795
8856
  exports.relativeLuminance = relativeLuminance;
8796
8857
  exports.remirrorToRichTextSource = remirrorToRichTextSource;
8797
8858
  exports.removeModule = removeModule;
@@ -1,11 +1,11 @@
1
- import { a as _createForOfIteratorHelper, b as _objectSpread2, _ as _typeof, c as _defineProperty } from '../../dist/createForOfIteratorHelper-3db5d737.esm.js';
1
+ import { c as _createForOfIteratorHelper, a as _objectSpread2, b as _toConsumableArray, _ as _typeof, d as _defineProperty } from '../../dist/createForOfIteratorHelper-666a6d17.esm.js';
2
2
  import { Internal, CODE_LANGUAGES, resolveSettingsModule, missingDeclaredKeys, localeOfValue, discriminatedUnionBranchOf, routePatternOf, matchRoutePattern, DEFAULT_COLOR_FORMAT, declaredKeySetOf } from '@valbuild/core';
3
- import { h as _toConsumableArray, b as _asyncToGenerator, d as _regenerator, g as _slicedToArray, a as _createClass, e as _classCallCheck } from '../../dist/slicedToArray-6cd80315.esm.js';
3
+ import { b as _asyncToGenerator, d as _regenerator, g as _slicedToArray, a as _createClass, e as _classCallCheck } from '../../dist/slicedToArray-22567815.esm.js';
4
4
  import { z } from 'zod';
5
- import { _ as _objectWithoutProperties } from '../../dist/protocol-3b9ef786.esm.js';
6
- export { P as PublishProtocolError, b as parseArtifacts, p as parseBuildTarget, l as parseCancel, a as parseDeclare, m as parseDiscard, j as parseJob, n as parseNewestCiRun, h as parsePress, g as parseProblems, f as parseProjectSource, d as parsePromote, o as parsePublishToken, k as parseRenew, i as parseRequestStatus, e as parseStatus, q as parseUpdateTarget, c as parseVerify } from '../../dist/protocol-3b9ef786.esm.js';
5
+ import { _ as _objectWithoutProperties } from '../../dist/protocol-7ddc1a71.esm.js';
6
+ export { P as PublishProtocolError, b as parseArtifacts, p as parseBuildTarget, l as parseCancel, a as parseDeclare, m as parseDiscard, j as parseJob, n as parseNewestCiRun, h as parsePress, g as parseProblems, f as parseProjectSource, d as parsePromote, o as parsePublishToken, k as parseRenew, i as parseRequestStatus, e as parseStatus, q as parseUpdateTarget, c as parseVerify } from '../../dist/protocol-7ddc1a71.esm.js';
7
7
  import { fromError } from 'zod-validation-error';
8
- export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as formatRoutePattern, j as getNextAppRouterSourceFolder, n as getPageRouterSitemapTree, l as getPageRouterSourceFolder, o as getPatternFromModuleFilePath, k as getTanStackRouterSourceFolder, m as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-5afbc3ac.esm.js';
8
+ export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, j as attachElementPicker, k as createPickerOverlay, h as describeElement, l as elementLabel, n as formatRoutePattern, o as getNextAppRouterSourceFolder, u as getPageRouterSitemapTree, r as getPageRouterSourceFolder, v as getPatternFromModuleFilePath, q as getTanStackRouterSourceFolder, t as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, m as modifierLabel, p as parseRoutePattern, s as startElementPicking, w as withValCanvasParam } from '../../dist/getSitemapTree-b6161fd8.esm.js';
9
9
  import FlexSearch from 'flexsearch';
10
10
  import { b as base64DataUrlToUint8Array } from '../../dist/utils-00f3e1df.esm.js';
11
11
 
@@ -3472,7 +3472,13 @@ var Api = {
3472
3472
  query: {
3473
3473
  limit: onlyOneStringQueryParam.optional(),
3474
3474
  cursor_updatedAt: onlyOneStringQueryParam.optional(),
3475
- cursor_id: onlyOneStringQueryParam.optional()
3475
+ cursor_id: onlyOneStringQueryParam.optional(),
3476
+ /**
3477
+ * The proposal the Studio is in, by name: lists that proposal's
3478
+ * chats, everyone's, instead of your own (valbuild/home
3479
+ * `docs/proposals.md`, Flow H).
3480
+ */
3481
+ proposal: onlyOneStringQueryParam.optional()
3476
3482
  },
3477
3483
  cookies: _defineProperty({}, VAL_SESSION_COOKIE, z.string().optional())
3478
3484
  },
@@ -3483,7 +3489,9 @@ var Api = {
3483
3489
  id: z.string(),
3484
3490
  name: z.string().nullable(),
3485
3491
  createdAt: z.string(),
3486
- updatedAt: z.string()
3492
+ updatedAt: z.string(),
3493
+ /** Who is in a proposal's chat, starter first. */
3494
+ authorIds: z.array(z.string()).optional()
3487
3495
  })),
3488
3496
  nextCursor: z.object({
3489
3497
  updatedAt: z.string(),
@@ -3527,6 +3535,8 @@ var Api = {
3527
3535
  status: z.literal(200),
3528
3536
  json: z.object({
3529
3537
  messages: z.array(z.object({
3538
+ /** Who asked, on a user message in a proposal's chat. */
3539
+ authorId: z.string().nullable().optional(),
3530
3540
  role: z.string(),
3531
3541
  content: z.union([z.string(), z.array(z.union([z.object({
3532
3542
  type: z.literal("text"),
@@ -7523,7 +7533,7 @@ function accentRamp(accent) {
7523
7533
  * Empty when nothing is set, which is what makes "no theme" cost nothing.
7524
7534
  */
7525
7535
  function themeCustomProperties(theme) {
7526
- var properties = {};
7536
+ var properties = _objectSpread2({}, theme.proposal ? proposalCustomProperties(theme.proposal) : {});
7527
7537
  if (theme.accent) {
7528
7538
  var ramp = accentRamp(theme.accent);
7529
7539
  if (ramp !== null) {
@@ -7582,6 +7592,50 @@ function themeCustomProperties(theme) {
7582
7592
  return properties;
7583
7593
  }
7584
7594
 
7595
+ /**
7596
+ * The proposal colour's tokens, for light and dark at once.
7597
+ *
7598
+ * The six `--*-proposal` tokens are declared per mode in `index.css`, each as
7599
+ * `var(--theme-proposal-<mode>-<token>, <Val's violet>)`, so the ones written
7600
+ * here are picked up where the mode block is declared -- on every element the
7601
+ * Studio stamps `data-mode` on, which is where these go (see
7602
+ * `themeCustomProperties` on why a `var()` resolves where it is declared).
7603
+ * Both modes' values are written because an element does not know which mode
7604
+ * its subtree will be in by the time it is styled.
7605
+ *
7606
+ * From the same ramp as the accent: the hue is the project's, the lightness
7607
+ * of each step Val's, so the steps chosen here have the contrast Val's violet
7608
+ * had. Text on the filled colour is white unless white would not read, then
7609
+ * the ramp's darkest step. Empty for a value that is not a usable hex, so
7610
+ * Val's violet stays.
7611
+ */
7612
+ function proposalCustomProperties(hex) {
7613
+ var ramp = accentRamp(hex);
7614
+ if (ramp === null) return {};
7615
+ var onFill = function onFill(fill) {
7616
+ return contrastRatio("#ffffff", fill) >= 4.5 ? "#ffffff" : ramp[1000];
7617
+ };
7618
+ var soft = hexToRgb(ramp[500]);
7619
+ var softDark = soft === null ? ramp[900] : "rgba(".concat(soft.map(function (c) {
7620
+ return Math.round(c * 255);
7621
+ }).join(", "), ", 0.16)");
7622
+ return {
7623
+ "--theme-proposal-light-bg": ramp[700],
7624
+ "--theme-proposal-light-bg-hover": ramp[800],
7625
+ "--theme-proposal-light-bg-soft": ramp[100],
7626
+ "--theme-proposal-light-fg": ramp[700],
7627
+ "--theme-proposal-light-fg-on": onFill(ramp[700]),
7628
+ "--theme-proposal-light-border": ramp[400],
7629
+ // 700 in dark too: 600 left white text below AA for some hues.
7630
+ "--theme-proposal-dark-bg": ramp[700],
7631
+ "--theme-proposal-dark-bg-hover": ramp[600],
7632
+ "--theme-proposal-dark-bg-soft": softDark,
7633
+ "--theme-proposal-dark-fg": ramp[300],
7634
+ "--theme-proposal-dark-fg-on": onFill(ramp[700]),
7635
+ "--theme-proposal-dark-border": ramp[700]
7636
+ };
7637
+ }
7638
+
7585
7639
  /**
7586
7640
  * WCAG relative luminance of a six-digit hex.
7587
7641
  *
@@ -8608,4 +8662,4 @@ var messageOf = function messageOf(error) {
8608
8662
  return error instanceof Error ? error.message : String(error);
8609
8663
  };
8610
8664
 
8611
- export { AA_LARGE, AA_TEXT, AnalyticsBeacon, Api, BRAND_CONTRAST_PAIRS, BinaryFileRef, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, ModuleComparison, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchId, PatchJSON, PatchSets, PlanRefusalError, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_FIXES, SELF_CHECK_VERSION, STUDIO_FIXES, SerializedArraySchema, SerializedBooleanSchema, SerializedCodeSchema, SerializedColorSchema, SerializedDateSchema, SerializedDateTimeSchema, SerializedDiscriminatedUnionSchema, SerializedEnumSchema, SerializedFileSchema, SerializedImageSchema, SerializedKeyOfSchema, SerializedLiteralSchema, SerializedLocaleSchema, SerializedNumberSchema, SerializedObjectSchema, SerializedRecordSchema, SerializedRichTextSchema, SerializedRouteSchema, SerializedSchema, SerializedSettingsSchema, SerializedStringSchema, SerializedValViewSchema, SerializedVideoSchema, SharedValConfig, VAL_ENABLE_COOKIE_NAME, VAL_GREEN_RAMP, VAL_SESSION_COOKIE, VAL_STATE_COOKIE, VAL_STUDIO_HEADER, ValCommit, ValDeployment, VideoOptions, VideoStreamOption, WARNING_FIXES, WASM_ENCODED_MIME_TYPES, accentRamp, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, chainHeadOf, checkCompatibility, chooseEncoded, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, enumLocaleTag, explainIncompatible, fallbackMimeType, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, getValDemo, indexModule, isInsidePatchSetPath, isLocaleSchema, isMimeTypeAccepted, isRemoteSchema, isRepairedOnSave, isSchemaSourceFixError, isSkippedSource, isStudioFix, isValidationWarning, isWarningFix, joinSharedChanges, keyOfRecordPath, levenshtein, localeAt, localeMeantBy, memoizePerRequest, newestCommitSha, partitionValidationErrors, performSearch, relativeLuminance, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, schemaErrorsOf, schemaTypesOfPath, selectionClosure, selfCheck, shouldEncodeWithWasm, sideFiles, sideSource, sourcePathOfChild, themeCustomProperties, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension };
8665
+ export { AA_LARGE, AA_TEXT, AnalyticsBeacon, Api, BRAND_CONTRAST_PAIRS, BinaryFileRef, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, ModuleComparison, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchId, PatchJSON, PatchSets, PlanRefusalError, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_FIXES, SELF_CHECK_VERSION, STUDIO_FIXES, SerializedArraySchema, SerializedBooleanSchema, SerializedCodeSchema, SerializedColorSchema, SerializedDateSchema, SerializedDateTimeSchema, SerializedDiscriminatedUnionSchema, SerializedEnumSchema, SerializedFileSchema, SerializedImageSchema, SerializedKeyOfSchema, SerializedLiteralSchema, SerializedLocaleSchema, SerializedNumberSchema, SerializedObjectSchema, SerializedRecordSchema, SerializedRichTextSchema, SerializedRouteSchema, SerializedSchema, SerializedSettingsSchema, SerializedStringSchema, SerializedValViewSchema, SerializedVideoSchema, SharedValConfig, VAL_ENABLE_COOKIE_NAME, VAL_GREEN_RAMP, VAL_SESSION_COOKIE, VAL_STATE_COOKIE, VAL_STUDIO_HEADER, ValCommit, ValDeployment, VideoOptions, VideoStreamOption, WARNING_FIXES, WASM_ENCODED_MIME_TYPES, accentRamp, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, chainHeadOf, checkCompatibility, chooseEncoded, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, enumLocaleTag, explainIncompatible, fallbackMimeType, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, getValDemo, indexModule, isInsidePatchSetPath, isLocaleSchema, isMimeTypeAccepted, isRemoteSchema, isRepairedOnSave, isSchemaSourceFixError, isSkippedSource, isStudioFix, isValidationWarning, isWarningFix, joinSharedChanges, keyOfRecordPath, levenshtein, localeAt, localeMeantBy, memoizePerRequest, newestCommitSha, partitionValidationErrors, performSearch, proposalCustomProperties, relativeLuminance, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, schemaErrorsOf, schemaTypesOfPath, selectionClosure, selfCheck, shouldEncodeWithWasm, sideFiles, sideSource, sourcePathOfChild, themeCustomProperties, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.150.2",
3
+ "version": "0.150.8",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {
@@ -53,7 +53,7 @@
53
53
  "yaml": "^2.9.0",
54
54
  "zod": "^4.4.3",
55
55
  "zod-validation-error": "^5.0.0",
56
- "@valbuild/core": "0.150.2"
56
+ "@valbuild/core": "0.150.3"
57
57
  },
58
58
  "files": [
59
59
  "CHANGELOG.md",
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var slicedToArray = require('../../dist/slicedToArray-62e428df.cjs.dev.js');
6
- var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-d86bb352.cjs.dev.js');
7
- var protocol = require('../../dist/protocol-d8a6efda.cjs.dev.js');
5
+ var slicedToArray = require('../../dist/slicedToArray-c8a29f6b.cjs.dev.js');
6
+ var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-87a33eff.cjs.dev.js');
7
+ var protocol = require('../../dist/protocol-ac1c3ec7.cjs.dev.js');
8
8
  var zod = require('zod');
9
- var proposalProject = require('../../dist/proposalProject-cdc53711.cjs.dev.js');
9
+ var proposalProject = require('../../dist/proposalProject-926f2c68.cjs.dev.js');
10
10
  require('zod-validation-error');
11
11
 
12
12
  /*
@@ -1263,7 +1263,7 @@ function _runStudioDeploy() {
1263
1263
  }]
1264
1264
  });
1265
1265
  case 44:
1266
- declared = [].concat(slicedToArray._toConsumableArray(artifacts.map(function (_ref0) {
1266
+ declared = [].concat(createForOfIteratorHelper._toConsumableArray(artifacts.map(function (_ref0) {
1267
1267
  var key = _ref0.key,
1268
1268
  sha256 = _ref0.sha256,
1269
1269
  bytes = _ref0.bytes;
@@ -1272,7 +1272,7 @@ function _runStudioDeploy() {
1272
1272
  sha256: sha256,
1273
1273
  bytes: bytes
1274
1274
  };
1275
- })), slicedToArray._toConsumableArray(carriedInto(artifacts, carried, (_options$committedFil3 = options.committedFiles) !== null && _options$committedFil3 !== void 0 ? _options$committedFil3 : null)));
1275
+ })), createForOfIteratorHelper._toConsumableArray(carriedInto(artifacts, carried, (_options$committedFil3 = options.committedFiles) !== null && _options$committedFil3 !== void 0 ? _options$committedFil3 : null)));
1276
1276
  _context2.n = 45;
1277
1277
  return runStudioPublish(createForOfIteratorHelper._objectSpread2({
1278
1278
  client: client,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var slicedToArray = require('../../dist/slicedToArray-af50e684.cjs.prod.js');
6
- var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-90e6a8b6.cjs.prod.js');
7
- var protocol = require('../../dist/protocol-1c13de0d.cjs.prod.js');
5
+ var slicedToArray = require('../../dist/slicedToArray-d99b4e2e.cjs.prod.js');
6
+ var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js');
7
+ var protocol = require('../../dist/protocol-4e2a455b.cjs.prod.js');
8
8
  var zod = require('zod');
9
- var proposalProject = require('../../dist/proposalProject-28550146.cjs.prod.js');
9
+ var proposalProject = require('../../dist/proposalProject-fab0c026.cjs.prod.js');
10
10
  require('zod-validation-error');
11
11
 
12
12
  /*
@@ -1263,7 +1263,7 @@ function _runStudioDeploy() {
1263
1263
  }]
1264
1264
  });
1265
1265
  case 44:
1266
- declared = [].concat(slicedToArray._toConsumableArray(artifacts.map(function (_ref0) {
1266
+ declared = [].concat(createForOfIteratorHelper._toConsumableArray(artifacts.map(function (_ref0) {
1267
1267
  var key = _ref0.key,
1268
1268
  sha256 = _ref0.sha256,
1269
1269
  bytes = _ref0.bytes;
@@ -1272,7 +1272,7 @@ function _runStudioDeploy() {
1272
1272
  sha256: sha256,
1273
1273
  bytes: bytes
1274
1274
  };
1275
- })), slicedToArray._toConsumableArray(carriedInto(artifacts, carried, (_options$committedFil3 = options.committedFiles) !== null && _options$committedFil3 !== void 0 ? _options$committedFil3 : null)));
1275
+ })), createForOfIteratorHelper._toConsumableArray(carriedInto(artifacts, carried, (_options$committedFil3 = options.committedFiles) !== null && _options$committedFil3 !== void 0 ? _options$committedFil3 : null)));
1276
1276
  _context2.n = 45;
1277
1277
  return runStudioPublish(createForOfIteratorHelper._objectSpread2({
1278
1278
  client: client,
@@ -1,8 +1,8 @@
1
- import { _ as _inherits, a as _createClass, b as _asyncToGenerator, c as _wrapNativeSuper, d as _regenerator, e as _classCallCheck, f as _callSuper, g as _slicedToArray, h as _toConsumableArray } from '../../dist/slicedToArray-6cd80315.esm.js';
2
- import { _ as _typeof, b as _objectSpread2, c as _defineProperty, a as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-3db5d737.esm.js';
3
- import { p as parseBuildTarget, a as parseDeclare, b as parseArtifacts, c as parseVerify, d as parsePromote, e as parseStatus, f as parseProjectSource, g as parseProblems, h as parsePress, i as parseRequestStatus, j as parseJob, k as parseRenew, l as parseCancel, m as parseDiscard, n as parseNewestCiRun, _ as _objectWithoutProperties } from '../../dist/protocol-3b9ef786.esm.js';
1
+ import { _ as _inherits, a as _createClass, b as _asyncToGenerator, c as _wrapNativeSuper, d as _regenerator, e as _classCallCheck, f as _callSuper, g as _slicedToArray } from '../../dist/slicedToArray-22567815.esm.js';
2
+ import { _ as _typeof, a as _objectSpread2, d as _defineProperty, c as _createForOfIteratorHelper, b as _toConsumableArray } from '../../dist/createForOfIteratorHelper-666a6d17.esm.js';
3
+ import { p as parseBuildTarget, a as parseDeclare, b as parseArtifacts, c as parseVerify, d as parsePromote, e as parseStatus, f as parseProjectSource, g as parseProblems, h as parsePress, i as parseRequestStatus, j as parseJob, k as parseRenew, l as parseCancel, m as parseDiscard, n as parseNewestCiRun, _ as _objectWithoutProperties } from '../../dist/protocol-7ddc1a71.esm.js';
4
4
  import { z } from 'zod';
5
- export { p as proposalProject } from '../../dist/proposalProject-a3d3ad76.esm.js';
5
+ export { p as proposalProject } from '../../dist/proposalProject-689c24cc.esm.js';
6
6
  import 'zod-validation-error';
7
7
 
8
8
  /*
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var slicedToArray = require('../../dist/slicedToArray-62e428df.cjs.dev.js');
6
- var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-d86bb352.cjs.dev.js');
5
+ var slicedToArray = require('../../dist/slicedToArray-c8a29f6b.cjs.dev.js');
6
+ var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-87a33eff.cjs.dev.js');
7
7
  var yaml = require('yaml');
8
- var acquireTypes = require('../../dist/acquireTypes-de10005d.cjs.dev.js');
9
- var proposalProject = require('../../dist/proposalProject-cdc53711.cjs.dev.js');
8
+ var acquireTypes = require('../../dist/acquireTypes-84a4077a.cjs.dev.js');
9
+ var proposalProject = require('../../dist/proposalProject-926f2c68.cjs.dev.js');
10
10
 
11
11
  function _regeneratorValues(e) {
12
12
  if (null != e) {
@@ -365,7 +365,7 @@ function languageServiceFor(ts, fs, config, registry) {
365
365
  * deduplicated as `tsc` does.
366
366
  */
367
367
  function diagnosticsOf(ts, program, config) {
368
- var all = ts.sortAndDeduplicateDiagnostics([].concat(slicedToArray._toConsumableArray(config.errors), slicedToArray._toConsumableArray(ts.getPreEmitDiagnostics(program))));
368
+ var all = ts.sortAndDeduplicateDiagnostics([].concat(createForOfIteratorHelper._toConsumableArray(config.errors), createForOfIteratorHelper._toConsumableArray(ts.getPreEmitDiagnostics(program))));
369
369
  return all.filter(function (d) {
370
370
  return d.category === ts.DiagnosticCategory.Error;
371
371
  }).map(function (d) {
@@ -670,7 +670,7 @@ function _typecheckProject() {
670
670
  return _context2.a(3, 20);
671
671
  case 19:
672
672
  found = diagnosticsOf(ts, program, _config2);
673
- errors.push.apply(errors, slicedToArray._toConsumableArray(found));
673
+ errors.push.apply(errors, createForOfIteratorHelper._toConsumableArray(found));
674
674
  sourceFiles = program.getSourceFiles();
675
675
  programs.push(createForOfIteratorHelper._objectSpread2({
676
676
  tsconfig: relative(_config2.path),
@@ -1222,7 +1222,7 @@ function errorsByFile(errors) {
1222
1222
  } finally {
1223
1223
  _iterator.f();
1224
1224
  }
1225
- return slicedToArray._toConsumableArray(files).sort(function (_ref, _ref2) {
1225
+ return createForOfIteratorHelper._toConsumableArray(files).sort(function (_ref, _ref2) {
1226
1226
  var _ref3 = slicedToArray._slicedToArray(_ref, 1),
1227
1227
  a = _ref3[0];
1228
1228
  var _ref4 = slicedToArray._slicedToArray(_ref2, 1),