@valbuild/react 0.29.0 → 0.31.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/{ValProviderInternal-fed8d4f2.browser.esm.js → ValProviderInternal-61d82ec0.esm.js} +11 -7
- package/dist/ValProviderInternal-62bd0c14.browser.esm.js +615 -0
- package/dist/ValProviderInternal-757e00dc.cjs.js +7 -0
- package/dist/{ValProviderInternal-11c45b39.cjs.prod.js → ValProviderInternal-757e00dc.cjs.prod.js} +12 -6
- package/dist/{ValProviderInternal-f1bbfabb.cjs.dev.js → ValProviderInternal-d20f3c34.cjs.dev.js} +12 -6
- package/dist/{ValProviderInternal-955b2ced.esm.js → ValProviderInternal-f64d019a.worker.esm.js} +11 -7
- package/dist/ValUI-596c6129.cjs.js +7 -0
- package/dist/{ValUI-c636bbdd.cjs.prod.js → ValUI-596c6129.cjs.prod.js} +4 -7
- package/dist/{ValUI-a5ff7b4f.cjs.dev.js → ValUI-82ba086a.cjs.dev.js} +4 -7
- package/dist/{ValUI-8e4092a8.esm.js → ValUI-c969250a.esm.js} +4 -7
- package/dist/{ValUI-3aefbfd7.browser.esm.js → ValUI-d049362e.browser.esm.js} +4 -7
- package/dist/{ValUI-14d84602.worker.esm.js → ValUI-eb3ed9e3.worker.esm.js} +4 -5
- package/dist/declarations/src/ValProviderInternal.d.ts +2 -2
- package/dist/{defineProperty-034d0378.browser.esm.js → defineProperty-12b5bd29.esm.js} +1 -1
- package/dist/{defineProperty-b209a901.esm.js → defineProperty-a4bf59bc.worker.esm.js} +1 -1
- package/dist/defineProperty-f319cb47.browser.esm.js +32 -0
- package/dist/{slicedToArray-5418adeb.esm.js → slicedToArray-331bebbb.esm.js} +16 -16
- package/dist/{slicedToArray-964e1994.browser.esm.js → slicedToArray-85f6bb43.browser.esm.js} +16 -16
- package/dist/{slicedToArray-5b9980b8.worker.esm.js → slicedToArray-d4c4a4ed.worker.esm.js} +16 -16
- package/dist/valbuild-react.browser.esm.js +2 -7
- package/dist/valbuild-react.cjs.dev.js +28 -9
- package/dist/valbuild-react.cjs.prod.js +28 -9
- package/dist/valbuild-react.esm.js +2 -7
- package/dist/valbuild-react.worker.esm.js +1 -3
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +1 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +1 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +1 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +1 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +1 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +1 -1
- package/package.json +3 -3
- package/stega/dist/valbuild-react-stega.browser.esm.js +2 -2
- package/stega/dist/valbuild-react-stega.cjs.dev.js +1 -1
- package/stega/dist/valbuild-react-stega.cjs.prod.js +1 -1
- package/stega/dist/valbuild-react-stega.esm.js +2 -2
- package/stega/dist/valbuild-react-stega.worker.esm.js +2 -32
- package/dist/ValProviderInternal-4491e75a.worker.esm.js +0 -17
- package/dist/ValUI-c636bbdd.cjs.js +0 -7
- package/dist/{slicedToArray-1fc98f25.cjs.prod.js → slicedToArray-a2a426c7.cjs.prod.js} +15 -15
- package/dist/{slicedToArray-fb0bef7d.cjs.dev.js → slicedToArray-a9d0d9cd.cjs.dev.js} +15 -15
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
|
6
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
6
|
+
var slicedToArray = require('../../dist/slicedToArray-a9d0d9cd.cjs.dev.js');
|
7
7
|
var core = require('@valbuild/core');
|
8
8
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
|
6
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
6
|
+
var slicedToArray = require('../../dist/slicedToArray-a2a426c7.cjs.prod.js');
|
7
7
|
var core = require('@valbuild/core');
|
8
8
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
9
9
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
2
|
-
import {
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-331bebbb.esm.js';
|
3
3
|
import { Internal } from '@valbuild/core';
|
4
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
5
5
|
export * from 'react/jsx-runtime';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-d4c4a4ed.worker.esm.js';
|
3
3
|
import { Internal } from '@valbuild/core';
|
4
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
5
5
|
export * from 'react/jsx-runtime';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/react",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.31.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Val - React internal helpers",
|
6
6
|
"sideEffects": false,
|
@@ -9,8 +9,8 @@
|
|
9
9
|
"test": "jest"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@valbuild/core": "~0.
|
13
|
-
"@valbuild/ui": "~0.
|
12
|
+
"@valbuild/core": "~0.31.0",
|
13
|
+
"@valbuild/ui": "~0.31.0",
|
14
14
|
"@vercel/stega": "^0.1.0",
|
15
15
|
"base64-arraybuffer": "^1.0.2",
|
16
16
|
"style-to-object": "^0.4.1"
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-85f6bb43.browser.esm.js';
|
2
2
|
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
3
3
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
4
4
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
5
5
|
import React from 'react';
|
6
6
|
import { VERCEL_STEGA_REGEX, vercelStegaDecode, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
7
|
-
import {
|
7
|
+
import { _ as _defineProperty } from '../../dist/defineProperty-f319cb47.browser.esm.js';
|
8
8
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
9
9
|
import { parseRichTextSource } from '@valbuild/ui';
|
10
10
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-a9d0d9cd.cjs.dev.js');
|
6
6
|
var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
8
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-a2a426c7.cjs.prod.js');
|
6
6
|
var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
8
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-331bebbb.esm.js';
|
2
2
|
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
3
3
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
4
4
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
5
5
|
import React from 'react';
|
6
6
|
import { VERCEL_STEGA_REGEX, vercelStegaDecode, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
7
|
-
import {
|
7
|
+
import { _ as _defineProperty } from '../../dist/defineProperty-12b5bd29.esm.js';
|
8
8
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
9
9
|
import { parseRichTextSource } from '@valbuild/ui';
|
10
10
|
|
@@ -1,43 +1,13 @@
|
|
1
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-d4c4a4ed.worker.esm.js';
|
2
2
|
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
3
3
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
4
4
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
5
5
|
import React from 'react';
|
6
6
|
import { VERCEL_STEGA_REGEX, vercelStegaDecode, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
7
|
+
import { _ as _defineProperty } from '../../dist/defineProperty-a4bf59bc.worker.esm.js';
|
7
8
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
8
9
|
import { parseRichTextSource } from '@valbuild/ui';
|
9
10
|
|
10
|
-
function _toPrimitive(input, hint) {
|
11
|
-
if (typeof input !== "object" || input === null) return input;
|
12
|
-
var prim = input[Symbol.toPrimitive];
|
13
|
-
if (prim !== undefined) {
|
14
|
-
var res = prim.call(input, hint || "default");
|
15
|
-
if (typeof res !== "object") return res;
|
16
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
17
|
-
}
|
18
|
-
return (hint === "string" ? String : Number)(input);
|
19
|
-
}
|
20
|
-
|
21
|
-
function _toPropertyKey(arg) {
|
22
|
-
var key = _toPrimitive(arg, "string");
|
23
|
-
return typeof key === "symbol" ? key : String(key);
|
24
|
-
}
|
25
|
-
|
26
|
-
function _defineProperty(obj, key, value) {
|
27
|
-
key = _toPropertyKey(key);
|
28
|
-
if (key in obj) {
|
29
|
-
Object.defineProperty(obj, key, {
|
30
|
-
value: value,
|
31
|
-
enumerable: true,
|
32
|
-
configurable: true,
|
33
|
-
writable: true
|
34
|
-
});
|
35
|
-
} else {
|
36
|
-
obj[key] = value;
|
37
|
-
}
|
38
|
-
return obj;
|
39
|
-
}
|
40
|
-
|
41
11
|
var isIntrinsicElement = function isIntrinsicElement(type) {
|
42
12
|
// TODO: think this is not correct, but good enough for now?
|
43
13
|
return typeof type === "string";
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React, { useContext } from 'react';
|
2
|
-
import '@valbuild/core';
|
3
|
-
import './ValUI-14d84602.worker.esm.js';
|
4
|
-
import 'react/jsx-runtime';
|
5
|
-
|
6
|
-
function useValStore() {
|
7
|
-
return useContext(ValContext).valStore;
|
8
|
-
}
|
9
|
-
function useValApi() {
|
10
|
-
return useContext(ValContext).valApi;
|
11
|
-
}
|
12
|
-
var ValContext = /*#__PURE__*/React.createContext({
|
13
|
-
valStore: undefined,
|
14
|
-
valApi: undefined
|
15
|
-
});
|
16
|
-
|
17
|
-
export { useValApi as a, useValStore as u };
|
@@ -1,20 +1,5 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
function _arrayLikeToArray(arr, len) {
|
4
|
-
if (len == null || len > arr.length) len = arr.length;
|
5
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
6
|
-
return arr2;
|
7
|
-
}
|
8
|
-
|
9
|
-
function _unsupportedIterableToArray(o, minLen) {
|
10
|
-
if (!o) return;
|
11
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
12
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
13
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
14
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
15
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
16
|
-
}
|
17
|
-
|
18
3
|
function _arrayWithHoles(arr) {
|
19
4
|
if (Array.isArray(arr)) return arr;
|
20
5
|
}
|
@@ -47,6 +32,21 @@ function _iterableToArrayLimit(r, l) {
|
|
47
32
|
}
|
48
33
|
}
|
49
34
|
|
35
|
+
function _arrayLikeToArray(arr, len) {
|
36
|
+
if (len == null || len > arr.length) len = arr.length;
|
37
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
38
|
+
return arr2;
|
39
|
+
}
|
40
|
+
|
41
|
+
function _unsupportedIterableToArray(o, minLen) {
|
42
|
+
if (!o) return;
|
43
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
44
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
45
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
46
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
47
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
48
|
+
}
|
49
|
+
|
50
50
|
function _nonIterableRest() {
|
51
51
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
52
52
|
}
|
@@ -1,20 +1,5 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
function _arrayLikeToArray(arr, len) {
|
4
|
-
if (len == null || len > arr.length) len = arr.length;
|
5
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
6
|
-
return arr2;
|
7
|
-
}
|
8
|
-
|
9
|
-
function _unsupportedIterableToArray(o, minLen) {
|
10
|
-
if (!o) return;
|
11
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
12
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
13
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
14
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
15
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
16
|
-
}
|
17
|
-
|
18
3
|
function _arrayWithHoles(arr) {
|
19
4
|
if (Array.isArray(arr)) return arr;
|
20
5
|
}
|
@@ -47,6 +32,21 @@ function _iterableToArrayLimit(r, l) {
|
|
47
32
|
}
|
48
33
|
}
|
49
34
|
|
35
|
+
function _arrayLikeToArray(arr, len) {
|
36
|
+
if (len == null || len > arr.length) len = arr.length;
|
37
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
38
|
+
return arr2;
|
39
|
+
}
|
40
|
+
|
41
|
+
function _unsupportedIterableToArray(o, minLen) {
|
42
|
+
if (!o) return;
|
43
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
44
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
45
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
46
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
47
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
48
|
+
}
|
49
|
+
|
50
50
|
function _nonIterableRest() {
|
51
51
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
52
52
|
}
|