@valbuild/react 0.33.0 → 0.34.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-d46ec16a.worker.esm.js → ValProvider-14e23a8d.worker.esm.js} +1 -1
- package/dist/{ValProvider-14179159.browser.esm.js → ValProvider-279ac59b.browser.esm.js} +1 -1
- package/dist/ValProvider-69842d7d.cjs.js +7 -0
- package/dist/{ValProvider-b2e83d12.cjs.prod.js → ValProvider-69842d7d.cjs.prod.js} +1 -1
- package/dist/{ValProvider-0620664e.esm.js → ValProvider-857170d0.esm.js} +1 -1
- package/dist/{ValProvider-7513c6ec.cjs.dev.js → ValProvider-be7d6bde.cjs.dev.js} +1 -1
- package/dist/ValUI-33562b10.cjs.dev.js +1 -1
- package/dist/ValUI-3b9f6c17.worker.esm.js +1 -1
- package/dist/ValUI-4ba5efea.esm.js +1 -1
- package/dist/ValUI-75338157.browser.esm.js +1 -1
- package/dist/ValUI-8ea90ec3.cjs.prod.js +1 -1
- package/dist/declarations/src/internal/ValRichText.d.ts +8 -11
- package/internal/dist/valbuild-react-internal.browser.esm.js +3 -3
- package/internal/dist/valbuild-react-internal.cjs.dev.js +3 -3
- package/internal/dist/valbuild-react-internal.cjs.prod.js +3 -3
- package/internal/dist/valbuild-react-internal.esm.js +3 -3
- package/internal/dist/valbuild-react-internal.worker.esm.js +3 -3
- package/package.json +4 -4
- package/dist/ValProvider-b2e83d12.cjs.js +0 -7
@@ -545,7 +545,7 @@ var ValStore = /*#__PURE__*/function () {
|
|
545
545
|
_context3.next = 17;
|
546
546
|
break;
|
547
547
|
case 16:
|
548
|
-
console.error("Val: failed to update modules", data.error
|
548
|
+
console.error("Val: failed to update modules", data.error);
|
549
549
|
case 17:
|
550
550
|
case "end":
|
551
551
|
return _context3.stop();
|
@@ -545,7 +545,7 @@ var ValStore = /*#__PURE__*/function () {
|
|
545
545
|
_context3.next = 17;
|
546
546
|
break;
|
547
547
|
case 16:
|
548
|
-
console.error("Val: failed to update modules", data.error
|
548
|
+
console.error("Val: failed to update modules", data.error);
|
549
549
|
case 17:
|
550
550
|
case "end":
|
551
551
|
return _context3.stop();
|
@@ -571,7 +571,7 @@ var ValStore = /*#__PURE__*/function () {
|
|
571
571
|
_context3.next = 17;
|
572
572
|
break;
|
573
573
|
case 16:
|
574
|
-
console.error("Val: failed to update modules", data.error
|
574
|
+
console.error("Val: failed to update modules", data.error);
|
575
575
|
case 17:
|
576
576
|
case "end":
|
577
577
|
return _context3.stop();
|
@@ -545,7 +545,7 @@ var ValStore = /*#__PURE__*/function () {
|
|
545
545
|
_context3.next = 17;
|
546
546
|
break;
|
547
547
|
case 16:
|
548
|
-
console.error("Val: failed to update modules", data.error
|
548
|
+
console.error("Val: failed to update modules", data.error);
|
549
549
|
case 17:
|
550
550
|
case "end":
|
551
551
|
return _context3.stop();
|
@@ -571,7 +571,7 @@ var ValStore = /*#__PURE__*/function () {
|
|
571
571
|
_context3.next = 17;
|
572
572
|
break;
|
573
573
|
case 16:
|
574
|
-
console.error("Val: failed to update modules", data.error
|
574
|
+
console.error("Val: failed to update modules", data.error);
|
575
575
|
case 17:
|
576
576
|
case "end":
|
577
577
|
return _context3.stop();
|
@@ -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-be7d6bde.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-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-14e23a8d.worker.esm.js';
|
8
8
|
|
9
9
|
function ShadowContent(_ref) {
|
10
10
|
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-857170d0.esm.js';
|
8
8
|
|
9
9
|
function ShadowContent(_ref) {
|
10
10
|
var root = _ref.root,
|
@@ -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-279ac59b.browser.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-69842d7d.cjs.prod.js');
|
12
12
|
|
13
13
|
function ShadowContent(_ref) {
|
14
14
|
var root = _ref.root,
|
@@ -2,17 +2,14 @@
|
|
2
2
|
import { RichText, RichTextOptions } from "@valbuild/core";
|
3
3
|
type Tags = keyof Pick<RichTextOptions, "img" | "ul" | "ol">;
|
4
4
|
type Classes = keyof Pick<RichTextOptions, "bold" | "italic" | "lineThrough">;
|
5
|
-
type ThemeOptions<O extends RichTextOptions> = {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
classes: {
|
14
|
-
[Key in Classes & keyof O as O[Key] extends true ? Key : never]: string;
|
15
|
-
};
|
5
|
+
type ThemeOptions<O extends RichTextOptions> = (O["headings"] extends Array<unknown> ? {
|
6
|
+
[Key in O["headings"][number]]: string;
|
7
|
+
} : {}) & {
|
8
|
+
[Key in Tags & keyof O as O[Key] extends true ? Key extends "ul" | "ol" ? Key | "li" : Key : never]: string;
|
9
|
+
} & {
|
10
|
+
p?: string;
|
11
|
+
} & {
|
12
|
+
[Key in Classes & keyof O as O[Key] extends true ? Key : never]: string;
|
16
13
|
};
|
17
14
|
export declare function ValRichText<O extends RichTextOptions>({ theme, className, children, }: {
|
18
15
|
theme?: ThemeOptions<O>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-
|
1
|
+
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-279ac59b.browser.esm.js';
|
2
2
|
import React from 'react';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
@@ -9,7 +9,7 @@ function ValRichText(_ref) {
|
|
9
9
|
children = _ref.children;
|
10
10
|
var root = children;
|
11
11
|
function withRenderTag(clazz, current) {
|
12
|
-
var renderClass = theme
|
12
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
13
13
|
if (renderClass && current) {
|
14
14
|
return [current, renderClass].join(" ");
|
15
15
|
}
|
@@ -19,7 +19,7 @@ function ValRichText(_ref) {
|
|
19
19
|
return current;
|
20
20
|
}
|
21
21
|
function withRenderClass(clazz, current) {
|
22
|
-
var renderClass = theme
|
22
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
23
23
|
if (renderClass && current) {
|
24
24
|
return [current, renderClass].join(" ");
|
25
25
|
}
|
@@ -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-be7d6bde.cjs.dev.js');
|
6
6
|
var React = require('react');
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
8
|
|
@@ -17,7 +17,7 @@ function ValRichText(_ref) {
|
|
17
17
|
children = _ref.children;
|
18
18
|
var root = children;
|
19
19
|
function withRenderTag(clazz, current) {
|
20
|
-
var renderClass = theme
|
20
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
21
21
|
if (renderClass && current) {
|
22
22
|
return [current, renderClass].join(" ");
|
23
23
|
}
|
@@ -27,7 +27,7 @@ function ValRichText(_ref) {
|
|
27
27
|
return current;
|
28
28
|
}
|
29
29
|
function withRenderClass(clazz, current) {
|
30
|
-
var renderClass = theme
|
30
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
31
31
|
if (renderClass && current) {
|
32
32
|
return [current, renderClass].join(" ");
|
33
33
|
}
|
@@ -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-69842d7d.cjs.prod.js');
|
6
6
|
var React = require('react');
|
7
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
8
|
|
@@ -17,7 +17,7 @@ function ValRichText(_ref) {
|
|
17
17
|
children = _ref.children;
|
18
18
|
var root = children;
|
19
19
|
function withRenderTag(clazz, current) {
|
20
|
-
var renderClass = theme
|
20
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
21
21
|
if (renderClass && current) {
|
22
22
|
return [current, renderClass].join(" ");
|
23
23
|
}
|
@@ -27,7 +27,7 @@ function ValRichText(_ref) {
|
|
27
27
|
return current;
|
28
28
|
}
|
29
29
|
function withRenderClass(clazz, current) {
|
30
|
-
var renderClass = theme
|
30
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
31
31
|
if (renderClass && current) {
|
32
32
|
return [current, renderClass].join(" ");
|
33
33
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-
|
1
|
+
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-857170d0.esm.js';
|
2
2
|
import React from 'react';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
@@ -9,7 +9,7 @@ function ValRichText(_ref) {
|
|
9
9
|
children = _ref.children;
|
10
10
|
var root = children;
|
11
11
|
function withRenderTag(clazz, current) {
|
12
|
-
var renderClass = theme
|
12
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
13
13
|
if (renderClass && current) {
|
14
14
|
return [current, renderClass].join(" ");
|
15
15
|
}
|
@@ -19,7 +19,7 @@ function ValRichText(_ref) {
|
|
19
19
|
return current;
|
20
20
|
}
|
21
21
|
function withRenderClass(clazz, current) {
|
22
|
-
var renderClass = theme
|
22
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
23
23
|
if (renderClass && current) {
|
24
24
|
return [current, renderClass].join(" ");
|
25
25
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-
|
1
|
+
export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-14e23a8d.worker.esm.js';
|
2
2
|
import React from 'react';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
@@ -9,7 +9,7 @@ function ValRichText(_ref) {
|
|
9
9
|
children = _ref.children;
|
10
10
|
var root = children;
|
11
11
|
function withRenderTag(clazz, current) {
|
12
|
-
var renderClass = theme
|
12
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
13
13
|
if (renderClass && current) {
|
14
14
|
return [current, renderClass].join(" ");
|
15
15
|
}
|
@@ -19,7 +19,7 @@ function ValRichText(_ref) {
|
|
19
19
|
return current;
|
20
20
|
}
|
21
21
|
function withRenderClass(clazz, current) {
|
22
|
-
var renderClass = theme
|
22
|
+
var renderClass = theme === null || theme === void 0 ? void 0 : theme[clazz];
|
23
23
|
if (renderClass && current) {
|
24
24
|
return [current, renderClass].join(" ");
|
25
25
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/react",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.34.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/ui": "~0.
|
14
|
-
"@valbuild/shared": "~0.
|
12
|
+
"@valbuild/core": "~0.34.0",
|
13
|
+
"@valbuild/ui": "~0.34.0",
|
14
|
+
"@valbuild/shared": "~0.34.0",
|
15
15
|
"@vercel/stega": "^0.1.0",
|
16
16
|
"base64-arraybuffer": "^1.0.2",
|
17
17
|
"style-to-object": "^0.4.1"
|