@kedataindo/docflow-plugins 0.0.3 → 0.0.4
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.cjs +13 -13
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -13
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
module.exports = __toCommonJS(index_exports);
|
|
53
53
|
|
|
54
54
|
// src/formatting.ts
|
|
55
|
-
var import_docflow_core = require("@
|
|
55
|
+
var import_docflow_core = require("@kedataindo/docflow-core");
|
|
56
56
|
var import_extension_underline = __toESM(require("@tiptap/extension-underline"), 1);
|
|
57
57
|
var formattingPlugin = (0, import_docflow_core.definePlugin)({
|
|
58
58
|
id: "formatting",
|
|
@@ -66,7 +66,7 @@ var formattingPlugin = (0, import_docflow_core.definePlugin)({
|
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
// src/headings.ts
|
|
69
|
-
var import_docflow_core2 = require("@
|
|
69
|
+
var import_docflow_core2 = require("@kedataindo/docflow-core");
|
|
70
70
|
function toggleHeading(level) {
|
|
71
71
|
return (editor) => {
|
|
72
72
|
const commands = editor.commands;
|
|
@@ -99,7 +99,7 @@ var headingsPlugin = (0, import_docflow_core2.definePlugin)({
|
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
// src/lists.ts
|
|
102
|
-
var import_docflow_core3 = require("@
|
|
102
|
+
var import_docflow_core3 = require("@kedataindo/docflow-core");
|
|
103
103
|
var import_extension_task_list = __toESM(require("@tiptap/extension-task-list"), 1);
|
|
104
104
|
var import_extension_task_item = __toESM(require("@tiptap/extension-task-item"), 1);
|
|
105
105
|
var listsPlugin = (0, import_docflow_core3.definePlugin)({
|
|
@@ -118,7 +118,7 @@ var listsPlugin = (0, import_docflow_core3.definePlugin)({
|
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
// src/alignment.ts
|
|
121
|
-
var import_docflow_core4 = require("@
|
|
121
|
+
var import_docflow_core4 = require("@kedataindo/docflow-core");
|
|
122
122
|
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"), 1);
|
|
123
123
|
function setAlign(alignment) {
|
|
124
124
|
return (editor) => editor.commands.setTextAlign(alignment);
|
|
@@ -143,7 +143,7 @@ var alignmentPlugin = (0, import_docflow_core4.definePlugin)({
|
|
|
143
143
|
});
|
|
144
144
|
|
|
145
145
|
// src/link.ts
|
|
146
|
-
var import_docflow_core5 = require("@
|
|
146
|
+
var import_docflow_core5 = require("@kedataindo/docflow-core");
|
|
147
147
|
var import_extension_link = __toESM(require("@tiptap/extension-link"), 1);
|
|
148
148
|
var linkPlugin = (0, import_docflow_core5.definePlugin)({
|
|
149
149
|
id: "link",
|
|
@@ -168,7 +168,7 @@ var linkPlugin = (0, import_docflow_core5.definePlugin)({
|
|
|
168
168
|
});
|
|
169
169
|
|
|
170
170
|
// src/image.ts
|
|
171
|
-
var import_docflow_core6 = require("@
|
|
171
|
+
var import_docflow_core6 = require("@kedataindo/docflow-core");
|
|
172
172
|
var import_extension_image = __toESM(require("@tiptap/extension-image"), 1);
|
|
173
173
|
var DEFAULT_IMAGE_SRC = "https://via.placeholder.com/300x200";
|
|
174
174
|
var imagePlugin = (0, import_docflow_core6.definePlugin)({
|
|
@@ -187,7 +187,7 @@ var imagePlugin = (0, import_docflow_core6.definePlugin)({
|
|
|
187
187
|
});
|
|
188
188
|
|
|
189
189
|
// src/table.ts
|
|
190
|
-
var import_docflow_core7 = require("@
|
|
190
|
+
var import_docflow_core7 = require("@kedataindo/docflow-core");
|
|
191
191
|
var import_extension_table = __toESM(require("@tiptap/extension-table"), 1);
|
|
192
192
|
var import_extension_table_row = __toESM(require("@tiptap/extension-table-row"), 1);
|
|
193
193
|
var import_extension_table_cell = __toESM(require("@tiptap/extension-table-cell"), 1);
|
|
@@ -207,7 +207,7 @@ var tablePlugin = (0, import_docflow_core7.definePlugin)({
|
|
|
207
207
|
});
|
|
208
208
|
|
|
209
209
|
// src/blockquote.ts
|
|
210
|
-
var import_docflow_core8 = require("@
|
|
210
|
+
var import_docflow_core8 = require("@kedataindo/docflow-core");
|
|
211
211
|
var blockquotePlugin = (0, import_docflow_core8.definePlugin)({
|
|
212
212
|
id: "blockquote",
|
|
213
213
|
toolbar: [{ id: "blockquote", label: "Blockquote", action: "toggleBlockquote", iconComponent: "Quote" }],
|
|
@@ -215,7 +215,7 @@ var blockquotePlugin = (0, import_docflow_core8.definePlugin)({
|
|
|
215
215
|
});
|
|
216
216
|
|
|
217
217
|
// src/codeBlock.ts
|
|
218
|
-
var import_docflow_core9 = require("@
|
|
218
|
+
var import_docflow_core9 = require("@kedataindo/docflow-core");
|
|
219
219
|
var codeBlockPlugin = (0, import_docflow_core9.definePlugin)({
|
|
220
220
|
id: "code-block",
|
|
221
221
|
toolbar: [{ id: "code-block", label: "Code Block", action: "toggleCodeBlock", iconComponent: "Code" }],
|
|
@@ -223,7 +223,7 @@ var codeBlockPlugin = (0, import_docflow_core9.definePlugin)({
|
|
|
223
223
|
});
|
|
224
224
|
|
|
225
225
|
// src/placeholder.ts
|
|
226
|
-
var import_docflow_core10 = require("@
|
|
226
|
+
var import_docflow_core10 = require("@kedataindo/docflow-core");
|
|
227
227
|
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"), 1);
|
|
228
228
|
function createPlaceholderPlugin(options = {}) {
|
|
229
229
|
return (0, import_docflow_core10.definePlugin)({
|
|
@@ -239,7 +239,7 @@ var placeholderPlugin = createPlaceholderPlugin();
|
|
|
239
239
|
|
|
240
240
|
// src/pageBreak.ts
|
|
241
241
|
var import_core = require("@tiptap/core");
|
|
242
|
-
var import_docflow_core11 = require("@
|
|
242
|
+
var import_docflow_core11 = require("@kedataindo/docflow-core");
|
|
243
243
|
var PageBreak = import_core.Node.create({
|
|
244
244
|
name: "pageBreak",
|
|
245
245
|
group: "block",
|
|
@@ -297,7 +297,7 @@ var pageBreakPlugin = (0, import_docflow_core11.definePlugin)({
|
|
|
297
297
|
|
|
298
298
|
// src/footnote.ts
|
|
299
299
|
var import_core2 = require("@tiptap/core");
|
|
300
|
-
var import_docflow_core12 = require("@
|
|
300
|
+
var import_docflow_core12 = require("@kedataindo/docflow-core");
|
|
301
301
|
var FootnoteNode = import_core2.Node.create({
|
|
302
302
|
name: "footnote",
|
|
303
303
|
group: "inline",
|
|
@@ -366,7 +366,7 @@ var footnotePlugin = (0, import_docflow_core12.definePlugin)({
|
|
|
366
366
|
});
|
|
367
367
|
|
|
368
368
|
// src/fontSize.ts
|
|
369
|
-
var import_docflow_core13 = require("@
|
|
369
|
+
var import_docflow_core13 = require("@kedataindo/docflow-core");
|
|
370
370
|
var fontSizePlugin = (0, import_docflow_core13.definePlugin)({
|
|
371
371
|
id: "font-size",
|
|
372
372
|
tiptapExtensions: [import_docflow_core13.FontSizeExtension],
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _kedata_indonesia_docflow_core from '@
|
|
2
|
-
export { DocsEditorPlugin, FontSizeExtension, SlashCommand, ToolbarItem } from '@
|
|
1
|
+
import * as _kedata_indonesia_docflow_core from '@kedataindo/docflow-core';
|
|
2
|
+
export { DocsEditorPlugin, FontSizeExtension, SlashCommand, ToolbarItem } from '@kedataindo/docflow-core';
|
|
3
3
|
import { Node } from '@tiptap/core';
|
|
4
4
|
|
|
5
5
|
declare const formattingPlugin: _kedata_indonesia_docflow_core.DocsEditorPlugin;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _kedata_indonesia_docflow_core from '@
|
|
2
|
-
export { DocsEditorPlugin, FontSizeExtension, SlashCommand, ToolbarItem } from '@
|
|
1
|
+
import * as _kedata_indonesia_docflow_core from '@kedataindo/docflow-core';
|
|
2
|
+
export { DocsEditorPlugin, FontSizeExtension, SlashCommand, ToolbarItem } from '@kedataindo/docflow-core';
|
|
3
3
|
import { Node } from '@tiptap/core';
|
|
4
4
|
|
|
5
5
|
declare const formattingPlugin: _kedata_indonesia_docflow_core.DocsEditorPlugin;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/formatting.ts
|
|
2
|
-
import { definePlugin } from "@
|
|
2
|
+
import { definePlugin } from "@kedataindo/docflow-core";
|
|
3
3
|
import Underline from "@tiptap/extension-underline";
|
|
4
4
|
var formattingPlugin = definePlugin({
|
|
5
5
|
id: "formatting",
|
|
@@ -13,7 +13,7 @@ var formattingPlugin = definePlugin({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
// src/headings.ts
|
|
16
|
-
import { definePlugin as definePlugin2 } from "@
|
|
16
|
+
import { definePlugin as definePlugin2 } from "@kedataindo/docflow-core";
|
|
17
17
|
function toggleHeading(level) {
|
|
18
18
|
return (editor) => {
|
|
19
19
|
const commands = editor.commands;
|
|
@@ -46,7 +46,7 @@ var headingsPlugin = definePlugin2({
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
// src/lists.ts
|
|
49
|
-
import { definePlugin as definePlugin3 } from "@
|
|
49
|
+
import { definePlugin as definePlugin3 } from "@kedataindo/docflow-core";
|
|
50
50
|
import TaskList from "@tiptap/extension-task-list";
|
|
51
51
|
import TaskItem from "@tiptap/extension-task-item";
|
|
52
52
|
var listsPlugin = definePlugin3({
|
|
@@ -65,7 +65,7 @@ var listsPlugin = definePlugin3({
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
// src/alignment.ts
|
|
68
|
-
import { definePlugin as definePlugin4 } from "@
|
|
68
|
+
import { definePlugin as definePlugin4 } from "@kedataindo/docflow-core";
|
|
69
69
|
import TextAlign from "@tiptap/extension-text-align";
|
|
70
70
|
function setAlign(alignment) {
|
|
71
71
|
return (editor) => editor.commands.setTextAlign(alignment);
|
|
@@ -90,7 +90,7 @@ var alignmentPlugin = definePlugin4({
|
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
// src/link.ts
|
|
93
|
-
import { definePlugin as definePlugin5 } from "@
|
|
93
|
+
import { definePlugin as definePlugin5 } from "@kedataindo/docflow-core";
|
|
94
94
|
import Link from "@tiptap/extension-link";
|
|
95
95
|
var linkPlugin = definePlugin5({
|
|
96
96
|
id: "link",
|
|
@@ -115,7 +115,7 @@ var linkPlugin = definePlugin5({
|
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
// src/image.ts
|
|
118
|
-
import { definePlugin as definePlugin6 } from "@
|
|
118
|
+
import { definePlugin as definePlugin6 } from "@kedataindo/docflow-core";
|
|
119
119
|
import Image from "@tiptap/extension-image";
|
|
120
120
|
var DEFAULT_IMAGE_SRC = "https://via.placeholder.com/300x200";
|
|
121
121
|
var imagePlugin = definePlugin6({
|
|
@@ -134,7 +134,7 @@ var imagePlugin = definePlugin6({
|
|
|
134
134
|
});
|
|
135
135
|
|
|
136
136
|
// src/table.ts
|
|
137
|
-
import { definePlugin as definePlugin7 } from "@
|
|
137
|
+
import { definePlugin as definePlugin7 } from "@kedataindo/docflow-core";
|
|
138
138
|
import Table from "@tiptap/extension-table";
|
|
139
139
|
import TableRow from "@tiptap/extension-table-row";
|
|
140
140
|
import TableCell from "@tiptap/extension-table-cell";
|
|
@@ -154,7 +154,7 @@ var tablePlugin = definePlugin7({
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
// src/blockquote.ts
|
|
157
|
-
import { definePlugin as definePlugin8 } from "@
|
|
157
|
+
import { definePlugin as definePlugin8 } from "@kedataindo/docflow-core";
|
|
158
158
|
var blockquotePlugin = definePlugin8({
|
|
159
159
|
id: "blockquote",
|
|
160
160
|
toolbar: [{ id: "blockquote", label: "Blockquote", action: "toggleBlockquote", iconComponent: "Quote" }],
|
|
@@ -162,7 +162,7 @@ var blockquotePlugin = definePlugin8({
|
|
|
162
162
|
});
|
|
163
163
|
|
|
164
164
|
// src/codeBlock.ts
|
|
165
|
-
import { definePlugin as definePlugin9 } from "@
|
|
165
|
+
import { definePlugin as definePlugin9 } from "@kedataindo/docflow-core";
|
|
166
166
|
var codeBlockPlugin = definePlugin9({
|
|
167
167
|
id: "code-block",
|
|
168
168
|
toolbar: [{ id: "code-block", label: "Code Block", action: "toggleCodeBlock", iconComponent: "Code" }],
|
|
@@ -170,7 +170,7 @@ var codeBlockPlugin = definePlugin9({
|
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
// src/placeholder.ts
|
|
173
|
-
import { definePlugin as definePlugin10 } from "@
|
|
173
|
+
import { definePlugin as definePlugin10 } from "@kedataindo/docflow-core";
|
|
174
174
|
import Placeholder from "@tiptap/extension-placeholder";
|
|
175
175
|
function createPlaceholderPlugin(options = {}) {
|
|
176
176
|
return definePlugin10({
|
|
@@ -186,7 +186,7 @@ var placeholderPlugin = createPlaceholderPlugin();
|
|
|
186
186
|
|
|
187
187
|
// src/pageBreak.ts
|
|
188
188
|
import { Node, mergeAttributes } from "@tiptap/core";
|
|
189
|
-
import { definePlugin as definePlugin11 } from "@
|
|
189
|
+
import { definePlugin as definePlugin11 } from "@kedataindo/docflow-core";
|
|
190
190
|
var PageBreak = Node.create({
|
|
191
191
|
name: "pageBreak",
|
|
192
192
|
group: "block",
|
|
@@ -244,7 +244,7 @@ var pageBreakPlugin = definePlugin11({
|
|
|
244
244
|
|
|
245
245
|
// src/footnote.ts
|
|
246
246
|
import { Node as Node2, mergeAttributes as mergeAttributes2 } from "@tiptap/core";
|
|
247
|
-
import { definePlugin as definePlugin12 } from "@
|
|
247
|
+
import { definePlugin as definePlugin12 } from "@kedataindo/docflow-core";
|
|
248
248
|
var FootnoteNode = Node2.create({
|
|
249
249
|
name: "footnote",
|
|
250
250
|
group: "inline",
|
|
@@ -313,7 +313,7 @@ var footnotePlugin = definePlugin12({
|
|
|
313
313
|
});
|
|
314
314
|
|
|
315
315
|
// src/fontSize.ts
|
|
316
|
-
import { definePlugin as definePlugin13, FontSizeExtension } from "@
|
|
316
|
+
import { definePlugin as definePlugin13, FontSizeExtension } from "@kedataindo/docflow-core";
|
|
317
317
|
var fontSizePlugin = definePlugin13({
|
|
318
318
|
id: "font-size",
|
|
319
319
|
tiptapExtensions: [FontSizeExtension],
|