@edifice.io/tiptap-extensions 2.6.0 → 2.6.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const core=require("@tiptap/core"),Attachment=core.Node.create({name:"attachments",content:"",marks:"",group:"block",selectable:!0,atom:!0,draggable:!0,addOptions(){return{HTMLAttributes:{class:"attachments"}}},parseHTML(){return[{tag:"div[class=attachments]"}]},renderHTML({HTMLAttributes}){const renderedLinks=HTMLAttributes.links.map(el=>["a",{name:el.name,href:el.href,"data-document-id":el["data-document-id"],"data-content-type":el["data-content-type"]},el.name]);return["div",this.options.HTMLAttributes,...renderedLinks]},addAttributes(){return{links:{default:[],parseHTML:element=>{const links=element.getElementsByTagName("a"),parsedLinks=[];for(let i=0;i<links.length;i++){const link=links[i],href=link.getAttribute("href"),name=link.textContent,regexResult=href.match(/([^/]+$)/),dataDocumentId=link.getAttribute("data-document-id")||regexResult&®exResult[0],dataContentType=link.getAttribute("data-content-type");parsedLinks.push({href,name,dataDocumentId,dataContentType})}return parsedLinks},renderHTML:attributes=>({links:attributes.links.map(link=>({href:link.href,name:link.name,"data-document-id":link.dataDocumentId,"data-content-type":link.dataContentType}))})}}},addCommands(){return{setAttachment:(attrs={dataContentType:"",name:"",documentId:"",href:""})=>({chain})=>chain().insertContent({type:this.name,attrs}).run(),unsetAttachment:documentId=>({state,dispatch})=>{
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const core=require("@tiptap/core"),Attachment=core.Node.create({name:"attachments",content:"",marks:"",group:"block",selectable:!0,atom:!0,draggable:!0,addOptions(){return{HTMLAttributes:{class:"attachments"}}},parseHTML(){return[{tag:"div[class=attachments]"}]},renderHTML({HTMLAttributes}){const renderedLinks=HTMLAttributes.links.map(el=>["a",{name:el.name,href:el.href,"data-document-id":el["data-document-id"],"data-content-type":el["data-content-type"]},el.name]);return["div",this.options.HTMLAttributes,...renderedLinks]},addAttributes(){return{links:{default:[],parseHTML:element=>{const links=element.getElementsByTagName("a"),parsedLinks=[];for(let i=0;i<links.length;i++){const link=links[i],href=link.getAttribute("href"),name=link.textContent,regexResult=href.match(/([^/]+$)/),dataDocumentId=link.getAttribute("data-document-id")||regexResult&®exResult[0],dataContentType=link.getAttribute("data-content-type");parsedLinks.push({href,name,dataDocumentId,dataContentType})}return parsedLinks},renderHTML:attributes=>({links:attributes.links.map(link=>({href:link.href,name:link.name,"data-document-id":link.dataDocumentId,"data-content-type":link.dataContentType}))})}}},addCommands(){return{setAttachment:(attrs={dataContentType:"",name:"",documentId:"",href:""})=>({chain})=>chain().insertContent({type:this.name,attrs}).run(),unsetAttachment:documentId=>({state,dispatch})=>{let transaction=state.tr,hasChanged=!1;return state.doc.descendants((node,pos)=>{if(node.type.name!==this.name)return!0;const mappedPos=transaction.mapping.map(pos),links=node.attrs.links??[],newLinks=links.filter(link=>{const linkDocumentId=link.dataDocumentId??link.documentId??link["data-document-id"]??link.href;return String(linkDocumentId??"")!==String(documentId??"")});if(newLinks.length===links.length)return!0;if(hasChanged=!0,newLinks.length>0)transaction=transaction.setNodeMarkup(mappedPos,void 0,{...node.attrs,links:newLinks});else{const mappedEnd=transaction.mapping.map(pos+node.nodeSize);transaction=transaction.delete(mappedPos,mappedEnd)}return!1}),hasChanged&&dispatch&&dispatch(transaction),hasChanged}}}});exports.Attachment=Attachment;
|
|
2
2
|
//# sourceMappingURL=attachment.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.cjs","sources":["../../src/attachment/attachment.ts"],"sourcesContent":["import { Node } from '@tiptap/core';\n\nexport interface AttachmentOptions {\n HTMLAttributes: Record<string, string>;\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n attachment: {\n setAttachment: (attachment) => ReturnType;\n unsetAttachment: (documentId: string) => ReturnType; // Modification de la commande\n };\n }\n}\ninterface AttachmentAttrsProps {\n name: string;\n href: string;\n dataDocumentId: string;\n dataContentType: string;\n}\n\nexport const Attachment = Node.create<AttachmentOptions>({\n name: 'attachments',\n content: '',\n marks: '',\n group: 'block',\n selectable: true,\n atom: true,\n draggable: true,\n\n addOptions() {\n return {\n HTMLAttributes: {\n class: 'attachments',\n },\n };\n },\n\n parseHTML() {\n return [{ tag: 'div[class=attachments]' }];\n },\n\n renderHTML({ HTMLAttributes }) {\n const links = HTMLAttributes.links;\n\n const renderedLinks = links.map((el) => {\n return [\n 'a',\n {\n 'name': el.name,\n 'href': el.href,\n 'data-document-id': el['data-document-id'],\n 'data-content-type': el['data-content-type'],\n },\n el.name,\n ];\n });\n\n return ['div', this.options.HTMLAttributes, ...renderedLinks];\n },\n\n addAttributes() {\n return {\n links: {\n default: [],\n parseHTML: (element) => {\n const links = element.getElementsByTagName('a');\n const parsedLinks: AttachmentAttrsProps[] = [];\n\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n const href = link.getAttribute('href');\n const name = link.textContent;\n const regexResult = href.match(/([^/]+$)/);\n const dataDocumentId =\n link.getAttribute('data-document-id') ||\n (regexResult && regexResult[0]);\n const dataContentType = link.getAttribute('data-content-type');\n\n parsedLinks.push({\n href: href,\n name: name,\n dataDocumentId,\n dataContentType,\n });\n }\n\n return parsedLinks;\n },\n renderHTML: (attributes) => {\n return {\n links: attributes.links.map((link: AttachmentAttrsProps) => ({\n 'href': link.href,\n 'name': link.name,\n 'data-document-id': link.dataDocumentId,\n 'data-content-type': link.dataContentType,\n })),\n };\n },\n },\n };\n },\n\n addCommands() {\n return {\n setAttachment:\n (\n attrs = {\n dataContentType: '',\n name: '',\n documentId: '',\n href: '',\n },\n ) =>\n ({ chain }) => {\n return chain().insertContent({ type: this.name, attrs }).run();\n },\n unsetAttachment:\n (documentId: string) =>\n ({ state, dispatch }) => {\n
|
|
1
|
+
{"version":3,"file":"attachment.cjs","sources":["../../src/attachment/attachment.ts"],"sourcesContent":["import { Node } from '@tiptap/core';\n\nexport interface AttachmentOptions {\n HTMLAttributes: Record<string, string>;\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n attachment: {\n setAttachment: (attachment) => ReturnType;\n unsetAttachment: (documentId: string) => ReturnType; // Modification de la commande\n };\n }\n}\ninterface AttachmentAttrsProps {\n name: string;\n href: string;\n dataDocumentId: string;\n dataContentType: string;\n}\n\nexport const Attachment = Node.create<AttachmentOptions>({\n name: 'attachments',\n content: '',\n marks: '',\n group: 'block',\n selectable: true,\n atom: true,\n draggable: true,\n\n addOptions() {\n return {\n HTMLAttributes: {\n class: 'attachments',\n },\n };\n },\n\n parseHTML() {\n return [{ tag: 'div[class=attachments]' }];\n },\n\n renderHTML({ HTMLAttributes }) {\n const links = HTMLAttributes.links;\n\n const renderedLinks = links.map((el) => {\n return [\n 'a',\n {\n 'name': el.name,\n 'href': el.href,\n 'data-document-id': el['data-document-id'],\n 'data-content-type': el['data-content-type'],\n },\n el.name,\n ];\n });\n\n return ['div', this.options.HTMLAttributes, ...renderedLinks];\n },\n\n addAttributes() {\n return {\n links: {\n default: [],\n parseHTML: (element) => {\n const links = element.getElementsByTagName('a');\n const parsedLinks: AttachmentAttrsProps[] = [];\n\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n const href = link.getAttribute('href');\n const name = link.textContent;\n const regexResult = href.match(/([^/]+$)/);\n const dataDocumentId =\n link.getAttribute('data-document-id') ||\n (regexResult && regexResult[0]);\n const dataContentType = link.getAttribute('data-content-type');\n\n parsedLinks.push({\n href: href,\n name: name,\n dataDocumentId,\n dataContentType,\n });\n }\n\n return parsedLinks;\n },\n renderHTML: (attributes) => {\n return {\n links: attributes.links.map((link: AttachmentAttrsProps) => ({\n 'href': link.href,\n 'name': link.name,\n 'data-document-id': link.dataDocumentId,\n 'data-content-type': link.dataContentType,\n })),\n };\n },\n },\n };\n },\n\n addCommands() {\n return {\n setAttachment:\n (\n attrs = {\n dataContentType: '',\n name: '',\n documentId: '',\n href: '',\n },\n ) =>\n ({ chain }) => {\n return chain().insertContent({ type: this.name, attrs }).run();\n },\n unsetAttachment:\n (documentId: string) =>\n ({ state, dispatch }) => {\n let transaction = state.tr;\n let hasChanged = false;\n\n state.doc.descendants((node, pos) => {\n if (node.type.name !== this.name) {\n return true;\n }\n\n const mappedPos = transaction.mapping.map(pos);\n\n const links = node.attrs.links ?? [];\n const newLinks = links.filter((link) => {\n const linkDocumentId =\n link.dataDocumentId ??\n link.documentId ??\n link['data-document-id'] ??\n link.href;\n return String(linkDocumentId ?? '') !== String(documentId ?? '');\n });\n\n if (newLinks.length === links.length) {\n return true;\n }\n\n hasChanged = true;\n\n if (newLinks.length > 0) {\n transaction = transaction.setNodeMarkup(mappedPos, undefined, {\n ...node.attrs,\n links: newLinks,\n });\n } else {\n const mappedEnd = transaction.mapping.map(pos + node.nodeSize);\n transaction = transaction.delete(mappedPos, mappedEnd);\n }\n\n return false;\n });\n\n if (hasChanged && dispatch) {\n dispatch(transaction);\n }\n\n return hasChanged;\n },\n };\n },\n});\n"],"names":["Node"],"mappings":"mHAqBa,WAAaA,KAAAA,KAAK,OAA0B,CACvD,KAAM,cACN,QAAS,GACT,MAAO,GACP,MAAO,QACP,WAAY,GACZ,KAAM,GACN,UAAW,GAEX,YAAa,CACX,MAAO,CACL,eAAgB,CACd,MAAO,aAAA,CACT,CAEJ,EAEA,WAAY,CACV,MAAO,CAAC,CAAE,IAAK,yBAA0B,CAC3C,EAEA,WAAW,CAAE,gBAAkB,CAG7B,MAAM,cAFQ,eAAe,MAED,IAAK,IACxB,CACL,IACA,CACE,KAAQ,GAAG,KACX,KAAQ,GAAG,KACX,mBAAoB,GAAG,kBAAkB,EACzC,oBAAqB,GAAG,mBAAmB,CAAA,EAE7C,GAAG,IAAA,CAEN,EAED,MAAO,CAAC,MAAO,KAAK,QAAQ,eAAgB,GAAG,aAAa,CAC9D,EAEA,eAAgB,CACd,MAAO,CACL,MAAO,CACL,QAAS,CAAA,EACT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,SAAS,OAAS,EACpB,YAAc,YAAY,cAAc,UAAW,OAAW,CAC5D,GAAG,KAAK,MACR,MAAO,QAAA,CACR,MACI,CACL,MAAM,UAAY,YAAY,QAAQ,IAAI,IAAM,KAAK,QAAQ,EAC7D,YAAc,YAAY,OAAO,UAAW,SAAS,CACvD,CAEA,MAAO,EACT,CAAC,EAEG,YAAc,UAChB,SAAS,WAAW,EAGf,UACT,CAAA,CAEN,CACF,CAAC"}
|
|
@@ -67,19 +67,27 @@ const Attachment = Node.create({
|
|
|
67
67
|
href: ""
|
|
68
68
|
}) => ({ chain }) => chain().insertContent({ type: this.name, attrs }).run(),
|
|
69
69
|
unsetAttachment: (documentId) => ({ state, dispatch }) => {
|
|
70
|
-
|
|
71
|
-
return state.doc.
|
|
72
|
-
if (node.type.name
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
let transaction = state.tr, hasChanged = !1;
|
|
71
|
+
return state.doc.descendants((node, pos) => {
|
|
72
|
+
if (node.type.name !== this.name)
|
|
73
|
+
return !0;
|
|
74
|
+
const mappedPos = transaction.mapping.map(pos), links = node.attrs.links ?? [], newLinks = links.filter((link) => {
|
|
75
|
+
const linkDocumentId = link.dataDocumentId ?? link.documentId ?? link["data-document-id"] ?? link.href;
|
|
76
|
+
return String(linkDocumentId ?? "") !== String(documentId ?? "");
|
|
77
|
+
});
|
|
78
|
+
if (newLinks.length === links.length)
|
|
79
|
+
return !0;
|
|
80
|
+
if (hasChanged = !0, newLinks.length > 0)
|
|
81
|
+
transaction = transaction.setNodeMarkup(mappedPos, void 0, {
|
|
82
|
+
...node.attrs,
|
|
83
|
+
links: newLinks
|
|
84
|
+
});
|
|
85
|
+
else {
|
|
86
|
+
const mappedEnd = transaction.mapping.map(pos + node.nodeSize);
|
|
87
|
+
transaction = transaction.delete(mappedPos, mappedEnd);
|
|
88
|
+
}
|
|
89
|
+
return !1;
|
|
90
|
+
}), hasChanged && dispatch && dispatch(transaction), hasChanged;
|
|
83
91
|
}
|
|
84
92
|
};
|
|
85
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.js","sources":["../../src/attachment/attachment.ts"],"sourcesContent":["import { Node } from '@tiptap/core';\n\nexport interface AttachmentOptions {\n HTMLAttributes: Record<string, string>;\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n attachment: {\n setAttachment: (attachment) => ReturnType;\n unsetAttachment: (documentId: string) => ReturnType; // Modification de la commande\n };\n }\n}\ninterface AttachmentAttrsProps {\n name: string;\n href: string;\n dataDocumentId: string;\n dataContentType: string;\n}\n\nexport const Attachment = Node.create<AttachmentOptions>({\n name: 'attachments',\n content: '',\n marks: '',\n group: 'block',\n selectable: true,\n atom: true,\n draggable: true,\n\n addOptions() {\n return {\n HTMLAttributes: {\n class: 'attachments',\n },\n };\n },\n\n parseHTML() {\n return [{ tag: 'div[class=attachments]' }];\n },\n\n renderHTML({ HTMLAttributes }) {\n const links = HTMLAttributes.links;\n\n const renderedLinks = links.map((el) => {\n return [\n 'a',\n {\n 'name': el.name,\n 'href': el.href,\n 'data-document-id': el['data-document-id'],\n 'data-content-type': el['data-content-type'],\n },\n el.name,\n ];\n });\n\n return ['div', this.options.HTMLAttributes, ...renderedLinks];\n },\n\n addAttributes() {\n return {\n links: {\n default: [],\n parseHTML: (element) => {\n const links = element.getElementsByTagName('a');\n const parsedLinks: AttachmentAttrsProps[] = [];\n\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n const href = link.getAttribute('href');\n const name = link.textContent;\n const regexResult = href.match(/([^/]+$)/);\n const dataDocumentId =\n link.getAttribute('data-document-id') ||\n (regexResult && regexResult[0]);\n const dataContentType = link.getAttribute('data-content-type');\n\n parsedLinks.push({\n href: href,\n name: name,\n dataDocumentId,\n dataContentType,\n });\n }\n\n return parsedLinks;\n },\n renderHTML: (attributes) => {\n return {\n links: attributes.links.map((link: AttachmentAttrsProps) => ({\n 'href': link.href,\n 'name': link.name,\n 'data-document-id': link.dataDocumentId,\n 'data-content-type': link.dataContentType,\n })),\n };\n },\n },\n };\n },\n\n addCommands() {\n return {\n setAttachment:\n (\n attrs = {\n dataContentType: '',\n name: '',\n documentId: '',\n href: '',\n },\n ) =>\n ({ chain }) => {\n return chain().insertContent({ type: this.name, attrs }).run();\n },\n unsetAttachment:\n (documentId: string) =>\n ({ state, dispatch }) => {\n
|
|
1
|
+
{"version":3,"file":"attachment.js","sources":["../../src/attachment/attachment.ts"],"sourcesContent":["import { Node } from '@tiptap/core';\n\nexport interface AttachmentOptions {\n HTMLAttributes: Record<string, string>;\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n attachment: {\n setAttachment: (attachment) => ReturnType;\n unsetAttachment: (documentId: string) => ReturnType; // Modification de la commande\n };\n }\n}\ninterface AttachmentAttrsProps {\n name: string;\n href: string;\n dataDocumentId: string;\n dataContentType: string;\n}\n\nexport const Attachment = Node.create<AttachmentOptions>({\n name: 'attachments',\n content: '',\n marks: '',\n group: 'block',\n selectable: true,\n atom: true,\n draggable: true,\n\n addOptions() {\n return {\n HTMLAttributes: {\n class: 'attachments',\n },\n };\n },\n\n parseHTML() {\n return [{ tag: 'div[class=attachments]' }];\n },\n\n renderHTML({ HTMLAttributes }) {\n const links = HTMLAttributes.links;\n\n const renderedLinks = links.map((el) => {\n return [\n 'a',\n {\n 'name': el.name,\n 'href': el.href,\n 'data-document-id': el['data-document-id'],\n 'data-content-type': el['data-content-type'],\n },\n el.name,\n ];\n });\n\n return ['div', this.options.HTMLAttributes, ...renderedLinks];\n },\n\n addAttributes() {\n return {\n links: {\n default: [],\n parseHTML: (element) => {\n const links = element.getElementsByTagName('a');\n const parsedLinks: AttachmentAttrsProps[] = [];\n\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n const href = link.getAttribute('href');\n const name = link.textContent;\n const regexResult = href.match(/([^/]+$)/);\n const dataDocumentId =\n link.getAttribute('data-document-id') ||\n (regexResult && regexResult[0]);\n const dataContentType = link.getAttribute('data-content-type');\n\n parsedLinks.push({\n href: href,\n name: name,\n dataDocumentId,\n dataContentType,\n });\n }\n\n return parsedLinks;\n },\n renderHTML: (attributes) => {\n return {\n links: attributes.links.map((link: AttachmentAttrsProps) => ({\n 'href': link.href,\n 'name': link.name,\n 'data-document-id': link.dataDocumentId,\n 'data-content-type': link.dataContentType,\n })),\n };\n },\n },\n };\n },\n\n addCommands() {\n return {\n setAttachment:\n (\n attrs = {\n dataContentType: '',\n name: '',\n documentId: '',\n href: '',\n },\n ) =>\n ({ chain }) => {\n return chain().insertContent({ type: this.name, attrs }).run();\n },\n unsetAttachment:\n (documentId: string) =>\n ({ state, dispatch }) => {\n let transaction = state.tr;\n let hasChanged = false;\n\n state.doc.descendants((node, pos) => {\n if (node.type.name !== this.name) {\n return true;\n }\n\n const mappedPos = transaction.mapping.map(pos);\n\n const links = node.attrs.links ?? [];\n const newLinks = links.filter((link) => {\n const linkDocumentId =\n link.dataDocumentId ??\n link.documentId ??\n link['data-document-id'] ??\n link.href;\n return String(linkDocumentId ?? '') !== String(documentId ?? '');\n });\n\n if (newLinks.length === links.length) {\n return true;\n }\n\n hasChanged = true;\n\n if (newLinks.length > 0) {\n transaction = transaction.setNodeMarkup(mappedPos, undefined, {\n ...node.attrs,\n links: newLinks,\n });\n } else {\n const mappedEnd = transaction.mapping.map(pos + node.nodeSize);\n transaction = transaction.delete(mappedPos, mappedEnd);\n }\n\n return false;\n });\n\n if (hasChanged && dispatch) {\n dispatch(transaction);\n }\n\n return hasChanged;\n },\n };\n },\n});\n"],"names":[],"mappings":";AAqBO,MAAM,aAAa,KAAK,OAA0B;AAAA,EACvD,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,WAAW;AAAA,EAEX,aAAa;AACX,WAA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
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Edifice Rich Text Editor Extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"edifice",
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
"prosemirror-state": "^1.4.3",
|
|
152
152
|
"vite": "5.4.14",
|
|
153
153
|
"vite-plugin-dts": "4.5.4",
|
|
154
|
-
"@edifice.io/utilities": "2.6.
|
|
154
|
+
"@edifice.io/utilities": "2.6.1"
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@types/dom-speech-recognition": "0.0.1",
|
|
158
|
-
"@edifice.io/client": "2.6.
|
|
158
|
+
"@edifice.io/client": "2.6.1"
|
|
159
159
|
},
|
|
160
160
|
"publishConfig": {
|
|
161
161
|
"access": "public"
|