@valbuild/react 0.14.0 → 0.16.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-f647e355.cjs.dev.js → ValProvider-061ff397.cjs.dev.js} +1 -1
- package/dist/{ValProvider-c677e164.browser.esm.js → ValProvider-b46efd66.browser.esm.js} +1 -1
- package/dist/ValProvider-d7afb84b.cjs.js +7 -0
- package/dist/{ValProvider-74eef393.cjs.prod.js → ValProvider-d7afb84b.cjs.prod.js} +1 -1
- package/dist/{ValProvider-2eb6c2f2.esm.js → ValProvider-fa35f7bd.esm.js} +1 -1
- package/dist/{ValUI-0c2671a7.cjs.prod.js → ValUI-0bb9cc3d.cjs.prod.js} +2 -1
- package/dist/{ValUI-334ef1d0.cjs.dev.js → ValUI-11cf8753.cjs.dev.js} +2 -1
- package/dist/{ValUI-bb1d1ed6.browser.esm.js → ValUI-13a58fa9.browser.esm.js} +2 -1
- package/dist/{ValUI-bf82178a.esm.js → ValUI-3d3b0d68.esm.js} +2 -1
- package/dist/valbuild-react.browser.esm.js +1 -1
- package/dist/valbuild-react.cjs.dev.js +1 -1
- package/dist/valbuild-react.cjs.prod.js +1 -1
- package/dist/valbuild-react.esm.js +1 -1
- package/package.json +3 -3
- package/src/ValUI.tsx +1 -0
- package/src/stega/stegaEncode.ts +2 -2
- package/stega/dist/valbuild-react-stega.browser.esm.js +2 -1
- package/stega/dist/valbuild-react-stega.cjs.dev.js +2 -1
- package/stega/dist/valbuild-react-stega.cjs.prod.js +2 -1
- package/stega/dist/valbuild-react-stega.esm.js +2 -1
- package/stega/dist/valbuild-react-stega.worker.esm.js +2 -1
- package/dist/ValProvider-74eef393.cjs.js +0 -7
@@ -682,7 +682,7 @@ var ValContext = /*#__PURE__*/React__default["default"].createContext({
|
|
682
682
|
}
|
683
683
|
});
|
684
684
|
var ValUI = typeof window !== "undefined" ? /*#__PURE__*/React.lazy(function () {
|
685
|
-
return Promise.resolve().then(function () { return require('./ValUI-
|
685
|
+
return Promise.resolve().then(function () { return require('./ValUI-11cf8753.cjs.dev.js'); });
|
686
686
|
}) : null;
|
687
687
|
function ValProvider(_ref) {
|
688
688
|
var _ref$host = _ref.host,
|
@@ -674,7 +674,7 @@ var ValContext = /*#__PURE__*/React.createContext({
|
|
674
674
|
}
|
675
675
|
});
|
676
676
|
var ValUI = /*#__PURE__*/lazy(function () {
|
677
|
-
return import('./ValUI-
|
677
|
+
return import('./ValUI-13a58fa9.browser.esm.js');
|
678
678
|
}) ;
|
679
679
|
function ValProvider(_ref) {
|
680
680
|
var _ref$host = _ref.host,
|
@@ -682,7 +682,7 @@ var ValContext = /*#__PURE__*/React__default["default"].createContext({
|
|
682
682
|
}
|
683
683
|
});
|
684
684
|
var ValUI = typeof window !== "undefined" ? /*#__PURE__*/React.lazy(function () {
|
685
|
-
return Promise.resolve().then(function () { return require('./ValUI-
|
685
|
+
return Promise.resolve().then(function () { return require('./ValUI-0bb9cc3d.cjs.prod.js'); });
|
686
686
|
}) : null;
|
687
687
|
function ValProvider(_ref) {
|
688
688
|
var _ref$host = _ref.host,
|
@@ -674,7 +674,7 @@ var ValContext = /*#__PURE__*/React.createContext({
|
|
674
674
|
}
|
675
675
|
});
|
676
676
|
var ValUI = typeof window !== "undefined" ? /*#__PURE__*/lazy(function () {
|
677
|
-
return import('./ValUI-
|
677
|
+
return import('./ValUI-3d3b0d68.esm.js');
|
678
678
|
}) : null;
|
679
679
|
function ValProvider(_ref) {
|
680
680
|
var _ref$host = _ref.host,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
var defineProperty = require('./defineProperty-36ed93cd.cjs.prod.js');
|
4
4
|
var objectSpread2 = require('./objectSpread2-7b752a35.cjs.prod.js');
|
5
5
|
var slicedToArray = require('./slicedToArray-0eb0bcdb.cjs.prod.js');
|
6
|
-
var ValProvider = require('./ValProvider-
|
6
|
+
var ValProvider = require('./ValProvider-d7afb84b.cjs.prod.js');
|
7
7
|
var React = require('react');
|
8
8
|
var ui = require('@valbuild/ui');
|
9
9
|
var core = require('@valbuild/core');
|
@@ -362,6 +362,7 @@ function ValUI(_ref) {
|
|
362
362
|
}];
|
363
363
|
return valApi.patchModuleContent(moduleId, _patch2);
|
364
364
|
}
|
365
|
+
console.log("->", input);
|
365
366
|
throw new Error("Unsupported input type: ".concat(input.type));
|
366
367
|
} else {
|
367
368
|
console.error("Submitted incomplete input, ignoring...");
|
@@ -3,7 +3,7 @@
|
|
3
3
|
var defineProperty = require('./defineProperty-c82a49b0.cjs.dev.js');
|
4
4
|
var objectSpread2 = require('./objectSpread2-61fbd9a9.cjs.dev.js');
|
5
5
|
var slicedToArray = require('./slicedToArray-b7cf26e0.cjs.dev.js');
|
6
|
-
var ValProvider = require('./ValProvider-
|
6
|
+
var ValProvider = require('./ValProvider-061ff397.cjs.dev.js');
|
7
7
|
var React = require('react');
|
8
8
|
var ui = require('@valbuild/ui');
|
9
9
|
var core = require('@valbuild/core');
|
@@ -362,6 +362,7 @@ function ValUI(_ref) {
|
|
362
362
|
}];
|
363
363
|
return valApi.patchModuleContent(moduleId, _patch2);
|
364
364
|
}
|
365
|
+
console.log("->", input);
|
365
366
|
throw new Error("Unsupported input type: ".concat(input.type));
|
366
367
|
} else {
|
367
368
|
console.error("Submitted incomplete input, ignoring...");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { _ as _defineProperty } from './defineProperty-f319cb47.browser.esm.js';
|
2
2
|
import { _ as _objectSpread2 } from './objectSpread2-30cc2856.browser.esm.js';
|
3
3
|
import { _ as _slicedToArray, a as _typeof } from './slicedToArray-1a246338.browser.esm.js';
|
4
|
-
import { _ as _createForOfIteratorHelper, a as _asyncToGenerator, b as _regeneratorRuntime } from './ValProvider-
|
4
|
+
import { _ as _createForOfIteratorHelper, a as _asyncToGenerator, b as _regeneratorRuntime } from './ValProvider-b46efd66.browser.esm.js';
|
5
5
|
import { useRef, useState, useLayoutEffect, useEffect } from 'react';
|
6
6
|
import { Style, ValOverlay } from '@valbuild/ui';
|
7
7
|
import { FILE_REF_PROP, VAL_EXTENSION, Internal } from '@valbuild/core';
|
@@ -360,6 +360,7 @@ function ValUI(_ref) {
|
|
360
360
|
}];
|
361
361
|
return valApi.patchModuleContent(moduleId, _patch2);
|
362
362
|
}
|
363
|
+
console.log("->", input);
|
363
364
|
throw new Error("Unsupported input type: ".concat(input.type));
|
364
365
|
} else {
|
365
366
|
console.error("Submitted incomplete input, ignoring...");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { _ as _defineProperty } from './defineProperty-12b5bd29.esm.js';
|
2
2
|
import { _ as _objectSpread2 } from './objectSpread2-d5a1fe1c.esm.js';
|
3
3
|
import { _ as _slicedToArray, a as _typeof } from './slicedToArray-d846e1d2.esm.js';
|
4
|
-
import { _ as _createForOfIteratorHelper, a as _asyncToGenerator, b as _regeneratorRuntime } from './ValProvider-
|
4
|
+
import { _ as _createForOfIteratorHelper, a as _asyncToGenerator, b as _regeneratorRuntime } from './ValProvider-fa35f7bd.esm.js';
|
5
5
|
import { useRef, useState, useLayoutEffect, useEffect } from 'react';
|
6
6
|
import { Style, ValOverlay } from '@valbuild/ui';
|
7
7
|
import { FILE_REF_PROP, VAL_EXTENSION, Internal } from '@valbuild/core';
|
@@ -360,6 +360,7 @@ function ValUI(_ref) {
|
|
360
360
|
}];
|
361
361
|
return valApi.patchModuleContent(moduleId, _patch2);
|
362
362
|
}
|
363
|
+
console.log("->", input);
|
363
364
|
throw new Error("Unsupported input type: ".concat(input.type));
|
364
365
|
} else {
|
365
366
|
console.error("Submitted incomplete input, ignoring...");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var ValProvider = require('./ValProvider-
|
5
|
+
var ValProvider = require('./ValProvider-061ff397.cjs.dev.js');
|
6
6
|
var core = require('@valbuild/core');
|
7
7
|
var React = require('react');
|
8
8
|
var parse = require('style-to-object');
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var ValProvider = require('./ValProvider-
|
5
|
+
var ValProvider = require('./ValProvider-d7afb84b.cjs.prod.js');
|
6
6
|
var core = require('@valbuild/core');
|
7
7
|
var React = require('react');
|
8
8
|
var parse = require('style-to-object');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/react",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.16.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.16.0",
|
13
|
+
"@valbuild/ui": "~0.15.0",
|
14
14
|
"@vercel/stega": "^0.1.0",
|
15
15
|
"base64-arraybuffer": "^1.0.2",
|
16
16
|
"style-to-object": "^0.4.1"
|
package/src/ValUI.tsx
CHANGED
package/src/stega/stegaEncode.ts
CHANGED
@@ -72,8 +72,8 @@ export function stegaEncodeVal<T extends Json>(val: Val<T>): T {
|
|
72
72
|
origin: "val.build",
|
73
73
|
data: { valPath: Internal.getValPath(val) },
|
74
74
|
},
|
75
|
-
|
76
|
-
) as T;
|
75
|
+
isDate(val.val) // skip = true if isDate
|
76
|
+
) as T;
|
77
77
|
}
|
78
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
79
79
|
return val.val as any;
|
@@ -104,7 +104,8 @@ function stegaEncodeVal(val) {
|
|
104
104
|
data: {
|
105
105
|
valPath: Internal.getValPath(val)
|
106
106
|
}
|
107
|
-
},
|
107
|
+
}, isDate(val.val) // skip = true if isDate
|
108
|
+
);
|
108
109
|
}
|
109
110
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
110
111
|
return val.val;
|
@@ -114,7 +114,8 @@ function stegaEncodeVal(val) {
|
|
114
114
|
data: {
|
115
115
|
valPath: core.Internal.getValPath(val)
|
116
116
|
}
|
117
|
-
},
|
117
|
+
}, isDate(val.val) // skip = true if isDate
|
118
|
+
);
|
118
119
|
}
|
119
120
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
120
121
|
return val.val;
|
@@ -114,7 +114,8 @@ function stegaEncodeVal(val) {
|
|
114
114
|
data: {
|
115
115
|
valPath: core.Internal.getValPath(val)
|
116
116
|
}
|
117
|
-
},
|
117
|
+
}, isDate(val.val) // skip = true if isDate
|
118
|
+
);
|
118
119
|
}
|
119
120
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
120
121
|
return val.val;
|
@@ -104,7 +104,8 @@ function stegaEncodeVal(val) {
|
|
104
104
|
data: {
|
105
105
|
valPath: Internal.getValPath(val)
|
106
106
|
}
|
107
|
-
},
|
107
|
+
}, isDate(val.val) // skip = true if isDate
|
108
|
+
);
|
108
109
|
}
|
109
110
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
110
111
|
return val.val;
|
@@ -125,7 +125,8 @@ function stegaEncodeVal(val) {
|
|
125
125
|
data: {
|
126
126
|
valPath: Internal.getValPath(val)
|
127
127
|
}
|
128
|
-
},
|
128
|
+
}, isDate(val.val) // skip = true if isDate
|
129
|
+
);
|
129
130
|
}
|
130
131
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
131
132
|
return val.val;
|