@digitalculture/ochre-sdk 0.4.13 → 0.4.14
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/index.cjs +6 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -275,7 +275,12 @@ function parseStringDocumentItem(item, footnotes) {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
if ("links" in item) {
|
|
278
|
-
|
|
278
|
+
let itemString = "";
|
|
279
|
+
if (typeof item.string === "object") {
|
|
280
|
+
itemString = parseStringContent(item.string);
|
|
281
|
+
} else {
|
|
282
|
+
itemString = parseFakeString(item.string).replaceAll("<", String.raw`\<`).replaceAll("{", String.raw`\{`);
|
|
283
|
+
}
|
|
279
284
|
const itemLinks = Array.isArray(item.links) ? item.links : [item.links];
|
|
280
285
|
for (const link of itemLinks) {
|
|
281
286
|
if ("resource" in link) {
|
package/dist/index.d.cts
CHANGED
|
@@ -751,7 +751,7 @@ type OchreStringRichTextItemContent = {
|
|
|
751
751
|
*/
|
|
752
752
|
type OchreStringRichTextItemAnnotation = {
|
|
753
753
|
annotation: string; // UUID
|
|
754
|
-
string: FakeString;
|
|
754
|
+
string: FakeString | OchreStringRichTextItemContent;
|
|
755
755
|
links: OchreLink | Array<OchreLink>;
|
|
756
756
|
};
|
|
757
757
|
|
package/dist/index.d.ts
CHANGED
|
@@ -751,7 +751,7 @@ type OchreStringRichTextItemContent = {
|
|
|
751
751
|
*/
|
|
752
752
|
type OchreStringRichTextItemAnnotation = {
|
|
753
753
|
annotation: string; // UUID
|
|
754
|
-
string: FakeString;
|
|
754
|
+
string: FakeString | OchreStringRichTextItemContent;
|
|
755
755
|
links: OchreLink | Array<OchreLink>;
|
|
756
756
|
};
|
|
757
757
|
|
package/dist/index.js
CHANGED
|
@@ -198,7 +198,12 @@ function parseStringDocumentItem(item, footnotes) {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
if ("links" in item) {
|
|
201
|
-
|
|
201
|
+
let itemString = "";
|
|
202
|
+
if (typeof item.string === "object") {
|
|
203
|
+
itemString = parseStringContent(item.string);
|
|
204
|
+
} else {
|
|
205
|
+
itemString = parseFakeString(item.string).replaceAll("<", String.raw`\<`).replaceAll("{", String.raw`\{`);
|
|
206
|
+
}
|
|
202
207
|
const itemLinks = Array.isArray(item.links) ? item.links : [item.links];
|
|
203
208
|
for (const link of itemLinks) {
|
|
204
209
|
if ("resource" in link) {
|
package/package.json
CHANGED