@notum-cz/strapi-plugin-tiptap-editor 1.0.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/LICENSE +21 -0
- package/README.md +160 -0
- package/dist/_chunks/AccentCursive-CpAPpH9C.mjs +3383 -0
- package/dist/_chunks/AccentCursive-CpAPpH9C.mjs.map +1 -0
- package/dist/_chunks/AccentCursive-D6sTlhub.js +3384 -0
- package/dist/_chunks/AccentCursive-D6sTlhub.js.map +1 -0
- package/dist/_chunks/FormattedHeadingInput-DycgfIze.mjs +101 -0
- package/dist/_chunks/FormattedHeadingInput-DycgfIze.mjs.map +1 -0
- package/dist/_chunks/FormattedHeadingInput-FFjiRSEJ.js +101 -0
- package/dist/_chunks/FormattedHeadingInput-FFjiRSEJ.js.map +1 -0
- package/dist/_chunks/RichTextInput-BZQ2iVqa.mjs +4481 -0
- package/dist/_chunks/RichTextInput-BZQ2iVqa.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-BbbQxPc-.js +4414 -0
- package/dist/_chunks/RichTextInput-BbbQxPc-.js.map +1 -0
- package/dist/_chunks/RichTextInput-BjLR2pi0.js +4416 -0
- package/dist/_chunks/RichTextInput-BjLR2pi0.js.map +1 -0
- package/dist/_chunks/RichTextInput-BlxoJMa2.js +4488 -0
- package/dist/_chunks/RichTextInput-BlxoJMa2.js.map +1 -0
- package/dist/_chunks/RichTextInput-Bm3X8fR2.mjs +4400 -0
- package/dist/_chunks/RichTextInput-Bm3X8fR2.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-Bms-gSvK.js +4407 -0
- package/dist/_chunks/RichTextInput-Bms-gSvK.js.map +1 -0
- package/dist/_chunks/RichTextInput-BtNjPJRN.mjs +4400 -0
- package/dist/_chunks/RichTextInput-BtNjPJRN.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-Bw3tcXfp.js +4407 -0
- package/dist/_chunks/RichTextInput-Bw3tcXfp.js.map +1 -0
- package/dist/_chunks/RichTextInput-CsgNpoxq.mjs +4409 -0
- package/dist/_chunks/RichTextInput-CsgNpoxq.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-CwTvEMda.js +4407 -0
- package/dist/_chunks/RichTextInput-CwTvEMda.js.map +1 -0
- package/dist/_chunks/RichTextInput-DG-36krM.js +1181 -0
- package/dist/_chunks/RichTextInput-DG-36krM.js.map +1 -0
- package/dist/_chunks/RichTextInput-DLac-zNQ.mjs +4400 -0
- package/dist/_chunks/RichTextInput-DLac-zNQ.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-DSXttrvi.js +4407 -0
- package/dist/_chunks/RichTextInput-DSXttrvi.js.map +1 -0
- package/dist/_chunks/RichTextInput-DeJ6Exto.mjs +4400 -0
- package/dist/_chunks/RichTextInput-DeJ6Exto.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-DgT88AkO.mjs +1175 -0
- package/dist/_chunks/RichTextInput-DgT88AkO.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-DlMaDJQF.mjs +4400 -0
- package/dist/_chunks/RichTextInput-DlMaDJQF.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-DtaYdjCs.mjs +4400 -0
- package/dist/_chunks/RichTextInput-DtaYdjCs.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-YTKXo5oq.js +4407 -0
- package/dist/_chunks/RichTextInput-YTKXo5oq.js.map +1 -0
- package/dist/_chunks/RichTextInput-tmg-oMJk.mjs +4407 -0
- package/dist/_chunks/RichTextInput-tmg-oMJk.mjs.map +1 -0
- package/dist/_chunks/RichTextInput-umhMsI5o.js +4407 -0
- package/dist/_chunks/RichTextInput-umhMsI5o.js.map +1 -0
- package/dist/_chunks/en-B4KWt_jN.js +5 -0
- package/dist/_chunks/en-B4KWt_jN.js.map +1 -0
- package/dist/_chunks/en-Byx4XI2L.mjs +5 -0
- package/dist/_chunks/en-Byx4XI2L.mjs.map +1 -0
- package/dist/admin/index.js +71 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +72 -0
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/components/BaseTiptapInput.d.ts +12 -0
- package/dist/admin/src/components/FormattedHeadingInput.d.ts +4 -0
- package/dist/admin/src/components/Initializer.d.ts +5 -0
- package/dist/admin/src/components/LinkDialog.d.ts +14 -0
- package/dist/admin/src/components/RichTextInput.d.ts +4 -0
- package/dist/admin/src/components/Spacer.d.ts +3 -0
- package/dist/admin/src/components/TableSizeDialog.d.ts +10 -0
- package/dist/admin/src/components/TiptapInput.d.ts +7 -0
- package/dist/admin/src/components/TiptapInputStyles.d.ts +2 -0
- package/dist/admin/src/components/ToolbarButton.d.ts +11 -0
- package/dist/admin/src/extensions/AccentCursive.d.ts +18 -0
- package/dist/admin/src/extensions/Heading.d.ts +8 -0
- package/dist/admin/src/extensions/Link.d.ts +7 -0
- package/dist/admin/src/extensions/Script.d.ts +7 -0
- package/dist/admin/src/extensions/StarterKit.d.ts +13 -0
- package/dist/admin/src/extensions/Table.d.ts +11 -0
- package/dist/admin/src/extensions/TextAlign.d.ts +9 -0
- package/dist/admin/src/fields/formattedHeadingField.d.ts +20 -0
- package/dist/admin/src/fields/richTextField.d.ts +20 -0
- package/dist/admin/src/icons/TextAlignCenter.d.ts +2 -0
- package/dist/admin/src/icons/TextAlignJustify.d.ts +2 -0
- package/dist/admin/src/icons/TextAlignLeft.d.ts +2 -0
- package/dist/admin/src/icons/TextAlignRight.d.ts +2 -0
- package/dist/admin/src/index.d.ts +10 -0
- package/dist/admin/src/pluginId.d.ts +1 -0
- package/dist/admin/src/utils/getTranslation.d.ts +2 -0
- package/dist/admin/src/utils/tiptapUtils.d.ts +18 -0
- package/dist/server/index.js +44 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +45 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/bootstrap.d.ts +5 -0
- package/dist/server/src/config/index.d.ts +5 -0
- package/dist/server/src/content-types/index.d.ts +2 -0
- package/dist/server/src/controllers/index.d.ts +2 -0
- package/dist/server/src/destroy.d.ts +5 -0
- package/dist/server/src/fields/richTextField.d.ts +2 -0
- package/dist/server/src/index.d.ts +25 -0
- package/dist/server/src/middlewares/index.d.ts +2 -0
- package/dist/server/src/policies/index.d.ts +2 -0
- package/dist/server/src/register.d.ts +5 -0
- package/dist/server/src/routes/index.d.ts +2 -0
- package/dist/server/src/services/index.d.ts +2 -0
- package/dist/shared/fields.d.ts +1 -0
- package/dist/shared/pluginId.d.ts +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-B4KWt_jN.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-Byx4XI2L.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const React = require("react");
|
|
3
|
+
const icons = require("@strapi/icons");
|
|
4
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
5
|
+
const v = glob[path];
|
|
6
|
+
if (v) {
|
|
7
|
+
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
8
|
+
}
|
|
9
|
+
return new Promise((_, reject) => {
|
|
10
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
11
|
+
reject.bind(
|
|
12
|
+
null,
|
|
13
|
+
new Error(
|
|
14
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
15
|
+
)
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const PLUGIN_ID = "tiptap-editor";
|
|
21
|
+
const Initializer = ({ setPlugin }) => {
|
|
22
|
+
const ref = React.useRef(setPlugin);
|
|
23
|
+
React.useEffect(() => {
|
|
24
|
+
ref.current(PLUGIN_ID);
|
|
25
|
+
}, []);
|
|
26
|
+
return null;
|
|
27
|
+
};
|
|
28
|
+
const RICH_TEXT_FIELD_NAME = "RichText";
|
|
29
|
+
const richTextField = {
|
|
30
|
+
name: RICH_TEXT_FIELD_NAME,
|
|
31
|
+
pluginId: PLUGIN_ID,
|
|
32
|
+
type: "string",
|
|
33
|
+
intlLabel: {
|
|
34
|
+
id: "tiptap-editor.richText.label",
|
|
35
|
+
defaultMessage: "Rich Text (Tiptap)"
|
|
36
|
+
},
|
|
37
|
+
intlDescription: {
|
|
38
|
+
id: "tiptap-editor.richText.description",
|
|
39
|
+
defaultMessage: "Use this field to create formatted text via Tiptap editor."
|
|
40
|
+
},
|
|
41
|
+
icon: icons.Paragraph,
|
|
42
|
+
// cast to any to avoid some weird non-exported type issue during build
|
|
43
|
+
components: {
|
|
44
|
+
Input: async () => Promise.resolve().then(() => require("../_chunks/RichTextInput-BlxoJMa2.js")).then((m) => ({ default: m.default }))
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const index = {
|
|
48
|
+
register(app) {
|
|
49
|
+
app.registerPlugin({
|
|
50
|
+
id: PLUGIN_ID,
|
|
51
|
+
initializer: Initializer,
|
|
52
|
+
isReady: false,
|
|
53
|
+
name: PLUGIN_ID
|
|
54
|
+
});
|
|
55
|
+
app.customFields.register(richTextField);
|
|
56
|
+
},
|
|
57
|
+
async registerTrads({ locales }) {
|
|
58
|
+
return Promise.all(
|
|
59
|
+
locales.map(async (locale) => {
|
|
60
|
+
try {
|
|
61
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-B4KWt_jN.js")) }), `./translations/${locale}.json`, 3);
|
|
62
|
+
return { data, locale };
|
|
63
|
+
} catch {
|
|
64
|
+
return { data: {}, locale };
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
module.exports = index;
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../shared/pluginId.ts","../../admin/src/components/Initializer.tsx","../../shared/fields.ts","../../admin/src/fields/richTextField.ts","../../admin/src/index.ts"],"sourcesContent":["export const PLUGIN_ID = 'tiptap-editor';\n","import { useEffect, useRef } from 'react';\n\nimport { PLUGIN_ID } from '../../../shared/pluginId';\n\ntype InitializerProps = {\n setPlugin: (id: string) => void;\n};\n\nconst Initializer = ({ setPlugin }: InitializerProps) => {\n const ref = useRef(setPlugin);\n\n useEffect(() => {\n ref.current(PLUGIN_ID);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n","export const RICH_TEXT_FIELD_NAME = 'RichText';\n","import { PLUGIN_ID } from '../../../shared/pluginId';\nimport { Paragraph } from '@strapi/icons';\nimport { ComponentType } from 'react';\nimport { RICH_TEXT_FIELD_NAME } from '../../../shared/fields';\n\nexport const richTextField = {\n name: RICH_TEXT_FIELD_NAME,\n pluginId: PLUGIN_ID,\n type: 'string',\n intlLabel: {\n id: 'tiptap-editor.richText.label',\n defaultMessage: 'Rich Text (Tiptap)',\n },\n intlDescription: {\n id: 'tiptap-editor.richText.description',\n defaultMessage: 'Use this field to create formatted text via Tiptap editor.',\n },\n icon: Paragraph as ComponentType<any>, // cast to any to avoid some weird non-exported type issue during build\n components: {\n Input: async () => import('../components/RichTextInput').then((m) => ({ default: m.default })),\n },\n};\n","import { PLUGIN_ID } from '../../shared/pluginId';\nimport { Initializer } from './components/Initializer';\n\nimport { richTextField } from './fields/richTextField';\n\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: PLUGIN_ID,\n initializer: Initializer,\n isReady: false,\n name: PLUGIN_ID,\n });\n\n app.customFields.register(richTextField);\n },\n\n async registerTrads({ locales }: { locales: string[] }) {\n return Promise.all(\n locales.map(async (locale) => {\n try {\n const { default: data } = await import(`./translations/${locale}.json`);\n\n return { data, locale };\n } catch {\n return { data: {}, locale };\n }\n })\n );\n },\n};\n"],"names":["useRef","useEffect","Paragraph"],"mappings":";;;;;;;;;;;;;;;;;;;AAAO,MAAM,YAAY;ACQzB,MAAM,cAAc,CAAC,EAAE,gBAAkC;AACvD,QAAM,MAAMA,MAAAA,OAAO,SAAS;AAE5BC,QAAAA,UAAU,MAAM;AACd,QAAI,QAAQ,SAAS;AAAA,EACvB,GAAG,CAAA,CAAE;AAEL,SAAO;AACT;AChBO,MAAM,uBAAuB;ACK7B,MAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA;AAAA,EAElB,iBAAiB;AAAA,IACf,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA;AAAA,EAElB,MAAMC,MAAAA;AAAAA;AAAAA,EACN,YAAY;AAAA,IACV,OAAO,YAAY,qCAAO,sCAA6B,CAAA,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU;AAAA,EAAA;AAEjG;AChBA,MAAA,QAAe;AAAA,EACb,SAAS,KAAU;AACjB,QAAI,eAAe;AAAA,MACjB,IAAI;AAAA,MACJ,aAAa;AAAA,MACb,SAAS;AAAA,MACT,MAAM;AAAA,IAAA,CACP;AAED,QAAI,aAAa,SAAS,aAAa;AAAA,EACzC;AAAA,EAEA,MAAM,cAAc,EAAE,WAAkC;AACtD,WAAO,QAAQ;AAAA,MACb,QAAQ,IAAI,OAAO,WAAW;AAC5B,YAAI;AACF,gBAAM,EAAE,SAAS,KAAA,IAAS,MAAM,qCAAA,uBAAA,OAAA,EAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,SAAA,CAAA;AAEhC,iBAAO,EAAE,MAAM,OAAA;AAAA,QACjB,QAAQ;AACN,iBAAO,EAAE,MAAM,CAAA,GAAI,OAAA;AAAA,QACrB;AAAA,MACF,CAAC;AAAA,IAAA;AAAA,EAEL;AACF;;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { useRef, useEffect } from "react";
|
|
2
|
+
import { Paragraph } from "@strapi/icons";
|
|
3
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
4
|
+
const v = glob[path];
|
|
5
|
+
if (v) {
|
|
6
|
+
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
7
|
+
}
|
|
8
|
+
return new Promise((_, reject) => {
|
|
9
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
10
|
+
reject.bind(
|
|
11
|
+
null,
|
|
12
|
+
new Error(
|
|
13
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const PLUGIN_ID = "tiptap-editor";
|
|
20
|
+
const Initializer = ({ setPlugin }) => {
|
|
21
|
+
const ref = useRef(setPlugin);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
ref.current(PLUGIN_ID);
|
|
24
|
+
}, []);
|
|
25
|
+
return null;
|
|
26
|
+
};
|
|
27
|
+
const RICH_TEXT_FIELD_NAME = "RichText";
|
|
28
|
+
const richTextField = {
|
|
29
|
+
name: RICH_TEXT_FIELD_NAME,
|
|
30
|
+
pluginId: PLUGIN_ID,
|
|
31
|
+
type: "string",
|
|
32
|
+
intlLabel: {
|
|
33
|
+
id: "tiptap-editor.richText.label",
|
|
34
|
+
defaultMessage: "Rich Text (Tiptap)"
|
|
35
|
+
},
|
|
36
|
+
intlDescription: {
|
|
37
|
+
id: "tiptap-editor.richText.description",
|
|
38
|
+
defaultMessage: "Use this field to create formatted text via Tiptap editor."
|
|
39
|
+
},
|
|
40
|
+
icon: Paragraph,
|
|
41
|
+
// cast to any to avoid some weird non-exported type issue during build
|
|
42
|
+
components: {
|
|
43
|
+
Input: async () => import("../_chunks/RichTextInput-BZQ2iVqa.mjs").then((m) => ({ default: m.default }))
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const index = {
|
|
47
|
+
register(app) {
|
|
48
|
+
app.registerPlugin({
|
|
49
|
+
id: PLUGIN_ID,
|
|
50
|
+
initializer: Initializer,
|
|
51
|
+
isReady: false,
|
|
52
|
+
name: PLUGIN_ID
|
|
53
|
+
});
|
|
54
|
+
app.customFields.register(richTextField);
|
|
55
|
+
},
|
|
56
|
+
async registerTrads({ locales }) {
|
|
57
|
+
return Promise.all(
|
|
58
|
+
locales.map(async (locale) => {
|
|
59
|
+
try {
|
|
60
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("../_chunks/en-Byx4XI2L.mjs") }), `./translations/${locale}.json`, 3);
|
|
61
|
+
return { data, locale };
|
|
62
|
+
} catch {
|
|
63
|
+
return { data: {}, locale };
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
index as default
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../shared/pluginId.ts","../../admin/src/components/Initializer.tsx","../../shared/fields.ts","../../admin/src/fields/richTextField.ts","../../admin/src/index.ts"],"sourcesContent":["export const PLUGIN_ID = 'tiptap-editor';\n","import { useEffect, useRef } from 'react';\n\nimport { PLUGIN_ID } from '../../../shared/pluginId';\n\ntype InitializerProps = {\n setPlugin: (id: string) => void;\n};\n\nconst Initializer = ({ setPlugin }: InitializerProps) => {\n const ref = useRef(setPlugin);\n\n useEffect(() => {\n ref.current(PLUGIN_ID);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n","export const RICH_TEXT_FIELD_NAME = 'RichText';\n","import { PLUGIN_ID } from '../../../shared/pluginId';\nimport { Paragraph } from '@strapi/icons';\nimport { ComponentType } from 'react';\nimport { RICH_TEXT_FIELD_NAME } from '../../../shared/fields';\n\nexport const richTextField = {\n name: RICH_TEXT_FIELD_NAME,\n pluginId: PLUGIN_ID,\n type: 'string',\n intlLabel: {\n id: 'tiptap-editor.richText.label',\n defaultMessage: 'Rich Text (Tiptap)',\n },\n intlDescription: {\n id: 'tiptap-editor.richText.description',\n defaultMessage: 'Use this field to create formatted text via Tiptap editor.',\n },\n icon: Paragraph as ComponentType<any>, // cast to any to avoid some weird non-exported type issue during build\n components: {\n Input: async () => import('../components/RichTextInput').then((m) => ({ default: m.default })),\n },\n};\n","import { PLUGIN_ID } from '../../shared/pluginId';\nimport { Initializer } from './components/Initializer';\n\nimport { richTextField } from './fields/richTextField';\n\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: PLUGIN_ID,\n initializer: Initializer,\n isReady: false,\n name: PLUGIN_ID,\n });\n\n app.customFields.register(richTextField);\n },\n\n async registerTrads({ locales }: { locales: string[] }) {\n return Promise.all(\n locales.map(async (locale) => {\n try {\n const { default: data } = await import(`./translations/${locale}.json`);\n\n return { data, locale };\n } catch {\n return { data: {}, locale };\n }\n })\n );\n },\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAO,MAAM,YAAY;ACQzB,MAAM,cAAc,CAAC,EAAE,gBAAkC;AACvD,QAAM,MAAM,OAAO,SAAS;AAE5B,YAAU,MAAM;AACd,QAAI,QAAQ,SAAS;AAAA,EACvB,GAAG,CAAA,CAAE;AAEL,SAAO;AACT;AChBO,MAAM,uBAAuB;ACK7B,MAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA;AAAA,EAElB,iBAAiB;AAAA,IACf,IAAI;AAAA,IACJ,gBAAgB;AAAA,EAAA;AAAA,EAElB,MAAM;AAAA;AAAA,EACN,YAAY;AAAA,IACV,OAAO,YAAY,OAAO,uCAA6B,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU;AAAA,EAAA;AAEjG;AChBA,MAAA,QAAe;AAAA,EACb,SAAS,KAAU;AACjB,QAAI,eAAe;AAAA,MACjB,IAAI;AAAA,MACJ,aAAa;AAAA,MACb,SAAS;AAAA,MACT,MAAM;AAAA,IAAA,CACP;AAED,QAAI,aAAa,SAAS,aAAa;AAAA,EACzC;AAAA,EAEA,MAAM,cAAc,EAAE,WAAkC;AACtD,WAAO,QAAQ;AAAA,MACb,QAAQ,IAAI,OAAO,WAAW;AAC5B,YAAI;AACF,gBAAM,EAAE,SAAS,KAAA,IAAS,MAAM,qCAAA,uBAAA,OAAA,EAAA,0BAAA,MAAA,OAAA,4BAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,SAAA,CAAA;AAEhC,iBAAO,EAAE,MAAM,OAAA;AAAA,QACjB,QAAQ;AACN,iBAAO,EAAE,MAAM,CAAA,GAAI,OAAA;AAAA,QACrB;AAAA,MACF,CAAC;AAAA,IAAA;AAAA,EAEL;AACF;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type InputProps } from '@strapi/strapi/admin';
|
|
3
|
+
import { Editor } from '@tiptap/core';
|
|
4
|
+
import { FieldValue } from '../utils/tiptapUtils';
|
|
5
|
+
type TiptapInputProps = InputProps & {
|
|
6
|
+
labelAction?: React.ReactNode;
|
|
7
|
+
editor: Editor;
|
|
8
|
+
field: FieldValue;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare const BaseTiptapInput: import("react").ForwardRefExoticComponent<TiptapInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export default BaseTiptapInput;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TiptapInputProps } from '../utils/tiptapUtils';
|
|
3
|
+
declare const FormattedHeadingInput: import("react").ForwardRefExoticComponent<TiptapInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default FormattedHeadingInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type LinkDialogPayload = {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
interface LinkDialogProps {
|
|
6
|
+
open: boolean;
|
|
7
|
+
url: string | undefined;
|
|
8
|
+
mode: 'add' | 'edit';
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onSave: (payload: LinkDialogPayload) => void;
|
|
11
|
+
onRemove: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const LinkDialog: React.FC<LinkDialogProps>;
|
|
14
|
+
export default LinkDialog;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface TableSizeDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
defaultRows?: number;
|
|
5
|
+
defaultCols?: number;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onSave: (rows: number, cols: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const TableSizeDialog: FC<TableSizeDialogProps>;
|
|
10
|
+
export default TableSizeDialog;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type InputProps } from '@strapi/strapi/admin';
|
|
3
|
+
type TiptapInputProps = InputProps & {
|
|
4
|
+
labelAction?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const TiptapInput: import("react").ForwardRefExoticComponent<TiptapInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default TiptapInput;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TiptapInputStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function ToolbarButton({ key, onClick, icon, active, disabled, tooltip, marginLeft, hidden, }: {
|
|
3
|
+
key: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
tooltip: string;
|
|
9
|
+
marginLeft?: number;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Editor, Mark } from '@tiptap/core';
|
|
2
|
+
export declare const AccentCursiveMark: Mark<any, any>;
|
|
3
|
+
export declare const OnlyCursiveMark: Mark<any, any>;
|
|
4
|
+
export declare function useCursiveMark(editor: Editor, markName: 'accentCursive' | 'onlyCursive', props?: {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}): {
|
|
7
|
+
button: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export declare function useAccentCursive(editor: Editor, props?: {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}): {
|
|
12
|
+
button: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare function useOnlyCursive(editor: Editor, props?: {
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}): {
|
|
17
|
+
button: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export declare const HeadingWithSEOTag: import("@tiptap/core").Node<import("@tiptap/extension-heading").HeadingOptions, any>;
|
|
3
|
+
export declare function useHeading(editor: Editor, props?: {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}): {
|
|
6
|
+
headingSelect: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
headingTagSelect: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export declare function useStarterKit(editor: Editor, props?: {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
}): {
|
|
5
|
+
boldButton: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
italicButton: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
underlineButton: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
strikeButton: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
bulletButton: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
orderedButton: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
codeButton: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
blockquoteButton: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export declare function useTable(editor: Editor, props?: {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
}): {
|
|
5
|
+
tableButton: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
addColumnButton: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
removeColumnButton: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
addRowButton: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
removeRowButton: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
tableDialog: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export declare function useTextAlign(editor: Editor, props?: {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
}): {
|
|
5
|
+
textAlignLeftButton: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
textAlignCenterButton: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
textAlignRightButton: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
textAlignJustifyButton: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const formattedHeadingField: {
|
|
3
|
+
name: string;
|
|
4
|
+
pluginId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
intlLabel: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
};
|
|
10
|
+
intlDescription: {
|
|
11
|
+
id: string;
|
|
12
|
+
defaultMessage: string;
|
|
13
|
+
};
|
|
14
|
+
icon: ComponentType<any>;
|
|
15
|
+
components: {
|
|
16
|
+
Input: () => Promise<{
|
|
17
|
+
default: any;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const richTextField: {
|
|
3
|
+
name: string;
|
|
4
|
+
pluginId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
intlLabel: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
};
|
|
10
|
+
intlDescription: {
|
|
11
|
+
id: string;
|
|
12
|
+
defaultMessage: string;
|
|
13
|
+
};
|
|
14
|
+
icon: ComponentType<any>;
|
|
15
|
+
components: {
|
|
16
|
+
Input: () => Promise<{
|
|
17
|
+
default: import("react").ForwardRefExoticComponent<import("../utils/tiptapUtils").TiptapInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLUGIN_ID = "tiptap-editor";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Extensions, JSONContent } from '@tiptap/core';
|
|
3
|
+
import { type InputProps } from '@strapi/strapi/admin';
|
|
4
|
+
export interface FieldValue<TValue = any> {
|
|
5
|
+
error?: string;
|
|
6
|
+
initialValue: TValue;
|
|
7
|
+
onChange: (eventOrPath: React.ChangeEvent<any> | string, value?: TValue) => void;
|
|
8
|
+
value: TValue;
|
|
9
|
+
rawError?: any;
|
|
10
|
+
}
|
|
11
|
+
export type TiptapInputProps = InputProps & {
|
|
12
|
+
labelAction?: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export declare function tiptapContent(text: string): JSONContent;
|
|
15
|
+
export declare function useTiptapEditor(name: string, defaultValue?: string, extensions?: Extensions): {
|
|
16
|
+
editor: import("@tiptap/core").Editor;
|
|
17
|
+
field: import("@strapi/strapi/admin").FieldValue<any>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const bootstrap = ({ strapi }) => {
|
|
3
|
+
};
|
|
4
|
+
const destroy = ({ strapi }) => {
|
|
5
|
+
};
|
|
6
|
+
const PLUGIN_ID = "tiptap-editor";
|
|
7
|
+
const RICH_TEXT_FIELD_NAME = "RichText";
|
|
8
|
+
const richTextField = {
|
|
9
|
+
name: RICH_TEXT_FIELD_NAME,
|
|
10
|
+
plugin: PLUGIN_ID,
|
|
11
|
+
type: "text",
|
|
12
|
+
inputSize: {
|
|
13
|
+
default: 12,
|
|
14
|
+
isResizable: true
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const register = ({ strapi }) => {
|
|
18
|
+
strapi.customFields.register(richTextField);
|
|
19
|
+
};
|
|
20
|
+
const config = {
|
|
21
|
+
default: {},
|
|
22
|
+
validator() {
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const contentTypes = {};
|
|
26
|
+
const controllers = {};
|
|
27
|
+
const middlewares = {};
|
|
28
|
+
const policies = {};
|
|
29
|
+
const routes = {};
|
|
30
|
+
const services = {};
|
|
31
|
+
const index = {
|
|
32
|
+
register,
|
|
33
|
+
bootstrap,
|
|
34
|
+
destroy,
|
|
35
|
+
config,
|
|
36
|
+
controllers,
|
|
37
|
+
routes,
|
|
38
|
+
services,
|
|
39
|
+
contentTypes,
|
|
40
|
+
policies,
|
|
41
|
+
middlewares
|
|
42
|
+
};
|
|
43
|
+
module.exports = index;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../server/src/bootstrap.ts","../../server/src/destroy.ts","../../shared/pluginId.ts","../../shared/fields.ts","../../server/src/fields/richTextField.ts","../../server/src/register.ts","../../server/src/config/index.ts","../../server/src/content-types/index.ts","../../server/src/controllers/index.ts","../../server/src/middlewares/index.ts","../../server/src/policies/index.ts","../../server/src/routes/index.ts","../../server/src/services/index.ts","../../server/src/index.ts"],"sourcesContent":["import type { Core } from '@strapi/strapi';\n\nconst bootstrap = ({ strapi }: { strapi: Core.Strapi }) => {\n // bootstrap phase\n};\n\nexport default bootstrap;\n","import type { Core } from '@strapi/strapi';\n\nconst destroy = ({ strapi }: { strapi: Core.Strapi }) => {\n // destroy phase\n};\n\nexport default destroy;\n","export const PLUGIN_ID = 'tiptap-editor';\n","export const RICH_TEXT_FIELD_NAME = 'RichText';\n","import { PLUGIN_ID } from '../../../shared/pluginId';\nimport { RICH_TEXT_FIELD_NAME } from '../../../shared/fields';\nimport { CustomFieldServerOptions } from '@strapi/types/dist/modules/custom-fields';\n\nexport const richTextField: CustomFieldServerOptions = {\n name: RICH_TEXT_FIELD_NAME,\n plugin: PLUGIN_ID,\n type: 'text',\n inputSize: {\n default: 12,\n isResizable: true,\n },\n};\n","import type { Core } from '@strapi/strapi';\n\nimport { richTextField } from './fields/richTextField';\n\nconst register = ({ strapi }: { strapi: Core.Strapi }) => {\n strapi.customFields.register(richTextField);\n};\n\nexport default register;\n","export default {\n default: {},\n validator() {},\n};\n","export default {};\n","export default {};\n","export default {};\n","export default {};\n","export default {};\n","export default {};\n","/**\n * Application methods\n */\nimport bootstrap from './bootstrap';\nimport destroy from './destroy';\nimport register from './register';\n\n/**\n * Plugin server methods\n */\nimport config from './config';\nimport contentTypes from './content-types';\nimport controllers from './controllers';\nimport middlewares from './middlewares';\nimport policies from './policies';\nimport routes from './routes';\nimport services from './services';\n\nexport default {\n register,\n bootstrap,\n destroy,\n config,\n controllers,\n routes,\n services,\n contentTypes,\n policies,\n middlewares,\n} as const; // Type Assertion necessary due to the error below\n\n/**\n * [ERROR] server/src/index.ts:19:1 - TS2742: The inferred type of 'default' cannot be named without a reference to '@strapi/core/node_modules/@strapi/types/dist/core'. This is likely not portable. A type annotation is necessary.\n */\n"],"names":[],"mappings":";AAEA,MAAM,YAAY,CAAC,EAAE,aAAsC;AAE3D;ACFA,MAAM,UAAU,CAAC,EAAE,aAAsC;AAEzD;ACJO,MAAM,YAAY;ACAlB,MAAM,uBAAuB;ACI7B,MAAM,gBAA0C;AAAA,EACrD,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,IACT,SAAS;AAAA,IACT,aAAa;AAAA,EAAA;AAEjB;ACRA,MAAM,WAAW,CAAC,EAAE,aAAsC;AACxD,SAAO,aAAa,SAAS,aAAa;AAC5C;ACNA,MAAA,SAAe;AAAA,EACb,SAAS,CAAA;AAAA,EACT,YAAY;AAAA,EAAC;AACf;ACHA,MAAA,eAAe,CAAA;ACAf,MAAA,cAAe,CAAA;ACAf,MAAA,cAAe,CAAA;ACAf,MAAA,WAAe,CAAA;ACAf,MAAA,SAAe,CAAA;ACAf,MAAA,WAAe,CAAA;ACkBf,MAAA,QAAe;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const bootstrap = ({ strapi }) => {
|
|
2
|
+
};
|
|
3
|
+
const destroy = ({ strapi }) => {
|
|
4
|
+
};
|
|
5
|
+
const PLUGIN_ID = "tiptap-editor";
|
|
6
|
+
const RICH_TEXT_FIELD_NAME = "RichText";
|
|
7
|
+
const richTextField = {
|
|
8
|
+
name: RICH_TEXT_FIELD_NAME,
|
|
9
|
+
plugin: PLUGIN_ID,
|
|
10
|
+
type: "text",
|
|
11
|
+
inputSize: {
|
|
12
|
+
default: 12,
|
|
13
|
+
isResizable: true
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const register = ({ strapi }) => {
|
|
17
|
+
strapi.customFields.register(richTextField);
|
|
18
|
+
};
|
|
19
|
+
const config = {
|
|
20
|
+
default: {},
|
|
21
|
+
validator() {
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const contentTypes = {};
|
|
25
|
+
const controllers = {};
|
|
26
|
+
const middlewares = {};
|
|
27
|
+
const policies = {};
|
|
28
|
+
const routes = {};
|
|
29
|
+
const services = {};
|
|
30
|
+
const index = {
|
|
31
|
+
register,
|
|
32
|
+
bootstrap,
|
|
33
|
+
destroy,
|
|
34
|
+
config,
|
|
35
|
+
controllers,
|
|
36
|
+
routes,
|
|
37
|
+
services,
|
|
38
|
+
contentTypes,
|
|
39
|
+
policies,
|
|
40
|
+
middlewares
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
index as default
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../server/src/bootstrap.ts","../../server/src/destroy.ts","../../shared/pluginId.ts","../../shared/fields.ts","../../server/src/fields/richTextField.ts","../../server/src/register.ts","../../server/src/config/index.ts","../../server/src/content-types/index.ts","../../server/src/controllers/index.ts","../../server/src/middlewares/index.ts","../../server/src/policies/index.ts","../../server/src/routes/index.ts","../../server/src/services/index.ts","../../server/src/index.ts"],"sourcesContent":["import type { Core } from '@strapi/strapi';\n\nconst bootstrap = ({ strapi }: { strapi: Core.Strapi }) => {\n // bootstrap phase\n};\n\nexport default bootstrap;\n","import type { Core } from '@strapi/strapi';\n\nconst destroy = ({ strapi }: { strapi: Core.Strapi }) => {\n // destroy phase\n};\n\nexport default destroy;\n","export const PLUGIN_ID = 'tiptap-editor';\n","export const RICH_TEXT_FIELD_NAME = 'RichText';\n","import { PLUGIN_ID } from '../../../shared/pluginId';\nimport { RICH_TEXT_FIELD_NAME } from '../../../shared/fields';\nimport { CustomFieldServerOptions } from '@strapi/types/dist/modules/custom-fields';\n\nexport const richTextField: CustomFieldServerOptions = {\n name: RICH_TEXT_FIELD_NAME,\n plugin: PLUGIN_ID,\n type: 'text',\n inputSize: {\n default: 12,\n isResizable: true,\n },\n};\n","import type { Core } from '@strapi/strapi';\n\nimport { richTextField } from './fields/richTextField';\n\nconst register = ({ strapi }: { strapi: Core.Strapi }) => {\n strapi.customFields.register(richTextField);\n};\n\nexport default register;\n","export default {\n default: {},\n validator() {},\n};\n","export default {};\n","export default {};\n","export default {};\n","export default {};\n","export default {};\n","export default {};\n","/**\n * Application methods\n */\nimport bootstrap from './bootstrap';\nimport destroy from './destroy';\nimport register from './register';\n\n/**\n * Plugin server methods\n */\nimport config from './config';\nimport contentTypes from './content-types';\nimport controllers from './controllers';\nimport middlewares from './middlewares';\nimport policies from './policies';\nimport routes from './routes';\nimport services from './services';\n\nexport default {\n register,\n bootstrap,\n destroy,\n config,\n controllers,\n routes,\n services,\n contentTypes,\n policies,\n middlewares,\n} as const; // Type Assertion necessary due to the error below\n\n/**\n * [ERROR] server/src/index.ts:19:1 - TS2742: The inferred type of 'default' cannot be named without a reference to '@strapi/core/node_modules/@strapi/types/dist/core'. This is likely not portable. A type annotation is necessary.\n */\n"],"names":[],"mappings":"AAEA,MAAM,YAAY,CAAC,EAAE,aAAsC;AAE3D;ACFA,MAAM,UAAU,CAAC,EAAE,aAAsC;AAEzD;ACJO,MAAM,YAAY;ACAlB,MAAM,uBAAuB;ACI7B,MAAM,gBAA0C;AAAA,EACrD,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,IACT,SAAS;AAAA,IACT,aAAa;AAAA,EAAA;AAEjB;ACRA,MAAM,WAAW,CAAC,EAAE,aAAsC;AACxD,SAAO,aAAa,SAAS,aAAa;AAC5C;ACNA,MAAA,SAAe;AAAA,EACb,SAAS,CAAA;AAAA,EACT,YAAY;AAAA,EAAC;AACf;ACHA,MAAA,eAAe,CAAA;ACAf,MAAA,cAAe,CAAA;ACAf,MAAA,cAAe,CAAA;ACAf,MAAA,WAAe,CAAA;ACAf,MAAA,SAAe,CAAA;ACAf,MAAA,WAAe,CAAA;ACkBf,MAAA,QAAe;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly register: ({ strapi }: {
|
|
3
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
+
}) => void;
|
|
5
|
+
readonly bootstrap: ({ strapi }: {
|
|
6
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
7
|
+
}) => void;
|
|
8
|
+
readonly destroy: ({ strapi }: {
|
|
9
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
10
|
+
}) => void;
|
|
11
|
+
readonly config: {
|
|
12
|
+
default: {};
|
|
13
|
+
validator(): void;
|
|
14
|
+
};
|
|
15
|
+
readonly controllers: {};
|
|
16
|
+
readonly routes: {};
|
|
17
|
+
readonly services: {};
|
|
18
|
+
readonly contentTypes: {};
|
|
19
|
+
readonly policies: {};
|
|
20
|
+
readonly middlewares: {};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
/**
|
|
24
|
+
* [ERROR] server/src/index.ts:19:1 - TS2742: The inferred type of 'default' cannot be named without a reference to '@strapi/core/node_modules/@strapi/types/dist/core'. This is likely not portable. A type annotation is necessary.
|
|
25
|
+
*/
|