@yoopta/themes-material 6.0.0-beta.1

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 (101) hide show
  1. package/LICENSE +21 -0
  2. package/dist/accordion/elements/accordion-item-content.d.ts +3 -0
  3. package/dist/accordion/elements/accordion-item-content.d.ts.map +1 -0
  4. package/dist/accordion/elements/accordion-item-heading.d.ts +3 -0
  5. package/dist/accordion/elements/accordion-item-heading.d.ts.map +1 -0
  6. package/dist/accordion/elements/accordion-list-item.d.ts +3 -0
  7. package/dist/accordion/elements/accordion-list-item.d.ts.map +1 -0
  8. package/dist/accordion/elements/accordion-list.d.ts +3 -0
  9. package/dist/accordion/elements/accordion-list.d.ts.map +1 -0
  10. package/dist/accordion/index.d.ts +15 -0
  11. package/dist/accordion/index.d.ts.map +1 -0
  12. package/dist/blockquote/elements/blockquote.d.ts +3 -0
  13. package/dist/blockquote/elements/blockquote.d.ts.map +1 -0
  14. package/dist/blockquote/index.d.ts +6 -0
  15. package/dist/blockquote/index.d.ts.map +1 -0
  16. package/dist/callout/elements/callout.d.ts +3 -0
  17. package/dist/callout/elements/callout.d.ts.map +1 -0
  18. package/dist/callout/index.d.ts +6 -0
  19. package/dist/callout/index.d.ts.map +1 -0
  20. package/dist/code/elements/code.d.ts +3 -0
  21. package/dist/code/elements/code.d.ts.map +1 -0
  22. package/dist/code/elements/language-select.d.ts +13 -0
  23. package/dist/code/elements/language-select.d.ts.map +1 -0
  24. package/dist/code/elements/theme-select.d.ts +13 -0
  25. package/dist/code/elements/theme-select.d.ts.map +1 -0
  26. package/dist/code/index.d.ts +7 -0
  27. package/dist/code/index.d.ts.map +1 -0
  28. package/dist/headings/heading-one/elements/heading-one.d.ts +3 -0
  29. package/dist/headings/heading-one/elements/heading-one.d.ts.map +1 -0
  30. package/dist/headings/heading-one/index.d.ts +6 -0
  31. package/dist/headings/heading-one/index.d.ts.map +1 -0
  32. package/dist/headings/heading-three/elements/heading-three.d.ts +3 -0
  33. package/dist/headings/heading-three/elements/heading-three.d.ts.map +1 -0
  34. package/dist/headings/heading-three/index.d.ts +6 -0
  35. package/dist/headings/heading-three/index.d.ts.map +1 -0
  36. package/dist/headings/heading-two/elements/heading-two.d.ts +3 -0
  37. package/dist/headings/heading-two/elements/heading-two.d.ts.map +1 -0
  38. package/dist/headings/heading-two/index.d.ts +6 -0
  39. package/dist/headings/heading-two/index.d.ts.map +1 -0
  40. package/dist/headings/index.d.ts +18 -0
  41. package/dist/headings/index.d.ts.map +1 -0
  42. package/dist/image/elements/image/image-element.d.ts +3 -0
  43. package/dist/image/elements/image/image-element.d.ts.map +1 -0
  44. package/dist/image/elements/image/image-inline-toolbar-settings.d.ts +10 -0
  45. package/dist/image/elements/image/image-inline-toolbar-settings.d.ts.map +1 -0
  46. package/dist/image/elements/image/image-inline-toolbar.d.ts +12 -0
  47. package/dist/image/elements/image/image-inline-toolbar.d.ts.map +1 -0
  48. package/dist/image/elements/image/image-placeholder.d.ts +18 -0
  49. package/dist/image/elements/image/image-placeholder.d.ts.map +1 -0
  50. package/dist/image/elements/image/image-render.d.ts +15 -0
  51. package/dist/image/elements/image/image-render.d.ts.map +1 -0
  52. package/dist/image/index.d.ts +6 -0
  53. package/dist/image/index.d.ts.map +1 -0
  54. package/dist/image/types.d.ts +14 -0
  55. package/dist/image/types.d.ts.map +1 -0
  56. package/dist/index.d.ts +13 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +161 -0
  59. package/dist/link/elements/link/link-element.d.ts +4 -0
  60. package/dist/link/elements/link/link-element.d.ts.map +1 -0
  61. package/dist/link/elements/link/link-hover-edit.d.ts +16 -0
  62. package/dist/link/elements/link/link-hover-edit.d.ts.map +1 -0
  63. package/dist/link/elements/link/link-hover-popover.d.ts +12 -0
  64. package/dist/link/elements/link/link-hover-popover.d.ts.map +1 -0
  65. package/dist/link/index.d.ts +6 -0
  66. package/dist/link/index.d.ts.map +1 -0
  67. package/dist/lists/bulleted-list/elements/bulleted-list-item.d.ts +3 -0
  68. package/dist/lists/bulleted-list/elements/bulleted-list-item.d.ts.map +1 -0
  69. package/dist/lists/bulleted-list/elements/bulleted-list.d.ts +3 -0
  70. package/dist/lists/bulleted-list/elements/bulleted-list.d.ts.map +1 -0
  71. package/dist/lists/bulleted-list/index.d.ts +9 -0
  72. package/dist/lists/bulleted-list/index.d.ts.map +1 -0
  73. package/dist/lists/index.d.ts +27 -0
  74. package/dist/lists/index.d.ts.map +1 -0
  75. package/dist/lists/numbered-list/elements/numbered-list-item.d.ts +3 -0
  76. package/dist/lists/numbered-list/elements/numbered-list-item.d.ts.map +1 -0
  77. package/dist/lists/numbered-list/elements/numbered-list.d.ts +3 -0
  78. package/dist/lists/numbered-list/elements/numbered-list.d.ts.map +1 -0
  79. package/dist/lists/numbered-list/index.d.ts +9 -0
  80. package/dist/lists/numbered-list/index.d.ts.map +1 -0
  81. package/dist/lists/todo-list/elements/todo-list-item.d.ts +3 -0
  82. package/dist/lists/todo-list/elements/todo-list-item.d.ts.map +1 -0
  83. package/dist/lists/todo-list/elements/todo-list.d.ts +3 -0
  84. package/dist/lists/todo-list/elements/todo-list.d.ts.map +1 -0
  85. package/dist/lists/todo-list/index.d.ts +9 -0
  86. package/dist/lists/todo-list/index.d.ts.map +1 -0
  87. package/dist/paragraph/elements/paragraph.d.ts +3 -0
  88. package/dist/paragraph/elements/paragraph.d.ts.map +1 -0
  89. package/dist/paragraph/index.d.ts +6 -0
  90. package/dist/paragraph/index.d.ts.map +1 -0
  91. package/dist/table/elements/table-data-cell.d.ts +3 -0
  92. package/dist/table/elements/table-data-cell.d.ts.map +1 -0
  93. package/dist/table/elements/table-row.d.ts +3 -0
  94. package/dist/table/elements/table-row.d.ts.map +1 -0
  95. package/dist/table/elements/table.d.ts +3 -0
  96. package/dist/table/elements/table.d.ts.map +1 -0
  97. package/dist/table/index.d.ts +12 -0
  98. package/dist/table/index.d.ts.map +1 -0
  99. package/dist/withMaterialUI.d.ts +31 -0
  100. package/dist/withMaterialUI.d.ts.map +1 -0
  101. package/package.json +48 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Akhmed Ibragimov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const AccordionItemContent: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=accordion-item-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-item-content.d.ts","sourceRoot":"","sources":["../../../src/accordion/elements/accordion-item-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,oBAAoB,UAAW,wBAAwB,4CAanE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const AccordionItemHeading: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=accordion-item-heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-item-heading.d.ts","sourceRoot":"","sources":["../../../src/accordion/elements/accordion-item-heading.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAK7E,eAAO,MAAM,oBAAoB,UAAW,wBAAwB,4CAwJnE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const AccordionListItem: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=accordion-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-list-item.d.ts","sourceRoot":"","sources":["../../../src/accordion/elements/accordion-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,iBAAiB,UAAW,wBAAwB,4CAuBhE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const AccordionList: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=accordion-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-list.d.ts","sourceRoot":"","sources":["../../../src/accordion/elements/accordion-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,UAAW,wBAAwB,4CAgB5D,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const AccordionUI: {
2
+ 'accordion-list': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ 'accordion-list-item': {
6
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ 'accordion-list-item-heading': {
9
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
10
+ };
11
+ 'accordion-list-item-content': {
12
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ };
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accordion/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const Blockquote: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=blockquote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../src/blockquote/elements/blockquote.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,UAAU,UAAW,wBAAwB,4CAoBzD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const BlockquoteUI: {
2
+ blockquote: {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/blockquote/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const Callout: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout.d.ts","sourceRoot":"","sources":["../../../src/callout/elements/callout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAgB7E,eAAO,MAAM,OAAO,UAAW,wBAAwB,4CA6BtD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const CalloutUI: {
2
+ callout: {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/callout/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;CAIrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const CodeBlockElement: ({ attributes, children, element, blockId, }: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../src/code/elements/code.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAoD/D,eAAO,MAAM,gBAAgB,gDAK1B,wBAAwB,4CAgO1B,CAAC"}
@@ -0,0 +1,13 @@
1
+ type LanguageOption = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ type LanguageSelectProps = {
6
+ value: string;
7
+ options: readonly LanguageOption[];
8
+ onValueChange: (value: string) => void;
9
+ currentLabel: string;
10
+ };
11
+ export declare const LanguageSelect: ({ value, options, onValueChange, currentLabel, }: LanguageSelectProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=language-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language-select.d.ts","sourceRoot":"","sources":["../../../src/code/elements/language-select.tsx"],"names":[],"mappings":"AASA,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,qDAKxB,mBAAmB,4CA2GrB,CAAC"}
@@ -0,0 +1,13 @@
1
+ type ThemeOption = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ type ThemeSelectProps = {
6
+ value: string;
7
+ options: readonly ThemeOption[];
8
+ onValueChange: (value: string) => void;
9
+ currentLabel: string;
10
+ };
11
+ export declare const ThemeSelect: ({ value, options, onValueChange, currentLabel }: ThemeSelectProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=theme-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-select.d.ts","sourceRoot":"","sources":["../../../src/code/elements/theme-select.tsx"],"names":[],"mappings":"AASA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,WAAW,oDAAqD,gBAAgB,4CAyG5F,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare const CodeUI: {
2
+ code: {
3
+ render: ({ attributes, children, element, blockId, }: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ export { CodeUI };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/code/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;CAIX,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const HeadingOne: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=heading-one.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading-one.d.ts","sourceRoot":"","sources":["../../../../src/headings/heading-one/elements/heading-one.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,UAAU,UAAW,wBAAwB,4CAQzD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const HeadingOneUI: {
2
+ 'heading-one': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/headings/heading-one/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const HeadingThree: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=heading-three.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading-three.d.ts","sourceRoot":"","sources":["../../../../src/headings/heading-three/elements/heading-three.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,YAAY,UAAW,wBAAwB,4CAQ3D,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const HeadingThreeUI: {
2
+ 'heading-three': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/headings/heading-three/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;CAI1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const HeadingTwo: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=heading-two.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading-two.d.ts","sourceRoot":"","sources":["../../../../src/headings/heading-two/elements/heading-two.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,UAAU,UAAW,wBAAwB,4CAQzD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const HeadingTwoUI: {
2
+ 'heading-two': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/headings/heading-two/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const HeadingsUI: {
2
+ HeadingOne: {
3
+ 'heading-one': {
4
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ };
7
+ HeadingTwo: {
8
+ 'heading-two': {
9
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
10
+ };
11
+ };
12
+ HeadingThree: {
13
+ 'heading-three': {
14
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
15
+ };
16
+ };
17
+ };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/headings/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAItB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const ImageElement: ({ element, attributes, children, blockId, }: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=image-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-element.d.ts","sourceRoot":"","sources":["../../../../src/image/elements/image/image-element.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,eAAO,MAAM,YAAY,gDAKtB,wBAAwB,4CA+F1B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ImageElementProps, ObjectFit } from '../../types';
2
+ type ImageInlineToolbarSettingsProps = {
3
+ fit: ObjectFit;
4
+ alt: string;
5
+ borderRadius: number;
6
+ onUpdate: (props: Partial<ImageElementProps>) => void;
7
+ };
8
+ export declare const ImageInlineToolbarSettings: ({ fit, alt, borderRadius, onUpdate, }: ImageInlineToolbarSettingsProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=image-inline-toolbar-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-inline-toolbar-settings.d.ts","sourceRoot":"","sources":["../../../../src/image/elements/image/image-inline-toolbar-settings.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEhE,KAAK,+BAA+B,GAAG;IACrC,GAAG,EAAE,SAAS,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACvD,CAAC;AAQF,eAAO,MAAM,0BAA0B,0CAKpC,+BAA+B,4CAqIjC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ImageElementProps } from '../../types';
2
+ type ImageInlineToolbarProps = {
3
+ elementProps: ImageElementProps;
4
+ onUpdate: (props: Partial<ImageElementProps>) => void;
5
+ onReplace: () => void;
6
+ onDelete: () => void;
7
+ onDownload: () => void;
8
+ onCopy: () => void;
9
+ };
10
+ export declare const ImageInlineToolbar: ({ elementProps, onUpdate, onReplace, onDelete, onDownload, onCopy, }: ImageInlineToolbarProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=image-inline-toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-inline-toolbar.d.ts","sourceRoot":"","sources":["../../../../src/image/elements/image/image-inline-toolbar.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,uBAAuB,GAAG;IAC7B,YAAY,EAAE,iBAAiB,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,yEAO5B,uBAAuB,4CAoHzB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import type { PluginElementRenderProps } from '@yoopta/editor';
3
+ import type { ImageUploadProgress } from '@yoopta/image';
4
+ type ImagePlaceholderProps = {
5
+ onUpload: (file: File) => void;
6
+ onInsertUrl: (url: string) => void;
7
+ onInsertFromUnsplash?: () => void;
8
+ onInsertFromAI?: (prompt: string) => Promise<void>;
9
+ preview: string | null;
10
+ progress: ImageUploadProgress | null;
11
+ loading: boolean;
12
+ sx?: object;
13
+ attributes: PluginElementRenderProps['attributes'];
14
+ children: React.ReactNode;
15
+ };
16
+ export declare const ImagePlaceholder: ({ onUpload, onInsertUrl, onInsertFromUnsplash, onInsertFromAI, preview, progress, loading, sx, attributes, children, }: ImagePlaceholderProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=image-placeholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-placeholder.d.ts","sourceRoot":"","sources":["../../../../src/image/elements/image/image-placeholder.tsx"],"names":[],"mappings":";AAqBA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAiRF,eAAO,MAAM,gBAAgB,2HAW1B,qBAAqB,4CAiIvB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import type { PluginElementRenderProps } from '@yoopta/editor';
3
+ import type { ImageElementProps } from '../../types';
4
+ type Props = {
5
+ blockId: string;
6
+ attributes: PluginElementRenderProps['attributes'];
7
+ children: React.ReactNode;
8
+ elementProps: ImageElementProps;
9
+ onUpdate: (props: Partial<ImageElementProps>) => void;
10
+ onDelete: () => void;
11
+ onReplace: () => void;
12
+ };
13
+ export declare const ImageRender: ({ blockId, attributes, children, elementProps, onUpdate, onDelete, onReplace, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=image-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-render.d.ts","sourceRoot":"","sources":["../../../../src/image/elements/image/image-render.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAM/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,iBAAiB,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,WAAW,oFAQrB,KAAK,4CA+KP,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const ImageUI: {
2
+ image: {
3
+ render: ({ element, attributes, children, blockId, }: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/image/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type ObjectFit = 'contain' | 'cover' | 'fill';
2
+ export type Alignment = 'left' | 'center' | 'right';
3
+ export type ImageElementProps = {
4
+ src: string;
5
+ alt?: string | null;
6
+ sizes: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ fit?: ObjectFit;
11
+ alignment?: Alignment;
12
+ borderRadius?: number;
13
+ };
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/image/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { withMaterialUI } from './withMaterialUI';
2
+ import './styles.css';
3
+ export { AccordionUI } from './accordion';
4
+ export { HeadingsUI } from './headings';
5
+ export { BlockquoteUI } from './blockquote';
6
+ export { ParagraphUI } from './paragraph';
7
+ export { LinkUI } from './link';
8
+ export { TableUI } from './table';
9
+ export { CalloutUI } from './callout';
10
+ export { ListsUI } from './lists';
11
+ export { CodeUI } from './code';
12
+ export default withMaterialUI;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,eAAe,cAAc,CAAC"}