@valbuild/next 0.63.5 → 0.65.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 (64) hide show
  1. package/README.md +42 -97
  2. package/client/dist/valbuild-next-client.cjs.d.ts +2 -2
  3. package/client/dist/valbuild-next-client.cjs.dev.js +19 -31
  4. package/client/dist/valbuild-next-client.cjs.prod.js +19 -31
  5. package/client/dist/valbuild-next-client.esm.js +19 -31
  6. package/dist/ValApp-50ec1e10.esm.js +53 -0
  7. package/dist/ValApp-9eefeefd.cjs.js +7 -0
  8. package/dist/ValApp-9eefeefd.cjs.prod.js +61 -0
  9. package/dist/ValApp-de156df4.cjs.dev.js +61 -0
  10. package/dist/ValNextProvider-0b711372.esm.js +430 -0
  11. package/dist/ValNextProvider-313af7bb.cjs.js +7 -0
  12. package/dist/ValNextProvider-313af7bb.cjs.prod.js +439 -0
  13. package/dist/ValNextProvider-abfbfdb5.cjs.dev.js +439 -0
  14. package/dist/{ValContext-06fe6f7e.cjs.dev.js → ValOverlayContext-55dae3ea.cjs.dev.js} +62 -71
  15. package/dist/ValOverlayContext-811e9be9.cjs.js +7 -0
  16. package/dist/{ValContext-12a3eca2.cjs.prod.js → ValOverlayContext-811e9be9.cjs.prod.js} +62 -71
  17. package/dist/{ValContext-8a8d9183.esm.js → ValOverlayContext-a2fdbce0.esm.js} +59 -69
  18. package/dist/{asyncToGenerator-0859ab5c.esm.js → asyncToGenerator-5f8c02f3.esm.js} +19 -24
  19. package/dist/{asyncToGenerator-ba66657c.cjs.dev.js → asyncToGenerator-67a5ff70.cjs.prod.js} +19 -24
  20. package/dist/{asyncToGenerator-3551d940.cjs.prod.js → asyncToGenerator-6ba61221.cjs.dev.js} +19 -24
  21. package/dist/declarations/src/ValApp.d.ts +1 -1
  22. package/dist/declarations/src/ValImage.d.ts +0 -1
  23. package/dist/declarations/src/ValProvider.d.ts +3 -5
  24. package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +38 -2
  25. package/dist/declarations/src/rsc/initValRsc.d.ts +5 -5
  26. package/dist/declarations/src/server/initValServer.d.ts +1 -1
  27. package/dist/{objectSpread2-bb9509e8.cjs.dev.js → objectSpread2-3c87fb4f.cjs.prod.js} +12 -18
  28. package/dist/{objectSpread2-24e737a6.cjs.prod.js → objectSpread2-792eb2c2.cjs.dev.js} +12 -18
  29. package/dist/{objectSpread2-439bdcdd.esm.js → objectSpread2-c1340c1c.esm.js} +12 -18
  30. package/dist/{slicedToArray-c03b6356.cjs.dev.js → slicedToArray-44036a76.cjs.dev.js} +5 -5
  31. package/dist/{slicedToArray-1ff80c5e.esm.js → slicedToArray-aa291011.esm.js} +5 -5
  32. package/dist/{slicedToArray-1d91551a.cjs.prod.js → slicedToArray-ce613de6.cjs.prod.js} +5 -5
  33. package/dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js +17 -0
  34. package/dist/unsupportedIterableToArray-5baabfdc.esm.js +15 -0
  35. package/dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js +17 -0
  36. package/dist/valbuild-next.cjs.d.ts +2 -2
  37. package/dist/valbuild-next.cjs.dev.js +23 -28
  38. package/dist/valbuild-next.cjs.prod.js +23 -28
  39. package/dist/valbuild-next.esm.js +23 -28
  40. package/package.json +6 -5
  41. package/rsc/dist/valbuild-next-rsc.cjs.d.ts +2 -2
  42. package/rsc/dist/valbuild-next-rsc.cjs.dev.js +131 -46
  43. package/rsc/dist/valbuild-next-rsc.cjs.prod.js +131 -43
  44. package/rsc/dist/valbuild-next-rsc.esm.js +133 -48
  45. package/server/dist/valbuild-next-server.cjs.d.ts +2 -2
  46. package/server/dist/valbuild-next-server.cjs.dev.js +8 -8
  47. package/server/dist/valbuild-next-server.cjs.prod.js +8 -8
  48. package/server/dist/valbuild-next-server.esm.js +8 -8
  49. package/client/dist/valbuild-next-client.cjs.d.ts.map +0 -1
  50. package/dist/ValApp-0ec0c7f3.cjs.js +0 -7
  51. package/dist/ValApp-0ec0c7f3.cjs.prod.js +0 -34
  52. package/dist/ValApp-61103149.esm.js +0 -26
  53. package/dist/ValApp-aff60572.cjs.dev.js +0 -34
  54. package/dist/ValContext-12a3eca2.cjs.js +0 -7
  55. package/dist/ValNextProvider-5226c452.cjs.js +0 -7
  56. package/dist/ValNextProvider-5226c452.cjs.prod.js +0 -101
  57. package/dist/ValNextProvider-ccbea1bd.cjs.dev.js +0 -101
  58. package/dist/ValNextProvider-d94cd904.esm.js +0 -92
  59. package/dist/unsupportedIterableToArray-51bb61c2.esm.js +0 -16
  60. package/dist/unsupportedIterableToArray-9e97e24a.cjs.dev.js +0 -18
  61. package/dist/unsupportedIterableToArray-afbea1dd.cjs.prod.js +0 -18
  62. package/dist/valbuild-next.cjs.d.ts.map +0 -1
  63. package/rsc/dist/valbuild-next-rsc.cjs.d.ts.map +0 -1
  64. package/server/dist/valbuild-next-server.cjs.d.ts.map +0 -1
@@ -3,96 +3,86 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var unsupportedIterableToArray = require('./unsupportedIterableToArray-afbea1dd.cjs.prod.js');
7
- var objectSpread2 = require('./objectSpread2-24e737a6.cjs.prod.js');
6
+ var unsupportedIterableToArray = require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
7
+ var objectSpread2 = require('./objectSpread2-3c87fb4f.cjs.prod.js');
8
8
  var React = require('react');
9
+ var jsxRuntime = require('react/jsx-runtime');
9
10
 
10
11
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
11
12
 
12
13
  var React__default = /*#__PURE__*/_interopDefault(React);
13
14
 
14
- function _createForOfIteratorHelper(o, allowArrayLike) {
15
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
16
- if (!it) {
17
- if (Array.isArray(o) || (it = unsupportedIterableToArray._unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
18
- if (it) o = it;
19
- var i = 0;
20
- var F = function () {};
15
+ function _createForOfIteratorHelper(r, e) {
16
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
17
+ if (!t) {
18
+ if (Array.isArray(r) || (t = unsupportedIterableToArray._unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
19
+ t && (r = t);
20
+ var n = 0,
21
+ F = function () {};
21
22
  return {
22
23
  s: F,
23
24
  n: function () {
24
- if (i >= o.length) return {
25
- done: true
26
- };
27
- return {
28
- done: false,
29
- value: o[i++]
25
+ return n >= r.length ? {
26
+ done: !0
27
+ } : {
28
+ done: !1,
29
+ value: r[n++]
30
30
  };
31
31
  },
32
- e: function (e) {
33
- throw e;
32
+ e: function (r) {
33
+ throw r;
34
34
  },
35
35
  f: F
36
36
  };
37
37
  }
38
38
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
39
39
  }
40
- var normalCompletion = true,
41
- didErr = false,
42
- err;
40
+ var o,
41
+ a = !0,
42
+ u = !1;
43
43
  return {
44
44
  s: function () {
45
- it = it.call(o);
45
+ t = t.call(r);
46
46
  },
47
47
  n: function () {
48
- var step = it.next();
49
- normalCompletion = step.done;
50
- return step;
48
+ var r = t.next();
49
+ return a = r.done, r;
51
50
  },
52
- e: function (e) {
53
- didErr = true;
54
- err = e;
51
+ e: function (r) {
52
+ u = !0, o = r;
55
53
  },
56
54
  f: function () {
57
55
  try {
58
- if (!normalCompletion && it.return != null) it.return();
56
+ a || null == t.return || t.return();
59
57
  } finally {
60
- if (didErr) throw err;
58
+ if (u) throw o;
61
59
  }
62
60
  }
63
61
  };
64
62
  }
65
63
 
66
- function _classCallCheck(instance, Constructor) {
67
- if (!(instance instanceof Constructor)) {
68
- throw new TypeError("Cannot call a class as a function");
69
- }
64
+ function _classCallCheck(a, n) {
65
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
70
66
  }
71
67
 
72
- function _defineProperties(target, props) {
73
- for (var i = 0; i < props.length; i++) {
74
- var descriptor = props[i];
75
- descriptor.enumerable = descriptor.enumerable || false;
76
- descriptor.configurable = true;
77
- if ("value" in descriptor) descriptor.writable = true;
78
- Object.defineProperty(target, objectSpread2.toPropertyKey(descriptor.key), descriptor);
68
+ function _defineProperties(e, r) {
69
+ for (var t = 0; t < r.length; t++) {
70
+ var o = r[t];
71
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, objectSpread2._toPropertyKey(o.key), o);
79
72
  }
80
73
  }
81
- function _createClass(Constructor, protoProps, staticProps) {
82
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
83
- if (staticProps) _defineProperties(Constructor, staticProps);
84
- Object.defineProperty(Constructor, "prototype", {
85
- writable: false
86
- });
87
- return Constructor;
74
+ function _createClass(e, r, t) {
75
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
76
+ writable: !1
77
+ }), e;
88
78
  }
89
79
 
90
- var ValEvents = /*#__PURE__*/function () {
80
+ var ValExternalStore = /*#__PURE__*/function () {
91
81
  // uncertain whether this is the optimal way of returning
92
82
 
93
- function ValEvents() {
83
+ function ValExternalStore() {
94
84
  var _this = this;
95
- _classCallCheck(this, ValEvents);
85
+ _classCallCheck(this, ValExternalStore);
96
86
  objectSpread2._defineProperty(this, "subscribe", function (paths) {
97
87
  return function (listener) {
98
88
  var subscriberId = createSubscriberId(paths);
@@ -123,18 +113,7 @@ var ValEvents = /*#__PURE__*/function () {
123
113
  this.subscribers = new Map();
124
114
  this.listeners = {};
125
115
  }
126
- _createClass(ValEvents, [{
127
- key: "reloadPaths",
128
- value: function reloadPaths(paths) {
129
- var event = new CustomEvent("val-store", {
130
- detail: {
131
- type: "reload-paths",
132
- paths: paths
133
- }
134
- });
135
- window.dispatchEvent(event);
136
- }
137
- }, {
116
+ return _createClass(ValExternalStore, [{
138
117
  key: "update",
139
118
  value: function update(path, source) {
140
119
  var subscriberIds = Array.from(this.subscribers.keys());
@@ -164,19 +143,31 @@ var ValEvents = /*#__PURE__*/function () {
164
143
  }
165
144
  }
166
145
  }]);
167
- return ValEvents;
168
146
  }();
169
147
  function createSubscriberId(paths) {
170
148
  return paths.slice().sort().join("&");
171
149
  }
172
- var ValContext = /*#__PURE__*/React__default["default"].createContext({
173
- valEvents: undefined,
174
- enabled: false
150
+ var ValOverlayContext = /*#__PURE__*/React__default["default"].createContext({
151
+ store: undefined,
152
+ draftMode: false
175
153
  });
176
- var useValEvents = function useValEvents() {
177
- return React__default["default"].useContext(ValContext).valEvents;
154
+ function ValOverlayProvider(_ref) {
155
+ var store = _ref.store,
156
+ draftMode = _ref.draftMode,
157
+ children = _ref.children;
158
+ return /*#__PURE__*/jsxRuntime.jsx(ValOverlayContext.Provider, {
159
+ value: {
160
+ store: store,
161
+ draftMode: draftMode
162
+ },
163
+ children: children
164
+ });
165
+ }
166
+ var useValOverlayContext = function useValOverlayContext() {
167
+ return React__default["default"].useContext(ValOverlayContext);
178
168
  };
179
169
 
180
- exports.ValContext = ValContext;
181
- exports.ValEvents = ValEvents;
182
- exports.useValEvents = useValEvents;
170
+ exports.ValExternalStore = ValExternalStore;
171
+ exports.ValOverlayContext = ValOverlayContext;
172
+ exports.ValOverlayProvider = ValOverlayProvider;
173
+ exports.useValOverlayContext = useValOverlayContext;
@@ -1,90 +1,80 @@
1
1
  'use client';
2
- import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-51bb61c2.esm.js';
3
- import { t as toPropertyKey, _ as _objectSpread2, a as _defineProperty } from './objectSpread2-439bdcdd.esm.js';
2
+ import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-5baabfdc.esm.js';
3
+ import { b as _toPropertyKey, _ as _objectSpread2, a as _defineProperty } from './objectSpread2-c1340c1c.esm.js';
4
4
  import React from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
- function _createForOfIteratorHelper(o, allowArrayLike) {
7
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
8
- if (!it) {
9
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
10
- if (it) o = it;
11
- var i = 0;
12
- var F = function () {};
7
+ function _createForOfIteratorHelper(r, e) {
8
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
9
+ if (!t) {
10
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
11
+ t && (r = t);
12
+ var n = 0,
13
+ F = function () {};
13
14
  return {
14
15
  s: F,
15
16
  n: function () {
16
- if (i >= o.length) return {
17
- done: true
18
- };
19
- return {
20
- done: false,
21
- value: o[i++]
17
+ return n >= r.length ? {
18
+ done: !0
19
+ } : {
20
+ done: !1,
21
+ value: r[n++]
22
22
  };
23
23
  },
24
- e: function (e) {
25
- throw e;
24
+ e: function (r) {
25
+ throw r;
26
26
  },
27
27
  f: F
28
28
  };
29
29
  }
30
30
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
31
31
  }
32
- var normalCompletion = true,
33
- didErr = false,
34
- err;
32
+ var o,
33
+ a = !0,
34
+ u = !1;
35
35
  return {
36
36
  s: function () {
37
- it = it.call(o);
37
+ t = t.call(r);
38
38
  },
39
39
  n: function () {
40
- var step = it.next();
41
- normalCompletion = step.done;
42
- return step;
40
+ var r = t.next();
41
+ return a = r.done, r;
43
42
  },
44
- e: function (e) {
45
- didErr = true;
46
- err = e;
43
+ e: function (r) {
44
+ u = !0, o = r;
47
45
  },
48
46
  f: function () {
49
47
  try {
50
- if (!normalCompletion && it.return != null) it.return();
48
+ a || null == t.return || t.return();
51
49
  } finally {
52
- if (didErr) throw err;
50
+ if (u) throw o;
53
51
  }
54
52
  }
55
53
  };
56
54
  }
57
55
 
58
- function _classCallCheck(instance, Constructor) {
59
- if (!(instance instanceof Constructor)) {
60
- throw new TypeError("Cannot call a class as a function");
61
- }
56
+ function _classCallCheck(a, n) {
57
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
62
58
  }
63
59
 
64
- function _defineProperties(target, props) {
65
- for (var i = 0; i < props.length; i++) {
66
- var descriptor = props[i];
67
- descriptor.enumerable = descriptor.enumerable || false;
68
- descriptor.configurable = true;
69
- if ("value" in descriptor) descriptor.writable = true;
70
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
60
+ function _defineProperties(e, r) {
61
+ for (var t = 0; t < r.length; t++) {
62
+ var o = r[t];
63
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
71
64
  }
72
65
  }
73
- function _createClass(Constructor, protoProps, staticProps) {
74
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
75
- if (staticProps) _defineProperties(Constructor, staticProps);
76
- Object.defineProperty(Constructor, "prototype", {
77
- writable: false
78
- });
79
- return Constructor;
66
+ function _createClass(e, r, t) {
67
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
68
+ writable: !1
69
+ }), e;
80
70
  }
81
71
 
82
- var ValEvents = /*#__PURE__*/function () {
72
+ var ValExternalStore = /*#__PURE__*/function () {
83
73
  // uncertain whether this is the optimal way of returning
84
74
 
85
- function ValEvents() {
75
+ function ValExternalStore() {
86
76
  var _this = this;
87
- _classCallCheck(this, ValEvents);
77
+ _classCallCheck(this, ValExternalStore);
88
78
  _defineProperty(this, "subscribe", function (paths) {
89
79
  return function (listener) {
90
80
  var subscriberId = createSubscriberId(paths);
@@ -115,18 +105,7 @@ var ValEvents = /*#__PURE__*/function () {
115
105
  this.subscribers = new Map();
116
106
  this.listeners = {};
117
107
  }
118
- _createClass(ValEvents, [{
119
- key: "reloadPaths",
120
- value: function reloadPaths(paths) {
121
- var event = new CustomEvent("val-store", {
122
- detail: {
123
- type: "reload-paths",
124
- paths: paths
125
- }
126
- });
127
- window.dispatchEvent(event);
128
- }
129
- }, {
108
+ return _createClass(ValExternalStore, [{
130
109
  key: "update",
131
110
  value: function update(path, source) {
132
111
  var subscriberIds = Array.from(this.subscribers.keys());
@@ -156,17 +135,28 @@ var ValEvents = /*#__PURE__*/function () {
156
135
  }
157
136
  }
158
137
  }]);
159
- return ValEvents;
160
138
  }();
161
139
  function createSubscriberId(paths) {
162
140
  return paths.slice().sort().join("&");
163
141
  }
164
- var ValContext = /*#__PURE__*/React.createContext({
165
- valEvents: undefined,
166
- enabled: false
142
+ var ValOverlayContext = /*#__PURE__*/React.createContext({
143
+ store: undefined,
144
+ draftMode: false
167
145
  });
168
- var useValEvents = function useValEvents() {
169
- return React.useContext(ValContext).valEvents;
146
+ function ValOverlayProvider(_ref) {
147
+ var store = _ref.store,
148
+ draftMode = _ref.draftMode,
149
+ children = _ref.children;
150
+ return /*#__PURE__*/jsx(ValOverlayContext.Provider, {
151
+ value: {
152
+ store: store,
153
+ draftMode: draftMode
154
+ },
155
+ children: children
156
+ });
157
+ }
158
+ var useValOverlayContext = function useValOverlayContext() {
159
+ return React.useContext(ValOverlayContext);
170
160
  };
171
161
 
172
- export { ValContext, ValEvents, useValEvents };
162
+ export { ValExternalStore, ValOverlayContext, ValOverlayProvider, useValOverlayContext };
@@ -106,7 +106,7 @@ function _regeneratorRuntime() {
106
106
  function makeInvokeMethod(e, r, n) {
107
107
  var o = h;
108
108
  return function (i, a) {
109
- if (o === f) throw new Error("Generator is already running");
109
+ if (o === f) throw Error("Generator is already running");
110
110
  if (o === s) {
111
111
  if ("throw" === i) throw a;
112
112
  return {
@@ -248,7 +248,7 @@ function _regeneratorRuntime() {
248
248
  } else if (c) {
249
249
  if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
250
250
  } else {
251
- if (!u) throw new Error("try statement without catch or finally");
251
+ if (!u) throw Error("try statement without catch or finally");
252
252
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
253
253
  }
254
254
  }
@@ -288,7 +288,7 @@ function _regeneratorRuntime() {
288
288
  return o;
289
289
  }
290
290
  }
291
- throw new Error("illegal catch attempt");
291
+ throw Error("illegal catch attempt");
292
292
  },
293
293
  delegateYield: function (e, r, n) {
294
294
  return this.delegate = {
@@ -300,33 +300,28 @@ function _regeneratorRuntime() {
300
300
  }, e;
301
301
  }
302
302
 
303
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
303
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
304
304
  try {
305
- var info = gen[key](arg);
306
- var value = info.value;
307
- } catch (error) {
308
- reject(error);
309
- return;
310
- }
311
- if (info.done) {
312
- resolve(value);
313
- } else {
314
- Promise.resolve(value).then(_next, _throw);
305
+ var i = n[a](c),
306
+ u = i.value;
307
+ } catch (n) {
308
+ return void e(n);
315
309
  }
310
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
316
311
  }
317
- function _asyncToGenerator(fn) {
312
+ function _asyncToGenerator(n) {
318
313
  return function () {
319
- var self = this,
320
- args = arguments;
321
- return new Promise(function (resolve, reject) {
322
- var gen = fn.apply(self, args);
323
- function _next(value) {
324
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
314
+ var t = this,
315
+ e = arguments;
316
+ return new Promise(function (r, o) {
317
+ var a = n.apply(t, e);
318
+ function _next(n) {
319
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
325
320
  }
326
- function _throw(err) {
327
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
321
+ function _throw(n) {
322
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
328
323
  }
329
- _next(undefined);
324
+ _next(void 0);
330
325
  });
331
326
  };
332
327
  }
@@ -108,7 +108,7 @@ function _regeneratorRuntime() {
108
108
  function makeInvokeMethod(e, r, n) {
109
109
  var o = h;
110
110
  return function (i, a) {
111
- if (o === f) throw new Error("Generator is already running");
111
+ if (o === f) throw Error("Generator is already running");
112
112
  if (o === s) {
113
113
  if ("throw" === i) throw a;
114
114
  return {
@@ -250,7 +250,7 @@ function _regeneratorRuntime() {
250
250
  } else if (c) {
251
251
  if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
252
252
  } else {
253
- if (!u) throw new Error("try statement without catch or finally");
253
+ if (!u) throw Error("try statement without catch or finally");
254
254
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
255
255
  }
256
256
  }
@@ -290,7 +290,7 @@ function _regeneratorRuntime() {
290
290
  return o;
291
291
  }
292
292
  }
293
- throw new Error("illegal catch attempt");
293
+ throw Error("illegal catch attempt");
294
294
  },
295
295
  delegateYield: function (e, r, n) {
296
296
  return this.delegate = {
@@ -302,33 +302,28 @@ function _regeneratorRuntime() {
302
302
  }, e;
303
303
  }
304
304
 
305
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
305
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
306
306
  try {
307
- var info = gen[key](arg);
308
- var value = info.value;
309
- } catch (error) {
310
- reject(error);
311
- return;
312
- }
313
- if (info.done) {
314
- resolve(value);
315
- } else {
316
- Promise.resolve(value).then(_next, _throw);
307
+ var i = n[a](c),
308
+ u = i.value;
309
+ } catch (n) {
310
+ return void e(n);
317
311
  }
312
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
318
313
  }
319
- function _asyncToGenerator(fn) {
314
+ function _asyncToGenerator(n) {
320
315
  return function () {
321
- var self = this,
322
- args = arguments;
323
- return new Promise(function (resolve, reject) {
324
- var gen = fn.apply(self, args);
325
- function _next(value) {
326
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
316
+ var t = this,
317
+ e = arguments;
318
+ return new Promise(function (r, o) {
319
+ var a = n.apply(t, e);
320
+ function _next(n) {
321
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
327
322
  }
328
- function _throw(err) {
329
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
323
+ function _throw(n) {
324
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
330
325
  }
331
- _next(undefined);
326
+ _next(void 0);
332
327
  });
333
328
  };
334
329
  }
@@ -108,7 +108,7 @@ function _regeneratorRuntime() {
108
108
  function makeInvokeMethod(e, r, n) {
109
109
  var o = h;
110
110
  return function (i, a) {
111
- if (o === f) throw new Error("Generator is already running");
111
+ if (o === f) throw Error("Generator is already running");
112
112
  if (o === s) {
113
113
  if ("throw" === i) throw a;
114
114
  return {
@@ -250,7 +250,7 @@ function _regeneratorRuntime() {
250
250
  } else if (c) {
251
251
  if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
252
252
  } else {
253
- if (!u) throw new Error("try statement without catch or finally");
253
+ if (!u) throw Error("try statement without catch or finally");
254
254
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
255
255
  }
256
256
  }
@@ -290,7 +290,7 @@ function _regeneratorRuntime() {
290
290
  return o;
291
291
  }
292
292
  }
293
- throw new Error("illegal catch attempt");
293
+ throw Error("illegal catch attempt");
294
294
  },
295
295
  delegateYield: function (e, r, n) {
296
296
  return this.delegate = {
@@ -302,33 +302,28 @@ function _regeneratorRuntime() {
302
302
  }, e;
303
303
  }
304
304
 
305
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
305
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
306
306
  try {
307
- var info = gen[key](arg);
308
- var value = info.value;
309
- } catch (error) {
310
- reject(error);
311
- return;
312
- }
313
- if (info.done) {
314
- resolve(value);
315
- } else {
316
- Promise.resolve(value).then(_next, _throw);
307
+ var i = n[a](c),
308
+ u = i.value;
309
+ } catch (n) {
310
+ return void e(n);
317
311
  }
312
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
318
313
  }
319
- function _asyncToGenerator(fn) {
314
+ function _asyncToGenerator(n) {
320
315
  return function () {
321
- var self = this,
322
- args = arguments;
323
- return new Promise(function (resolve, reject) {
324
- var gen = fn.apply(self, args);
325
- function _next(value) {
326
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
316
+ var t = this,
317
+ e = arguments;
318
+ return new Promise(function (r, o) {
319
+ var a = n.apply(t, e);
320
+ function _next(n) {
321
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
327
322
  }
328
- function _throw(err) {
329
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
323
+ function _throw(n) {
324
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
330
325
  }
331
- _next(undefined);
326
+ _next(void 0);
332
327
  });
333
328
  };
334
329
  }
@@ -1,4 +1,4 @@
1
1
  import { ValConfig } from "@valbuild/core";
2
2
  export declare const ValApp: ({}: {
3
3
  config: ValConfig;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import NextImage from "next/image";
3
2
  import { Image } from "@valbuild/react/stega";
4
3
  export type ValImageProps = Omit<React.ComponentProps<typeof NextImage>, "src" | "srcset" | "layout" | "objectFit" | "objectPosition" | "lazyBoundary" | "lazyRoot"> & {
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
1
  export declare const ValProvider: (props: {
4
- children: import("react").ReactNode | import("react").ReactNode[];
2
+ children: React.ReactNode | React.ReactNode[];
5
3
  config: import("@valbuild/core").ValConfig;
6
- disableRefresh?: boolean | undefined;
7
- }) => string | number | boolean | Iterable<import("react").ReactNode> | import("react").PromiseLikeOfReactNode | import("react/jsx-runtime").JSX.Element | null | undefined;
4
+ disableRefresh?: boolean;
5
+ }) => import("react/jsx-runtime").JSX.Element;