payload-richtext-tiptap 0.0.60 → 0.0.62

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.
Files changed (34) hide show
  1. package/dist/src/fields/TiptapEditor/extensions/Iframe/IframeEmbed.d.ts +9 -0
  2. package/dist/src/fields/TiptapEditor/extensions/Iframe/IframeEmbed.d.ts.map +1 -0
  3. package/dist/src/fields/TiptapEditor/extensions/Iframe/IframeEmbed.js +19 -0
  4. package/dist/src/fields/TiptapEditor/extensions/Iframe/IframeEmbed.js.map +1 -0
  5. package/dist/src/fields/TiptapEditor/extensions/Iframe/iframe.d.ts +13 -5
  6. package/dist/src/fields/TiptapEditor/extensions/Iframe/iframe.d.ts.map +1 -1
  7. package/dist/src/fields/TiptapEditor/extensions/Iframe/iframe.js +69 -47
  8. package/dist/src/fields/TiptapEditor/extensions/Iframe/iframe.js.map +1 -1
  9. package/dist/src/fields/TiptapEditor/extensions/Iframe/menus/IframeMenu.js +4 -2
  10. package/dist/src/fields/TiptapEditor/extensions/Iframe/menus/IframeMenu.js.map +1 -1
  11. package/dist/src/fields/TiptapEditor/extensions/SlashCommand/groups.d.ts.map +1 -1
  12. package/dist/src/fields/TiptapEditor/extensions/SlashCommand/groups.js +78 -27
  13. package/dist/src/fields/TiptapEditor/extensions/SlashCommand/groups.js.map +1 -1
  14. package/dist/src/fields/TiptapEditor/extensions/SocialMedia/SocialMediaEmbed.js +1 -1
  15. package/dist/src/fields/TiptapEditor/extensions/SocialMedia/SocialMediaEmbed.js.map +1 -1
  16. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.d.ts +2 -1
  17. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.d.ts.map +1 -1
  18. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.js +3 -2
  19. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.js.map +1 -1
  20. package/dist/src/fields/TiptapEditor/hooks/useBlockEditor.d.ts +2 -1
  21. package/dist/src/fields/TiptapEditor/hooks/useBlockEditor.d.ts.map +1 -1
  22. package/dist/src/fields/TiptapEditor/hooks/useBlockEditor.js +2 -2
  23. package/dist/src/fields/TiptapEditor/hooks/useBlockEditor.js.map +1 -1
  24. package/dist/src/styles.css +109 -129
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +1 -1
  27. package/dist/src/fields/TiptapEditor/extensions/AICommand/MenuList.d.ts +0 -5
  28. package/dist/src/fields/TiptapEditor/extensions/AICommand/MenuList.d.ts.map +0 -1
  29. package/dist/src/fields/TiptapEditor/extensions/AICommand/MenuList.js +0 -123
  30. package/dist/src/fields/TiptapEditor/extensions/AICommand/MenuList.js.map +0 -1
  31. package/dist/src/fields/TiptapEditor/extensions/Paragraph/AIEditorParagraph.d.ts +0 -3
  32. package/dist/src/fields/TiptapEditor/extensions/Paragraph/AIEditorParagraph.d.ts.map +0 -1
  33. package/dist/src/fields/TiptapEditor/extensions/Paragraph/AIEditorParagraph.js +0 -35
  34. package/dist/src/fields/TiptapEditor/extensions/Paragraph/AIEditorParagraph.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload-richtext-tiptap",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "description": "Rich text tiptap for Payload CMS",
5
5
  "keywords": [
6
6
  "payload",
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { MenuListProps } from "./types.js";
3
- export declare const MenuList: React.ForwardRefExoticComponent<MenuListProps & React.RefAttributes<unknown>>;
4
- export default MenuList;
5
- //# sourceMappingURL=MenuList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../../../src/fields/TiptapEditor/extensions/AICommand/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,OAAO,EAAW,aAAa,EAAE,MAAM,YAAY,CAAC;AAIpD,eAAO,MAAM,QAAQ,+EAiJnB,CAAC;AAIH,eAAe,QAAQ,CAAC"}
@@ -1,123 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useCallback, useEffect, useRef, useState } from "react";
3
- import { DropdownButton } from "../../features/ui/Dropdown/Dropdown.js";
4
- import { Surface } from "../../features/ui/Surface.js";
5
- import { Icon } from "../../features/ui/Icon.js";
6
- export const MenuList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
- const scrollContainer = useRef(null);
8
- const activeItem = useRef(null);
9
- const [selectedGroupIndex, setSelectedGroupIndex] = useState(0);
10
- const [selectedCommandIndex, setSelectedCommandIndex] = useState(0);
11
- // Anytime the groups change, i.e. the user types to narrow it down, we want to
12
- // reset the current selection to the first menu item
13
- useEffect(()=>{
14
- setSelectedGroupIndex(0);
15
- setSelectedCommandIndex(0);
16
- }, [
17
- props.items
18
- ]);
19
- const selectItem = useCallback((groupIndex, commandIndex)=>{
20
- const command = props.items[groupIndex].commands[commandIndex];
21
- props.command(command);
22
- }, [
23
- props
24
- ]);
25
- React.useImperativeHandle(ref, ()=>({
26
- onKeyDown: ({ event })=>{
27
- if (event.key === "ArrowDown") {
28
- if (!props.items.length) {
29
- return false;
30
- }
31
- const commands = props.items[selectedGroupIndex].commands;
32
- let newCommandIndex = selectedCommandIndex + 1;
33
- let newGroupIndex = selectedGroupIndex;
34
- if (commands.length - 1 < newCommandIndex) {
35
- newCommandIndex = 0;
36
- newGroupIndex = selectedGroupIndex + 1;
37
- }
38
- if (props.items.length - 1 < newGroupIndex) {
39
- newGroupIndex = 0;
40
- }
41
- setSelectedCommandIndex(newCommandIndex);
42
- setSelectedGroupIndex(newGroupIndex);
43
- return true;
44
- }
45
- if (event.key === "ArrowUp") {
46
- if (!props.items.length) {
47
- return false;
48
- }
49
- let newCommandIndex = selectedCommandIndex - 1;
50
- let newGroupIndex = selectedGroupIndex;
51
- if (newCommandIndex < 0) {
52
- newGroupIndex = selectedGroupIndex - 1;
53
- newCommandIndex = props.items[newGroupIndex]?.commands.length - 1 || 0;
54
- }
55
- if (newGroupIndex < 0) {
56
- newGroupIndex = props.items.length - 1;
57
- newCommandIndex = props.items[newGroupIndex].commands.length - 1;
58
- }
59
- setSelectedCommandIndex(newCommandIndex);
60
- setSelectedGroupIndex(newGroupIndex);
61
- return true;
62
- }
63
- if (event.key === "Enter") {
64
- if (!props.items.length || selectedGroupIndex === -1 || selectedCommandIndex === -1) {
65
- return false;
66
- }
67
- selectItem(selectedGroupIndex, selectedCommandIndex);
68
- return true;
69
- }
70
- return false;
71
- }
72
- }));
73
- useEffect(()=>{
74
- if (activeItem.current && scrollContainer.current) {
75
- const offsetTop = activeItem.current.offsetTop;
76
- const offsetHeight = activeItem.current.offsetHeight;
77
- scrollContainer.current.scrollTop = offsetTop - offsetHeight;
78
- }
79
- }, [
80
- selectedCommandIndex,
81
- selectedGroupIndex
82
- ]);
83
- const createCommandClickHandler = useCallback((groupIndex, commandIndex)=>{
84
- return ()=>{
85
- selectItem(groupIndex, commandIndex);
86
- };
87
- }, [
88
- selectItem
89
- ]);
90
- if (!props.items.length) {
91
- return null;
92
- }
93
- return /*#__PURE__*/ _jsx(Surface, {
94
- ref: scrollContainer,
95
- className: "text-black max-h-[min(80vh,24rem)] overflow-auto flex-wrap mb-8 p-2",
96
- children: /*#__PURE__*/ _jsx("div", {
97
- className: "grid grid-cols-1 gap-0.5",
98
- children: props.items.map((group, groupIndex)=>/*#__PURE__*/ _jsxs(React.Fragment, {
99
- children: [
100
- /*#__PURE__*/ _jsx("div", {
101
- className: "text-neutral-500 text-[0.65rem] col-[1/-1] mx-2 mt-4 font-semibold tracking-wider select-none uppercase first:mt-0.5",
102
- children: group.title
103
- }, `${group.title}`),
104
- group.commands.map((command, commandIndex)=>/*#__PURE__*/ _jsxs(DropdownButton, {
105
- isActive: selectedGroupIndex === groupIndex && selectedCommandIndex === commandIndex,
106
- onClick: createCommandClickHandler(groupIndex, commandIndex),
107
- children: [
108
- /*#__PURE__*/ _jsx(Icon, {
109
- icon: command.icon,
110
- className: "mr-1"
111
- }),
112
- command.label
113
- ]
114
- }, `${command.label}`))
115
- ]
116
- }, `${group.title}-wrapper`))
117
- })
118
- });
119
- });
120
- MenuList.displayName = "MenuList";
121
- export default MenuList;
122
-
123
- //# sourceMappingURL=MenuList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/fields/TiptapEditor/extensions/AICommand/MenuList.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { DropdownButton } from \"../../features/ui/Dropdown/Dropdown.js\";\nimport { Surface } from \"../../features/ui/Surface.js\";\nimport { Command, MenuListProps } from \"./types.js\";\n\nimport { Icon } from \"../../features/ui/Icon.js\";\n\nexport const MenuList = React.forwardRef((props: MenuListProps, ref) => {\n const scrollContainer = useRef<HTMLDivElement>(null);\n const activeItem = useRef<HTMLButtonElement>(null);\n const [selectedGroupIndex, setSelectedGroupIndex] = useState(0);\n const [selectedCommandIndex, setSelectedCommandIndex] = useState(0);\n\n // Anytime the groups change, i.e. the user types to narrow it down, we want to\n // reset the current selection to the first menu item\n useEffect(() => {\n setSelectedGroupIndex(0);\n setSelectedCommandIndex(0);\n }, [props.items]);\n\n const selectItem = useCallback(\n (groupIndex: number, commandIndex: number) => {\n const command = props.items[groupIndex].commands[commandIndex];\n props.command(command);\n },\n [props]\n );\n\n React.useImperativeHandle(ref, () => ({\n onKeyDown: ({ event }: { event: React.KeyboardEvent }) => {\n if (event.key === \"ArrowDown\") {\n if (!props.items.length) {\n return false;\n }\n\n const commands = props.items[selectedGroupIndex].commands;\n\n let newCommandIndex = selectedCommandIndex + 1;\n let newGroupIndex = selectedGroupIndex;\n\n if (commands.length - 1 < newCommandIndex) {\n newCommandIndex = 0;\n newGroupIndex = selectedGroupIndex + 1;\n }\n\n if (props.items.length - 1 < newGroupIndex) {\n newGroupIndex = 0;\n }\n\n setSelectedCommandIndex(newCommandIndex);\n setSelectedGroupIndex(newGroupIndex);\n\n return true;\n }\n\n if (event.key === \"ArrowUp\") {\n if (!props.items.length) {\n return false;\n }\n\n let newCommandIndex = selectedCommandIndex - 1;\n let newGroupIndex = selectedGroupIndex;\n\n if (newCommandIndex < 0) {\n newGroupIndex = selectedGroupIndex - 1;\n newCommandIndex =\n props.items[newGroupIndex]?.commands.length - 1 || 0;\n }\n\n if (newGroupIndex < 0) {\n newGroupIndex = props.items.length - 1;\n newCommandIndex = props.items[newGroupIndex].commands.length - 1;\n }\n\n setSelectedCommandIndex(newCommandIndex);\n setSelectedGroupIndex(newGroupIndex);\n\n return true;\n }\n\n if (event.key === \"Enter\") {\n if (\n !props.items.length ||\n selectedGroupIndex === -1 ||\n selectedCommandIndex === -1\n ) {\n return false;\n }\n\n selectItem(selectedGroupIndex, selectedCommandIndex);\n\n return true;\n }\n\n return false;\n },\n }));\n\n useEffect(() => {\n if (activeItem.current && scrollContainer.current) {\n const offsetTop = activeItem.current.offsetTop;\n const offsetHeight = activeItem.current.offsetHeight;\n\n scrollContainer.current.scrollTop = offsetTop - offsetHeight;\n }\n }, [selectedCommandIndex, selectedGroupIndex]);\n\n const createCommandClickHandler = useCallback(\n (groupIndex: number, commandIndex: number) => {\n return () => {\n selectItem(groupIndex, commandIndex);\n };\n },\n [selectItem]\n );\n\n if (!props.items.length) {\n return null;\n }\n\n return (\n <Surface\n ref={scrollContainer}\n className=\"text-black max-h-[min(80vh,24rem)] overflow-auto flex-wrap mb-8 p-2\"\n >\n <div className=\"grid grid-cols-1 gap-0.5\">\n {props.items.map((group, groupIndex: number) => (\n <React.Fragment key={`${group.title}-wrapper`}>\n <div\n className=\"text-neutral-500 text-[0.65rem] col-[1/-1] mx-2 mt-4 font-semibold tracking-wider select-none uppercase first:mt-0.5\"\n key={`${group.title}`}\n >\n {group.title}\n </div>\n {group.commands.map((command: Command, commandIndex: number) => (\n <DropdownButton\n key={`${command.label}`}\n isActive={\n selectedGroupIndex === groupIndex &&\n selectedCommandIndex === commandIndex\n }\n onClick={createCommandClickHandler(groupIndex, commandIndex)}\n >\n <Icon icon={command.icon} className=\"mr-1\" />\n {command.label}\n </DropdownButton>\n ))}\n </React.Fragment>\n ))}\n </div>\n </Surface>\n );\n});\n\nMenuList.displayName = \"MenuList\";\n\nexport default MenuList;\n"],"names":["React","useCallback","useEffect","useRef","useState","DropdownButton","Surface","Icon","MenuList","forwardRef","props","ref","scrollContainer","activeItem","selectedGroupIndex","setSelectedGroupIndex","selectedCommandIndex","setSelectedCommandIndex","items","selectItem","groupIndex","commandIndex","command","commands","useImperativeHandle","onKeyDown","event","key","length","newCommandIndex","newGroupIndex","current","offsetTop","offsetHeight","scrollTop","createCommandClickHandler","className","div","map","group","Fragment","title","isActive","onClick","icon","label","displayName"],"mappings":"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"}
@@ -1,3 +0,0 @@
1
- declare const _default: (props: any) => import("react").JSX.Element;
2
- export default _default;
3
- //# sourceMappingURL=AIEditorParagraph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AIEditorParagraph.d.ts","sourceRoot":"","sources":["../../../../../../src/fields/TiptapEditor/extensions/Paragraph/AIEditorParagraph.tsx"],"names":[],"mappings":";AAEA,wBAgCE"}
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { NodeViewContent, NodeViewWrapper } from "@tiptap/react";
3
- export default ((props)=>{
4
- console.log("PROPS", props);
5
- return /*#__PURE__*/ _jsx(NodeViewWrapper, {
6
- onClick: ()=>{
7
- props?.editor?.commands?.setNodeSelection(props.getPos());
8
- },
9
- children: /*#__PURE__*/ _jsx(NodeViewContent, {
10
- contentEditable: "false",
11
- children: props?.node?.type?.spec?.draggable ? /*#__PURE__*/ _jsx("div", {
12
- draggable: "true",
13
- "data-drag-handle": "",
14
- style: {
15
- width: "100%"
16
- },
17
- children: /*#__PURE__*/ _jsx("div", {
18
- className: "w-full bg-zinc-100 py-8 px-6 flex items-center justify-center gap-2 socialMediaCard",
19
- draggable: "true",
20
- "data-drag-handle": "",
21
- contentEditable: "false",
22
- children: /*#__PURE__*/ _jsx("p", {
23
- className: "w-full flex items-center justify-start mt-0",
24
- style: {
25
- marginTop: 0
26
- },
27
- children: "TEEEEE"
28
- })
29
- })
30
- }) : null
31
- })
32
- });
33
- });
34
-
35
- //# sourceMappingURL=AIEditorParagraph.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/fields/TiptapEditor/extensions/Paragraph/AIEditorParagraph.tsx"],"sourcesContent":["import { NodeViewContent, NodeViewWrapper } from \"@tiptap/react\";\n\nexport default (props) => {\n console.log(\"PROPS\", props);\n return (\n <NodeViewWrapper\n onClick={() => {\n props?.editor?.commands?.setNodeSelection(props.getPos());\n }}\n >\n <NodeViewContent contentEditable=\"false\">\n {props?.node?.type?.spec?.draggable ? (\n <div draggable=\"true\" data-drag-handle=\"\" style={{ width: \"100%\" }}>\n <div\n className=\"w-full bg-zinc-100 py-8 px-6 flex items-center justify-center gap-2 socialMediaCard\"\n draggable=\"true\"\n data-drag-handle=\"\"\n contentEditable=\"false\"\n >\n <p\n className=\"w-full flex items-center justify-start mt-0\"\n style={{\n marginTop: 0,\n }}\n >\n TEEEEE\n {/* {text} */}\n </p>\n </div>\n </div>\n ) : null}\n </NodeViewContent>\n </NodeViewWrapper>\n );\n};\n"],"names":["NodeViewContent","NodeViewWrapper","props","console","log","onClick","editor","commands","setNodeSelection","getPos","contentEditable","node","type","spec","draggable","div","data-drag-handle","style","width","className","p","marginTop"],"mappings":";AAAA,SAASA,eAAe,EAAEC,eAAe,QAAQ,gBAAgB;AAEjE,eAAe,CAAA,CAACC;IACdC,QAAQC,GAAG,CAAC,SAASF;IACrB,qBACE,KAACD;QACCI,SAAS;YACPH,OAAOI,QAAQC,UAAUC,iBAAiBN,MAAMO,MAAM;QACxD;kBAEA,cAAA,KAACT;YAAgBU,iBAAgB;sBAC9BR,OAAOS,MAAMC,MAAMC,MAAMC,0BACxB,KAACC;gBAAID,WAAU;gBAAOE,oBAAiB;gBAAGC,OAAO;oBAAEC,OAAO;gBAAO;0BAC/D,cAAA,KAACH;oBACCI,WAAU;oBACVL,WAAU;oBACVE,oBAAiB;oBACjBN,iBAAgB;8BAEhB,cAAA,KAACU;wBACCD,WAAU;wBACVF,OAAO;4BACLI,WAAW;wBACb;kCACD;;;iBAMH;;;AAIZ,CAAA,EAAE"}