@valbuild/react 0.48.1 → 0.50.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/{ValProvider-3f3f21ba.cjs.dev.js → ValProvider-1009cb51.cjs.dev.js} +2 -3
- package/dist/{ValProvider-36edbac3.browser.esm.js → ValProvider-6a12fd8e.browser.esm.js} +2 -3
- package/dist/{ValProvider-87475f3a.esm.js → ValProvider-8ec03a73.esm.js} +2 -3
- package/dist/ValProvider-c7d7067b.cjs.js +7 -0
- package/dist/{ValProvider-1bf1d7e4.cjs.prod.js → ValProvider-c7d7067b.cjs.prod.js} +2 -3
- package/dist/{ValProvider-a29fe950.worker.esm.js → ValProvider-ecf57703.worker.esm.js} +2 -3
- package/dist/ValUI-07905fec.browser.esm.js +1 -1
- package/dist/ValUI-15ad1f1e.worker.esm.js +1 -1
- package/dist/ValUI-b98a0c8f.cjs.prod.js +1 -1
- package/dist/ValUI-dd0484dc.cjs.dev.js +1 -1
- package/dist/ValUI-efe41d9a.esm.js +1 -1
- package/dist/declarations/src/internal/ValProvider.d.ts +1 -1
- package/dist/declarations/src/internal/ValStore.d.ts +1 -1
- package/dist/declarations/src/stega/stegaEncode.d.ts +6 -2
- package/dist/defineProperty-6ed7deb7.browser.esm.js +32 -0
- package/dist/defineProperty-82fbeafc.worker.esm.js +32 -0
- package/dist/defineProperty-9bf3d0c0.esm.js +32 -0
- package/dist/defineProperty-c84f9aba.cjs.dev.js +35 -0
- package/dist/defineProperty-f8fe5660.cjs.prod.js +35 -0
- package/internal/dist/valbuild-react-internal.browser.esm.js +1 -1
- package/internal/dist/valbuild-react-internal.cjs.dev.js +1 -1
- package/internal/dist/valbuild-react-internal.cjs.prod.js +1 -1
- package/internal/dist/valbuild-react-internal.esm.js +1 -1
- package/internal/dist/valbuild-react-internal.worker.esm.js +1 -1
- package/package.json +4 -4
- package/stega/dist/valbuild-react-stega.browser.esm.js +37 -8
- package/stega/dist/valbuild-react-stega.cjs.dev.js +37 -8
- package/stega/dist/valbuild-react-stega.cjs.prod.js +37 -8
- package/stega/dist/valbuild-react-stega.esm.js +37 -8
- package/stega/dist/valbuild-react-stega.worker.esm.js +37 -8
- package/dist/ValProvider-1bf1d7e4.cjs.js +0 -7
- package/dist/defineProperty-12b5bd29.esm.js +0 -32
- package/dist/defineProperty-36ed93cd.cjs.prod.js +0 -35
- package/dist/defineProperty-a4bf59bc.worker.esm.js +0 -32
- package/dist/defineProperty-c82a49b0.cjs.dev.js +0 -35
- package/dist/defineProperty-f319cb47.browser.esm.js +0 -32
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
6
6
|
var slicedToArray = require('./slicedToArray-a9d0d9cd.cjs.dev.js');
|
7
7
|
var React = require('react');
|
8
|
-
var defineProperty = require('./defineProperty-
|
8
|
+
var defineProperty = require('./defineProperty-c84f9aba.cjs.dev.js');
|
9
9
|
var fp = require('@valbuild/core/fp');
|
10
10
|
var core = require('@valbuild/core');
|
11
11
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
@@ -429,7 +429,7 @@ function _defineProperties(target, props) {
|
|
429
429
|
descriptor.enumerable = descriptor.enumerable || false;
|
430
430
|
descriptor.configurable = true;
|
431
431
|
if ("value" in descriptor) descriptor.writable = true;
|
432
|
-
Object.defineProperty(target, defineProperty.
|
432
|
+
Object.defineProperty(target, defineProperty.toPropertyKey(descriptor.key), descriptor);
|
433
433
|
}
|
434
434
|
}
|
435
435
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -555,7 +555,6 @@ var ValStore = /*#__PURE__*/function () {
|
|
555
555
|
return subscriberId.includes(moduleId);
|
556
556
|
} // NOTE: dependent on
|
557
557
|
);
|
558
|
-
|
559
558
|
if (updatedSubscriberId) {
|
560
559
|
updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
|
561
560
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
import { a as _unsupportedIterableToArray, _ as _slicedToArray } from './slicedToArray-85f6bb43.browser.esm.js';
|
3
3
|
import React, { useContext, useMemo, useState, useEffect, lazy } from 'react';
|
4
|
-
import {
|
4
|
+
import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6ed7deb7.browser.esm.js';
|
5
5
|
import { result } from '@valbuild/core/fp';
|
6
6
|
import { ValApi, Internal } from '@valbuild/core';
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
@@ -403,7 +403,7 @@ function _defineProperties(target, props) {
|
|
403
403
|
descriptor.enumerable = descriptor.enumerable || false;
|
404
404
|
descriptor.configurable = true;
|
405
405
|
if ("value" in descriptor) descriptor.writable = true;
|
406
|
-
Object.defineProperty(target,
|
406
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
407
407
|
}
|
408
408
|
}
|
409
409
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -529,7 +529,6 @@ var ValStore = /*#__PURE__*/function () {
|
|
529
529
|
return subscriberId.includes(moduleId);
|
530
530
|
} // NOTE: dependent on
|
531
531
|
);
|
532
|
-
|
533
532
|
if (updatedSubscriberId) {
|
534
533
|
updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
|
535
534
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
import { a as _unsupportedIterableToArray, _ as _slicedToArray } from './slicedToArray-331bebbb.esm.js';
|
3
3
|
import React, { useContext, useMemo, useState, useEffect, lazy } from 'react';
|
4
|
-
import {
|
4
|
+
import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-9bf3d0c0.esm.js';
|
5
5
|
import { result } from '@valbuild/core/fp';
|
6
6
|
import { ValApi, Internal } from '@valbuild/core';
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
@@ -403,7 +403,7 @@ function _defineProperties(target, props) {
|
|
403
403
|
descriptor.enumerable = descriptor.enumerable || false;
|
404
404
|
descriptor.configurable = true;
|
405
405
|
if ("value" in descriptor) descriptor.writable = true;
|
406
|
-
Object.defineProperty(target,
|
406
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
407
407
|
}
|
408
408
|
}
|
409
409
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -529,7 +529,6 @@ var ValStore = /*#__PURE__*/function () {
|
|
529
529
|
return subscriberId.includes(moduleId);
|
530
530
|
} // NOTE: dependent on
|
531
531
|
);
|
532
|
-
|
533
532
|
if (updatedSubscriberId) {
|
534
533
|
updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
|
535
534
|
}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
6
6
|
var slicedToArray = require('./slicedToArray-a2a426c7.cjs.prod.js');
|
7
7
|
var React = require('react');
|
8
|
-
var defineProperty = require('./defineProperty-
|
8
|
+
var defineProperty = require('./defineProperty-f8fe5660.cjs.prod.js');
|
9
9
|
var fp = require('@valbuild/core/fp');
|
10
10
|
var core = require('@valbuild/core');
|
11
11
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
@@ -429,7 +429,7 @@ function _defineProperties(target, props) {
|
|
429
429
|
descriptor.enumerable = descriptor.enumerable || false;
|
430
430
|
descriptor.configurable = true;
|
431
431
|
if ("value" in descriptor) descriptor.writable = true;
|
432
|
-
Object.defineProperty(target, defineProperty.
|
432
|
+
Object.defineProperty(target, defineProperty.toPropertyKey(descriptor.key), descriptor);
|
433
433
|
}
|
434
434
|
}
|
435
435
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -555,7 +555,6 @@ var ValStore = /*#__PURE__*/function () {
|
|
555
555
|
return subscriberId.includes(moduleId);
|
556
556
|
} // NOTE: dependent on
|
557
557
|
);
|
558
|
-
|
559
558
|
if (updatedSubscriberId) {
|
560
559
|
updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
|
561
560
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
import { a as _unsupportedIterableToArray, _ as _slicedToArray } from './slicedToArray-d4c4a4ed.worker.esm.js';
|
3
3
|
import { useMemo, useState, useEffect, lazy } from 'react';
|
4
|
-
import {
|
4
|
+
import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-82fbeafc.worker.esm.js';
|
5
5
|
import { result } from '@valbuild/core/fp';
|
6
6
|
import { ValApi, Internal } from '@valbuild/core';
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
@@ -403,7 +403,7 @@ function _defineProperties(target, props) {
|
|
403
403
|
descriptor.enumerable = descriptor.enumerable || false;
|
404
404
|
descriptor.configurable = true;
|
405
405
|
if ("value" in descriptor) descriptor.writable = true;
|
406
|
-
Object.defineProperty(target,
|
406
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
407
407
|
}
|
408
408
|
}
|
409
409
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -529,7 +529,6 @@ var ValStore = /*#__PURE__*/function () {
|
|
529
529
|
return subscriberId.includes(moduleId);
|
530
530
|
} // NOTE: dependent on
|
531
531
|
);
|
532
|
-
|
533
532
|
if (updatedSubscriberId) {
|
534
533
|
updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
|
535
534
|
}
|
@@ -4,7 +4,7 @@ import { _ as _slicedToArray } from './slicedToArray-85f6bb43.browser.esm.js';
|
|
4
4
|
import { useRef, useState, useLayoutEffect } from 'react';
|
5
5
|
import { createPortal } from 'react-dom';
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
7
|
-
import { useValApi, useValStore } from './ValProvider-
|
7
|
+
import { useValApi, useValStore } from './ValProvider-6a12fd8e.browser.esm.js';
|
8
8
|
|
9
9
|
function ShadowContent(_ref) {
|
10
10
|
var root = _ref.root,
|
@@ -4,7 +4,7 @@ import { _ as _slicedToArray } from './slicedToArray-d4c4a4ed.worker.esm.js';
|
|
4
4
|
import { useRef, useState, useLayoutEffect } from 'react';
|
5
5
|
import { createPortal } from 'react-dom';
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
7
|
-
import { useValApi, useValStore } from './ValProvider-
|
7
|
+
import { useValApi, useValStore } from './ValProvider-ecf57703.worker.esm.js';
|
8
8
|
|
9
9
|
function ShadowContent(_ref) {
|
10
10
|
var root = _ref.root,
|
@@ -8,7 +8,7 @@ var slicedToArray = require('./slicedToArray-a2a426c7.cjs.prod.js');
|
|
8
8
|
var React = require('react');
|
9
9
|
var reactDom = require('react-dom');
|
10
10
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
11
|
-
var ValProvider = require('./ValProvider-
|
11
|
+
var ValProvider = require('./ValProvider-c7d7067b.cjs.prod.js');
|
12
12
|
|
13
13
|
function ShadowContent(_ref) {
|
14
14
|
var root = _ref.root,
|
@@ -8,7 +8,7 @@ var slicedToArray = require('./slicedToArray-a9d0d9cd.cjs.dev.js');
|
|
8
8
|
var React = require('react');
|
9
9
|
var reactDom = require('react-dom');
|
10
10
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
11
|
-
var ValProvider = require('./ValProvider-
|
11
|
+
var ValProvider = require('./ValProvider-1009cb51.cjs.dev.js');
|
12
12
|
|
13
13
|
function ShadowContent(_ref) {
|
14
14
|
var root = _ref.root,
|
@@ -4,7 +4,7 @@ import { _ as _slicedToArray } from './slicedToArray-331bebbb.esm.js';
|
|
4
4
|
import { useRef, useState, useLayoutEffect } from 'react';
|
5
5
|
import { createPortal } from 'react-dom';
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
7
|
-
import { useValApi, useValStore } from './ValProvider-
|
7
|
+
import { useValApi, useValStore } from './ValProvider-8ec03a73.esm.js';
|
8
8
|
|
9
9
|
function ShadowContent(_ref) {
|
10
10
|
var root = _ref.root,
|
@@ -3,7 +3,7 @@ import { ValStore } from "./ValStore.js";
|
|
3
3
|
import { ValApi } from "@valbuild/core";
|
4
4
|
export declare const useValStore: () => ValStore | undefined;
|
5
5
|
export type UseValStore = typeof useValStore;
|
6
|
-
export declare const useValApi: () =>
|
6
|
+
export declare const useValApi: () => any;
|
7
7
|
export type UseValApi = typeof useValApi;
|
8
8
|
export type ValContext = {
|
9
9
|
readonly valStore?: ValStore;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Json, ModuleId, ValApi } from "@valbuild/core";
|
2
|
-
import type { IValStore } from "@valbuild/
|
2
|
+
import type { IValStore } from "@valbuild/shared/internal";
|
3
3
|
export declare class ValStore implements IValStore {
|
4
4
|
private readonly api;
|
5
5
|
private readonly subscribers;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Json, RichTextSource, RichText, ImageMetadata } from "@valbuild/core";
|
1
|
+
import { Json, RichTextSource, RichText, ImageMetadata, FileMetadata } from "@valbuild/core";
|
2
2
|
import { FileSource, Source, SourceObject } from "@valbuild/core";
|
3
3
|
import { JsonPrimitive } from "@valbuild/core";
|
4
4
|
import { SourceArray } from "@valbuild/core";
|
@@ -150,7 +150,11 @@ export type Image = {
|
|
150
150
|
readonly url: ValEncodedString;
|
151
151
|
readonly metadata?: ImageMetadata;
|
152
152
|
};
|
153
|
-
export type
|
153
|
+
export type File<Metadata extends FileMetadata> = {
|
154
|
+
readonly url: ValEncodedString;
|
155
|
+
readonly metadata?: Metadata;
|
156
|
+
};
|
157
|
+
export type StegaOfSource<T extends Source> = Json extends T ? Json : T extends RichTextSource<infer O> ? RichText<O> : T extends FileSource<infer M> ? M extends ImageMetadata ? Image : M extends FileMetadata ? File<M> : never : T extends SourceObject ? {
|
154
158
|
[key in keyof T]: StegaOfSource<T[key]>;
|
155
159
|
} : T extends SourceArray ? StegaOfSource<T[number]>[] : T extends RawString ? string : string extends T ? ValEncodedString : T extends JsonPrimitive ? T : never;
|
156
160
|
export declare function stegaEncode(input: any, opts: {
|
@@ -0,0 +1,32 @@
|
|
1
|
+
function toPrimitive(t, r) {
|
2
|
+
if ("object" != typeof t || !t) return t;
|
3
|
+
var e = t[Symbol.toPrimitive];
|
4
|
+
if (void 0 !== e) {
|
5
|
+
var i = e.call(t, r || "default");
|
6
|
+
if ("object" != typeof i) return i;
|
7
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
8
|
+
}
|
9
|
+
return ("string" === r ? String : Number)(t);
|
10
|
+
}
|
11
|
+
|
12
|
+
function toPropertyKey(t) {
|
13
|
+
var i = toPrimitive(t, "string");
|
14
|
+
return "symbol" == typeof i ? i : String(i);
|
15
|
+
}
|
16
|
+
|
17
|
+
function _defineProperty(obj, key, value) {
|
18
|
+
key = toPropertyKey(key);
|
19
|
+
if (key in obj) {
|
20
|
+
Object.defineProperty(obj, key, {
|
21
|
+
value: value,
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true
|
25
|
+
});
|
26
|
+
} else {
|
27
|
+
obj[key] = value;
|
28
|
+
}
|
29
|
+
return obj;
|
30
|
+
}
|
31
|
+
|
32
|
+
export { _defineProperty as _, toPropertyKey as t };
|
@@ -0,0 +1,32 @@
|
|
1
|
+
function toPrimitive(t, r) {
|
2
|
+
if ("object" != typeof t || !t) return t;
|
3
|
+
var e = t[Symbol.toPrimitive];
|
4
|
+
if (void 0 !== e) {
|
5
|
+
var i = e.call(t, r || "default");
|
6
|
+
if ("object" != typeof i) return i;
|
7
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
8
|
+
}
|
9
|
+
return ("string" === r ? String : Number)(t);
|
10
|
+
}
|
11
|
+
|
12
|
+
function toPropertyKey(t) {
|
13
|
+
var i = toPrimitive(t, "string");
|
14
|
+
return "symbol" == typeof i ? i : String(i);
|
15
|
+
}
|
16
|
+
|
17
|
+
function _defineProperty(obj, key, value) {
|
18
|
+
key = toPropertyKey(key);
|
19
|
+
if (key in obj) {
|
20
|
+
Object.defineProperty(obj, key, {
|
21
|
+
value: value,
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true
|
25
|
+
});
|
26
|
+
} else {
|
27
|
+
obj[key] = value;
|
28
|
+
}
|
29
|
+
return obj;
|
30
|
+
}
|
31
|
+
|
32
|
+
export { _defineProperty as _, toPropertyKey as t };
|
@@ -0,0 +1,32 @@
|
|
1
|
+
function toPrimitive(t, r) {
|
2
|
+
if ("object" != typeof t || !t) return t;
|
3
|
+
var e = t[Symbol.toPrimitive];
|
4
|
+
if (void 0 !== e) {
|
5
|
+
var i = e.call(t, r || "default");
|
6
|
+
if ("object" != typeof i) return i;
|
7
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
8
|
+
}
|
9
|
+
return ("string" === r ? String : Number)(t);
|
10
|
+
}
|
11
|
+
|
12
|
+
function toPropertyKey(t) {
|
13
|
+
var i = toPrimitive(t, "string");
|
14
|
+
return "symbol" == typeof i ? i : String(i);
|
15
|
+
}
|
16
|
+
|
17
|
+
function _defineProperty(obj, key, value) {
|
18
|
+
key = toPropertyKey(key);
|
19
|
+
if (key in obj) {
|
20
|
+
Object.defineProperty(obj, key, {
|
21
|
+
value: value,
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true
|
25
|
+
});
|
26
|
+
} else {
|
27
|
+
obj[key] = value;
|
28
|
+
}
|
29
|
+
return obj;
|
30
|
+
}
|
31
|
+
|
32
|
+
export { _defineProperty as _, toPropertyKey as t };
|
@@ -0,0 +1,35 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
function toPrimitive(t, r) {
|
4
|
+
if ("object" != typeof t || !t) return t;
|
5
|
+
var e = t[Symbol.toPrimitive];
|
6
|
+
if (void 0 !== e) {
|
7
|
+
var i = e.call(t, r || "default");
|
8
|
+
if ("object" != typeof i) return i;
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
10
|
+
}
|
11
|
+
return ("string" === r ? String : Number)(t);
|
12
|
+
}
|
13
|
+
|
14
|
+
function toPropertyKey(t) {
|
15
|
+
var i = toPrimitive(t, "string");
|
16
|
+
return "symbol" == typeof i ? i : String(i);
|
17
|
+
}
|
18
|
+
|
19
|
+
function _defineProperty(obj, key, value) {
|
20
|
+
key = toPropertyKey(key);
|
21
|
+
if (key in obj) {
|
22
|
+
Object.defineProperty(obj, key, {
|
23
|
+
value: value,
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true
|
27
|
+
});
|
28
|
+
} else {
|
29
|
+
obj[key] = value;
|
30
|
+
}
|
31
|
+
return obj;
|
32
|
+
}
|
33
|
+
|
34
|
+
exports._defineProperty = _defineProperty;
|
35
|
+
exports.toPropertyKey = toPropertyKey;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
function toPrimitive(t, r) {
|
4
|
+
if ("object" != typeof t || !t) return t;
|
5
|
+
var e = t[Symbol.toPrimitive];
|
6
|
+
if (void 0 !== e) {
|
7
|
+
var i = e.call(t, r || "default");
|
8
|
+
if ("object" != typeof i) return i;
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
10
|
+
}
|
11
|
+
return ("string" === r ? String : Number)(t);
|
12
|
+
}
|
13
|
+
|
14
|
+
function toPropertyKey(t) {
|
15
|
+
var i = toPrimitive(t, "string");
|
16
|
+
return "symbol" == typeof i ? i : String(i);
|
17
|
+
}
|
18
|
+
|
19
|
+
function _defineProperty(obj, key, value) {
|
20
|
+
key = toPropertyKey(key);
|
21
|
+
if (key in obj) {
|
22
|
+
Object.defineProperty(obj, key, {
|
23
|
+
value: value,
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true
|
27
|
+
});
|
28
|
+
} else {
|
29
|
+
obj[key] = value;
|
30
|
+
}
|
31
|
+
return obj;
|
32
|
+
}
|
33
|
+
|
34
|
+
exports._defineProperty = _defineProperty;
|
35
|
+
exports.toPropertyKey = toPropertyKey;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-
|
1
|
+
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-6a12fd8e.browser.esm.js';
|
2
2
|
import React from 'react';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var ValProvider = require('../../dist/ValProvider-
|
5
|
+
var ValProvider = require('../../dist/ValProvider-1009cb51.cjs.dev.js');
|
6
6
|
var React = require('react');
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
8
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var ValProvider = require('../../dist/ValProvider-
|
5
|
+
var ValProvider = require('../../dist/ValProvider-c7d7067b.cjs.prod.js');
|
6
6
|
var React = require('react');
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
8
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-
|
1
|
+
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-ecf57703.worker.esm.js';
|
2
2
|
import React from 'react';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/react",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.50.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Val - React internal helpers",
|
6
6
|
"sideEffects": false,
|
@@ -9,9 +9,9 @@
|
|
9
9
|
"test": "jest"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@valbuild/core": "~0.
|
13
|
-
"@valbuild/shared": "~0.
|
14
|
-
"@valbuild/ui": "~0.
|
12
|
+
"@valbuild/core": "~0.50.0",
|
13
|
+
"@valbuild/shared": "~0.50.0",
|
14
|
+
"@valbuild/ui": "~0.50.0",
|
15
15
|
"@vercel/stega": "^0.1.0",
|
16
16
|
"base64-arraybuffer": "^1.0.2",
|
17
17
|
"style-to-object": "^0.4.1"
|
@@ -4,7 +4,7 @@ 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 { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
7
|
-
import { _ as _defineProperty } from '../../dist/defineProperty-
|
7
|
+
import { _ as _defineProperty } from '../../dist/defineProperty-6ed7deb7.browser.esm.js';
|
8
8
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
9
9
|
import { parseRichTextSource } from '@valbuild/shared/internal';
|
10
10
|
|
@@ -23,18 +23,48 @@ var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
23
23
|
};
|
24
24
|
var addValPathIfFound = function addValPathIfFound(type, props) {
|
25
25
|
var valSources = [];
|
26
|
+
function add(key, value, props, container) {
|
27
|
+
var valPath = stegaDecodeString(value);
|
28
|
+
var attr = "data-val-attr-".concat(key.toString().toLowerCase());
|
29
|
+
if (valPath && !props[attr]) {
|
30
|
+
valSources.push(valPath);
|
31
|
+
var cleanValue = isIntrinsicElement(type) ? vercelStegaSplit(value).cleaned : value;
|
32
|
+
if (Array.isArray(container) && typeof key === "number") {
|
33
|
+
container[key] = cleanValue;
|
34
|
+
} else if (typeof key === "string" && !Array.isArray(container)) {
|
35
|
+
container[key] = cleanValue;
|
36
|
+
} else {
|
37
|
+
console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
38
|
+
}
|
39
|
+
props[attr] = valPath;
|
40
|
+
}
|
41
|
+
}
|
26
42
|
if (props && _typeof(props) === "object") {
|
27
43
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
28
44
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
29
45
|
key = _Object$entries$_i[0],
|
30
46
|
value = _Object$entries$_i[1];
|
31
47
|
if (typeof value === "string" && value.match(VERCEL_STEGA_REGEX)) {
|
32
|
-
|
33
|
-
|
34
|
-
if (
|
35
|
-
|
36
|
-
|
37
|
-
|
48
|
+
add(key, value, props, props);
|
49
|
+
} else if (_typeof(value) === "object" && value !== null) {
|
50
|
+
if (key === "style") {
|
51
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
52
|
+
var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
|
53
|
+
styleKey = _Object$entries2$_i[0],
|
54
|
+
styleValue = _Object$entries2$_i[1];
|
55
|
+
if (typeof styleValue === "string" && styleValue.match(VERCEL_STEGA_REGEX)) {
|
56
|
+
add(styleKey, styleValue, props, value);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
} else if (value instanceof Array) {
|
60
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(value); _i3 < _Object$entries3.length; _i3++) {
|
61
|
+
var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
|
62
|
+
index = _Object$entries3$_i[0],
|
63
|
+
item = _Object$entries3$_i[1];
|
64
|
+
if (typeof item === "string" && item.match(VERCEL_STEGA_REGEX)) {
|
65
|
+
add(index, item, props, value);
|
66
|
+
}
|
67
|
+
}
|
38
68
|
}
|
39
69
|
}
|
40
70
|
}
|
@@ -212,7 +242,6 @@ function stegaEncode(input, opts) {
|
|
212
242
|
}, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
|
213
243
|
);
|
214
244
|
}
|
215
|
-
|
216
245
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
217
246
|
return sourceOrSelector;
|
218
247
|
}
|
@@ -8,7 +8,7 @@ var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
8
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
9
9
|
var React = require('react');
|
10
10
|
var stega = require('@vercel/stega');
|
11
|
-
var defineProperty = require('../../dist/defineProperty-
|
11
|
+
var defineProperty = require('../../dist/defineProperty-c84f9aba.cjs.dev.js');
|
12
12
|
var core = require('@valbuild/core');
|
13
13
|
var internal = require('@valbuild/shared/internal');
|
14
14
|
|
@@ -33,18 +33,48 @@ var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
33
33
|
};
|
34
34
|
var addValPathIfFound = function addValPathIfFound(type, props) {
|
35
35
|
var valSources = [];
|
36
|
+
function add(key, value, props, container) {
|
37
|
+
var valPath = stegaDecodeString(value);
|
38
|
+
var attr = "data-val-attr-".concat(key.toString().toLowerCase());
|
39
|
+
if (valPath && !props[attr]) {
|
40
|
+
valSources.push(valPath);
|
41
|
+
var cleanValue = isIntrinsicElement(type) ? stega.vercelStegaSplit(value).cleaned : value;
|
42
|
+
if (Array.isArray(container) && typeof key === "number") {
|
43
|
+
container[key] = cleanValue;
|
44
|
+
} else if (typeof key === "string" && !Array.isArray(container)) {
|
45
|
+
container[key] = cleanValue;
|
46
|
+
} else {
|
47
|
+
console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
48
|
+
}
|
49
|
+
props[attr] = valPath;
|
50
|
+
}
|
51
|
+
}
|
36
52
|
if (props && _typeof._typeof(props) === "object") {
|
37
53
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
38
54
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
39
55
|
key = _Object$entries$_i[0],
|
40
56
|
value = _Object$entries$_i[1];
|
41
57
|
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
42
|
-
|
43
|
-
|
44
|
-
if (
|
45
|
-
|
46
|
-
|
47
|
-
|
58
|
+
add(key, value, props, props);
|
59
|
+
} else if (_typeof._typeof(value) === "object" && value !== null) {
|
60
|
+
if (key === "style") {
|
61
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
62
|
+
var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
|
63
|
+
styleKey = _Object$entries2$_i[0],
|
64
|
+
styleValue = _Object$entries2$_i[1];
|
65
|
+
if (typeof styleValue === "string" && styleValue.match(stega.VERCEL_STEGA_REGEX)) {
|
66
|
+
add(styleKey, styleValue, props, value);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
} else if (value instanceof Array) {
|
70
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(value); _i3 < _Object$entries3.length; _i3++) {
|
71
|
+
var _Object$entries3$_i = slicedToArray._slicedToArray(_Object$entries3[_i3], 2),
|
72
|
+
index = _Object$entries3$_i[0],
|
73
|
+
item = _Object$entries3$_i[1];
|
74
|
+
if (typeof item === "string" && item.match(stega.VERCEL_STEGA_REGEX)) {
|
75
|
+
add(index, item, props, value);
|
76
|
+
}
|
77
|
+
}
|
48
78
|
}
|
49
79
|
}
|
50
80
|
}
|
@@ -222,7 +252,6 @@ function stegaEncode(input, opts) {
|
|
222
252
|
}, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
|
223
253
|
);
|
224
254
|
}
|
225
|
-
|
226
255
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
227
256
|
return sourceOrSelector;
|
228
257
|
}
|
@@ -8,7 +8,7 @@ var ReactJSXRuntime = require('react/jsx-runtime');
|
|
8
8
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
9
9
|
var React = require('react');
|
10
10
|
var stega = require('@vercel/stega');
|
11
|
-
var defineProperty = require('../../dist/defineProperty-
|
11
|
+
var defineProperty = require('../../dist/defineProperty-f8fe5660.cjs.prod.js');
|
12
12
|
var core = require('@valbuild/core');
|
13
13
|
var internal = require('@valbuild/shared/internal');
|
14
14
|
|
@@ -33,18 +33,48 @@ var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
33
33
|
};
|
34
34
|
var addValPathIfFound = function addValPathIfFound(type, props) {
|
35
35
|
var valSources = [];
|
36
|
+
function add(key, value, props, container) {
|
37
|
+
var valPath = stegaDecodeString(value);
|
38
|
+
var attr = "data-val-attr-".concat(key.toString().toLowerCase());
|
39
|
+
if (valPath && !props[attr]) {
|
40
|
+
valSources.push(valPath);
|
41
|
+
var cleanValue = isIntrinsicElement(type) ? stega.vercelStegaSplit(value).cleaned : value;
|
42
|
+
if (Array.isArray(container) && typeof key === "number") {
|
43
|
+
container[key] = cleanValue;
|
44
|
+
} else if (typeof key === "string" && !Array.isArray(container)) {
|
45
|
+
container[key] = cleanValue;
|
46
|
+
} else {
|
47
|
+
console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
48
|
+
}
|
49
|
+
props[attr] = valPath;
|
50
|
+
}
|
51
|
+
}
|
36
52
|
if (props && _typeof._typeof(props) === "object") {
|
37
53
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
38
54
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
39
55
|
key = _Object$entries$_i[0],
|
40
56
|
value = _Object$entries$_i[1];
|
41
57
|
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
42
|
-
|
43
|
-
|
44
|
-
if (
|
45
|
-
|
46
|
-
|
47
|
-
|
58
|
+
add(key, value, props, props);
|
59
|
+
} else if (_typeof._typeof(value) === "object" && value !== null) {
|
60
|
+
if (key === "style") {
|
61
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
62
|
+
var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
|
63
|
+
styleKey = _Object$entries2$_i[0],
|
64
|
+
styleValue = _Object$entries2$_i[1];
|
65
|
+
if (typeof styleValue === "string" && styleValue.match(stega.VERCEL_STEGA_REGEX)) {
|
66
|
+
add(styleKey, styleValue, props, value);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
} else if (value instanceof Array) {
|
70
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(value); _i3 < _Object$entries3.length; _i3++) {
|
71
|
+
var _Object$entries3$_i = slicedToArray._slicedToArray(_Object$entries3[_i3], 2),
|
72
|
+
index = _Object$entries3$_i[0],
|
73
|
+
item = _Object$entries3$_i[1];
|
74
|
+
if (typeof item === "string" && item.match(stega.VERCEL_STEGA_REGEX)) {
|
75
|
+
add(index, item, props, value);
|
76
|
+
}
|
77
|
+
}
|
48
78
|
}
|
49
79
|
}
|
50
80
|
}
|
@@ -222,7 +252,6 @@ function stegaEncode(input, opts) {
|
|
222
252
|
}, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
|
223
253
|
);
|
224
254
|
}
|
225
|
-
|
226
255
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
227
256
|
return sourceOrSelector;
|
228
257
|
}
|
@@ -4,7 +4,7 @@ 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 { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
7
|
-
import { _ as _defineProperty } from '../../dist/defineProperty-
|
7
|
+
import { _ as _defineProperty } from '../../dist/defineProperty-9bf3d0c0.esm.js';
|
8
8
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
9
9
|
import { parseRichTextSource } from '@valbuild/shared/internal';
|
10
10
|
|
@@ -23,18 +23,48 @@ var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
23
23
|
};
|
24
24
|
var addValPathIfFound = function addValPathIfFound(type, props) {
|
25
25
|
var valSources = [];
|
26
|
+
function add(key, value, props, container) {
|
27
|
+
var valPath = stegaDecodeString(value);
|
28
|
+
var attr = "data-val-attr-".concat(key.toString().toLowerCase());
|
29
|
+
if (valPath && !props[attr]) {
|
30
|
+
valSources.push(valPath);
|
31
|
+
var cleanValue = isIntrinsicElement(type) ? vercelStegaSplit(value).cleaned : value;
|
32
|
+
if (Array.isArray(container) && typeof key === "number") {
|
33
|
+
container[key] = cleanValue;
|
34
|
+
} else if (typeof key === "string" && !Array.isArray(container)) {
|
35
|
+
container[key] = cleanValue;
|
36
|
+
} else {
|
37
|
+
console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
38
|
+
}
|
39
|
+
props[attr] = valPath;
|
40
|
+
}
|
41
|
+
}
|
26
42
|
if (props && _typeof(props) === "object") {
|
27
43
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
28
44
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
29
45
|
key = _Object$entries$_i[0],
|
30
46
|
value = _Object$entries$_i[1];
|
31
47
|
if (typeof value === "string" && value.match(VERCEL_STEGA_REGEX)) {
|
32
|
-
|
33
|
-
|
34
|
-
if (
|
35
|
-
|
36
|
-
|
37
|
-
|
48
|
+
add(key, value, props, props);
|
49
|
+
} else if (_typeof(value) === "object" && value !== null) {
|
50
|
+
if (key === "style") {
|
51
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
52
|
+
var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
|
53
|
+
styleKey = _Object$entries2$_i[0],
|
54
|
+
styleValue = _Object$entries2$_i[1];
|
55
|
+
if (typeof styleValue === "string" && styleValue.match(VERCEL_STEGA_REGEX)) {
|
56
|
+
add(styleKey, styleValue, props, value);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
} else if (value instanceof Array) {
|
60
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(value); _i3 < _Object$entries3.length; _i3++) {
|
61
|
+
var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
|
62
|
+
index = _Object$entries3$_i[0],
|
63
|
+
item = _Object$entries3$_i[1];
|
64
|
+
if (typeof item === "string" && item.match(VERCEL_STEGA_REGEX)) {
|
65
|
+
add(index, item, props, value);
|
66
|
+
}
|
67
|
+
}
|
38
68
|
}
|
39
69
|
}
|
40
70
|
}
|
@@ -212,7 +242,6 @@ function stegaEncode(input, opts) {
|
|
212
242
|
}, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
|
213
243
|
);
|
214
244
|
}
|
215
|
-
|
216
245
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
217
246
|
return sourceOrSelector;
|
218
247
|
}
|
@@ -4,7 +4,7 @@ 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 { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
7
|
-
import { _ as _defineProperty } from '../../dist/defineProperty-
|
7
|
+
import { _ as _defineProperty } from '../../dist/defineProperty-82fbeafc.worker.esm.js';
|
8
8
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
9
9
|
import { parseRichTextSource } from '@valbuild/shared/internal';
|
10
10
|
|
@@ -23,18 +23,48 @@ var isIntrinsicElement = function isIntrinsicElement(type) {
|
|
23
23
|
};
|
24
24
|
var addValPathIfFound = function addValPathIfFound(type, props) {
|
25
25
|
var valSources = [];
|
26
|
+
function add(key, value, props, container) {
|
27
|
+
var valPath = stegaDecodeString(value);
|
28
|
+
var attr = "data-val-attr-".concat(key.toString().toLowerCase());
|
29
|
+
if (valPath && !props[attr]) {
|
30
|
+
valSources.push(valPath);
|
31
|
+
var cleanValue = isIntrinsicElement(type) ? vercelStegaSplit(value).cleaned : value;
|
32
|
+
if (Array.isArray(container) && typeof key === "number") {
|
33
|
+
container[key] = cleanValue;
|
34
|
+
} else if (typeof key === "string" && !Array.isArray(container)) {
|
35
|
+
container[key] = cleanValue;
|
36
|
+
} else {
|
37
|
+
console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
38
|
+
}
|
39
|
+
props[attr] = valPath;
|
40
|
+
}
|
41
|
+
}
|
26
42
|
if (props && _typeof(props) === "object") {
|
27
43
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
28
44
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
29
45
|
key = _Object$entries$_i[0],
|
30
46
|
value = _Object$entries$_i[1];
|
31
47
|
if (typeof value === "string" && value.match(VERCEL_STEGA_REGEX)) {
|
32
|
-
|
33
|
-
|
34
|
-
if (
|
35
|
-
|
36
|
-
|
37
|
-
|
48
|
+
add(key, value, props, props);
|
49
|
+
} else if (_typeof(value) === "object" && value !== null) {
|
50
|
+
if (key === "style") {
|
51
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
52
|
+
var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
|
53
|
+
styleKey = _Object$entries2$_i[0],
|
54
|
+
styleValue = _Object$entries2$_i[1];
|
55
|
+
if (typeof styleValue === "string" && styleValue.match(VERCEL_STEGA_REGEX)) {
|
56
|
+
add(styleKey, styleValue, props, value);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
} else if (value instanceof Array) {
|
60
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(value); _i3 < _Object$entries3.length; _i3++) {
|
61
|
+
var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
|
62
|
+
index = _Object$entries3$_i[0],
|
63
|
+
item = _Object$entries3$_i[1];
|
64
|
+
if (typeof item === "string" && item.match(VERCEL_STEGA_REGEX)) {
|
65
|
+
add(index, item, props, value);
|
66
|
+
}
|
67
|
+
}
|
38
68
|
}
|
39
69
|
}
|
40
70
|
}
|
@@ -212,7 +242,6 @@ function stegaEncode(input, opts) {
|
|
212
242
|
}, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
|
213
243
|
);
|
214
244
|
}
|
215
|
-
|
216
245
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
217
246
|
return sourceOrSelector;
|
218
247
|
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
function _toPrimitive(input, hint) {
|
2
|
-
if (typeof input !== "object" || input === null) return input;
|
3
|
-
var prim = input[Symbol.toPrimitive];
|
4
|
-
if (prim !== undefined) {
|
5
|
-
var res = prim.call(input, hint || "default");
|
6
|
-
if (typeof res !== "object") return res;
|
7
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
8
|
-
}
|
9
|
-
return (hint === "string" ? String : Number)(input);
|
10
|
-
}
|
11
|
-
|
12
|
-
function _toPropertyKey(arg) {
|
13
|
-
var key = _toPrimitive(arg, "string");
|
14
|
-
return typeof key === "symbol" ? key : String(key);
|
15
|
-
}
|
16
|
-
|
17
|
-
function _defineProperty(obj, key, value) {
|
18
|
-
key = _toPropertyKey(key);
|
19
|
-
if (key in obj) {
|
20
|
-
Object.defineProperty(obj, key, {
|
21
|
-
value: value,
|
22
|
-
enumerable: true,
|
23
|
-
configurable: true,
|
24
|
-
writable: true
|
25
|
-
});
|
26
|
-
} else {
|
27
|
-
obj[key] = value;
|
28
|
-
}
|
29
|
-
return obj;
|
30
|
-
}
|
31
|
-
|
32
|
-
export { _defineProperty as _, _toPropertyKey as a };
|
@@ -1,35 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
function _toPrimitive(input, hint) {
|
4
|
-
if (typeof input !== "object" || input === null) return input;
|
5
|
-
var prim = input[Symbol.toPrimitive];
|
6
|
-
if (prim !== undefined) {
|
7
|
-
var res = prim.call(input, hint || "default");
|
8
|
-
if (typeof res !== "object") return res;
|
9
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
10
|
-
}
|
11
|
-
return (hint === "string" ? String : Number)(input);
|
12
|
-
}
|
13
|
-
|
14
|
-
function _toPropertyKey(arg) {
|
15
|
-
var key = _toPrimitive(arg, "string");
|
16
|
-
return typeof key === "symbol" ? key : String(key);
|
17
|
-
}
|
18
|
-
|
19
|
-
function _defineProperty(obj, key, value) {
|
20
|
-
key = _toPropertyKey(key);
|
21
|
-
if (key in obj) {
|
22
|
-
Object.defineProperty(obj, key, {
|
23
|
-
value: value,
|
24
|
-
enumerable: true,
|
25
|
-
configurable: true,
|
26
|
-
writable: true
|
27
|
-
});
|
28
|
-
} else {
|
29
|
-
obj[key] = value;
|
30
|
-
}
|
31
|
-
return obj;
|
32
|
-
}
|
33
|
-
|
34
|
-
exports._defineProperty = _defineProperty;
|
35
|
-
exports._toPropertyKey = _toPropertyKey;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
function _toPrimitive(input, hint) {
|
2
|
-
if (typeof input !== "object" || input === null) return input;
|
3
|
-
var prim = input[Symbol.toPrimitive];
|
4
|
-
if (prim !== undefined) {
|
5
|
-
var res = prim.call(input, hint || "default");
|
6
|
-
if (typeof res !== "object") return res;
|
7
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
8
|
-
}
|
9
|
-
return (hint === "string" ? String : Number)(input);
|
10
|
-
}
|
11
|
-
|
12
|
-
function _toPropertyKey(arg) {
|
13
|
-
var key = _toPrimitive(arg, "string");
|
14
|
-
return typeof key === "symbol" ? key : String(key);
|
15
|
-
}
|
16
|
-
|
17
|
-
function _defineProperty(obj, key, value) {
|
18
|
-
key = _toPropertyKey(key);
|
19
|
-
if (key in obj) {
|
20
|
-
Object.defineProperty(obj, key, {
|
21
|
-
value: value,
|
22
|
-
enumerable: true,
|
23
|
-
configurable: true,
|
24
|
-
writable: true
|
25
|
-
});
|
26
|
-
} else {
|
27
|
-
obj[key] = value;
|
28
|
-
}
|
29
|
-
return obj;
|
30
|
-
}
|
31
|
-
|
32
|
-
export { _defineProperty as _, _toPropertyKey as a };
|
@@ -1,35 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
function _toPrimitive(input, hint) {
|
4
|
-
if (typeof input !== "object" || input === null) return input;
|
5
|
-
var prim = input[Symbol.toPrimitive];
|
6
|
-
if (prim !== undefined) {
|
7
|
-
var res = prim.call(input, hint || "default");
|
8
|
-
if (typeof res !== "object") return res;
|
9
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
10
|
-
}
|
11
|
-
return (hint === "string" ? String : Number)(input);
|
12
|
-
}
|
13
|
-
|
14
|
-
function _toPropertyKey(arg) {
|
15
|
-
var key = _toPrimitive(arg, "string");
|
16
|
-
return typeof key === "symbol" ? key : String(key);
|
17
|
-
}
|
18
|
-
|
19
|
-
function _defineProperty(obj, key, value) {
|
20
|
-
key = _toPropertyKey(key);
|
21
|
-
if (key in obj) {
|
22
|
-
Object.defineProperty(obj, key, {
|
23
|
-
value: value,
|
24
|
-
enumerable: true,
|
25
|
-
configurable: true,
|
26
|
-
writable: true
|
27
|
-
});
|
28
|
-
} else {
|
29
|
-
obj[key] = value;
|
30
|
-
}
|
31
|
-
return obj;
|
32
|
-
}
|
33
|
-
|
34
|
-
exports._defineProperty = _defineProperty;
|
35
|
-
exports._toPropertyKey = _toPropertyKey;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
function _toPrimitive(input, hint) {
|
2
|
-
if (typeof input !== "object" || input === null) return input;
|
3
|
-
var prim = input[Symbol.toPrimitive];
|
4
|
-
if (prim !== undefined) {
|
5
|
-
var res = prim.call(input, hint || "default");
|
6
|
-
if (typeof res !== "object") return res;
|
7
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
8
|
-
}
|
9
|
-
return (hint === "string" ? String : Number)(input);
|
10
|
-
}
|
11
|
-
|
12
|
-
function _toPropertyKey(arg) {
|
13
|
-
var key = _toPrimitive(arg, "string");
|
14
|
-
return typeof key === "symbol" ? key : String(key);
|
15
|
-
}
|
16
|
-
|
17
|
-
function _defineProperty(obj, key, value) {
|
18
|
-
key = _toPropertyKey(key);
|
19
|
-
if (key in obj) {
|
20
|
-
Object.defineProperty(obj, key, {
|
21
|
-
value: value,
|
22
|
-
enumerable: true,
|
23
|
-
configurable: true,
|
24
|
-
writable: true
|
25
|
-
});
|
26
|
-
} else {
|
27
|
-
obj[key] = value;
|
28
|
-
}
|
29
|
-
return obj;
|
30
|
-
}
|
31
|
-
|
32
|
-
export { _defineProperty as _, _toPropertyKey as a };
|