@valbuild/ui 0.53.0 → 0.54.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/valbuild-ui.cjs.js +5 -3
- package/dist/valbuild-ui.esm.js +5 -3
- package/package.json +3 -3
- package/server/.tmp/assets/{index-cdGbMDmn.js → index-21XoyKJ-.js} +62 -62
- package/server/.tmp/index.html +1 -1
- package/server/dist/valbuild-ui-main.cjs.js +5 -3
- package/server/dist/valbuild-ui-main.esm.js +5 -3
- package/server/dist/valbuild-ui-server.cjs.js +1 -1
- package/server/dist/valbuild-ui-server.esm.js +1 -1
package/dist/valbuild-ui.cjs.js
CHANGED
|
@@ -40440,6 +40440,7 @@ var Sym = /* @__PURE__ */ function(_Expr2) {
|
|
|
40440
40440
|
new Sym("()");
|
|
40441
40441
|
var VAL_EXTENSION = "_type";
|
|
40442
40442
|
var FILE_REF_PROP = "_ref";
|
|
40443
|
+
var FILE_REF_SUBTYPE_TAG = "_tag";
|
|
40443
40444
|
var FileSchema = /* @__PURE__ */ function(_Schema) {
|
|
40444
40445
|
_inherits(FileSchema2, _Schema);
|
|
40445
40446
|
function FileSchema2(options) {
|
|
@@ -41841,6 +41842,7 @@ function initSchema() {
|
|
|
41841
41842
|
// i18n: i18n(locales),
|
|
41842
41843
|
};
|
|
41843
41844
|
}
|
|
41845
|
+
var RT_IMAGE_TAG = "rt_image";
|
|
41844
41846
|
function getVal(selector) {
|
|
41845
41847
|
return newValProxy(serializedValOfSelectorSource(selector));
|
|
41846
41848
|
}
|
|
@@ -49921,7 +49923,7 @@ function fromRemirrorImageNode(node, files) {
|
|
|
49921
49923
|
var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
|
|
49922
49924
|
var filePath = "/public/".concat(fileName);
|
|
49923
49925
|
files[filePath] = node.attrs.src;
|
|
49924
|
-
return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), "metadata", {
|
|
49926
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
|
|
49925
49927
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
|
49926
49928
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
|
49927
49929
|
sha256: sha256 || "",
|
|
@@ -49930,7 +49932,7 @@ function fromRemirrorImageNode(node, files) {
|
|
|
49930
49932
|
} else if (node.attrs) {
|
|
49931
49933
|
var _sha = getParam("sha256", node.attrs.src);
|
|
49932
49934
|
var noParamsSrc = node.attrs.src.split("?")[0];
|
|
49933
|
-
return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
|
|
49935
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
|
|
49934
49936
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
|
49935
49937
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
|
49936
49938
|
sha256: _sha || "",
|
|
@@ -84732,7 +84734,7 @@ const Toolbar = ({
|
|
|
84732
84734
|
mark: "link",
|
|
84733
84735
|
isOption: options == null ? void 0 : options.ol,
|
|
84734
84736
|
isActive: active.link(),
|
|
84735
|
-
onToggle: (chain2) => chain2.updateLink({ href: "" }).focus().run()
|
|
84737
|
+
onToggle: (chain2) => chain2.selectMark("link").updateLink({ href: "" }).focus().run()
|
|
84736
84738
|
}
|
|
84737
84739
|
),
|
|
84738
84740
|
((options == null ? void 0 : options.img) || active.image()) && /* @__PURE__ */ jsxRuntime$1.jsxs(
|
package/dist/valbuild-ui.esm.js
CHANGED
|
@@ -40422,6 +40422,7 @@ var Sym = /* @__PURE__ */ function(_Expr2) {
|
|
|
40422
40422
|
new Sym("()");
|
|
40423
40423
|
var VAL_EXTENSION = "_type";
|
|
40424
40424
|
var FILE_REF_PROP = "_ref";
|
|
40425
|
+
var FILE_REF_SUBTYPE_TAG = "_tag";
|
|
40425
40426
|
var FileSchema = /* @__PURE__ */ function(_Schema) {
|
|
40426
40427
|
_inherits(FileSchema2, _Schema);
|
|
40427
40428
|
function FileSchema2(options) {
|
|
@@ -41823,6 +41824,7 @@ function initSchema() {
|
|
|
41823
41824
|
// i18n: i18n(locales),
|
|
41824
41825
|
};
|
|
41825
41826
|
}
|
|
41827
|
+
var RT_IMAGE_TAG = "rt_image";
|
|
41826
41828
|
function getVal(selector) {
|
|
41827
41829
|
return newValProxy(serializedValOfSelectorSource(selector));
|
|
41828
41830
|
}
|
|
@@ -49903,7 +49905,7 @@ function fromRemirrorImageNode(node, files) {
|
|
|
49903
49905
|
var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
|
|
49904
49906
|
var filePath = "/public/".concat(fileName);
|
|
49905
49907
|
files[filePath] = node.attrs.src;
|
|
49906
|
-
return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), "metadata", {
|
|
49908
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
|
|
49907
49909
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
|
49908
49910
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
|
49909
49911
|
sha256: sha256 || "",
|
|
@@ -49912,7 +49914,7 @@ function fromRemirrorImageNode(node, files) {
|
|
|
49912
49914
|
} else if (node.attrs) {
|
|
49913
49915
|
var _sha = getParam("sha256", node.attrs.src);
|
|
49914
49916
|
var noParamsSrc = node.attrs.src.split("?")[0];
|
|
49915
|
-
return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
|
|
49917
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
|
|
49916
49918
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
|
49917
49919
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
|
49918
49920
|
sha256: _sha || "",
|
|
@@ -84714,7 +84716,7 @@ const Toolbar = ({
|
|
|
84714
84716
|
mark: "link",
|
|
84715
84717
|
isOption: options == null ? void 0 : options.ol,
|
|
84716
84718
|
isActive: active.link(),
|
|
84717
|
-
onToggle: (chain2) => chain2.updateLink({ href: "" }).focus().run()
|
|
84719
|
+
onToggle: (chain2) => chain2.selectMark("link").updateLink({ href: "" }).focus().run()
|
|
84718
84720
|
}
|
|
84719
84721
|
),
|
|
84720
84722
|
((options == null ? void 0 : options.img) || active.image()) && /* @__PURE__ */ jsxs(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@remirror/pm": "^2.0.8",
|
|
42
42
|
"@remirror/react": "^2.0.35",
|
|
43
43
|
"@remirror/styles": "^2.0.7",
|
|
44
|
-
"@valbuild/core": "~0.
|
|
45
|
-
"@valbuild/shared": "~0.
|
|
44
|
+
"@valbuild/core": "~0.54.0",
|
|
45
|
+
"@valbuild/shared": "~0.54.0",
|
|
46
46
|
"class-variance-authority": "^0.7.0",
|
|
47
47
|
"classnames": "^2.3.2",
|
|
48
48
|
"clsx": "^2.0.0",
|