@platecms/delta-smart-text 0.1.0

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.
Files changed (38) hide show
  1. package/README.md +38 -0
  2. package/components/DeltaSlateEditor.vue.d.ts +23 -0
  3. package/index.cjs +960 -0
  4. package/index.css +1 -0
  5. package/index.d.ts +12 -0
  6. package/index.js +48186 -0
  7. package/package.json +59 -0
  8. package/react/components/DeltaSlateEditor.d.ts +6 -0
  9. package/react/components/DeltaSlateEditorConnector.d.ts +9 -0
  10. package/react/components/Element.d.ts +7 -0
  11. package/react/components/Leaf.d.ts +7 -0
  12. package/react/components/elements/CodeElement.d.ts +8 -0
  13. package/react/components/elements/ContentValueElement.d.ts +8 -0
  14. package/react/components/inputs/SearchInput.d.ts +5 -0
  15. package/react/components/menus/ContentAndFormatMenu.d.ts +4 -0
  16. package/react/components/menus/ContentLibraryMenu.d.ts +4 -0
  17. package/react/components/menus/ReusableContentMenu.d.ts +3 -0
  18. package/react/components/menus/content/ContentItemsMenu.d.ts +5 -0
  19. package/react/components/menus/content/ContentTypesMenu.d.ts +6 -0
  20. package/react/components/menus/content/partials/ContentFieldMenuItem.d.ts +6 -0
  21. package/react/components/menus/content/partials/ContentValueMenuItem.d.ts +7 -0
  22. package/react/components/menus/partials/MenuButton.d.ts +8 -0
  23. package/react/components/menus/partials/MenuContainer.d.ts +4 -0
  24. package/react/components/menus/partials/MenuHeader.d.ts +6 -0
  25. package/react/components/toolbar/Toolbar.d.ts +6 -0
  26. package/react/components/toolbar/ToolbarBlockButton.d.ts +13 -0
  27. package/react/components/toolbar/ToolbarHeadingDropdownButton.d.ts +2 -0
  28. package/react/components/toolbar/ToolbarMarkButton.d.ts +7 -0
  29. package/react/components/toolbar/content/ContentExtractToolbarButton.d.ts +2 -0
  30. package/react/components/toolbar/content/ContentLibraryToolbarButton.d.ts +5 -0
  31. package/react/components/toolbar/content/ContentToolbar.d.ts +4 -0
  32. package/react/config/hotkeys.d.ts +2 -0
  33. package/react/plugins/index.d.ts +3 -0
  34. package/react/store/editorSlice.d.ts +161 -0
  35. package/react/store/store.d.ts +5 -0
  36. package/react/types.d.ts +55 -0
  37. package/react/utils/decorator.d.ts +15 -0
  38. package/react/utils/index.d.ts +15 -0
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # delta-smart-text
2
+
3
+ This library is part of the [Delta Client]() utility packages.
4
+ It provides a component to display smart text by using slate
5
+
6
+ ## Usage
7
+
8
+ ```vue
9
+ <DeltaSlateEditor />
10
+ ```
11
+
12
+ ## Props
13
+ The component accepts the following props:
14
+
15
+ ```ts
16
+ uuid?: string
17
+ initialValue?: Descendant[]
18
+
19
+ //defaults
20
+ uuid: () => uuidv4(),
21
+ initialValue: () => [
22
+ {
23
+ type: 'paragraph',
24
+ children: [{ text: '' }],
25
+ }
26
+ ],
27
+ ```
28
+
29
+ ## API
30
+ Exposes the following methods:
31
+
32
+ ```ts
33
+ setValue(value: Descendant[])
34
+ setContentTypes(contentTypes: ContentType[])
35
+ setContentItemsOfContentType(contentType: string, contentItems: ContentItem[])
36
+ ```
37
+
38
+
@@ -0,0 +1,23 @@
1
+ import { Descendant } from 'slate';
2
+ import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
+ type __VLS_Props = {
4
+ uuid?: string;
5
+ initialValue?: Descendant[];
6
+ context: HTMLElement | null;
7
+ client: ApolloClient<NormalizedCacheObject>;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ 'tree'?: any;
11
+ } & __VLS_Props;
12
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
13
+ setValue: (value: Descendant[]) => void;
14
+ setInitialValue: (value: Descendant[]) => void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:tree": (value: any) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ "onUpdate:tree"?: ((value: any) => any) | undefined;
19
+ }>, {
20
+ uuid: string;
21
+ initialValue: Descendant[];
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ export default _default;