@cocoar/vue-markdown-editor 2.8.0 → 2.10.0-beta.2

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.
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ /** The editor's `.coar-md-area` element — the hover scope. */
3
+ area: HTMLElement | null;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ menuToggle: (open: boolean) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onMenuToggle?: ((open: boolean) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
11
+ //# sourceMappingURL=TableHandles.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHandles.vue.d.ts","sourceRoot":"","sources":["../../src/table/TableHandles.vue"],"names":[],"mappings":"AAifA,KAAK,WAAW,GAAG;IACjB,8DAA8D;IAC9D,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1B,CAAC;;;;;;AAwiBF,wBAQG"}
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ /** Insert a table of the chosen size. Injected by the overlay opener. */
3
+ pick: (rows: number, cols: number) => void;
4
+ /** Max selectable dimension per axis. Defaults to 8. */
5
+ max?: number;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ export default _default;
9
+ //# sourceMappingURL=TableSizePicker.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableSizePicker.vue.d.ts","sourceRoot":"","sources":["../../src/table/TableSizePicker.vue"],"names":[],"mappings":"AAsHA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;;AAiHF,wBAOG"}
@@ -1,4 +1,17 @@
1
1
  import { CoarMarkdownEditorTool } from './CoarMarkdownEditor.vue';
2
+ import { CoarMarkdownCapabilities } from './flavor';
3
+ /**
4
+ * Whether a toolbar tool is permitted by the resolved flavor capabilities.
5
+ *
6
+ * This is the **hard** gate: a tool whose underlying construct isn't part of
7
+ * the flavor is never shown (and its plugin isn't even registered, so it can't
8
+ * be created another way). Tools not listed here are always allowed — they map
9
+ * to portable CommonMark basics.
10
+ *
11
+ * - GFM tools (`table`, `tableOps`, `taskList`, `strikethrough`) require `gfm`.
12
+ * - `textColor` requires `textColor`.
13
+ */
14
+ export declare function isToolAllowedByCapabilities(tool: CoarMarkdownEditorTool, caps: CoarMarkdownCapabilities): boolean;
2
15
  /**
3
16
  * Decide whether a given tool should appear in the toolbar.
4
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar-helpers.d.ts","sourceRoot":"","sources":["../src/toolbar-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,sBAAsB,EAC5B,SAAS,EAAE,WAAW,CAAC,sBAAsB,CAAC,GAAG,SAAS,sBAAsB,EAAE,GAAG,SAAS,GAC7F,OAAO,CAST;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE1D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,MAAM,EAAE,aAAa,GAAG,cAAc,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACxB,GAAG,gBAAgB,CAOnB"}
1
+ {"version":3,"file":"toolbar-helpers.d.ts","sourceRoot":"","sources":["../src/toolbar-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,wBAAwB,GAC7B,OAAO,CAYT;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,sBAAsB,EAC5B,SAAS,EAAE,WAAW,CAAC,sBAAsB,CAAC,GAAG,SAAS,sBAAsB,EAAE,GAAG,SAAS,GAC7F,OAAO,CAST;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE1D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,MAAM,EAAE,aAAa,GAAG,cAAc,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACxB,GAAG,gBAAgB,CAOnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocoar/vue-markdown-editor",
3
- "version": "2.8.0",
3
+ "version": "2.10.0-beta.2",
4
4
  "description": "WYSIWYG Markdown editor for Vue 3 based on Milkdown, with Cocoar Design System styling",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,9 +43,9 @@
43
43
  "typecheck": "vue-tsc --noEmit"
44
44
  },
45
45
  "peerDependencies": {
46
- "@cocoar/vue-markdown": "2.8.0",
47
- "@cocoar/vue-markdown-core": "2.8.0",
48
- "@cocoar/vue-ui": "2.8.0",
46
+ "@cocoar/vue-markdown": "2.10.0-beta.2",
47
+ "@cocoar/vue-markdown-core": "2.10.0-beta.2",
48
+ "@cocoar/vue-ui": "2.10.0-beta.2",
49
49
  "vue": "^3.5.0"
50
50
  },
51
51
  "dependencies": {