@mythpe/quasar-ui-qui 0.2.24 → 0.2.26

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.
@@ -39,7 +39,7 @@ import type { FieldContext, FieldOptions, FormContext, FormOptions, FormState }
39
39
  import type { ThemeShadow, ThemeSize } from './theme'
40
40
  import type { ApiInterface, HelpersStubSchema } from './api-helpers'
41
41
  import type { MDatatableProps, MDatatableSlots, MDtAvatarProps, MDtAvatarSlots, MDtBtnProps, MDtBtnSlots, MDtContextmenuItemsProps, MDtContextmenuItemsSlots } from './m-datatable'
42
- import type { EditorConfig } from 'ckeditor5'
42
+ import type { EditorConfig } from 'https://cdn.ckeditor.com/typings/ckeditor5.d.ts'
43
43
  import type { MAvatarViewerProps, MAvatarViewerSlots } from './api/MAvatarViewer'
44
44
  import type { MTransitionGroupProps, MTransitionProps, MTransitionsSlots } from './api/MTransition'
45
45
  import type { MAxiosProps, MAxiosSlots } from './api/MAxios'
@@ -962,7 +962,7 @@ export type MCkeditorProps = Omit<BaseInputsProps, 'hint' | 'topLabel' | 'placeh
962
962
  * Specifies the configuration of the editor.
963
963
  * https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorconfig-EditorConfig.html
964
964
  */
965
- config?: ((config: EditorConfig) => EditorConfig) | undefined;
965
+ config?: (config: EditorConfig) => EditorConfig;
966
966
  /**
967
967
  * By default, the editor component creates a <div> container which is used as an element passed to the editor (for example, ClassicEditor#element).
968
968
  * The element can be configured, so for example to create a <textarea>, use the following directive:
@@ -976,10 +976,9 @@ export type MCkeditorProps = Omit<BaseInputsProps, 'hint' | 'topLabel' | 'placeh
976
976
  */
977
977
  disabled?: boolean;
978
978
  /**
979
- * Allows disabling the two-way data binding mechanism.
980
- * Default value: false.
979
+ * Use HTML instead of Markdown.
981
980
  */
982
- disableTwoWayDataBinding?: boolean;
981
+ html?: boolean;
983
982
  }
984
983
  export type MCkeditorSlots = BaseInputsSlots
985
984
 
@@ -1,6 +1,7 @@
1
1
  import type { ThemeContext } from './theme'
2
2
  import type { MythComponentsProps } from './plugin-props-option'
3
3
  import type { ApiContext, MythApi } from './myth-api'
4
+ import type { MInputProps } from './components'
4
5
 
5
6
  export interface InstallOptions extends MythApi {
6
7
  api: ApiContext;
@@ -8,4 +9,6 @@ export interface InstallOptions extends MythApi {
8
9
  props?: Partial<MythComponentsProps>;
9
10
  theme?: Partial<ThemeContext>;
10
11
  rules?: string[];
12
+ mobileRule?: MInputProps['mobile'];
13
+ ckeditorKey?: string;
11
14
  }
@@ -39,5 +39,6 @@ export interface MythApi {
39
39
  * Default is true.
40
40
  * The Length must be 10.
41
41
  */
42
- mobileRule?: MInputProps['mobile'];
42
+ mobileRule: MInputProps['mobile'];
43
+ ckeditorKey: string | null;
43
44
  }
@@ -5,6 +5,7 @@ import { extend } from 'quasar'
5
5
 
6
6
  export const createMyth = (options: InstallOptions) => {
7
7
  const defaultOptions = {
8
+ ckeditorKey: null,
8
9
  asyncComponents: !1,
9
10
  api: {
10
11
  url: '',