@valbuild/ui 0.53.0 → 0.55.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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Val</title>
7
- <script type="module" crossorigin src="/api/val/static/assets/index-cdGbMDmn.js"></script>
7
+ <script type="module" crossorigin src="/api/val/static/assets/index-21XoyKJ-.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/api/val/static/assets/index-p3rwgFuv.css">
9
9
  </head>
10
10
  <body>
@@ -32463,6 +32463,7 @@ var Sym = /* @__PURE__ */ function(_Expr2) {
32463
32463
  new Sym("()");
32464
32464
  var VAL_EXTENSION = "_type";
32465
32465
  var FILE_REF_PROP = "_ref";
32466
+ var FILE_REF_SUBTYPE_TAG = "_tag";
32466
32467
  var FileSchema = /* @__PURE__ */ function(_Schema) {
32467
32468
  _inherits(FileSchema2, _Schema);
32468
32469
  function FileSchema2(options) {
@@ -33864,6 +33865,7 @@ function initSchema() {
33864
33865
  // i18n: i18n(locales),
33865
33866
  };
33866
33867
  }
33868
+ var RT_IMAGE_TAG = "rt_image";
33867
33869
  function getVal(selector) {
33868
33870
  return newValProxy(serializedValOfSelectorSource(selector));
33869
33871
  }
@@ -54108,7 +54110,7 @@ function fromRemirrorImageNode(node, files) {
54108
54110
  var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
54109
54111
  var filePath = "/public/".concat(fileName);
54110
54112
  files[filePath] = node.attrs.src;
54111
- return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), "metadata", {
54113
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
54112
54114
  width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
54113
54115
  height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
54114
54116
  sha256: sha256 || "",
@@ -54117,7 +54119,7 @@ function fromRemirrorImageNode(node, files) {
54117
54119
  } else if (node.attrs) {
54118
54120
  var _sha = getParam("sha256", node.attrs.src);
54119
54121
  var noParamsSrc = node.attrs.src.split("?")[0];
54120
- return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
54122
+ 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", {
54121
54123
  width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
54122
54124
  height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
54123
54125
  sha256: _sha || "",
@@ -88523,7 +88525,7 @@ const Toolbar = ({
88523
88525
  mark: "link",
88524
88526
  isOption: options == null ? void 0 : options.ol,
88525
88527
  isActive: active.link(),
88526
- onToggle: (chain2) => chain2.updateLink({ href: "" }).focus().run()
88528
+ onToggle: (chain2) => chain2.selectMark("link").updateLink({ href: "" }).focus().run()
88527
88529
  }
88528
88530
  ),
88529
88531
  ((options == null ? void 0 : options.img) || active.image()) && /* @__PURE__ */ jsxRuntimeExports$1.jsxs(
@@ -32462,6 +32462,7 @@ var Sym = /* @__PURE__ */ function(_Expr2) {
32462
32462
  new Sym("()");
32463
32463
  var VAL_EXTENSION = "_type";
32464
32464
  var FILE_REF_PROP = "_ref";
32465
+ var FILE_REF_SUBTYPE_TAG = "_tag";
32465
32466
  var FileSchema = /* @__PURE__ */ function(_Schema) {
32466
32467
  _inherits(FileSchema2, _Schema);
32467
32468
  function FileSchema2(options) {
@@ -33863,6 +33864,7 @@ function initSchema() {
33863
33864
  // i18n: i18n(locales),
33864
33865
  };
33865
33866
  }
33867
+ var RT_IMAGE_TAG = "rt_image";
33866
33868
  function getVal(selector) {
33867
33869
  return newValProxy(serializedValOfSelectorSource(selector));
33868
33870
  }
@@ -54109,7 +54111,7 @@ function fromRemirrorImageNode(node, files) {
54109
54111
  var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
54110
54112
  var filePath = "/public/".concat(fileName);
54111
54113
  files[filePath] = node.attrs.src;
54112
- return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), "metadata", {
54114
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
54113
54115
  width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
54114
54116
  height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
54115
54117
  sha256: sha256 || "",
@@ -54118,7 +54120,7 @@ function fromRemirrorImageNode(node, files) {
54118
54120
  } else if (node.attrs) {
54119
54121
  var _sha = getParam("sha256", node.attrs.src);
54120
54122
  var noParamsSrc = node.attrs.src.split("?")[0];
54121
- return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
54123
+ 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", {
54122
54124
  width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
54123
54125
  height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
54124
54126
  sha256: _sha || "",
@@ -88524,7 +88526,7 @@ const Toolbar = ({
88524
88526
  mark: "link",
88525
88527
  isOption: options == null ? void 0 : options.ol,
88526
88528
  isActive: active.link(),
88527
- onToggle: (chain2) => chain2.updateLink({ href: "" }).focus().run()
88529
+ onToggle: (chain2) => chain2.selectMark("link").updateLink({ href: "" }).focus().run()
88528
88530
  }
88529
88531
  ),
88530
88532
  ((options == null ? void 0 : options.img) || active.image()) && /* @__PURE__ */ jsxRuntimeExports$1.jsxs(