tinacms 2.7.6 → 2.7.7
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/client.js +1 -0
- package/dist/client.js.map +1 -0
- package/dist/client.mjs +1 -0
- package/dist/client.mjs.map +1 -0
- package/dist/index.js +28 -23
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +27 -22
- package/dist/index.mjs.map +1 -0
- package/dist/node-cache-5e8db9f0.mjs +1 -0
- package/dist/node-cache-5e8db9f0.mjs.map +1 -0
- package/dist/react.js +1 -0
- package/dist/react.js.map +1 -0
- package/dist/react.mjs +1 -0
- package/dist/react.mjs.map +1 -0
- package/dist/rich-text/index.js +1 -0
- package/dist/rich-text/index.js.map +1 -0
- package/dist/rich-text/index.mjs +1 -0
- package/dist/rich-text/index.mjs.map +1 -0
- package/dist/rich-text/prism.js +2 -1
- package/dist/rich-text/prism.js.map +1 -0
- package/dist/rich-text/prism.mjs +2 -1
- package/dist/rich-text/prism.mjs.map +1 -0
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -12,9 +12,9 @@ import { withRef, cn as cn$1, withVariants, withProps, withCn, createPrimitiveEl
|
|
|
12
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, insertEmptyElement, useMarkToolbarButtonState, useMarkToolbarButton, usePlateSelectors, useEventEditorSelectors, PortalBody, useFormInputProps, createPlugins, Plate } from "@udecode/plate-common";
|
|
14
14
|
import { ELEMENT_SLASH_INPUT, createSlashPlugin } from "@udecode/plate-slash-command";
|
|
15
|
-
import { useSelected, useReadOnly, ReactEditor } from "slate-react";
|
|
16
15
|
import { useCodeBlockElementState, useCodeSyntaxLeaf, ELEMENT_CODE_BLOCK as ELEMENT_CODE_BLOCK$1 } from "@udecode/plate-code-block";
|
|
17
16
|
import MonacoEditor, { loader, useMonaco } from "@monaco-editor/react";
|
|
17
|
+
import { useSelected, useReadOnly, ReactEditor } from "slate-react";
|
|
18
18
|
import { Combobox as Combobox$1, ComboboxInput, ComboboxButton, Transition, ComboboxOptions, ComboboxOption, Popover as Popover$3, PopoverButton, PopoverPanel, TransitionChild, Disclosure, DisclosureButton, DisclosurePanel, Menu, MenuButton, MenuItems, MenuItem } from "@headlessui/react";
|
|
19
19
|
import { cva } from "class-variance-authority";
|
|
20
20
|
import { Eye, SquarePen, Plus, AlignCenter as AlignCenter$1, AlignJustify, AlignLeft as AlignLeft$1, AlignRight as AlignRight$1, ChevronDown, PaintBucket, Quote, Check, ChevronRight, ChevronsUpDown, X, FileCode, Baseline, RectangleVertical, Combine, Ungroup, MessageSquare, MessageSquarePlus, Trash, GripVertical, Edit2, Smile, ExternalLink, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Indent, Keyboard, WrapText, Minus, MoreHorizontal, Outdent, Pilcrow, RotateCcw, RectangleHorizontal, Search, Settings, Strikethrough, Subscript, Superscript, Table, Text, Underline, Link2Off, Moon, SunMedium, Twitter } from "lucide-react";
|
|
@@ -2981,7 +2981,6 @@ const Components = () => {
|
|
|
2981
2981
|
children,
|
|
2982
2982
|
...props
|
|
2983
2983
|
}) => {
|
|
2984
|
-
const selected = useSelected();
|
|
2985
2984
|
return /* @__PURE__ */ React__default.createElement(
|
|
2986
2985
|
"div",
|
|
2987
2986
|
{
|
|
@@ -2992,8 +2991,7 @@ const Components = () => {
|
|
|
2992
2991
|
...attributes,
|
|
2993
2992
|
...props
|
|
2994
2993
|
},
|
|
2995
|
-
children
|
|
2996
|
-
selected && /* @__PURE__ */ React__default.createElement("span", { className: "absolute h-4 -top-2 inset-0 ring-2 ring-blue-100 ring-inset rounded-md z-10 pointer-events-none" })
|
|
2994
|
+
children
|
|
2997
2995
|
);
|
|
2998
2996
|
},
|
|
2999
2997
|
[ELEMENT_TABLE]: TableElement,
|
|
@@ -10915,7 +10913,7 @@ const SyncStatus = ({ cms, setEventsOpen }) => {
|
|
|
10915
10913
|
"Event Log"
|
|
10916
10914
|
));
|
|
10917
10915
|
};
|
|
10918
|
-
const version = "2.7.
|
|
10916
|
+
const version = "2.7.7";
|
|
10919
10917
|
const Nav = ({
|
|
10920
10918
|
isLocalMode,
|
|
10921
10919
|
className = "",
|
|
@@ -32326,8 +32324,8 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
32326
32324
|
return client.request(query, { variables });
|
|
32327
32325
|
};
|
|
32328
32326
|
const GetCMS = ({ children }) => {
|
|
32327
|
+
const cms = useCMS$1();
|
|
32329
32328
|
try {
|
|
32330
|
-
const cms = useCMS$1();
|
|
32331
32329
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children(cms));
|
|
32332
32330
|
} catch (e) {
|
|
32333
32331
|
return null;
|
|
@@ -33735,22 +33733,28 @@ const GetCollection = ({
|
|
|
33735
33733
|
search
|
|
33736
33734
|
}) => {
|
|
33737
33735
|
const navigate = useNavigate();
|
|
33738
|
-
const { collection, loading, error, reFetchCollection, collectionExtra } = search ?
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33743
|
-
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
33749
|
-
|
|
33750
|
-
|
|
33751
|
-
|
|
33752
|
-
|
|
33753
|
-
|
|
33736
|
+
const { collection, loading, error, reFetchCollection, collectionExtra } = search ? (
|
|
33737
|
+
// biome-ignore lint/correctness/useHookAtTopLevel: not ready to fix these yet
|
|
33738
|
+
useSearchCollection(
|
|
33739
|
+
cms,
|
|
33740
|
+
collectionName,
|
|
33741
|
+
includeDocuments,
|
|
33742
|
+
folder,
|
|
33743
|
+
startCursor || "",
|
|
33744
|
+
search
|
|
33745
|
+
)
|
|
33746
|
+
) : (
|
|
33747
|
+
// biome-ignore lint/correctness/useHookAtTopLevel: not ready to fix these yet
|
|
33748
|
+
useGetCollection(
|
|
33749
|
+
cms,
|
|
33750
|
+
collectionName,
|
|
33751
|
+
includeDocuments,
|
|
33752
|
+
folder,
|
|
33753
|
+
startCursor || "",
|
|
33754
|
+
sortKey,
|
|
33755
|
+
filterArgs
|
|
33756
|
+
) || {}
|
|
33757
|
+
);
|
|
33754
33758
|
useEffect(() => {
|
|
33755
33759
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
33756
33760
|
if (loading)
|
|
@@ -35099,3 +35103,4 @@ export {
|
|
|
35099
35103
|
wrapFieldWithNoHeader,
|
|
35100
35104
|
wrapFieldsWithMeta
|
|
35101
35105
|
};
|
|
35106
|
+
//# sourceMappingURL=index.mjs.map
|