@valbuild/next 0.13.10 → 0.15.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/dist/declarations/src/index.d.ts +5 -6
- package/dist/valbuild-next.cjs.dev.js +22 -383
- package/dist/valbuild-next.cjs.prod.js +22 -383
- package/dist/valbuild-next.esm.js +5 -371
- package/package.json +4 -6
- package/src/index.ts +12 -6
- package/tsconfig.json +5 -1
- package/dist/declarations/src/ValRichText.d.ts +0 -5
- package/dist/declarations/src/autoTagJSX.d.ts +0 -1
- package/dist/declarations/src/fetchVal.d.ts +0 -3
- package/dist/declarations/src/hooks/useVal.d.ts +0 -3
- package/dist/declarations/src/stegaEncode.d.ts +0 -24
- package/src/ValRichText.tsx +0 -179
- package/src/autoTagJSX.ts +0 -77
- package/src/fetchVal.ts +0 -16
- package/src/hooks/useVal.ts +0 -14
- package/src/stegaEncode.ts +0 -76
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./autoTagJSX";
|
|
2
|
-
export { ValProvider } from "@valbuild/react";
|
|
3
|
-
export { useVal } from "./hooks/useVal";
|
|
4
|
-
export { type ValEncodedString } from "./stegaEncode";
|
|
5
1
|
export * from "@valbuild/core";
|
|
6
|
-
export {
|
|
7
|
-
export { ValRichText } from "
|
|
2
|
+
export { ValProvider } from "@valbuild/react";
|
|
3
|
+
export { ValRichText } from "@valbuild/react";
|
|
4
|
+
export { useVal } from "@valbuild/react/stega";
|
|
5
|
+
export { type ValEncodedString } from "@valbuild/react/stega";
|
|
6
|
+
export { fetchVal } from "@valbuild/react/stega";
|
|
@@ -2,393 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
|
7
|
-
var React = require('react');
|
|
8
|
-
var stega = require('@vercel/stega');
|
|
9
|
-
var react = require('@valbuild/react');
|
|
10
5
|
var core = require('@valbuild/core');
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
14
|
-
|
|
15
|
-
var jsxRuntime__default = /*#__PURE__*/_interopDefault(jsxRuntime);
|
|
16
|
-
var jsxRuntimeDev__default = /*#__PURE__*/_interopDefault(jsxRuntimeDev);
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
18
|
-
var parse__default = /*#__PURE__*/_interopDefault(parse);
|
|
19
|
-
|
|
20
|
-
function _arrayWithHoles(arr) {
|
|
21
|
-
if (Array.isArray(arr)) return arr;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _iterableToArrayLimit(arr, i) {
|
|
25
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
26
|
-
if (null != _i) {
|
|
27
|
-
var _s,
|
|
28
|
-
_e,
|
|
29
|
-
_x,
|
|
30
|
-
_r,
|
|
31
|
-
_arr = [],
|
|
32
|
-
_n = !0,
|
|
33
|
-
_d = !1;
|
|
34
|
-
try {
|
|
35
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
36
|
-
if (Object(_i) !== _i) return;
|
|
37
|
-
_n = !1;
|
|
38
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
39
|
-
} catch (err) {
|
|
40
|
-
_d = !0, _e = err;
|
|
41
|
-
} finally {
|
|
42
|
-
try {
|
|
43
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
44
|
-
} finally {
|
|
45
|
-
if (_d) throw _e;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return _arr;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _arrayLikeToArray(arr, len) {
|
|
53
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
54
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
55
|
-
return arr2;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
59
|
-
if (!o) return;
|
|
60
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
61
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
62
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
63
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
64
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function _nonIterableRest() {
|
|
68
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function _slicedToArray(arr, i) {
|
|
72
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function _typeof(obj) {
|
|
76
|
-
"@babel/helpers - typeof";
|
|
77
|
-
|
|
78
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
79
|
-
return typeof obj;
|
|
80
|
-
} : function (obj) {
|
|
81
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
82
|
-
}, _typeof(obj);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
86
|
-
// TODO: think this is not correct, but good enough for now?
|
|
87
|
-
return typeof type === "string";
|
|
88
|
-
};
|
|
89
|
-
var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
90
|
-
var valSources = [];
|
|
91
|
-
if (isIntrinsicElement(type) && props && _typeof(props) === "object") {
|
|
92
|
-
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
|
93
|
-
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
94
|
-
key = _Object$entries$_i[0],
|
|
95
|
-
value = _Object$entries$_i[1];
|
|
96
|
-
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
|
97
|
-
var encodedBits = stega.vercelStegaDecode(value);
|
|
98
|
-
if (!encodedBits || _typeof(encodedBits) !== "object") continue;
|
|
99
|
-
if ("origin" in encodedBits && "data" in encodedBits && _typeof(encodedBits.data) === "object" && encodedBits.data && "valPath" in encodedBits.data) {
|
|
100
|
-
var _encodedBits$data;
|
|
101
|
-
var valPath = encodedBits === null || encodedBits === void 0 ? void 0 : (_encodedBits$data = encodedBits.data) === null || _encodedBits$data === void 0 ? void 0 : _encodedBits$data.valPath;
|
|
102
|
-
if (valPath) {
|
|
103
|
-
console.log("Found encoded valPath", valPath);
|
|
104
|
-
valSources.push(valPath);
|
|
105
|
-
props[key] = stega.vercelStegaSplit(value).cleaned;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (valSources.length > 0) {
|
|
111
|
-
props["data-val-path"] = valSources.join(",");
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
function WrapJsx(jsx) {
|
|
116
|
-
if (typeof jsx !== "function") return jsx;
|
|
117
|
-
return function (type, props) {
|
|
118
|
-
addValPathIfFound(type, props);
|
|
119
|
-
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
120
|
-
rest[_key - 2] = arguments[_key];
|
|
121
|
-
}
|
|
122
|
-
return jsx.call.apply(jsx, [jsx, type, props].concat(rest));
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
var JsxPro = jsxRuntime__default["default"];
|
|
126
|
-
var JsxDev = jsxRuntimeDev__default["default"];
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* createElement _may_ be called by jsx runtime as a fallback in certain cases,
|
|
130
|
-
* so we need to wrap it regardless.
|
|
131
|
-
*
|
|
132
|
-
* The jsx exports depend on the `NODE_ENV` var to ensure the users' bundler doesn't
|
|
133
|
-
* include both, so one of them will be set with `undefined` values.
|
|
134
|
-
*/
|
|
135
|
-
React__default["default"].createElement = WrapJsx(React__default["default"].createElement);
|
|
136
|
-
JsxDev.jsx && ( /* */JsxDev.jsx = WrapJsx(JsxDev.jsx));
|
|
137
|
-
JsxPro.jsx && ( /* */JsxPro.jsx = WrapJsx(JsxPro.jsx));
|
|
138
|
-
JsxDev.jsxs && ( /* */JsxDev.jsxs = WrapJsx(JsxDev.jsxs));
|
|
139
|
-
JsxPro.jsxs && ( /* */JsxPro.jsxs = WrapJsx(JsxPro.jsxs));
|
|
140
|
-
JsxDev.jsxDEV && ( /**/JsxDev.jsxDEV = WrapJsx(JsxDev.jsxDEV));
|
|
141
|
-
JsxPro.jsxDEV && ( /**/JsxPro.jsxDEV = WrapJsx(JsxPro.jsxDEV));
|
|
142
|
-
|
|
143
|
-
function _toPrimitive(input, hint) {
|
|
144
|
-
if (typeof input !== "object" || input === null) return input;
|
|
145
|
-
var prim = input[Symbol.toPrimitive];
|
|
146
|
-
if (prim !== undefined) {
|
|
147
|
-
var res = prim.call(input, hint || "default");
|
|
148
|
-
if (typeof res !== "object") return res;
|
|
149
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
150
|
-
}
|
|
151
|
-
return (hint === "string" ? String : Number)(input);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
function _toPropertyKey(arg) {
|
|
155
|
-
var key = _toPrimitive(arg, "string");
|
|
156
|
-
return typeof key === "symbol" ? key : String(key);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function _defineProperty(obj, key, value) {
|
|
160
|
-
key = _toPropertyKey(key);
|
|
161
|
-
if (key in obj) {
|
|
162
|
-
Object.defineProperty(obj, key, {
|
|
163
|
-
value: value,
|
|
164
|
-
enumerable: true,
|
|
165
|
-
configurable: true,
|
|
166
|
-
writable: true
|
|
167
|
-
});
|
|
168
|
-
} else {
|
|
169
|
-
obj[key] = value;
|
|
170
|
-
}
|
|
171
|
-
return obj;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function ownKeys(object, enumerableOnly) {
|
|
175
|
-
var keys = Object.keys(object);
|
|
176
|
-
if (Object.getOwnPropertySymbols) {
|
|
177
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
178
|
-
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
179
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
180
|
-
})), keys.push.apply(keys, symbols);
|
|
181
|
-
}
|
|
182
|
-
return keys;
|
|
183
|
-
}
|
|
184
|
-
function _objectSpread2(target) {
|
|
185
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
186
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
187
|
-
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
188
|
-
_defineProperty(target, key, source[key]);
|
|
189
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
190
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
return target;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* ValEncodedString is a string that is encoded using steganography.
|
|
198
|
-
*
|
|
199
|
-
* This means that there is a hidden / non-visible object embedded in the string.
|
|
200
|
-
* This object includes a path, which is used to automatically tag
|
|
201
|
-
* where the content comes from for contextual editing.
|
|
202
|
-
*
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
function stegaEncodeVal(val) {
|
|
206
|
-
if (_typeof(val.val) === "object") {
|
|
207
|
-
if (Array.isArray(val)) {
|
|
208
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
209
|
-
return val.map(stegaEncodeVal);
|
|
210
|
-
}
|
|
211
|
-
if (_typeof(val.val) === "object" && val.val && "_type" in val.val && val.val["_type"] === "richtext") {
|
|
212
|
-
return _objectSpread2(_objectSpread2({}, val.val), {}, {
|
|
213
|
-
valPath: core.Internal.getValPath(val)
|
|
214
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
return Object.fromEntries(Object.entries(val).map(function (_ref) {
|
|
219
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
220
|
-
key = _ref2[0],
|
|
221
|
-
value = _ref2[1];
|
|
222
|
-
return [key, stegaEncodeVal(value)];
|
|
223
|
-
}));
|
|
224
|
-
}
|
|
225
|
-
if (typeof val.val === "string") {
|
|
226
|
-
return stega.vercelStegaCombine(val.val, {
|
|
227
|
-
origin: "app.val.build",
|
|
228
|
-
data: {
|
|
229
|
-
valPath: core.Internal.getValPath(val)
|
|
230
|
-
}
|
|
231
|
-
}); // TODO: skip should false at least for URLs? Dates...?
|
|
232
|
-
}
|
|
233
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
234
|
-
return val.val;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
function useVal(selector, locale) {
|
|
238
|
-
return stegaEncodeVal(react.useVal(selector, locale));
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
function fetchVal(selector, locale) {
|
|
242
|
-
return core.Internal.fetchVal(selector, locale).then(function (val) {
|
|
243
|
-
return stegaEncodeVal(val);
|
|
244
|
-
});
|
|
245
|
-
}
|
|
6
|
+
var react = require('@valbuild/react');
|
|
7
|
+
var stega = require('@valbuild/react/stega');
|
|
246
8
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
var children = _ref.children;
|
|
250
|
-
var root = children;
|
|
251
|
-
var path = root.valPath;
|
|
252
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
253
|
-
"data-val-path": path,
|
|
254
|
-
children: root.children.map(function (child, i) {
|
|
255
|
-
var childType = child.type;
|
|
256
|
-
var childPath = "".concat(path, ".").concat(i);
|
|
257
|
-
console.log("'".concat(childType, "', ").concat(childPath));
|
|
258
|
-
switch (childType) {
|
|
259
|
-
case "heading":
|
|
260
|
-
return /*#__PURE__*/jsxRuntime.jsx(HeadingNodeComponent, {
|
|
261
|
-
path: childPath,
|
|
262
|
-
node: child
|
|
263
|
-
}, childPath);
|
|
264
|
-
case "paragraph":
|
|
265
|
-
return /*#__PURE__*/jsxRuntime.jsx(ParagraphNodeComponent, {
|
|
266
|
-
path: childPath,
|
|
267
|
-
node: child
|
|
268
|
-
}, childPath);
|
|
269
|
-
case "list":
|
|
270
|
-
return /*#__PURE__*/jsxRuntime.jsx(ListNodeComponent, {
|
|
271
|
-
path: childPath,
|
|
272
|
-
node: child
|
|
273
|
-
}, childPath);
|
|
274
|
-
default:
|
|
275
|
-
throw Error("Unknown root node type: " + childType);
|
|
276
|
-
}
|
|
277
|
-
})
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
function TextNodeComponent(_ref2) {
|
|
281
|
-
var _parse, _node$format;
|
|
282
|
-
var node = _ref2.node;
|
|
283
|
-
var styleProps = node.style ? (_parse = parse__default["default"](node.style)) !== null && _parse !== void 0 ? _parse : {} : {};
|
|
284
|
-
// TODO: Ugly! We should do this before serializing instead
|
|
285
|
-
if (styleProps["font-family"]) {
|
|
286
|
-
styleProps["fontFamily"] = styleProps["font-family"];
|
|
287
|
-
delete styleProps["font-family"];
|
|
288
|
-
}
|
|
289
|
-
if (styleProps["font-size"]) {
|
|
290
|
-
styleProps["fontSize"] = styleProps["font-size"];
|
|
291
|
-
delete styleProps["font-size"];
|
|
292
|
-
}
|
|
293
|
-
var bitmask = (_node$format = node.format) === null || _node$format === void 0 ? void 0 : _node$format.toString(2);
|
|
294
|
-
var bitmaskOffset = bitmask ? bitmask.length - 1 : 0;
|
|
295
|
-
function isBitOne(bit) {
|
|
296
|
-
if (!bitmask) {
|
|
297
|
-
return false;
|
|
298
|
-
}
|
|
299
|
-
return bitmask.length >= bitmaskOffset - bit && bitmask[bitmaskOffset - bit] === "1";
|
|
300
|
-
}
|
|
301
|
-
if (isBitOne(0)) {
|
|
302
|
-
styleProps["fontWeight"] = "bold";
|
|
303
|
-
}
|
|
304
|
-
if (isBitOne(1)) {
|
|
305
|
-
styleProps["fontStyle"] = "italic";
|
|
306
|
-
}
|
|
307
|
-
if (isBitOne(2)) {
|
|
308
|
-
if (!styleProps["textDecoration"]) {
|
|
309
|
-
styleProps["textDecoration"] = "line-through";
|
|
310
|
-
} else {
|
|
311
|
-
styleProps["textDecoration"] += " line-through";
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
if (isBitOne(3)) {
|
|
315
|
-
if (!styleProps["textDecoration"]) {
|
|
316
|
-
styleProps["textDecoration"] = "underline";
|
|
317
|
-
} else {
|
|
318
|
-
styleProps["textDecoration"] += " underline";
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
322
|
-
style: styleProps,
|
|
323
|
-
children: node.text
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
function HeadingNodeComponent(_ref3) {
|
|
327
|
-
var node = _ref3.node,
|
|
328
|
-
path = _ref3.path;
|
|
329
|
-
return /*#__PURE__*/React.createElement(node.tag, {}, node.children.map(function (child, i) {
|
|
330
|
-
var childPath = "".concat(path, ".").concat(i);
|
|
331
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextNodeComponent, {
|
|
332
|
-
node: child
|
|
333
|
-
}, childPath);
|
|
334
|
-
}));
|
|
335
|
-
}
|
|
336
|
-
function ParagraphNodeComponent(_ref4) {
|
|
337
|
-
var node = _ref4.node,
|
|
338
|
-
path = _ref4.path;
|
|
339
|
-
return /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
340
|
-
children: node.children.map(function (child, i) {
|
|
341
|
-
var childPath = "".concat(path, ".").concat(i);
|
|
342
|
-
switch (child.type) {
|
|
343
|
-
case "text":
|
|
344
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextNodeComponent, {
|
|
345
|
-
node: child
|
|
346
|
-
}, childPath);
|
|
347
|
-
default:
|
|
348
|
-
throw Error("Unknown paragraph node type: " + (child === null || child === void 0 ? void 0 : child.type));
|
|
349
|
-
}
|
|
350
|
-
})
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
function ListNodeComponent(_ref5) {
|
|
354
|
-
var node = _ref5.node,
|
|
355
|
-
path = _ref5.path;
|
|
356
|
-
return /*#__PURE__*/React.createElement(node.tag, {}, node.children.map(function (child, i) {
|
|
357
|
-
var childPath = "".concat(path, ".").concat(i);
|
|
358
|
-
return /*#__PURE__*/jsxRuntime.jsx(ListItemComponent, {
|
|
359
|
-
path: childPath,
|
|
360
|
-
node: child
|
|
361
|
-
}, childPath);
|
|
362
|
-
}));
|
|
363
|
-
}
|
|
364
|
-
function ListItemComponent(_ref6) {
|
|
365
|
-
var node = _ref6.node,
|
|
366
|
-
path = _ref6.path;
|
|
367
|
-
return /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
368
|
-
children: node.children.map(function (child, i) {
|
|
369
|
-
var childPath = "".concat(path, ".").concat(i);
|
|
370
|
-
switch (child.type) {
|
|
371
|
-
case "text":
|
|
372
|
-
return /*#__PURE__*/jsxRuntime.jsx(TextNodeComponent, {
|
|
373
|
-
node: child
|
|
374
|
-
}, childPath);
|
|
375
|
-
default:
|
|
376
|
-
throw Error("Unknown list item node type: " + (child === null || child === void 0 ? void 0 : child.type));
|
|
377
|
-
}
|
|
378
|
-
})
|
|
379
|
-
});
|
|
380
|
-
}
|
|
9
|
+
// NOTE! Side effects:
|
|
10
|
+
stega.autoTagJSX();
|
|
381
11
|
|
|
382
12
|
Object.defineProperty(exports, 'ValProvider', {
|
|
383
|
-
|
|
384
|
-
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return react.ValProvider; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, 'ValRichText', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return react.ValRichText; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, 'fetchVal', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return stega.fetchVal; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, 'useVal', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return stega.useVal; }
|
|
385
27
|
});
|
|
386
|
-
exports.ValRichText = ValRichText;
|
|
387
|
-
exports.fetchVal = fetchVal;
|
|
388
|
-
exports.useVal = useVal;
|
|
389
28
|
Object.keys(core).forEach(function (k) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
29
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return core[k]; }
|
|
32
|
+
});
|
|
394
33
|
});
|