@valbuild/shared 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.
@@ -1092,7 +1092,7 @@ function fromRemirrorImageNode(node, files) {
|
|
1092
1092
|
var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
|
1093
1093
|
var filePath = "/public/".concat(fileName);
|
1094
1094
|
files[filePath] = node.attrs.src;
|
1095
|
-
return _defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, filePath), "metadata", {
|
1095
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, filePath), core.FILE_REF_SUBTYPE_TAG, core.RT_IMAGE_TAG), "metadata", {
|
1096
1096
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
1097
1097
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
1098
1098
|
sha256: sha256 || "",
|
@@ -1101,7 +1101,7 @@ function fromRemirrorImageNode(node, files) {
|
|
1101
1101
|
} else if (node.attrs) {
|
1102
1102
|
var _sha = getParam("sha256", node.attrs.src);
|
1103
1103
|
var noParamsSrc = node.attrs.src.split("?")[0];
|
1104
|
-
return _defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
|
1104
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), core.FILE_REF_SUBTYPE_TAG, core.RT_IMAGE_TAG), "metadata", {
|
1105
1105
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
1106
1106
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
1107
1107
|
sha256: _sha || "",
|
@@ -1092,7 +1092,7 @@ function fromRemirrorImageNode(node, files) {
|
|
1092
1092
|
var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
|
1093
1093
|
var filePath = "/public/".concat(fileName);
|
1094
1094
|
files[filePath] = node.attrs.src;
|
1095
|
-
return _defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, filePath), "metadata", {
|
1095
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, filePath), core.FILE_REF_SUBTYPE_TAG, core.RT_IMAGE_TAG), "metadata", {
|
1096
1096
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
1097
1097
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
1098
1098
|
sha256: sha256 || "",
|
@@ -1101,7 +1101,7 @@ function fromRemirrorImageNode(node, files) {
|
|
1101
1101
|
} else if (node.attrs) {
|
1102
1102
|
var _sha = getParam("sha256", node.attrs.src);
|
1103
1103
|
var noParamsSrc = node.attrs.src.split("?")[0];
|
1104
|
-
return _defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
|
1104
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, core.VAL_EXTENSION, "file"), core.FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), core.FILE_REF_SUBTYPE_TAG, core.RT_IMAGE_TAG), "metadata", {
|
1105
1105
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
1106
1106
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
1107
1107
|
sha256: _sha || "",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { VAL_EXTENSION, Internal, FILE_REF_PROP } from '@valbuild/core';
|
1
|
+
import { VAL_EXTENSION, Internal, FILE_REF_PROP, FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG } from '@valbuild/core';
|
2
2
|
import * as marked from 'marked';
|
3
3
|
import { z } from 'zod';
|
4
4
|
|
@@ -1068,7 +1068,7 @@ function fromRemirrorImageNode(node, files) {
|
|
1068
1068
|
var fileName = node.attrs.fileName || "".concat(sha256, ".").concat(fileExt);
|
1069
1069
|
var filePath = "/public/".concat(fileName);
|
1070
1070
|
files[filePath] = node.attrs.src;
|
1071
|
-
return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), "metadata", {
|
1071
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, filePath), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), "metadata", {
|
1072
1072
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
1073
1073
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
1074
1074
|
sha256: sha256 || "",
|
@@ -1077,7 +1077,7 @@ function fromRemirrorImageNode(node, files) {
|
|
1077
1077
|
} else if (node.attrs) {
|
1078
1078
|
var _sha = getParam("sha256", node.attrs.src);
|
1079
1079
|
var noParamsSrc = node.attrs.src.split("?")[0];
|
1080
|
-
return _defineProperty(_defineProperty(_defineProperty({}, VAL_EXTENSION, "file"), FILE_REF_PROP, "/public".concat(node.attrs.src.split("?")[0])), "metadata", {
|
1080
|
+
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", {
|
1081
1081
|
width: typeof node.attrs.width === "number" ? node.attrs.width : 0,
|
1082
1082
|
height: typeof node.attrs.height === "number" ? node.attrs.height : 0,
|
1083
1083
|
sha256: _sha || "",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/shared",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.55.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Val shared types and utilities",
|
6
6
|
"scripts": {
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"exports": true
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@valbuild/core": "~0.
|
32
|
+
"@valbuild/core": "~0.55.0",
|
33
33
|
"marked": "^9.0.3",
|
34
34
|
"zod": "^3.22.4"
|
35
35
|
},
|