tinacms 2.7.0 → 2.7.1
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.js +8 -8
- package/dist/index.mjs +9 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9292,9 +9292,7 @@ flowchart TD
|
|
|
9292
9292
|
const encodeUrlIfNeeded = (url) => {
|
|
9293
9293
|
if (url) {
|
|
9294
9294
|
try {
|
|
9295
|
-
|
|
9296
|
-
parsed.pathname = parsed.pathname.split("/").filter((part) => part !== "").map(encodeURIComponent).join("/");
|
|
9297
|
-
return parsed.toString();
|
|
9295
|
+
return new URL(url).toString();
|
|
9298
9296
|
} catch (e) {
|
|
9299
9297
|
return url;
|
|
9300
9298
|
}
|
|
@@ -10195,7 +10193,7 @@ flowchart TD
|
|
|
10195
10193
|
"Event Log"
|
|
10196
10194
|
));
|
|
10197
10195
|
};
|
|
10198
|
-
const version = "2.7.
|
|
10196
|
+
const version = "2.7.1";
|
|
10199
10197
|
const Nav = ({
|
|
10200
10198
|
isLocalMode,
|
|
10201
10199
|
className = "",
|
|
@@ -13548,6 +13546,11 @@ flowchart TD
|
|
|
13548
13546
|
mode: "mark",
|
|
13549
13547
|
type: plate.MARK_CODE,
|
|
13550
13548
|
match: "`"
|
|
13549
|
+
},
|
|
13550
|
+
{
|
|
13551
|
+
mode: "mark",
|
|
13552
|
+
type: plate.MARK_STRIKETHROUGH,
|
|
13553
|
+
match: ["~~", "~"]
|
|
13551
13554
|
}
|
|
13552
13555
|
];
|
|
13553
13556
|
const autoformatRules = [
|
|
@@ -13689,17 +13692,14 @@ flowchart TD
|
|
|
13689
13692
|
})
|
|
13690
13693
|
];
|
|
13691
13694
|
const plugins = [
|
|
13695
|
+
plate.createBasicMarksPlugin(),
|
|
13692
13696
|
plate.createHeadingPlugin(),
|
|
13693
13697
|
plate.createParagraphPlugin(),
|
|
13694
13698
|
createCodeBlockPlugin(),
|
|
13695
13699
|
createHTMLBlockPlugin(),
|
|
13696
13700
|
createHTMLInlinePlugin(),
|
|
13697
13701
|
plate.createBlockquotePlugin(),
|
|
13698
|
-
plate.createBoldPlugin(),
|
|
13699
|
-
plate.createStrikethroughPlugin(),
|
|
13700
|
-
plate.createItalicPlugin(),
|
|
13701
13702
|
plate.createUnderlinePlugin(),
|
|
13702
|
-
plate.createCodePlugin(),
|
|
13703
13703
|
plate.createListPlugin(),
|
|
13704
13704
|
plate.createIndentListPlugin(),
|
|
13705
13705
|
plate.createHorizontalRulePlugin(),
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from "react";
|
|
|
9
9
|
import React__default, { useState, useCallback, useEffect, useRef, createContext, forwardRef, useContext, useMemo, startTransition } from "react";
|
|
10
10
|
import { createPortal } from "react-dom";
|
|
11
11
|
import { withRef, cn as cn$1, withVariants, withProps, withCn, createPrimitiveElement } from "@udecode/cn";
|
|
12
|
-
import { toggleList, ELEMENT_UL, ELEMENT_OL, ELEMENT_H1 as ELEMENT_H1$1, ELEMENT_H2 as ELEMENT_H2$1, ELEMENT_H3 as ELEMENT_H3$1, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, ELEMENT_PARAGRAPH, ELEMENT_BLOCKQUOTE, ELEMENT_CODE_BLOCK, ELEMENT_CODE_LINE, ELEMENT_CODE_SYNTAX, ELEMENT_LI, ELEMENT_LINK, MARK_CODE, MARK_UNDERLINE, MARK_STRIKETHROUGH, MARK_ITALIC, MARK_BOLD, ELEMENT_HR, ELEMENT_TABLE, ELEMENT_TR, ELEMENT_TD, ELEMENT_TH, unwrapList, ELEMENT_TODO_LI, createTrailingBlockPlugin, createAutoformatPlugin, createExitBreakPlugin, KEYS_HEADING, createResetNodePlugin, createHeadingPlugin, createParagraphPlugin, createBlockquotePlugin,
|
|
12
|
+
import { toggleList, ELEMENT_UL, ELEMENT_OL, ELEMENT_H1 as ELEMENT_H1$1, ELEMENT_H2 as ELEMENT_H2$1, ELEMENT_H3 as ELEMENT_H3$1, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, ELEMENT_PARAGRAPH, ELEMENT_BLOCKQUOTE, ELEMENT_CODE_BLOCK, ELEMENT_CODE_LINE, ELEMENT_CODE_SYNTAX, ELEMENT_LI, ELEMENT_LINK, MARK_CODE, MARK_UNDERLINE, MARK_STRIKETHROUGH, MARK_ITALIC, MARK_BOLD, ELEMENT_HR, ELEMENT_TABLE, ELEMENT_TR, ELEMENT_TD, ELEMENT_TH, unwrapList, ELEMENT_TODO_LI, createTrailingBlockPlugin, createAutoformatPlugin, createExitBreakPlugin, KEYS_HEADING, createResetNodePlugin, createBasicMarksPlugin, createHeadingPlugin, createParagraphPlugin, createBlockquotePlugin, createUnderlinePlugin, createListPlugin, createIndentListPlugin, createHorizontalRulePlugin, createNodeIdPlugin, createTablePlugin, getListItemEntry, useListToolbarButtonState, useListToolbarButton } from "@udecode/plate";
|
|
13
13
|
import { PlateElement, isCollapsed, findNodePath, getPointAfter, insertNodes, ELEMENT_DEFAULT, focusEditor, getPointBefore, setNodes, isElement, PlateLeaf, createPluginFactory, useComposedRef, useEditorRef, createPointRef, insertText, moveSelection, toggleNodeType, useElement, useRemoveNodeButton, useEditorSelector, isSelectionExpanded, withHOC, normalizeEditor, getBlockAbove, queryNode, getParentNode, isType, someNode, isSelectionAtBlockStart, setElements, insertNode, getPluginType, isBlock, isBlockAboveEmpty, findNode, PlateContent, getNodeEntries, useEditorState, collapseSelection, useMarkToolbarButtonState, useMarkToolbarButton, insertEmptyElement, usePlateSelectors, useEventEditorSelectors, PortalBody, useFormInputProps, createPlugins, Plate } from "@udecode/plate-common";
|
|
14
14
|
import { ELEMENT_SLASH_INPUT, createSlashPlugin } from "@udecode/plate-slash-command";
|
|
15
15
|
import { useSelected, useReadOnly, ReactEditor } from "slate-react";
|
|
@@ -9319,9 +9319,7 @@ class TinaMediaStore {
|
|
|
9319
9319
|
const encodeUrlIfNeeded = (url) => {
|
|
9320
9320
|
if (url) {
|
|
9321
9321
|
try {
|
|
9322
|
-
|
|
9323
|
-
parsed.pathname = parsed.pathname.split("/").filter((part) => part !== "").map(encodeURIComponent).join("/");
|
|
9324
|
-
return parsed.toString();
|
|
9322
|
+
return new URL(url).toString();
|
|
9325
9323
|
} catch (e) {
|
|
9326
9324
|
return url;
|
|
9327
9325
|
}
|
|
@@ -10222,7 +10220,7 @@ const SyncStatus = ({ cms, setEventsOpen }) => {
|
|
|
10222
10220
|
"Event Log"
|
|
10223
10221
|
));
|
|
10224
10222
|
};
|
|
10225
|
-
const version = "2.7.
|
|
10223
|
+
const version = "2.7.1";
|
|
10226
10224
|
const Nav = ({
|
|
10227
10225
|
isLocalMode,
|
|
10228
10226
|
className = "",
|
|
@@ -13575,6 +13573,11 @@ const autoformatMarks = [
|
|
|
13575
13573
|
mode: "mark",
|
|
13576
13574
|
type: MARK_CODE,
|
|
13577
13575
|
match: "`"
|
|
13576
|
+
},
|
|
13577
|
+
{
|
|
13578
|
+
mode: "mark",
|
|
13579
|
+
type: MARK_STRIKETHROUGH,
|
|
13580
|
+
match: ["~~", "~"]
|
|
13578
13581
|
}
|
|
13579
13582
|
];
|
|
13580
13583
|
const autoformatRules = [
|
|
@@ -13716,17 +13719,14 @@ const plugins$1 = [
|
|
|
13716
13719
|
})
|
|
13717
13720
|
];
|
|
13718
13721
|
const plugins = [
|
|
13722
|
+
createBasicMarksPlugin(),
|
|
13719
13723
|
createHeadingPlugin(),
|
|
13720
13724
|
createParagraphPlugin(),
|
|
13721
13725
|
createCodeBlockPlugin(),
|
|
13722
13726
|
createHTMLBlockPlugin(),
|
|
13723
13727
|
createHTMLInlinePlugin(),
|
|
13724
13728
|
createBlockquotePlugin(),
|
|
13725
|
-
createBoldPlugin(),
|
|
13726
|
-
createStrikethroughPlugin(),
|
|
13727
|
-
createItalicPlugin(),
|
|
13728
13729
|
createUnderlinePlugin(),
|
|
13729
|
-
createCodePlugin(),
|
|
13730
13730
|
createListPlugin(),
|
|
13731
13731
|
createIndentListPlugin(),
|
|
13732
13732
|
createHorizontalRulePlugin(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"yup": "^1.6.1",
|
|
131
131
|
"zod": "^3.24.2",
|
|
132
132
|
"@tinacms/mdx": "1.6.0",
|
|
133
|
-
"@tinacms/
|
|
134
|
-
"@tinacms/
|
|
133
|
+
"@tinacms/search": "1.0.40",
|
|
134
|
+
"@tinacms/schema-tools": "1.7.1"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@graphql-tools/utils": "^10.8.1",
|