@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.
- package/README.md +42 -97
- package/client/dist/valbuild-next-client.cjs.d.ts +2 -2
- package/client/dist/valbuild-next-client.cjs.dev.js +19 -31
- package/client/dist/valbuild-next-client.cjs.prod.js +19 -31
- package/client/dist/valbuild-next-client.esm.js +19 -31
- package/dist/ValApp-50ec1e10.esm.js +53 -0
- package/dist/ValApp-9eefeefd.cjs.js +7 -0
- package/dist/ValApp-9eefeefd.cjs.prod.js +61 -0
- package/dist/ValApp-de156df4.cjs.dev.js +61 -0
- package/dist/ValNextProvider-0b711372.esm.js +430 -0
- package/dist/ValNextProvider-313af7bb.cjs.js +7 -0
- package/dist/ValNextProvider-313af7bb.cjs.prod.js +439 -0
- package/dist/ValNextProvider-abfbfdb5.cjs.dev.js +439 -0
- package/dist/{ValContext-06fe6f7e.cjs.dev.js → ValOverlayContext-55dae3ea.cjs.dev.js} +62 -71
- package/dist/ValOverlayContext-811e9be9.cjs.js +7 -0
- package/dist/{ValContext-12a3eca2.cjs.prod.js → ValOverlayContext-811e9be9.cjs.prod.js} +62 -71
- package/dist/{ValContext-8a8d9183.esm.js → ValOverlayContext-a2fdbce0.esm.js} +59 -69
- package/dist/{asyncToGenerator-0859ab5c.esm.js → asyncToGenerator-5f8c02f3.esm.js} +19 -24
- package/dist/{asyncToGenerator-ba66657c.cjs.dev.js → asyncToGenerator-67a5ff70.cjs.prod.js} +19 -24
- package/dist/{asyncToGenerator-3551d940.cjs.prod.js → asyncToGenerator-6ba61221.cjs.dev.js} +19 -24
- package/dist/declarations/src/ValApp.d.ts +1 -1
- package/dist/declarations/src/ValImage.d.ts +0 -1
- package/dist/declarations/src/ValProvider.d.ts +3 -5
- package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +38 -2
- package/dist/declarations/src/rsc/initValRsc.d.ts +5 -5
- package/dist/declarations/src/server/initValServer.d.ts +1 -1
- package/dist/{objectSpread2-bb9509e8.cjs.dev.js → objectSpread2-3c87fb4f.cjs.prod.js} +12 -18
- package/dist/{objectSpread2-24e737a6.cjs.prod.js → objectSpread2-792eb2c2.cjs.dev.js} +12 -18
- package/dist/{objectSpread2-439bdcdd.esm.js → objectSpread2-c1340c1c.esm.js} +12 -18
- package/dist/{slicedToArray-c03b6356.cjs.dev.js → slicedToArray-44036a76.cjs.dev.js} +5 -5
- package/dist/{slicedToArray-1ff80c5e.esm.js → slicedToArray-aa291011.esm.js} +5 -5
- package/dist/{slicedToArray-1d91551a.cjs.prod.js → slicedToArray-ce613de6.cjs.prod.js} +5 -5
- package/dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js +17 -0
- package/dist/unsupportedIterableToArray-5baabfdc.esm.js +15 -0
- package/dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js +17 -0
- package/dist/valbuild-next.cjs.d.ts +2 -2
- package/dist/valbuild-next.cjs.dev.js +23 -28
- package/dist/valbuild-next.cjs.prod.js +23 -28
- package/dist/valbuild-next.esm.js +23 -28
- package/package.json +6 -5
- package/rsc/dist/valbuild-next-rsc.cjs.d.ts +2 -2
- package/rsc/dist/valbuild-next-rsc.cjs.dev.js +131 -46
- package/rsc/dist/valbuild-next-rsc.cjs.prod.js +131 -43
- package/rsc/dist/valbuild-next-rsc.esm.js +133 -48
- package/server/dist/valbuild-next-server.cjs.d.ts +2 -2
- package/server/dist/valbuild-next-server.cjs.dev.js +8 -8
- package/server/dist/valbuild-next-server.cjs.prod.js +8 -8
- package/server/dist/valbuild-next-server.esm.js +8 -8
- package/client/dist/valbuild-next-client.cjs.d.ts.map +0 -1
- package/dist/ValApp-0ec0c7f3.cjs.js +0 -7
- package/dist/ValApp-0ec0c7f3.cjs.prod.js +0 -34
- package/dist/ValApp-61103149.esm.js +0 -26
- package/dist/ValApp-aff60572.cjs.dev.js +0 -34
- package/dist/ValContext-12a3eca2.cjs.js +0 -7
- package/dist/ValNextProvider-5226c452.cjs.js +0 -7
- package/dist/ValNextProvider-5226c452.cjs.prod.js +0 -101
- package/dist/ValNextProvider-ccbea1bd.cjs.dev.js +0 -101
- package/dist/ValNextProvider-d94cd904.esm.js +0 -92
- package/dist/unsupportedIterableToArray-51bb61c2.esm.js +0 -16
- package/dist/unsupportedIterableToArray-9e97e24a.cjs.dev.js +0 -18
- package/dist/unsupportedIterableToArray-afbea1dd.cjs.prod.js +0 -18
- package/dist/valbuild-next.cjs.d.ts.map +0 -1
- package/rsc/dist/valbuild-next-rsc.cjs.d.ts.map +0 -1
- 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-
|
|
7
|
-
var objectSpread2 = require('./objectSpread2-
|
|
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(
|
|
15
|
-
var
|
|
16
|
-
if (!
|
|
17
|
-
if (Array.isArray(
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
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
|
-
|
|
25
|
-
done:
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
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 (
|
|
33
|
-
throw
|
|
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
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
var o,
|
|
41
|
+
a = !0,
|
|
42
|
+
u = !1;
|
|
43
43
|
return {
|
|
44
44
|
s: function () {
|
|
45
|
-
|
|
45
|
+
t = t.call(r);
|
|
46
46
|
},
|
|
47
47
|
n: function () {
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
return step;
|
|
48
|
+
var r = t.next();
|
|
49
|
+
return a = r.done, r;
|
|
51
50
|
},
|
|
52
|
-
e: function (
|
|
53
|
-
|
|
54
|
-
err = e;
|
|
51
|
+
e: function (r) {
|
|
52
|
+
u = !0, o = r;
|
|
55
53
|
},
|
|
56
54
|
f: function () {
|
|
57
55
|
try {
|
|
58
|
-
|
|
56
|
+
a || null == t.return || t.return();
|
|
59
57
|
} finally {
|
|
60
|
-
if (
|
|
58
|
+
if (u) throw o;
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
};
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
function _classCallCheck(
|
|
67
|
-
if (!(
|
|
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(
|
|
73
|
-
for (var
|
|
74
|
-
var
|
|
75
|
-
|
|
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(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
|
80
|
+
var ValExternalStore = /*#__PURE__*/function () {
|
|
91
81
|
// uncertain whether this is the optimal way of returning
|
|
92
82
|
|
|
93
|
-
function
|
|
83
|
+
function ValExternalStore() {
|
|
94
84
|
var _this = this;
|
|
95
|
-
_classCallCheck(this,
|
|
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(
|
|
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
|
|
173
|
-
|
|
174
|
-
|
|
150
|
+
var ValOverlayContext = /*#__PURE__*/React__default["default"].createContext({
|
|
151
|
+
store: undefined,
|
|
152
|
+
draftMode: false
|
|
175
153
|
});
|
|
176
|
-
|
|
177
|
-
|
|
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.
|
|
181
|
-
exports.
|
|
182
|
-
exports.
|
|
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-
|
|
3
|
-
import {
|
|
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(
|
|
7
|
-
var
|
|
8
|
-
if (!
|
|
9
|
-
if (Array.isArray(
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
done:
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
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 (
|
|
25
|
-
throw
|
|
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
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
var o,
|
|
33
|
+
a = !0,
|
|
34
|
+
u = !1;
|
|
35
35
|
return {
|
|
36
36
|
s: function () {
|
|
37
|
-
|
|
37
|
+
t = t.call(r);
|
|
38
38
|
},
|
|
39
39
|
n: function () {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
return step;
|
|
40
|
+
var r = t.next();
|
|
41
|
+
return a = r.done, r;
|
|
43
42
|
},
|
|
44
|
-
e: function (
|
|
45
|
-
|
|
46
|
-
err = e;
|
|
43
|
+
e: function (r) {
|
|
44
|
+
u = !0, o = r;
|
|
47
45
|
},
|
|
48
46
|
f: function () {
|
|
49
47
|
try {
|
|
50
|
-
|
|
48
|
+
a || null == t.return || t.return();
|
|
51
49
|
} finally {
|
|
52
|
-
if (
|
|
50
|
+
if (u) throw o;
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
};
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
function _classCallCheck(
|
|
59
|
-
if (!(
|
|
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(
|
|
65
|
-
for (var
|
|
66
|
-
var
|
|
67
|
-
|
|
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(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
|
72
|
+
var ValExternalStore = /*#__PURE__*/function () {
|
|
83
73
|
// uncertain whether this is the optimal way of returning
|
|
84
74
|
|
|
85
|
-
function
|
|
75
|
+
function ValExternalStore() {
|
|
86
76
|
var _this = this;
|
|
87
|
-
_classCallCheck(this,
|
|
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(
|
|
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
|
|
165
|
-
|
|
166
|
-
|
|
142
|
+
var ValOverlayContext = /*#__PURE__*/React.createContext({
|
|
143
|
+
store: undefined,
|
|
144
|
+
draftMode: false
|
|
167
145
|
});
|
|
168
|
-
|
|
169
|
-
|
|
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 {
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
303
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
304
304
|
try {
|
|
305
|
-
var
|
|
306
|
-
|
|
307
|
-
} catch (
|
|
308
|
-
|
|
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(
|
|
312
|
+
function _asyncToGenerator(n) {
|
|
318
313
|
return function () {
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
return new Promise(function (
|
|
322
|
-
var
|
|
323
|
-
function _next(
|
|
324
|
-
asyncGeneratorStep(
|
|
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(
|
|
327
|
-
asyncGeneratorStep(
|
|
321
|
+
function _throw(n) {
|
|
322
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
328
323
|
}
|
|
329
|
-
_next(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
305
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
306
306
|
try {
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
} catch (
|
|
310
|
-
|
|
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(
|
|
314
|
+
function _asyncToGenerator(n) {
|
|
320
315
|
return function () {
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
return new Promise(function (
|
|
324
|
-
var
|
|
325
|
-
function _next(
|
|
326
|
-
asyncGeneratorStep(
|
|
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(
|
|
329
|
-
asyncGeneratorStep(
|
|
323
|
+
function _throw(n) {
|
|
324
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
330
325
|
}
|
|
331
|
-
_next(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
305
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
306
306
|
try {
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
} catch (
|
|
310
|
-
|
|
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(
|
|
314
|
+
function _asyncToGenerator(n) {
|
|
320
315
|
return function () {
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
return new Promise(function (
|
|
324
|
-
var
|
|
325
|
-
function _next(
|
|
326
|
-
asyncGeneratorStep(
|
|
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(
|
|
329
|
-
asyncGeneratorStep(
|
|
323
|
+
function _throw(n) {
|
|
324
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
330
325
|
}
|
|
331
|
-
_next(
|
|
326
|
+
_next(void 0);
|
|
332
327
|
});
|
|
333
328
|
};
|
|
334
329
|
}
|
|
@@ -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:
|
|
2
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
3
|
config: import("@valbuild/core").ValConfig;
|
|
6
|
-
disableRefresh?: boolean
|
|
7
|
-
}) =>
|
|
4
|
+
disableRefresh?: boolean;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|