@valbuild/react 0.148.1 → 0.148.3
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/CHANGELOG.md +40 -0
- package/analytics/dist/valbuild-react-analytics.browser.esm.js +950 -0
- package/analytics/dist/valbuild-react-analytics.cjs.d.ts +2 -0
- package/analytics/dist/valbuild-react-analytics.cjs.dev.js +962 -0
- package/analytics/dist/valbuild-react-analytics.cjs.js +7 -0
- package/analytics/dist/valbuild-react-analytics.cjs.prod.js +962 -0
- package/analytics/dist/valbuild-react-analytics.esm.js +953 -0
- package/analytics/dist/valbuild-react-analytics.worker.esm.js +232 -0
- package/analytics/package.json +7 -0
- package/dist/createForOfIteratorHelper-69c4a419.esm.js +52 -0
- package/dist/createForOfIteratorHelper-6f9dc6fa.cjs.prod.js +54 -0
- package/dist/createForOfIteratorHelper-73fe9a1a.worker.esm.js +52 -0
- package/dist/createForOfIteratorHelper-8a871dc3.cjs.dev.js +54 -0
- package/dist/createForOfIteratorHelper-c0be3691.browser.esm.js +52 -0
- package/dist/declarations/src/analytics/beacon.d.ts +80 -0
- package/dist/declarations/src/analytics/index.d.ts +3 -0
- package/dist/declarations/src/analytics/splitValPaths.d.ts +12 -0
- package/dist/declarations/src/analytics/tracker.d.ts +64 -0
- package/dist/{raw-1fce8756.cjs.dev.js → raw-c2b82a01.cjs.dev.js} +26 -74
- package/dist/{raw-26e85a34.esm.js → raw-cd78aea7.browser.esm.js} +11 -58
- package/dist/{raw-55a21edc.worker.esm.js → raw-d156d004.worker.esm.js} +11 -58
- package/dist/{raw-be2fd916.browser.esm.js → raw-d43ba7b8.esm.js} +11 -58
- package/dist/{raw-68a490e6.cjs.prod.js → raw-de29c973.cjs.prod.js} +26 -74
- package/dist/{slicedToArray-e9e8e991.cjs.dev.js → slicedToArray-387314c6.cjs.dev.js} +0 -11
- package/dist/{slicedToArray-0c0a3b4a.esm.js → slicedToArray-3d4c6640.esm.js} +1 -11
- package/dist/{slicedToArray-86004d59.cjs.prod.js → slicedToArray-64c83d56.cjs.prod.js} +0 -11
- package/dist/{slicedToArray-7d0170b6.worker.esm.js → slicedToArray-8b1a55e5.worker.esm.js} +1 -11
- package/dist/{slicedToArray-9cce0d9f.browser.esm.js → slicedToArray-8f9b0d84.browser.esm.js} +1 -11
- package/dist/toConsumableArray-203e636a.cjs.prod.js +21 -0
- package/dist/toConsumableArray-5335b4b0.worker.esm.js +19 -0
- package/dist/toConsumableArray-991f680f.browser.esm.js +19 -0
- package/dist/toConsumableArray-c950e394.esm.js +19 -0
- package/dist/toConsumableArray-d7cf1601.cjs.dev.js +21 -0
- package/dist/typeof-16428c61.cjs.prod.js +13 -0
- package/dist/typeof-9915e135.browser.esm.js +11 -0
- package/dist/typeof-a1531d8f.esm.js +11 -0
- package/dist/typeof-b568f48f.cjs.dev.js +13 -0
- package/dist/typeof-e0c837cc.worker.esm.js +11 -0
- package/internal/dist/valbuild-react-internal.browser.esm.js +5 -18
- package/internal/dist/valbuild-react-internal.cjs.dev.js +6 -19
- package/internal/dist/valbuild-react-internal.cjs.prod.js +6 -19
- package/internal/dist/valbuild-react-internal.esm.js +5 -18
- package/internal/dist/valbuild-react-internal.worker.esm.js +5 -18
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +2 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +3 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +3 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +2 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +2 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +2 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +3 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +3 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +2 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +2 -1
- package/package.json +16 -6
- package/stega/dist/valbuild-react-stega.browser.esm.js +8 -6
- package/stega/dist/valbuild-react-stega.cjs.dev.js +11 -9
- package/stega/dist/valbuild-react-stega.cjs.prod.js +11 -9
- package/stega/dist/valbuild-react-stega.esm.js +8 -6
- package/stega/dist/valbuild-react-stega.worker.esm.js +8 -6
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as _toConsumableArray } from '../../dist/toConsumableArray-c950e394.esm.js';
|
|
2
|
+
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-d43ba7b8.esm.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
import '../../dist/slicedToArray-3d4c6640.esm.js';
|
|
6
|
+
import '../../dist/typeof-a1531d8f.esm.js';
|
|
7
|
+
import '../../dist/createForOfIteratorHelper-69c4a419.esm.js';
|
|
5
8
|
import '@valbuild/core';
|
|
6
9
|
import '@vercel/stega';
|
|
7
10
|
|
|
8
|
-
function _arrayWithoutHoles(r) {
|
|
9
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function _iterableToArray(r) {
|
|
13
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function _nonIterableSpread() {
|
|
17
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function _toConsumableArray(r) {
|
|
21
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
11
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
25
12
|
if (null == r) return {};
|
|
26
13
|
var t = {};
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as _toConsumableArray } from '../../dist/toConsumableArray-5335b4b0.worker.esm.js';
|
|
2
|
+
import { _ as _objectSpread2, r as raw, c as attrs } from '../../dist/raw-d156d004.worker.esm.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
import '../../dist/slicedToArray-8b1a55e5.worker.esm.js';
|
|
6
|
+
import '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
7
|
+
import '../../dist/createForOfIteratorHelper-73fe9a1a.worker.esm.js';
|
|
5
8
|
import '@valbuild/core';
|
|
6
9
|
import '@vercel/stega';
|
|
7
10
|
|
|
8
|
-
function _arrayWithoutHoles(r) {
|
|
9
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function _iterableToArray(r) {
|
|
13
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function _nonIterableSpread() {
|
|
17
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function _toConsumableArray(r) {
|
|
21
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
11
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
25
12
|
if (null == r) return {};
|
|
26
13
|
var t = {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-8f9b0d84.browser.esm.js';
|
|
2
3
|
import { Internal } from '@valbuild/core';
|
|
3
4
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
|
4
5
|
export * from 'react/jsx-dev-runtime';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
|
|
6
|
+
var slicedToArray = require('../../dist/slicedToArray-387314c6.cjs.dev.js');
|
|
6
7
|
var core = require('@valbuild/core');
|
|
7
8
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
|
8
9
|
|
|
@@ -37,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
|
37
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
|
38
39
|
key = _Object$entries$_i[0],
|
|
39
40
|
value = _Object$entries$_i[1];
|
|
40
|
-
if (
|
|
41
|
+
if (_typeof._typeof(value) === "object" && value !== null && "val" in value) {
|
|
41
42
|
var valPath = core.Internal.getValPath(value);
|
|
42
43
|
if (valPath) {
|
|
43
44
|
valSources.push(valPath);
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
|
|
6
|
+
var slicedToArray = require('../../dist/slicedToArray-64c83d56.cjs.prod.js');
|
|
6
7
|
var core = require('@valbuild/core');
|
|
7
8
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
|
8
9
|
|
|
@@ -37,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
|
37
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
|
38
39
|
key = _Object$entries$_i[0],
|
|
39
40
|
value = _Object$entries$_i[1];
|
|
40
|
-
if (
|
|
41
|
+
if (_typeof._typeof(value) === "object" && value !== null && "val" in value) {
|
|
41
42
|
var valPath = core.Internal.getValPath(value);
|
|
42
43
|
if (valPath) {
|
|
43
44
|
valSources.push(valPath);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-3d4c6640.esm.js';
|
|
2
3
|
import { Internal } from '@valbuild/core';
|
|
3
4
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
|
4
5
|
export * from 'react/jsx-dev-runtime';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-8b1a55e5.worker.esm.js';
|
|
2
3
|
import { Internal } from '@valbuild/core';
|
|
3
4
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
|
4
5
|
export * from 'react/jsx-dev-runtime';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-8f9b0d84.browser.esm.js';
|
|
2
3
|
import { Internal } from '@valbuild/core';
|
|
3
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
4
5
|
export * from 'react/jsx-runtime';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
|
|
6
|
+
var slicedToArray = require('../../dist/slicedToArray-387314c6.cjs.dev.js');
|
|
6
7
|
var core = require('@valbuild/core');
|
|
7
8
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
9
|
|
|
@@ -37,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
|
37
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
|
38
39
|
key = _Object$entries$_i[0],
|
|
39
40
|
value = _Object$entries$_i[1];
|
|
40
|
-
if (
|
|
41
|
+
if (_typeof._typeof(value) === "object" && value !== null && "val" in value) {
|
|
41
42
|
var valPath = core.Internal.getValPath(value);
|
|
42
43
|
if (valPath) {
|
|
43
44
|
valSources.push(valPath);
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
|
|
6
|
+
var slicedToArray = require('../../dist/slicedToArray-64c83d56.cjs.prod.js');
|
|
6
7
|
var core = require('@valbuild/core');
|
|
7
8
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
9
|
|
|
@@ -37,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
|
37
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
|
38
39
|
key = _Object$entries$_i[0],
|
|
39
40
|
value = _Object$entries$_i[1];
|
|
40
|
-
if (
|
|
41
|
+
if (_typeof._typeof(value) === "object" && value !== null && "val" in value) {
|
|
41
42
|
var valPath = core.Internal.getValPath(value);
|
|
42
43
|
if (valPath) {
|
|
43
44
|
valSources.push(valPath);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-3d4c6640.esm.js';
|
|
2
3
|
import { Internal } from '@valbuild/core';
|
|
3
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
4
5
|
export * from 'react/jsx-runtime';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-8b1a55e5.worker.esm.js';
|
|
2
3
|
import { Internal } from '@valbuild/core';
|
|
3
4
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
|
4
5
|
export * from 'react/jsx-runtime';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/react",
|
|
3
|
-
"version": "0.148.
|
|
3
|
+
"version": "0.148.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val - React internal helpers",
|
|
6
6
|
"repository": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@vercel/stega": "^1.1.0",
|
|
13
13
|
"base64-arraybuffer": "^1.0.2",
|
|
14
|
-
"@valbuild/
|
|
15
|
-
"@valbuild/
|
|
16
|
-
"@valbuild/core": "0.148.
|
|
14
|
+
"@valbuild/ui": "0.148.3",
|
|
15
|
+
"@valbuild/shared": "0.148.3",
|
|
16
|
+
"@valbuild/core": "0.148.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@testing-library/react": "^16.3.3",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"./jsx-runtime.js",
|
|
39
39
|
"./jsx-dev-runtime.js",
|
|
40
40
|
"./stega/index.ts",
|
|
41
|
-
"./internal/index.ts"
|
|
41
|
+
"./internal/index.ts",
|
|
42
|
+
"./analytics/index.ts"
|
|
42
43
|
],
|
|
43
44
|
"exports": {
|
|
44
45
|
"envConditions": [
|
|
@@ -88,6 +89,14 @@
|
|
|
88
89
|
},
|
|
89
90
|
"default": "./internal/dist/valbuild-react-internal.cjs.js"
|
|
90
91
|
},
|
|
92
|
+
"./analytics": {
|
|
93
|
+
"module": {
|
|
94
|
+
"worker": "./analytics/dist/valbuild-react-analytics.worker.esm.js",
|
|
95
|
+
"browser": "./analytics/dist/valbuild-react-analytics.browser.esm.js",
|
|
96
|
+
"default": "./analytics/dist/valbuild-react-analytics.esm.js"
|
|
97
|
+
},
|
|
98
|
+
"default": "./analytics/dist/valbuild-react-analytics.cjs.js"
|
|
99
|
+
},
|
|
91
100
|
"./jsx-dev-runtime": {
|
|
92
101
|
"module": {
|
|
93
102
|
"worker": "./jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js",
|
|
@@ -105,7 +114,8 @@
|
|
|
105
114
|
"jsx-runtime",
|
|
106
115
|
"jsx-dev-runtime",
|
|
107
116
|
"stega",
|
|
108
|
-
"internal"
|
|
117
|
+
"internal",
|
|
118
|
+
"analytics"
|
|
109
119
|
],
|
|
110
120
|
"scripts": {
|
|
111
121
|
"typecheck": "tsc --noEmit",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-8f9b0d84.browser.esm.js';
|
|
2
|
+
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
|
3
|
+
import { _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-c0be3691.browser.esm.js';
|
|
4
|
+
import { Internal } from '@valbuild/core';
|
|
4
5
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
|
5
6
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { VERCEL_STEGA_REGEX, vercelStegaSplit } from '@vercel/stega';
|
|
8
|
-
import '
|
|
9
|
+
import { s as stegaDecodeStrings } from '../../dist/raw-cd78aea7.browser.esm.js';
|
|
10
|
+
export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-cd78aea7.browser.esm.js';
|
|
9
11
|
|
|
10
12
|
var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
11
13
|
// TODO: think this is not correct, but good enough for now?
|
|
@@ -28,7 +30,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
28
30
|
}
|
|
29
31
|
// Prevent prototype pollution
|
|
30
32
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
31
|
-
|
|
33
|
+
Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
|
|
32
34
|
return;
|
|
33
35
|
}
|
|
34
36
|
var valPaths = stegaDecodeStrings(value);
|
|
@@ -61,7 +63,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
61
63
|
} else if (typeof key === "string" && !Array.isArray(container)) {
|
|
62
64
|
container[key] = cleanValue;
|
|
63
65
|
} else {
|
|
64
|
-
|
|
66
|
+
Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
|
65
67
|
}
|
|
66
68
|
} else {
|
|
67
69
|
if (key === "href") {
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
|
6
|
-
var
|
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-387314c6.cjs.dev.js');
|
|
6
|
+
var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
|
|
7
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-8a871dc3.cjs.dev.js');
|
|
8
|
+
var core = require('@valbuild/core');
|
|
7
9
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
10
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
|
9
11
|
var React = require('react');
|
|
10
12
|
var stega = require('@vercel/stega');
|
|
11
|
-
require('
|
|
13
|
+
var raw = require('../../dist/raw-c2b82a01.cjs.dev.js');
|
|
12
14
|
|
|
13
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
14
16
|
|
|
@@ -37,7 +39,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
37
39
|
}
|
|
38
40
|
// Prevent prototype pollution
|
|
39
41
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
40
|
-
|
|
42
|
+
core.Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
var valPaths = raw.stegaDecodeStrings(value);
|
|
@@ -47,7 +49,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
47
49
|
// if this is an intrinsic element (a, div, etc.), add data attrs will be on the DOM element
|
|
48
50
|
// always add to sources (intrinsic or not)
|
|
49
51
|
// if this is not an intrinsic element, we pass the stega encoded value downwards until we hit an intrinsic element
|
|
50
|
-
var _iterator =
|
|
52
|
+
var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(valPaths),
|
|
51
53
|
_step;
|
|
52
54
|
try {
|
|
53
55
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -70,7 +72,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
70
72
|
} else if (typeof key === "string" && !Array.isArray(container)) {
|
|
71
73
|
container[key] = cleanValue;
|
|
72
74
|
} else {
|
|
73
|
-
|
|
75
|
+
core.Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
|
74
76
|
}
|
|
75
77
|
} else {
|
|
76
78
|
if (key === "href") {
|
|
@@ -78,7 +80,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
78
80
|
var _cleanValue = stega.vercelStegaSplit(value).cleaned;
|
|
79
81
|
if (typeof key === "string" && !Array.isArray(container)) {
|
|
80
82
|
container[key] = _cleanValue;
|
|
81
|
-
var _iterator2 =
|
|
83
|
+
var _iterator2 = createForOfIteratorHelper._createForOfIteratorHelper(valPaths),
|
|
82
84
|
_step2;
|
|
83
85
|
try {
|
|
84
86
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -95,14 +97,14 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
|
-
if (props &&
|
|
100
|
+
if (props && _typeof._typeof(props) === "object") {
|
|
99
101
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
|
100
102
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
|
101
103
|
key = _Object$entries$_i[0],
|
|
102
104
|
value = _Object$entries$_i[1];
|
|
103
105
|
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
|
104
106
|
updateValSources(key, value, props, props);
|
|
105
|
-
} else if (
|
|
107
|
+
} else if (_typeof._typeof(value) === "object" && value !== null) {
|
|
106
108
|
if (key === "style") {
|
|
107
109
|
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
|
108
110
|
var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
|
6
|
-
var
|
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-64c83d56.cjs.prod.js');
|
|
6
|
+
var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
|
|
7
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-6f9dc6fa.cjs.prod.js');
|
|
8
|
+
var core = require('@valbuild/core');
|
|
7
9
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
10
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
|
9
11
|
var React = require('react');
|
|
10
12
|
var stega = require('@vercel/stega');
|
|
11
|
-
require('
|
|
13
|
+
var raw = require('../../dist/raw-de29c973.cjs.prod.js');
|
|
12
14
|
|
|
13
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
14
16
|
|
|
@@ -37,7 +39,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
37
39
|
}
|
|
38
40
|
// Prevent prototype pollution
|
|
39
41
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
40
|
-
|
|
42
|
+
core.Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
var valPaths = raw.stegaDecodeStrings(value);
|
|
@@ -47,7 +49,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
47
49
|
// if this is an intrinsic element (a, div, etc.), add data attrs will be on the DOM element
|
|
48
50
|
// always add to sources (intrinsic or not)
|
|
49
51
|
// if this is not an intrinsic element, we pass the stega encoded value downwards until we hit an intrinsic element
|
|
50
|
-
var _iterator =
|
|
52
|
+
var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(valPaths),
|
|
51
53
|
_step;
|
|
52
54
|
try {
|
|
53
55
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -70,7 +72,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
70
72
|
} else if (typeof key === "string" && !Array.isArray(container)) {
|
|
71
73
|
container[key] = cleanValue;
|
|
72
74
|
} else {
|
|
73
|
-
|
|
75
|
+
core.Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
|
74
76
|
}
|
|
75
77
|
} else {
|
|
76
78
|
if (key === "href") {
|
|
@@ -78,7 +80,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
78
80
|
var _cleanValue = stega.vercelStegaSplit(value).cleaned;
|
|
79
81
|
if (typeof key === "string" && !Array.isArray(container)) {
|
|
80
82
|
container[key] = _cleanValue;
|
|
81
|
-
var _iterator2 =
|
|
83
|
+
var _iterator2 = createForOfIteratorHelper._createForOfIteratorHelper(valPaths),
|
|
82
84
|
_step2;
|
|
83
85
|
try {
|
|
84
86
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -95,14 +97,14 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
|
-
if (props &&
|
|
100
|
+
if (props && _typeof._typeof(props) === "object") {
|
|
99
101
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
|
100
102
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
|
101
103
|
key = _Object$entries$_i[0],
|
|
102
104
|
value = _Object$entries$_i[1];
|
|
103
105
|
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
|
104
106
|
updateValSources(key, value, props, props);
|
|
105
|
-
} else if (
|
|
107
|
+
} else if (_typeof._typeof(value) === "object" && value !== null) {
|
|
106
108
|
if (key === "style") {
|
|
107
109
|
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
|
108
110
|
var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-3d4c6640.esm.js';
|
|
2
|
+
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
|
3
|
+
import { _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-69c4a419.esm.js';
|
|
4
|
+
import { Internal } from '@valbuild/core';
|
|
4
5
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
|
5
6
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { VERCEL_STEGA_REGEX, vercelStegaSplit } from '@vercel/stega';
|
|
8
|
-
import '
|
|
9
|
+
import { s as stegaDecodeStrings } from '../../dist/raw-d43ba7b8.esm.js';
|
|
10
|
+
export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-d43ba7b8.esm.js';
|
|
9
11
|
|
|
10
12
|
var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
11
13
|
// TODO: think this is not correct, but good enough for now?
|
|
@@ -28,7 +30,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
28
30
|
}
|
|
29
31
|
// Prevent prototype pollution
|
|
30
32
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
31
|
-
|
|
33
|
+
Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
|
|
32
34
|
return;
|
|
33
35
|
}
|
|
34
36
|
var valPaths = stegaDecodeStrings(value);
|
|
@@ -61,7 +63,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
61
63
|
} else if (typeof key === "string" && !Array.isArray(container)) {
|
|
62
64
|
container[key] = cleanValue;
|
|
63
65
|
} else {
|
|
64
|
-
|
|
66
|
+
Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
|
65
67
|
}
|
|
66
68
|
} else {
|
|
67
69
|
if (key === "href") {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { _ as _slicedToArray } from '../../dist/slicedToArray-8b1a55e5.worker.esm.js';
|
|
2
|
+
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
|
3
|
+
import { _ as _createForOfIteratorHelper } from '../../dist/createForOfIteratorHelper-73fe9a1a.worker.esm.js';
|
|
4
|
+
import { Internal } from '@valbuild/core';
|
|
4
5
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
|
5
6
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { VERCEL_STEGA_REGEX, vercelStegaSplit } from '@vercel/stega';
|
|
8
|
-
import '
|
|
9
|
+
import { s as stegaDecodeStrings } from '../../dist/raw-d156d004.worker.esm.js';
|
|
10
|
+
export { c as attrs, g as getModuleIds, r as raw, b as stegaClean, s as stegaDecodeStrings, a as stegaEncode } from '../../dist/raw-d156d004.worker.esm.js';
|
|
9
11
|
|
|
10
12
|
var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
11
13
|
// TODO: think this is not correct, but good enough for now?
|
|
@@ -28,7 +30,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
28
30
|
}
|
|
29
31
|
// Prevent prototype pollution
|
|
30
32
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
31
|
-
|
|
33
|
+
Internal.log.error('Could not auto tag. Reason: key is "__proto__" or "constructor" or "prototype".');
|
|
32
34
|
return;
|
|
33
35
|
}
|
|
34
36
|
var valPaths = stegaDecodeStrings(value);
|
|
@@ -61,7 +63,7 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
|
61
63
|
} else if (typeof key === "string" && !Array.isArray(container)) {
|
|
62
64
|
container[key] = cleanValue;
|
|
63
65
|
} else {
|
|
64
|
-
|
|
66
|
+
Internal.log.error("Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
|
65
67
|
}
|
|
66
68
|
} else {
|
|
67
69
|
if (key === "href") {
|