tiptapify 0.0.20 → 0.0.21

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tiptapify",
3
3
  "types": "./index.d.ts",
4
- "version": "0.0.20",
4
+ "version": "0.0.21",
5
5
  "description": "Tiptap3 editor with Vuetify3 menu implementation",
6
6
  "exports": {
7
7
  ".": {
@@ -115,13 +115,11 @@ export function editorExtensions (placeholder: string, slashCommands: boolean, c
115
115
 
116
116
  if (customExtensions.length) {
117
117
  for (const customExtension of customExtensions) {
118
- for (const component of customExtension.components) {
119
- if (typeof component.extensions === 'undefined') {
120
- continue
121
- }
122
- for (const extension of component.extensions) {
123
- extensions.push(extension)
124
- }
118
+ if (typeof customExtension.extensions === 'undefined') {
119
+ continue
120
+ }
121
+ for (const extension of customExtension.extensions) {
122
+ extensions.push(extension)
125
123
  }
126
124
  }
127
125
  }
@@ -13,13 +13,13 @@ export enum ToolbarSectionsEnum {
13
13
  export type sectionComponent = {
14
14
  name: string,
15
15
  component: any,
16
- extensions?: Array<any>,
17
16
  }
18
17
 
19
18
  export type section = {
20
19
  section: string,
21
20
  group: boolean,
22
21
  components: sectionComponent[],
22
+ extensions?: Array<any>,
23
23
  }
24
24
 
25
25
  export type toolbarSections = Array<section>