@valbuild/next 0.150.7 → 0.150.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @valbuild/next
2
2
 
3
+ ## 0.150.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`fdb0280`](https://github.com/valbuild/val/commit/fdb02809830355e595127814c8e8676fdb0d5279)]:
8
+ - @valbuild/ui@0.150.9
9
+ - @valbuild/react@0.150.9
10
+ - @valbuild/server@0.150.9
11
+ - @valbuild/shared@0.150.8
12
+ - @valbuild/language-server@0.150.9
13
+ - @valbuild/mcp@0.150.9
14
+
15
+ ## 0.150.8
16
+
17
+ ### Patch Changes
18
+
19
+ - [#960](https://github.com/valbuild/val/pull/960) [`5960071`](https://github.com/valbuild/val/commit/59600711af792f489b050ab47bcdc103d7d8c028) Thanks [@freekh](https://github.com/freekh)! - The design tab can point the assistant at anything on the page. Hold ⌥ (Alt) and click any element in the preview, or press **Select** first: the element under the pointer is outlined and named, and the one picked is shown above the assistant and sent with the next message. A **Pages** menu shows any of the site's pages in the preview, and **Publish** publishes the proposal from the tab, the same way its own Studio does. The checks are now a single quiet status beside the proposal's name, the history is behind a button, and the changed files are listed in the Changes view instead of a panel of their own.
20
+
21
+ The picking runs in the proposal's own page, through the canvas bridge in `@valbuild/next` and `@valbuild/tanstack`, so a site needs those packages at this version for picking to work in its design tab.
22
+
23
+ - Updated dependencies [[`5960071`](https://github.com/valbuild/val/commit/59600711af792f489b050ab47bcdc103d7d8c028), [`2a16ffa`](https://github.com/valbuild/val/commit/2a16ffacd1c77bccaa6ccf5f8754b1f9c574d4f2), [`f7d56ec`](https://github.com/valbuild/val/commit/f7d56ecaed8567c0ea2889bbf1ba64844356cb1a)]:
24
+ - @valbuild/shared@0.150.8
25
+ - @valbuild/ui@0.150.8
26
+ - @valbuild/server@0.150.8
27
+ - @valbuild/language-server@0.150.8
28
+ - @valbuild/mcp@0.150.8
29
+ - @valbuild/react@0.150.8
30
+
3
31
  ## 0.150.7
4
32
 
5
33
  ### Patch Changes
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValCanvasBridge-068df772.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValCanvasBridge-068df772.cjs.dev.js");
7
+ }
@@ -40,6 +40,7 @@ var RESCAN_INTERVAL_MS = 5000;
40
40
  * mounted there at all.
41
41
  */
42
42
  function ValCanvasBridge(_ref) {
43
+ var _elementPicking$modif;
43
44
  var draftMode = _ref.draftMode,
44
45
  isRefreshing = _ref.isRefreshing;
45
46
  var _React$useState = React__default["default"].useState(false),
@@ -67,6 +68,17 @@ function ValCanvasBridge(_ref) {
67
68
  // installed once and would otherwise close over the first value forever.
68
69
  var pickingRef = React__default["default"].useRef(false);
69
70
  pickingRef.current = picking;
71
+ /**
72
+ * Picking ANY element (the design tab's `pickElements`), as the studio last
73
+ * said. `null` until it says, which is every studio but the design tab.
74
+ */
75
+ var _React$useState7 = React__default["default"].useState(null),
76
+ _React$useState8 = slicedToArray._slicedToArray(_React$useState7, 2),
77
+ elementPicking = _React$useState8[0],
78
+ setElementPicking = _React$useState8[1];
79
+ var elementPickingActive = React__default["default"].useRef(false);
80
+ elementPickingActive.current = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.active) === true;
81
+ var elementPicker = React__default["default"].useRef(null);
70
82
  var post = React__default["default"].useCallback(function (message) {
71
83
  // `*` as the target origin: the studio and the page share an origin today,
72
84
  // but the frame does not know the parent's origin for certain and naming
@@ -283,6 +295,15 @@ function ValCanvasBridge(_ref) {
283
295
  setPicking(message.picking);
284
296
  return;
285
297
  }
298
+ if (message.type === "pickElements") {
299
+ setElementPicking({
300
+ enabled: message.enabled,
301
+ active: message.active,
302
+ modifier: message.modifier,
303
+ keepPicked: message.keepPicked
304
+ });
305
+ return;
306
+ }
286
307
  if (message.type === "theme") {
287
308
  setSelectionColors({
288
309
  selection: message.selection,
@@ -367,6 +388,54 @@ function ValCanvasBridge(_ref) {
367
388
  };
368
389
  }, [post]);
369
390
 
391
+ /**
392
+ * Picking any element, for the design tab: the page's own elements, which
393
+ * only this side of the frame can reach. The listeners and the outlines are
394
+ * `startElementPicking`'s (`@valbuild/shared`), so both bindings run the
395
+ * same picker; what crosses back is the element described.
396
+ */
397
+ var selectionColorRef = React__default["default"].useRef(selectionColors.selection);
398
+ selectionColorRef.current = selectionColors.selection;
399
+ var pickingEnabled = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.enabled) === true;
400
+ var pickModifier = (_elementPicking$modif = elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.modifier) !== null && _elementPicking$modif !== void 0 ? _elementPicking$modif : "alt";
401
+ React__default["default"].useEffect(function () {
402
+ if (!pickingEnabled) return;
403
+ var picker = client.startElementPicking(document.body, {
404
+ modifier: pickModifier,
405
+ active: function active() {
406
+ return elementPickingActive.current;
407
+ },
408
+ color: selectionColorRef.current,
409
+ onPick: function onPick(element) {
410
+ return post({
411
+ val: client.VAL_CANVAS_MESSAGE,
412
+ type: "elementPicked",
413
+ element: element
414
+ });
415
+ },
416
+ onStop: function onStop() {
417
+ return post({
418
+ val: client.VAL_CANVAS_MESSAGE,
419
+ type: "elementPickingStopped"
420
+ });
421
+ }
422
+ });
423
+ elementPicker.current = picker;
424
+ return function () {
425
+ elementPicker.current = null;
426
+ picker.stop();
427
+ };
428
+ }, [pickingEnabled, pickModifier, post]);
429
+ var keepPicked = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.keepPicked) !== false;
430
+ React__default["default"].useEffect(function () {
431
+ var _elementPicker$curren;
432
+ if (!keepPicked) (_elementPicker$curren = elementPicker.current) === null || _elementPicker$curren === void 0 || _elementPicker$curren.clearPicked();
433
+ }, [keepPicked]);
434
+ React__default["default"].useEffect(function () {
435
+ var _elementPicker$curren2;
436
+ (_elementPicker$curren2 = elementPicker.current) === null || _elementPicker$curren2 === void 0 || _elementPicker$curren2.setColor(selectionColors.selection);
437
+ }, [selectionColors.selection]);
438
+
370
439
  /**
371
440
  * Two-finger gestures, handed to the studio.
372
441
  *
@@ -2,7 +2,7 @@
2
2
  import { _ as _slicedToArray } from './slicedToArray-aa291011.esm.js';
3
3
  import React from 'react';
4
4
  import { Internal } from '@valbuild/core';
5
- import { VAL_CANVAS_MESSAGE, DEFAULT_CANVAS_SELECTION, DEFAULT_CANVAS_SELECTION_SOFT, isValCanvasStudioMessage } from '@valbuild/shared/client';
5
+ import { VAL_CANVAS_MESSAGE, startElementPicking, DEFAULT_CANVAS_SELECTION, DEFAULT_CANVAS_SELECTION_SOFT, isValCanvasStudioMessage } from '@valbuild/shared/client';
6
6
  import { jsx } from 'react/jsx-runtime';
7
7
  import './unsupportedIterableToArray-5baabfdc.esm.js';
8
8
 
@@ -32,6 +32,7 @@ var RESCAN_INTERVAL_MS = 5000;
32
32
  * mounted there at all.
33
33
  */
34
34
  function ValCanvasBridge(_ref) {
35
+ var _elementPicking$modif;
35
36
  var draftMode = _ref.draftMode,
36
37
  isRefreshing = _ref.isRefreshing;
37
38
  var _React$useState = React.useState(false),
@@ -59,6 +60,17 @@ function ValCanvasBridge(_ref) {
59
60
  // installed once and would otherwise close over the first value forever.
60
61
  var pickingRef = React.useRef(false);
61
62
  pickingRef.current = picking;
63
+ /**
64
+ * Picking ANY element (the design tab's `pickElements`), as the studio last
65
+ * said. `null` until it says, which is every studio but the design tab.
66
+ */
67
+ var _React$useState7 = React.useState(null),
68
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
69
+ elementPicking = _React$useState8[0],
70
+ setElementPicking = _React$useState8[1];
71
+ var elementPickingActive = React.useRef(false);
72
+ elementPickingActive.current = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.active) === true;
73
+ var elementPicker = React.useRef(null);
62
74
  var post = React.useCallback(function (message) {
63
75
  // `*` as the target origin: the studio and the page share an origin today,
64
76
  // but the frame does not know the parent's origin for certain and naming
@@ -275,6 +287,15 @@ function ValCanvasBridge(_ref) {
275
287
  setPicking(message.picking);
276
288
  return;
277
289
  }
290
+ if (message.type === "pickElements") {
291
+ setElementPicking({
292
+ enabled: message.enabled,
293
+ active: message.active,
294
+ modifier: message.modifier,
295
+ keepPicked: message.keepPicked
296
+ });
297
+ return;
298
+ }
278
299
  if (message.type === "theme") {
279
300
  setSelectionColors({
280
301
  selection: message.selection,
@@ -359,6 +380,54 @@ function ValCanvasBridge(_ref) {
359
380
  };
360
381
  }, [post]);
361
382
 
383
+ /**
384
+ * Picking any element, for the design tab: the page's own elements, which
385
+ * only this side of the frame can reach. The listeners and the outlines are
386
+ * `startElementPicking`'s (`@valbuild/shared`), so both bindings run the
387
+ * same picker; what crosses back is the element described.
388
+ */
389
+ var selectionColorRef = React.useRef(selectionColors.selection);
390
+ selectionColorRef.current = selectionColors.selection;
391
+ var pickingEnabled = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.enabled) === true;
392
+ var pickModifier = (_elementPicking$modif = elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.modifier) !== null && _elementPicking$modif !== void 0 ? _elementPicking$modif : "alt";
393
+ React.useEffect(function () {
394
+ if (!pickingEnabled) return;
395
+ var picker = startElementPicking(document.body, {
396
+ modifier: pickModifier,
397
+ active: function active() {
398
+ return elementPickingActive.current;
399
+ },
400
+ color: selectionColorRef.current,
401
+ onPick: function onPick(element) {
402
+ return post({
403
+ val: VAL_CANVAS_MESSAGE,
404
+ type: "elementPicked",
405
+ element: element
406
+ });
407
+ },
408
+ onStop: function onStop() {
409
+ return post({
410
+ val: VAL_CANVAS_MESSAGE,
411
+ type: "elementPickingStopped"
412
+ });
413
+ }
414
+ });
415
+ elementPicker.current = picker;
416
+ return function () {
417
+ elementPicker.current = null;
418
+ picker.stop();
419
+ };
420
+ }, [pickingEnabled, pickModifier, post]);
421
+ var keepPicked = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.keepPicked) !== false;
422
+ React.useEffect(function () {
423
+ var _elementPicker$curren;
424
+ if (!keepPicked) (_elementPicker$curren = elementPicker.current) === null || _elementPicker$curren === void 0 || _elementPicker$curren.clearPicked();
425
+ }, [keepPicked]);
426
+ React.useEffect(function () {
427
+ var _elementPicker$curren2;
428
+ (_elementPicker$curren2 = elementPicker.current) === null || _elementPicker$curren2 === void 0 || _elementPicker$curren2.setColor(selectionColors.selection);
429
+ }, [selectionColors.selection]);
430
+
362
431
  /**
363
432
  * Two-finger gestures, handed to the studio.
364
433
  *
@@ -40,6 +40,7 @@ var RESCAN_INTERVAL_MS = 5000;
40
40
  * mounted there at all.
41
41
  */
42
42
  function ValCanvasBridge(_ref) {
43
+ var _elementPicking$modif;
43
44
  var draftMode = _ref.draftMode,
44
45
  isRefreshing = _ref.isRefreshing;
45
46
  var _React$useState = React__default["default"].useState(false),
@@ -67,6 +68,17 @@ function ValCanvasBridge(_ref) {
67
68
  // installed once and would otherwise close over the first value forever.
68
69
  var pickingRef = React__default["default"].useRef(false);
69
70
  pickingRef.current = picking;
71
+ /**
72
+ * Picking ANY element (the design tab's `pickElements`), as the studio last
73
+ * said. `null` until it says, which is every studio but the design tab.
74
+ */
75
+ var _React$useState7 = React__default["default"].useState(null),
76
+ _React$useState8 = slicedToArray._slicedToArray(_React$useState7, 2),
77
+ elementPicking = _React$useState8[0],
78
+ setElementPicking = _React$useState8[1];
79
+ var elementPickingActive = React__default["default"].useRef(false);
80
+ elementPickingActive.current = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.active) === true;
81
+ var elementPicker = React__default["default"].useRef(null);
70
82
  var post = React__default["default"].useCallback(function (message) {
71
83
  // `*` as the target origin: the studio and the page share an origin today,
72
84
  // but the frame does not know the parent's origin for certain and naming
@@ -283,6 +295,15 @@ function ValCanvasBridge(_ref) {
283
295
  setPicking(message.picking);
284
296
  return;
285
297
  }
298
+ if (message.type === "pickElements") {
299
+ setElementPicking({
300
+ enabled: message.enabled,
301
+ active: message.active,
302
+ modifier: message.modifier,
303
+ keepPicked: message.keepPicked
304
+ });
305
+ return;
306
+ }
286
307
  if (message.type === "theme") {
287
308
  setSelectionColors({
288
309
  selection: message.selection,
@@ -367,6 +388,54 @@ function ValCanvasBridge(_ref) {
367
388
  };
368
389
  }, [post]);
369
390
 
391
+ /**
392
+ * Picking any element, for the design tab: the page's own elements, which
393
+ * only this side of the frame can reach. The listeners and the outlines are
394
+ * `startElementPicking`'s (`@valbuild/shared`), so both bindings run the
395
+ * same picker; what crosses back is the element described.
396
+ */
397
+ var selectionColorRef = React__default["default"].useRef(selectionColors.selection);
398
+ selectionColorRef.current = selectionColors.selection;
399
+ var pickingEnabled = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.enabled) === true;
400
+ var pickModifier = (_elementPicking$modif = elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.modifier) !== null && _elementPicking$modif !== void 0 ? _elementPicking$modif : "alt";
401
+ React__default["default"].useEffect(function () {
402
+ if (!pickingEnabled) return;
403
+ var picker = client.startElementPicking(document.body, {
404
+ modifier: pickModifier,
405
+ active: function active() {
406
+ return elementPickingActive.current;
407
+ },
408
+ color: selectionColorRef.current,
409
+ onPick: function onPick(element) {
410
+ return post({
411
+ val: client.VAL_CANVAS_MESSAGE,
412
+ type: "elementPicked",
413
+ element: element
414
+ });
415
+ },
416
+ onStop: function onStop() {
417
+ return post({
418
+ val: client.VAL_CANVAS_MESSAGE,
419
+ type: "elementPickingStopped"
420
+ });
421
+ }
422
+ });
423
+ elementPicker.current = picker;
424
+ return function () {
425
+ elementPicker.current = null;
426
+ picker.stop();
427
+ };
428
+ }, [pickingEnabled, pickModifier, post]);
429
+ var keepPicked = (elementPicking === null || elementPicking === void 0 ? void 0 : elementPicking.keepPicked) !== false;
430
+ React__default["default"].useEffect(function () {
431
+ var _elementPicker$curren;
432
+ if (!keepPicked) (_elementPicker$curren = elementPicker.current) === null || _elementPicker$curren === void 0 || _elementPicker$curren.clearPicked();
433
+ }, [keepPicked]);
434
+ React__default["default"].useEffect(function () {
435
+ var _elementPicker$curren2;
436
+ (_elementPicker$curren2 = elementPicker.current) === null || _elementPicker$curren2 === void 0 || _elementPicker$curren2.setColor(selectionColors.selection);
437
+ }, [selectionColors.selection]);
438
+
370
439
  /**
371
440
  * Two-finger gestures, handed to the studio.
372
441
  *
@@ -16,7 +16,7 @@ var stega = require('@valbuild/react/stega');
16
16
  var fallbackColors = require('./fallbackColors-e1d73b36.cjs.prod.js');
17
17
  var client = require('@valbuild/shared/client');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
19
- var ValCanvasBridge = require('./ValCanvasBridge-c790b144.cjs.prod.js');
19
+ var ValCanvasBridge = require('./ValCanvasBridge-068df772.cjs.prod.js');
20
20
  var jsxRuntime = require('react/jsx-runtime');
21
21
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
22
22
  require('./defineProperty-8951f469.cjs.prod.js');
@@ -16,7 +16,7 @@ var stega = require('@valbuild/react/stega');
16
16
  var fallbackColors = require('./fallbackColors-080c1bbc.cjs.dev.js');
17
17
  var client = require('@valbuild/shared/client');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
19
- var ValCanvasBridge = require('./ValCanvasBridge-39f6f408.cjs.dev.js');
19
+ var ValCanvasBridge = require('./ValCanvasBridge-b35fc1db.cjs.dev.js');
20
20
  var jsxRuntime = require('react/jsx-runtime');
21
21
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
22
22
  require('./defineProperty-f90345d7.cjs.dev.js');
@@ -12,7 +12,7 @@ import { SET_AUTO_TAG_JSX_ENABLED } from '@valbuild/react/stega';
12
12
  import { p as prefixStyles, u as useConfigStorageSave, f as floatDarkBg, d as floatLightBg, v as valPrefixedClass, c as cn } from './fallbackColors-149dfbc9.esm.js';
13
13
  import { VAL_THEME_SESSION_STORAGE_KEY, isValCanvasFrame } from '@valbuild/shared/client';
14
14
  import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
15
- import { ValCanvasBridge } from './ValCanvasBridge-df3d3df2.esm.js';
15
+ import { ValCanvasBridge } from './ValCanvasBridge-76317241.esm.js';
16
16
  import { jsxs, jsx } from 'react/jsx-runtime';
17
17
  import './unsupportedIterableToArray-5baabfdc.esm.js';
18
18
  import './defineProperty-cca5affa.esm.js';
@@ -14,7 +14,7 @@ var jsxRuntime = require('react/jsx-runtime');
14
14
  var ValVideo = require('./ValVideo-6e410ad8.cjs.dev.js');
15
15
  var ValApp = require('./ValApp-c718d1a6.cjs.dev.js');
16
16
  var ValModulesClient = require('./ValModulesClient-4ecabf99.cjs.dev.js');
17
- var version = require('./version-bb8c0590.cjs.dev.js');
17
+ var version = require('./version-1463b683.cjs.dev.js');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
19
19
  require('./defineProperty-f90345d7.cjs.dev.js');
20
20
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
@@ -14,7 +14,7 @@ var jsxRuntime = require('react/jsx-runtime');
14
14
  var ValVideo = require('./ValVideo-dcd2b9f8.cjs.prod.js');
15
15
  var ValApp = require('./ValApp-6c3da222.cjs.prod.js');
16
16
  var ValModulesClient = require('./ValModulesClient-10c0721c.cjs.prod.js');
17
- var version = require('./version-f5b5ae20.cjs.prod.js');
17
+ var version = require('./version-ebc8f4c7.cjs.prod.js');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
19
19
  require('./defineProperty-8951f469.cjs.prod.js');
20
20
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
@@ -13,7 +13,7 @@ import { jsx } from 'react/jsx-runtime';
13
13
  export { ValVideo } from './ValVideo-d377f06e.esm.js';
14
14
  export { ValApp } from './ValApp-a88a9ded.esm.js';
15
15
  export { ValModulesClient, useRegisterValModules } from './ValModulesClient-0dd601a1.esm.js';
16
- import { V as VERSION } from './version-4b7952f5.esm.js';
16
+ import { V as VERSION } from './version-5fa78ad3.esm.js';
17
17
  import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
18
18
  import './defineProperty-cca5affa.esm.js';
19
19
  import './unsupportedIterableToArray-5baabfdc.esm.js';
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.150.7",
17
+ version: "0.150.9",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -12,7 +12,7 @@ var packageJson = {
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- version: "0.150.7",
15
+ version: "0.150.9",
16
16
  scripts: {
17
17
  typecheck: "tsc --noEmit",
18
18
  test: "jest"
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.150.7",
17
+ version: "0.150.9",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- "version": "0.150.7",
15
+ "version": "0.150.9",
16
16
  "main": "dist/valbuild-next.cjs.js",
17
17
  "module": "dist/valbuild-next.esm.js",
18
18
  "exports": {
@@ -48,12 +48,12 @@
48
48
  "client-only": "^0.0.1",
49
49
  "server-only": "^0.0.1",
50
50
  "@valbuild/core": "0.150.3",
51
- "@valbuild/language-server": "0.150.5",
52
- "@valbuild/react": "0.150.7",
53
- "@valbuild/server": "0.150.5",
54
- "@valbuild/mcp": "0.150.5",
55
- "@valbuild/shared": "0.150.3",
56
- "@valbuild/ui": "0.150.5"
51
+ "@valbuild/language-server": "0.150.9",
52
+ "@valbuild/react": "0.150.9",
53
+ "@valbuild/mcp": "0.150.9",
54
+ "@valbuild/server": "0.150.9",
55
+ "@valbuild/shared": "0.150.8",
56
+ "@valbuild/ui": "0.150.9"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@testing-library/react": "^16.3.3",
@@ -12,7 +12,7 @@ var core = require('@valbuild/core');
12
12
  var React = require('react');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
  var server = require('@valbuild/server');
15
- var version = require('../../dist/version-bb8c0590.cjs.dev.js');
15
+ var version = require('../../dist/version-1463b683.cjs.dev.js');
16
16
  require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
17
17
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
18
18
  require('../../dist/slicedToArray-44036a76.cjs.dev.js');
@@ -12,7 +12,7 @@ var core = require('@valbuild/core');
12
12
  var React = require('react');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
  var server = require('@valbuild/server');
15
- var version = require('../../dist/version-f5b5ae20.cjs.prod.js');
15
+ var version = require('../../dist/version-ebc8f4c7.cjs.prod.js');
16
16
  require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
17
17
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
18
18
  require('../../dist/slicedToArray-ce613de6.cjs.prod.js');
@@ -8,7 +8,7 @@ import { Internal } from '@valbuild/core';
8
8
  import { cache } from 'react';
9
9
  import { VAL_SESSION_COOKIE, memoizePerRequest } from '@valbuild/shared/internal';
10
10
  import { createValServer } from '@valbuild/server';
11
- import { V as VERSION } from '../../dist/version-4b7952f5.esm.js';
11
+ import { V as VERSION } from '../../dist/version-5fa78ad3.esm.js';
12
12
  import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
13
13
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
14
14
  import '../../dist/slicedToArray-aa291011.esm.js';
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-58024783.cjs.dev.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-bb8c0590.cjs.dev.js');
12
+ var version = require('../../dist/version-1463b683.cjs.dev.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
15
15
  require('../../dist/defineProperty-f90345d7.cjs.dev.js');
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-13f847a9.cjs.prod.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-f5b5ae20.cjs.prod.js');
12
+ var version = require('../../dist/version-ebc8f4c7.cjs.prod.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
15
15
  require('../../dist/defineProperty-8951f469.cjs.prod.js');
@@ -6,7 +6,7 @@ import { Internal } from '@valbuild/core';
6
6
  import { createValApiRouter, createValServer } from '@valbuild/server';
7
7
  export { createPrettierFormatter } from '@valbuild/server';
8
8
  import { NextResponse } from 'next/server';
9
- import { V as VERSION } from '../../dist/version-4b7952f5.esm.js';
9
+ import { V as VERSION } from '../../dist/version-5fa78ad3.esm.js';
10
10
  import { initValMcp as initValMcp$1 } from '@valbuild/mcp';
11
11
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
12
12
  import '../../dist/defineProperty-cca5affa.esm.js';
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValCanvasBridge-c790b144.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValCanvasBridge-c790b144.cjs.dev.js");
7
- }