@valbuild/next 0.150.22 → 0.151.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +174 -0
  2. package/README.md +82 -1
  3. package/client/dist/valbuild-next-client.cjs.dev.js +123 -256
  4. package/client/dist/valbuild-next-client.cjs.prod.js +123 -256
  5. package/client/dist/valbuild-next-client.esm.js +122 -255
  6. package/dist/{ValApp-a88a9ded.esm.js → ValApp-69cd599c.esm.js} +3 -3
  7. package/dist/{ValApp-c718d1a6.cjs.dev.js → ValApp-826dca6c.cjs.dev.js} +3 -3
  8. package/dist/ValApp-866089f6.cjs.js +7 -0
  9. package/dist/{ValApp-6c3da222.cjs.prod.js → ValApp-866089f6.cjs.prod.js} +3 -3
  10. package/dist/{ValCanvasBridge-9d221d32.cjs.dev.js → ValCanvasBridge-4b81f653.cjs.dev.js} +46 -13
  11. package/dist/ValCanvasBridge-6f568f1d.cjs.js +7 -0
  12. package/dist/{ValCanvasBridge-134c3ae1.cjs.prod.js → ValCanvasBridge-6f568f1d.cjs.prod.js} +46 -13
  13. package/dist/{ValCanvasBridge-4a5ef73c.esm.js → ValCanvasBridge-badc186b.esm.js} +46 -13
  14. package/dist/ValNextProvider-41d622a7.cjs.js +7 -0
  15. package/dist/{ValNextProvider-35d0b521.cjs.prod.js → ValNextProvider-41d622a7.cjs.prod.js} +124 -234
  16. package/dist/{ValNextProvider-a85a1d33.cjs.dev.js → ValNextProvider-4b9bcfc0.cjs.dev.js} +124 -234
  17. package/dist/{ValNextProvider-df6f351e.esm.js → ValNextProvider-745ed99e.esm.js} +124 -234
  18. package/dist/ValOverlayContext-0c29b6a7.cjs.dev.js +51 -0
  19. package/dist/ValOverlayContext-0f51d111.cjs.js +7 -0
  20. package/dist/ValOverlayContext-0f51d111.cjs.prod.js +51 -0
  21. package/dist/ValOverlayContext-178db68e.esm.js +37 -0
  22. package/dist/ValVideo-02f43a7c.cjs.js +7 -0
  23. package/dist/{ValVideo-dcd2b9f8.cjs.prod.js → ValVideo-02f43a7c.cjs.prod.js} +1 -2
  24. package/dist/{ValVideo-6e410ad8.cjs.dev.js → ValVideo-15e5c4fa.cjs.dev.js} +1 -2
  25. package/dist/{ValVideo-d377f06e.esm.js → ValVideo-8acf31b6.esm.js} +1 -2
  26. package/dist/{createForOfIteratorHelper-d4afcad8.cjs.prod.js → createForOfIteratorHelper-8459fbc7.cjs.prod.js} +1 -1
  27. package/dist/{createForOfIteratorHelper-5758a730.esm.js → createForOfIteratorHelper-9209e9dd.esm.js} +1 -1
  28. package/dist/{createForOfIteratorHelper-0445603c.cjs.dev.js → createForOfIteratorHelper-9c6aa3c7.cjs.dev.js} +1 -1
  29. package/dist/declarations/src/ValProvider.d.ts +1 -0
  30. package/dist/declarations/src/client/initValClient.d.ts +25 -3
  31. package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +1 -0
  32. package/dist/declarations/src/rsc/index.d.ts +1 -0
  33. package/dist/declarations/src/rsc/initValRsc.d.ts +56 -118
  34. package/dist/declarations/src/server/initValServer.d.ts +2 -1
  35. package/dist/{fallbackColors-149dfbc9.esm.js → fallbackColors-0d915c59.esm.js} +1 -1
  36. package/dist/{fallbackColors-080c1bbc.cjs.dev.js → fallbackColors-38f01ad2.cjs.dev.js} +1 -1
  37. package/dist/{fallbackColors-e1d73b36.cjs.prod.js → fallbackColors-d9a7b81e.cjs.prod.js} +1 -1
  38. package/dist/{objectSpread2-13f847a9.cjs.prod.js → objectSpread2-469273e9.cjs.prod.js} +25 -2
  39. package/dist/{objectSpread2-58024783.cjs.dev.js → objectSpread2-58726b14.cjs.dev.js} +25 -2
  40. package/dist/{objectSpread2-60d1bd93.esm.js → objectSpread2-f1f0d77a.esm.js} +24 -1
  41. package/dist/{routeFromVal-64cba2a6.esm.js → routeFromVal-80976677.esm.js} +5 -155
  42. package/dist/{routeFromVal-4df1157a.cjs.dev.js → routeFromVal-a1e0a8be.cjs.dev.js} +3 -159
  43. package/dist/{routeFromVal-812be6ea.cjs.prod.js → routeFromVal-c4dace91.cjs.prod.js} +3 -159
  44. package/dist/{slicedToArray-ce613de6.cjs.prod.js → slicedToArray-0fc63719.cjs.prod.js} +1 -1
  45. package/dist/{slicedToArray-aa291011.esm.js → slicedToArray-5ff32315.esm.js} +1 -1
  46. package/dist/{slicedToArray-44036a76.cjs.dev.js → slicedToArray-ed812733.cjs.dev.js} +1 -1
  47. package/dist/{unsupportedIterableToArray-c8ab77c9.cjs.dev.js → unsupportedIterableToArray-1aadf9fb.cjs.prod.js} +1 -0
  48. package/dist/{unsupportedIterableToArray-0d2087a2.cjs.prod.js → unsupportedIterableToArray-20a9209f.cjs.dev.js} +1 -0
  49. package/dist/{unsupportedIterableToArray-5baabfdc.esm.js → unsupportedIterableToArray-f57eb659.esm.js} +1 -1
  50. package/dist/useHydrated-8e90c7fa.cjs.js +7 -0
  51. package/dist/useHydrated-8e90c7fa.cjs.prod.js +34 -0
  52. package/dist/useHydrated-afcdbb66.esm.js +26 -0
  53. package/dist/useHydrated-ff733777.cjs.dev.js +34 -0
  54. package/dist/valbuild-next.cjs.dev.js +7 -8
  55. package/dist/valbuild-next.cjs.prod.js +7 -8
  56. package/dist/valbuild-next.esm.js +7 -8
  57. package/dist/{version-18c11a6d.cjs.prod.js → version-114c45b6.cjs.prod.js} +1 -1
  58. package/dist/{version-70b7333d.cjs.dev.js → version-cc1bc4e5.cjs.dev.js} +1 -1
  59. package/dist/{version-a2218191.esm.js → version-d8f64e54.esm.js} +1 -1
  60. package/package.json +8 -8
  61. package/rsc/dist/valbuild-next-rsc.cjs.dev.js +243 -872
  62. package/rsc/dist/valbuild-next-rsc.cjs.prod.js +243 -872
  63. package/rsc/dist/valbuild-next-rsc.esm.js +243 -872
  64. package/server/dist/valbuild-next-server.cjs.dev.js +4 -5
  65. package/server/dist/valbuild-next-server.cjs.prod.js +4 -5
  66. package/server/dist/valbuild-next-server.esm.js +4 -5
  67. package/dist/ValApp-6c3da222.cjs.js +0 -7
  68. package/dist/ValCanvasBridge-134c3ae1.cjs.js +0 -7
  69. package/dist/ValNextProvider-35d0b521.cjs.js +0 -7
  70. package/dist/ValOverlayContext-1a45e03d.esm.js +0 -290
  71. package/dist/ValOverlayContext-262899b3.cjs.dev.js +0 -301
  72. package/dist/ValOverlayContext-405ca70c.cjs.js +0 -7
  73. package/dist/ValOverlayContext-405ca70c.cjs.prod.js +0 -301
  74. package/dist/ValVideo-dcd2b9f8.cjs.js +0 -7
  75. package/dist/defineProperty-8951f469.cjs.prod.js +0 -29
  76. package/dist/defineProperty-cca5affa.esm.js +0 -26
  77. package/dist/defineProperty-f90345d7.cjs.dev.js +0 -29
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
4
- var objectSpread2 = require('./objectSpread2-58024783.cjs.dev.js');
5
- var slicedToArray = require('./slicedToArray-44036a76.cjs.dev.js');
3
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-9c6aa3c7.cjs.dev.js');
4
+ var objectSpread2 = require('./objectSpread2-58726b14.cjs.dev.js');
5
+ var slicedToArray = require('./slicedToArray-ed812733.cjs.dev.js');
6
6
  var core = require('@valbuild/core');
7
7
  var client = require('@valbuild/shared/client');
8
8
 
@@ -16,156 +16,6 @@ function _typeof(o) {
16
16
  }, _typeof(o);
17
17
  }
18
18
 
19
- /**
20
- * True when the module's schema is a `.jsonValues()` record/router — i.e. each
21
- * entry value is a lazily-loaded `c.json(() => import(...))` marker. Used by the
22
- * route helpers to load ONLY the matched entry instead of the whole record.
23
- */
24
- function isJsonValuesRecordSchema(schema) {
25
- return schema instanceof core.RecordSchema && schema["executeSerialize"]().jsonValues === true;
26
- }
27
-
28
- /**
29
- * A whole `.jsonValues()` record, as `useVal` and `fetchVal` read it: with
30
- * every entry's content. In the record's own source each entry is a lazy
31
- * `c.json(() => import(...))` marker, so a reader that encodes that source
32
- * renders every entry empty. (`useValKey` and `fetchValKey` read one entry,
33
- * and load only that one.)
34
- *
35
- * `sourcesOf(modulePath)` are what the reader has before the bundle, the first
36
- * that has the record winning: a draft view, then a snapshot (a proposal's saves, or the
37
- * content version the site serves). An entry that is still a marker there is
38
- * taken from a later source that has its content; the rest are named in
39
- * `load`, for the reader to load from the bundle by key and hand to
40
- * {@link fillJsonValuesRecord}.
41
- *
42
- * `null` when the selector is not a `.jsonValues()` module, or its record is
43
- * not an object (a nullable record that is null): there is nothing to fill.
44
- */
45
- function jsonValuesRecordToFill(
46
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
- selector, sourcesOf) {
48
- // Untyped, as `getJsonEntryStegaRoot`'s selector is: a module or a view of
49
- // one, whichever source type it was defined with.
50
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
- var module = core.Internal.resolveViewedModule(selector);
52
- if (!module || !isJsonValuesRecordSchema(core.Internal.getSchema(module))) {
53
- return null;
54
- }
55
- var modulePath = core.Internal.getValPath(module);
56
- if (!modulePath) {
57
- return null;
58
- }
59
- var sources = sourcesOf(modulePath);
60
- var isRecord = function isRecord(value) {
61
- return _typeof(value) === "object" && value !== null && !Array.isArray(value);
62
- };
63
- var chosen = sources.find(function (source) {
64
- return source !== undefined;
65
- });
66
- var base = chosen !== undefined ? chosen : core.Internal.getSource(module);
67
- if (!isRecord(base)) {
68
- return null;
69
- }
70
- var record = {};
71
- var load = [];
72
- var _loop = function _loop() {
73
- var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
74
- key = _Object$entries$_i[0],
75
- entry = _Object$entries$_i[1];
76
- if (!core.Internal.isJson(entry)) {
77
- record[key] = entry;
78
- return 1; // continue
79
- }
80
- var later = sources.slice(sources.indexOf(chosen) + 1).map(function (source) {
81
- return isRecord(source) && Object.prototype.hasOwnProperty.call(source, key) ? source[key] : undefined;
82
- }).find(function (content) {
83
- return content !== undefined && !core.Internal.isJson(content);
84
- });
85
- if (later !== undefined) {
86
- record[key] = later;
87
- } else {
88
- // Left as the marker until it is loaded: see `fillJsonValuesRecord`.
89
- record[key] = entry;
90
- load.push(key);
91
- }
92
- };
93
- for (var _i = 0, _Object$entries = Object.entries(base); _i < _Object$entries.length; _i++) {
94
- if (_loop()) continue;
95
- }
96
- return {
97
- modulePath: modulePath,
98
- module: module,
99
- record: record,
100
- load: load
101
- };
102
- }
103
-
104
- /**
105
- * The record from {@link jsonValuesRecordToFill}, with the entries it named in
106
- * `load` put in: `loaded[key]`, as the bundle's import of that entry gave it.
107
- * An entry the bundle has no import for keeps its marker.
108
- */
109
- function fillJsonValuesRecord(record, loaded) {
110
- var filled = objectSpread2._objectSpread2({}, record);
111
- for (var _i2 = 0, _Object$entries2 = Object.entries(loaded); _i2 < _Object$entries2.length; _i2++) {
112
- var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
113
- key = _Object$entries2$_i[0],
114
- content = _Object$entries2$_i[1];
115
- if (content !== undefined) {
116
- filled[key] = content;
117
- }
118
- }
119
- return filled;
120
- }
121
-
122
- /**
123
- * The bundle's import of one `.jsonValues()` entry, started: `undefined` when
124
- * the module's own source has no marker for `key` to import from.
125
- */
126
- function bundledJsonEntryImport(
127
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
128
- module, key) {
129
- var _Internal$getJsonImpo;
130
- var source = module && core.Internal.getSource(module);
131
- var marker = _typeof(source) === "object" && source !== null && !Array.isArray(source) ? source[key] : undefined;
132
- if (!core.Internal.isJson(marker)) {
133
- return undefined;
134
- }
135
- return (_Internal$getJsonImpo = core.Internal.getJsonImport(marker)) !== null && _Internal$getJsonImpo !== void 0 ? _Internal$getJsonImpo : undefined;
136
- }
137
-
138
- /**
139
- * Builds the `stegaEncode` `root` seed for a single `.jsonValues()` entry, so its
140
- * strings get edit tags. Without a seed, `stegaEncode` on raw entry content is an
141
- * identity transform (the content carries no selector path/schema).
142
- *
143
- * Yields e.g. `/app/support/[slug]/page.val.ts?p="/support/faq"`, so a `title`
144
- * field is tagged `…?p="/support/faq"."title"` — the shape the Studio's
145
- * `findUnloadedJsonEntryKey` walks, so click-to-edit + lazy load line up.
146
- */
147
- function getJsonEntryStegaRoot(
148
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
149
- selector, key
150
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
151
- ) {
152
- var modulePath = selector && core.Internal.getValPath(selector);
153
- if (!modulePath) {
154
- return undefined;
155
- }
156
- var schema = selector && core.Internal.getSchema(selector);
157
- if (!(schema instanceof core.RecordSchema)) {
158
- return undefined;
159
- }
160
- var path = core.Internal.createValPathOfItem(modulePath, key);
161
- if (!path) {
162
- return undefined;
163
- }
164
- return {
165
- path: path,
166
- schema: schema["executeSerialize"]().item
167
- };
168
- }
169
19
  function getValRouteUrlFromVal(resolvedParams, methodName,
170
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
171
21
  path,
@@ -309,11 +159,5 @@ val) {
309
159
  return actualRoute;
310
160
  }
311
161
 
312
- exports._typeof = _typeof;
313
- exports.bundledJsonEntryImport = bundledJsonEntryImport;
314
- exports.fillJsonValuesRecord = fillJsonValuesRecord;
315
- exports.getJsonEntryStegaRoot = getJsonEntryStegaRoot;
316
162
  exports.getValRouteUrlFromVal = getValRouteUrlFromVal;
317
163
  exports.initValRouteFromVal = initValRouteFromVal;
318
- exports.isJsonValuesRecordSchema = isJsonValuesRecordSchema;
319
- exports.jsonValuesRecordToFill = jsonValuesRecordToFill;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
4
- var objectSpread2 = require('./objectSpread2-13f847a9.cjs.prod.js');
5
- var slicedToArray = require('./slicedToArray-ce613de6.cjs.prod.js');
3
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-8459fbc7.cjs.prod.js');
4
+ var objectSpread2 = require('./objectSpread2-469273e9.cjs.prod.js');
5
+ var slicedToArray = require('./slicedToArray-0fc63719.cjs.prod.js');
6
6
  var core = require('@valbuild/core');
7
7
  var client = require('@valbuild/shared/client');
8
8
 
@@ -16,156 +16,6 @@ function _typeof(o) {
16
16
  }, _typeof(o);
17
17
  }
18
18
 
19
- /**
20
- * True when the module's schema is a `.jsonValues()` record/router — i.e. each
21
- * entry value is a lazily-loaded `c.json(() => import(...))` marker. Used by the
22
- * route helpers to load ONLY the matched entry instead of the whole record.
23
- */
24
- function isJsonValuesRecordSchema(schema) {
25
- return schema instanceof core.RecordSchema && schema["executeSerialize"]().jsonValues === true;
26
- }
27
-
28
- /**
29
- * A whole `.jsonValues()` record, as `useVal` and `fetchVal` read it: with
30
- * every entry's content. In the record's own source each entry is a lazy
31
- * `c.json(() => import(...))` marker, so a reader that encodes that source
32
- * renders every entry empty. (`useValKey` and `fetchValKey` read one entry,
33
- * and load only that one.)
34
- *
35
- * `sourcesOf(modulePath)` are what the reader has before the bundle, the first
36
- * that has the record winning: a draft view, then a snapshot (a proposal's saves, or the
37
- * content version the site serves). An entry that is still a marker there is
38
- * taken from a later source that has its content; the rest are named in
39
- * `load`, for the reader to load from the bundle by key and hand to
40
- * {@link fillJsonValuesRecord}.
41
- *
42
- * `null` when the selector is not a `.jsonValues()` module, or its record is
43
- * not an object (a nullable record that is null): there is nothing to fill.
44
- */
45
- function jsonValuesRecordToFill(
46
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
- selector, sourcesOf) {
48
- // Untyped, as `getJsonEntryStegaRoot`'s selector is: a module or a view of
49
- // one, whichever source type it was defined with.
50
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
- var module = core.Internal.resolveViewedModule(selector);
52
- if (!module || !isJsonValuesRecordSchema(core.Internal.getSchema(module))) {
53
- return null;
54
- }
55
- var modulePath = core.Internal.getValPath(module);
56
- if (!modulePath) {
57
- return null;
58
- }
59
- var sources = sourcesOf(modulePath);
60
- var isRecord = function isRecord(value) {
61
- return _typeof(value) === "object" && value !== null && !Array.isArray(value);
62
- };
63
- var chosen = sources.find(function (source) {
64
- return source !== undefined;
65
- });
66
- var base = chosen !== undefined ? chosen : core.Internal.getSource(module);
67
- if (!isRecord(base)) {
68
- return null;
69
- }
70
- var record = {};
71
- var load = [];
72
- var _loop = function _loop() {
73
- var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
74
- key = _Object$entries$_i[0],
75
- entry = _Object$entries$_i[1];
76
- if (!core.Internal.isJson(entry)) {
77
- record[key] = entry;
78
- return 1; // continue
79
- }
80
- var later = sources.slice(sources.indexOf(chosen) + 1).map(function (source) {
81
- return isRecord(source) && Object.prototype.hasOwnProperty.call(source, key) ? source[key] : undefined;
82
- }).find(function (content) {
83
- return content !== undefined && !core.Internal.isJson(content);
84
- });
85
- if (later !== undefined) {
86
- record[key] = later;
87
- } else {
88
- // Left as the marker until it is loaded: see `fillJsonValuesRecord`.
89
- record[key] = entry;
90
- load.push(key);
91
- }
92
- };
93
- for (var _i = 0, _Object$entries = Object.entries(base); _i < _Object$entries.length; _i++) {
94
- if (_loop()) continue;
95
- }
96
- return {
97
- modulePath: modulePath,
98
- module: module,
99
- record: record,
100
- load: load
101
- };
102
- }
103
-
104
- /**
105
- * The record from {@link jsonValuesRecordToFill}, with the entries it named in
106
- * `load` put in: `loaded[key]`, as the bundle's import of that entry gave it.
107
- * An entry the bundle has no import for keeps its marker.
108
- */
109
- function fillJsonValuesRecord(record, loaded) {
110
- var filled = objectSpread2._objectSpread2({}, record);
111
- for (var _i2 = 0, _Object$entries2 = Object.entries(loaded); _i2 < _Object$entries2.length; _i2++) {
112
- var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
113
- key = _Object$entries2$_i[0],
114
- content = _Object$entries2$_i[1];
115
- if (content !== undefined) {
116
- filled[key] = content;
117
- }
118
- }
119
- return filled;
120
- }
121
-
122
- /**
123
- * The bundle's import of one `.jsonValues()` entry, started: `undefined` when
124
- * the module's own source has no marker for `key` to import from.
125
- */
126
- function bundledJsonEntryImport(
127
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
128
- module, key) {
129
- var _Internal$getJsonImpo;
130
- var source = module && core.Internal.getSource(module);
131
- var marker = _typeof(source) === "object" && source !== null && !Array.isArray(source) ? source[key] : undefined;
132
- if (!core.Internal.isJson(marker)) {
133
- return undefined;
134
- }
135
- return (_Internal$getJsonImpo = core.Internal.getJsonImport(marker)) !== null && _Internal$getJsonImpo !== void 0 ? _Internal$getJsonImpo : undefined;
136
- }
137
-
138
- /**
139
- * Builds the `stegaEncode` `root` seed for a single `.jsonValues()` entry, so its
140
- * strings get edit tags. Without a seed, `stegaEncode` on raw entry content is an
141
- * identity transform (the content carries no selector path/schema).
142
- *
143
- * Yields e.g. `/app/support/[slug]/page.val.ts?p="/support/faq"`, so a `title`
144
- * field is tagged `…?p="/support/faq"."title"` — the shape the Studio's
145
- * `findUnloadedJsonEntryKey` walks, so click-to-edit + lazy load line up.
146
- */
147
- function getJsonEntryStegaRoot(
148
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
149
- selector, key
150
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
151
- ) {
152
- var modulePath = selector && core.Internal.getValPath(selector);
153
- if (!modulePath) {
154
- return undefined;
155
- }
156
- var schema = selector && core.Internal.getSchema(selector);
157
- if (!(schema instanceof core.RecordSchema)) {
158
- return undefined;
159
- }
160
- var path = core.Internal.createValPathOfItem(modulePath, key);
161
- if (!path) {
162
- return undefined;
163
- }
164
- return {
165
- path: path,
166
- schema: schema["executeSerialize"]().item
167
- };
168
- }
169
19
  function getValRouteUrlFromVal(resolvedParams, methodName,
170
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
171
21
  path,
@@ -309,11 +159,5 @@ val) {
309
159
  return actualRoute;
310
160
  }
311
161
 
312
- exports._typeof = _typeof;
313
- exports.bundledJsonEntryImport = bundledJsonEntryImport;
314
- exports.fillJsonValuesRecord = fillJsonValuesRecord;
315
- exports.getJsonEntryStegaRoot = getJsonEntryStegaRoot;
316
162
  exports.getValRouteUrlFromVal = getValRouteUrlFromVal;
317
163
  exports.initValRouteFromVal = initValRouteFromVal;
318
- exports.isJsonValuesRecordSchema = isJsonValuesRecordSchema;
319
- exports.jsonValuesRecordToFill = jsonValuesRecordToFill;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var unsupportedIterableToArray = require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
3
+ var unsupportedIterableToArray = require('./unsupportedIterableToArray-1aadf9fb.cjs.prod.js');
4
4
 
5
5
  function _arrayWithHoles(r) {
6
6
  if (Array.isArray(r)) return r;
@@ -1,4 +1,4 @@
1
- import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-5baabfdc.esm.js';
1
+ import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-f57eb659.esm.js';
2
2
 
3
3
  function _arrayWithHoles(r) {
4
4
  if (Array.isArray(r)) return r;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var unsupportedIterableToArray = require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
3
+ var unsupportedIterableToArray = require('./unsupportedIterableToArray-20a9209f.cjs.dev.js');
4
4
 
5
5
  function _arrayWithHoles(r) {
6
6
  if (Array.isArray(r)) return r;
@@ -14,4 +14,5 @@ function _unsupportedIterableToArray(r, a) {
14
14
  }
15
15
  }
16
16
 
17
+ exports._arrayLikeToArray = _arrayLikeToArray;
17
18
  exports._unsupportedIterableToArray = _unsupportedIterableToArray;
@@ -14,4 +14,5 @@ function _unsupportedIterableToArray(r, a) {
14
14
  }
15
15
  }
16
16
 
17
+ exports._arrayLikeToArray = _arrayLikeToArray;
17
18
  exports._unsupportedIterableToArray = _unsupportedIterableToArray;
@@ -12,4 +12,4 @@ function _unsupportedIterableToArray(r, a) {
12
12
  }
13
13
  }
14
14
 
15
- export { _unsupportedIterableToArray as _ };
15
+ export { _unsupportedIterableToArray as _, _arrayLikeToArray as a };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./useHydrated-8e90c7fa.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./useHydrated-8e90c7fa.cjs.dev.js");
7
+ }
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var React = require('react');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefault(React);
11
+
12
+ var subscribeNever = function subscribeNever() {
13
+ return function () {};
14
+ };
15
+
16
+ /**
17
+ * `false` for the server's render and for this component's hydration render,
18
+ * `true` for every render after.
19
+ *
20
+ * Per component, which is the point: React reads `getServerSnapshot` while it
21
+ * hydrates a component and `getSnapshot` otherwise, and re-renders the
22
+ * component right after hydrating it when the two differ. So a component that
23
+ * hydrates late -- a route split out into its own chunk -- still renders its
24
+ * hydration pass as the server did, however long after the rest of the page.
25
+ */
26
+ function useHydrated() {
27
+ return React__default["default"].useSyncExternalStore(subscribeNever, function () {
28
+ return true;
29
+ }, function () {
30
+ return false;
31
+ });
32
+ }
33
+
34
+ exports.useHydrated = useHydrated;
@@ -0,0 +1,26 @@
1
+ 'use client';
2
+ import React from 'react';
3
+
4
+ var subscribeNever = function subscribeNever() {
5
+ return function () {};
6
+ };
7
+
8
+ /**
9
+ * `false` for the server's render and for this component's hydration render,
10
+ * `true` for every render after.
11
+ *
12
+ * Per component, which is the point: React reads `getServerSnapshot` while it
13
+ * hydrates a component and `getSnapshot` otherwise, and re-renders the
14
+ * component right after hydrating it when the two differ. So a component that
15
+ * hydrates late -- a route split out into its own chunk -- still renders its
16
+ * hydration pass as the server did, however long after the rest of the page.
17
+ */
18
+ function useHydrated() {
19
+ return React.useSyncExternalStore(subscribeNever, function () {
20
+ return true;
21
+ }, function () {
22
+ return false;
23
+ });
24
+ }
25
+
26
+ export { useHydrated };
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var React = require('react');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefault(React);
11
+
12
+ var subscribeNever = function subscribeNever() {
13
+ return function () {};
14
+ };
15
+
16
+ /**
17
+ * `false` for the server's render and for this component's hydration render,
18
+ * `true` for every render after.
19
+ *
20
+ * Per component, which is the point: React reads `getServerSnapshot` while it
21
+ * hydrates a component and `getSnapshot` otherwise, and re-renders the
22
+ * component right after hydrating it when the two differ. So a component that
23
+ * hydrates late -- a route split out into its own chunk -- still renders its
24
+ * hydration pass as the server did, however long after the rest of the page.
25
+ */
26
+ function useHydrated() {
27
+ return React__default["default"].useSyncExternalStore(subscribeNever, function () {
28
+ return true;
29
+ }, function () {
30
+ return false;
31
+ });
32
+ }
33
+
34
+ exports.useHydrated = useHydrated;
@@ -3,21 +3,20 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var asyncToGenerator = require('./asyncToGenerator-c3823d62.cjs.dev.js');
6
- var objectSpread2 = require('./objectSpread2-58024783.cjs.dev.js');
6
+ var objectSpread2 = require('./objectSpread2-58726b14.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var objectWithoutProperties = require('./objectWithoutProperties-8f93848f.cjs.dev.js');
10
10
  var internal = require('@valbuild/react/internal');
11
- var ValNextProvider = require('./ValNextProvider-a85a1d33.cjs.dev.js');
11
+ var ValNextProvider = require('./ValNextProvider-4b9bcfc0.cjs.dev.js');
12
12
  var NextImage = require('next/image');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
- var ValVideo = require('./ValVideo-6e410ad8.cjs.dev.js');
15
- var ValApp = require('./ValApp-c718d1a6.cjs.dev.js');
14
+ var ValVideo = require('./ValVideo-15e5c4fa.cjs.dev.js');
15
+ var ValApp = require('./ValApp-826dca6c.cjs.dev.js');
16
16
  var ValModulesClient = require('./ValModulesClient-4ecabf99.cjs.dev.js');
17
- var version = require('./version-70b7333d.cjs.dev.js');
18
- var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
19
- require('./defineProperty-f90345d7.cjs.dev.js');
20
- require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
17
+ var version = require('./version-cc1bc4e5.cjs.dev.js');
18
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-9c6aa3c7.cjs.dev.js');
19
+ require('./unsupportedIterableToArray-20a9209f.cjs.dev.js');
21
20
 
22
21
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
23
22
 
@@ -3,21 +3,20 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var asyncToGenerator = require('./asyncToGenerator-8e5c36c8.cjs.prod.js');
6
- var objectSpread2 = require('./objectSpread2-13f847a9.cjs.prod.js');
6
+ var objectSpread2 = require('./objectSpread2-469273e9.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var objectWithoutProperties = require('./objectWithoutProperties-107dcb46.cjs.prod.js');
10
10
  var internal = require('@valbuild/react/internal');
11
- var ValNextProvider = require('./ValNextProvider-35d0b521.cjs.prod.js');
11
+ var ValNextProvider = require('./ValNextProvider-41d622a7.cjs.prod.js');
12
12
  var NextImage = require('next/image');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
- var ValVideo = require('./ValVideo-dcd2b9f8.cjs.prod.js');
15
- var ValApp = require('./ValApp-6c3da222.cjs.prod.js');
14
+ var ValVideo = require('./ValVideo-02f43a7c.cjs.prod.js');
15
+ var ValApp = require('./ValApp-866089f6.cjs.prod.js');
16
16
  var ValModulesClient = require('./ValModulesClient-10c0721c.cjs.prod.js');
17
- var version = require('./version-18c11a6d.cjs.prod.js');
18
- var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
19
- require('./defineProperty-8951f469.cjs.prod.js');
20
- require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
17
+ var version = require('./version-114c45b6.cjs.prod.js');
18
+ var createForOfIteratorHelper = require('./createForOfIteratorHelper-8459fbc7.cjs.prod.js');
19
+ require('./unsupportedIterableToArray-1aadf9fb.cjs.prod.js');
21
20
 
22
21
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
23
22
 
@@ -1,5 +1,5 @@
1
1
  import { _ as _asyncToGenerator, a as _regenerator } from './asyncToGenerator-500f022f.esm.js';
2
- import { _ as _objectSpread2 } from './objectSpread2-60d1bd93.esm.js';
2
+ import { _ as _objectSpread2 } from './objectSpread2-f1f0d77a.esm.js';
3
3
  import { Internal as Internal$1, initVal as initVal$1 } from '@valbuild/core';
4
4
  import * as core from '@valbuild/core';
5
5
  export { core as expr };
@@ -7,16 +7,15 @@ export { GenericSelector, Schema, VAL_EXTENSION, derefPatch, modules } from '@va
7
7
  import { stegaEncode, attrs, raw, autoTagJSX } from '@valbuild/react/stega';
8
8
  import { d as decodeValPathsOfString, _ as _objectWithoutProperties } from './objectWithoutProperties-2daec22c.esm.js';
9
9
  export { ValRichText } from '@valbuild/react/internal';
10
- import { ValNextProvider } from './ValNextProvider-df6f351e.esm.js';
10
+ import { ValNextProvider } from './ValNextProvider-745ed99e.esm.js';
11
11
  import NextImage from 'next/image';
12
12
  import { jsx } from 'react/jsx-runtime';
13
- export { ValVideo } from './ValVideo-d377f06e.esm.js';
14
- export { ValApp } from './ValApp-a88a9ded.esm.js';
13
+ export { ValVideo } from './ValVideo-8acf31b6.esm.js';
14
+ export { ValApp } from './ValApp-69cd599c.esm.js';
15
15
  export { ValModulesClient, useRegisterValModules } from './ValModulesClient-0dd601a1.esm.js';
16
- import { V as VERSION } from './version-a2218191.esm.js';
17
- import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
18
- import './defineProperty-cca5affa.esm.js';
19
- import './unsupportedIterableToArray-5baabfdc.esm.js';
16
+ import { V as VERSION } from './version-d8f64e54.esm.js';
17
+ import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-9209e9dd.esm.js';
18
+ import './unsupportedIterableToArray-f57eb659.esm.js';
20
19
 
21
20
  function getUnpatchedUnencodedVal(selector) {
22
21
  // It is weird to use stega encode here since we never actually should stega encode,
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.150.22",
17
+ version: "0.151.0",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.150.22",
17
+ version: "0.151.0",
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.22",
15
+ version: "0.151.0",
16
16
  scripts: {
17
17
  typecheck: "tsc --noEmit",
18
18
  test: "jest"
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- "version": "0.150.22",
15
+ "version": "0.151.0",
16
16
  "main": "dist/valbuild-next.cjs.js",
17
17
  "module": "dist/valbuild-next.esm.js",
18
18
  "exports": {
@@ -47,13 +47,13 @@
47
47
  "dependencies": {
48
48
  "client-only": "^0.0.1",
49
49
  "server-only": "^0.0.1",
50
- "@valbuild/language-server": "0.150.22",
51
- "@valbuild/mcp": "0.150.22",
52
- "@valbuild/core": "0.150.3",
53
- "@valbuild/server": "0.150.22",
54
- "@valbuild/react": "0.150.22",
55
- "@valbuild/ui": "0.150.22",
56
- "@valbuild/shared": "0.150.20"
50
+ "@valbuild/core": "0.151.0",
51
+ "@valbuild/language-server": "0.151.0",
52
+ "@valbuild/react": "0.151.0",
53
+ "@valbuild/mcp": "0.151.0",
54
+ "@valbuild/server": "0.151.0",
55
+ "@valbuild/shared": "0.151.0",
56
+ "@valbuild/ui": "0.151.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@testing-library/react": "^16.3.3",