@yoopta/themes-shadcn 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 (187) 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 +16 -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/carousel/elements/carousel-container.d.ts +3 -0
  21. package/dist/carousel/elements/carousel-container.d.ts.map +1 -0
  22. package/dist/carousel/elements/carousel-item.d.ts +3 -0
  23. package/dist/carousel/elements/carousel-item.d.ts.map +1 -0
  24. package/dist/carousel/index.d.ts +9 -0
  25. package/dist/carousel/index.d.ts.map +1 -0
  26. package/dist/code/elements/code.d.ts +9 -0
  27. package/dist/code/elements/code.d.ts.map +1 -0
  28. package/dist/code/elements/language-select.d.ts +13 -0
  29. package/dist/code/elements/language-select.d.ts.map +1 -0
  30. package/dist/code/elements/theme-select.d.ts +13 -0
  31. package/dist/code/elements/theme-select.d.ts.map +1 -0
  32. package/dist/code/index.d.ts +7 -0
  33. package/dist/code/index.d.ts.map +1 -0
  34. package/dist/code-group/elements/code-group-container.d.ts +9 -0
  35. package/dist/code-group/elements/code-group-container.d.ts.map +1 -0
  36. package/dist/code-group/elements/code-group-content.d.ts +3 -0
  37. package/dist/code-group/elements/code-group-content.d.ts.map +1 -0
  38. package/dist/code-group/elements/code-group-item-heading.d.ts +3 -0
  39. package/dist/code-group/elements/code-group-item-heading.d.ts.map +1 -0
  40. package/dist/code-group/elements/code-group-list.d.ts +3 -0
  41. package/dist/code-group/elements/code-group-list.d.ts.map +1 -0
  42. package/dist/code-group/index.d.ts +16 -0
  43. package/dist/code-group/index.d.ts.map +1 -0
  44. package/dist/divider/elements/divider.d.ts +3 -0
  45. package/dist/divider/elements/divider.d.ts.map +1 -0
  46. package/dist/divider/index.d.ts +6 -0
  47. package/dist/divider/index.d.ts.map +1 -0
  48. package/dist/headings/heading-one/elements/heading-one.d.ts +3 -0
  49. package/dist/headings/heading-one/elements/heading-one.d.ts.map +1 -0
  50. package/dist/headings/heading-one/index.d.ts +6 -0
  51. package/dist/headings/heading-one/index.d.ts.map +1 -0
  52. package/dist/headings/heading-three/elements/heading-three.d.ts +3 -0
  53. package/dist/headings/heading-three/elements/heading-three.d.ts.map +1 -0
  54. package/dist/headings/heading-three/index.d.ts +6 -0
  55. package/dist/headings/heading-three/index.d.ts.map +1 -0
  56. package/dist/headings/heading-two/elements/heading-two.d.ts +3 -0
  57. package/dist/headings/heading-two/elements/heading-two.d.ts.map +1 -0
  58. package/dist/headings/heading-two/index.d.ts +6 -0
  59. package/dist/headings/heading-two/index.d.ts.map +1 -0
  60. package/dist/headings/index.d.ts +18 -0
  61. package/dist/headings/index.d.ts.map +1 -0
  62. package/dist/image/elements/image/image-element.d.ts +3 -0
  63. package/dist/image/elements/image/image-element.d.ts.map +1 -0
  64. package/dist/image/elements/image/image-inline-toolbar-settings.d.ts +10 -0
  65. package/dist/image/elements/image/image-inline-toolbar-settings.d.ts.map +1 -0
  66. package/dist/image/elements/image/image-inline-toolbar.d.ts +14 -0
  67. package/dist/image/elements/image/image-inline-toolbar.d.ts.map +1 -0
  68. package/dist/image/elements/image/image-placeholder-unsplash.d.ts +4 -0
  69. package/dist/image/elements/image/image-placeholder-unsplash.d.ts.map +1 -0
  70. package/dist/image/elements/image/image-placeholder.d.ts +18 -0
  71. package/dist/image/elements/image/image-placeholder.d.ts.map +1 -0
  72. package/dist/image/elements/image/image-render.d.ts +18 -0
  73. package/dist/image/elements/image/image-render.d.ts.map +1 -0
  74. package/dist/image/index.d.ts +6 -0
  75. package/dist/image/index.d.ts.map +1 -0
  76. package/dist/image/types.d.ts +15 -0
  77. package/dist/image/types.d.ts.map +1 -0
  78. package/dist/index.d.ts +17 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +14 -0
  81. package/dist/link/elements/link/link-edit.d.ts +16 -0
  82. package/dist/link/elements/link/link-edit.d.ts.map +1 -0
  83. package/dist/link/elements/link/link-element.d.ts +4 -0
  84. package/dist/link/elements/link/link-element.d.ts.map +1 -0
  85. package/dist/link/elements/link/link-preview.d.ts +12 -0
  86. package/dist/link/elements/link/link-preview.d.ts.map +1 -0
  87. package/dist/link/index.d.ts +6 -0
  88. package/dist/link/index.d.ts.map +1 -0
  89. package/dist/lists/bulleted-list/elements/bulleted-list.d.ts +3 -0
  90. package/dist/lists/bulleted-list/elements/bulleted-list.d.ts.map +1 -0
  91. package/dist/lists/bulleted-list/index.d.ts +6 -0
  92. package/dist/lists/bulleted-list/index.d.ts.map +1 -0
  93. package/dist/lists/index.d.ts +18 -0
  94. package/dist/lists/index.d.ts.map +1 -0
  95. package/dist/lists/numbered-list/elements/numbered-list.d.ts +3 -0
  96. package/dist/lists/numbered-list/elements/numbered-list.d.ts.map +1 -0
  97. package/dist/lists/numbered-list/index.d.ts +6 -0
  98. package/dist/lists/numbered-list/index.d.ts.map +1 -0
  99. package/dist/lists/todo-list/elements/todo-list.d.ts +3 -0
  100. package/dist/lists/todo-list/elements/todo-list.d.ts.map +1 -0
  101. package/dist/lists/todo-list/index.d.ts +6 -0
  102. package/dist/lists/todo-list/index.d.ts.map +1 -0
  103. package/dist/paragraph/elements/paragraph.d.ts +3 -0
  104. package/dist/paragraph/elements/paragraph.d.ts.map +1 -0
  105. package/dist/paragraph/index.d.ts +6 -0
  106. package/dist/paragraph/index.d.ts.map +1 -0
  107. package/dist/steps/elements/steps-container.d.ts +3 -0
  108. package/dist/steps/elements/steps-container.d.ts.map +1 -0
  109. package/dist/steps/elements/steps-list-item-content.d.ts +3 -0
  110. package/dist/steps/elements/steps-list-item-content.d.ts.map +1 -0
  111. package/dist/steps/elements/steps-list-item-heading.d.ts +3 -0
  112. package/dist/steps/elements/steps-list-item-heading.d.ts.map +1 -0
  113. package/dist/steps/elements/steps-list-item.d.ts +3 -0
  114. package/dist/steps/elements/steps-list-item.d.ts.map +1 -0
  115. package/dist/steps/elements/steps-list.d.ts +3 -0
  116. package/dist/steps/elements/steps-list.d.ts.map +1 -0
  117. package/dist/steps/index.d.ts +18 -0
  118. package/dist/steps/index.d.ts.map +1 -0
  119. package/dist/table/components/add-column-button.d.ts +16 -0
  120. package/dist/table/components/add-column-button.d.ts.map +1 -0
  121. package/dist/table/components/add-row-button.d.ts +16 -0
  122. package/dist/table/components/add-row-button.d.ts.map +1 -0
  123. package/dist/table/components/column-controls.d.ts +18 -0
  124. package/dist/table/components/column-controls.d.ts.map +1 -0
  125. package/dist/table/components/row-controls.d.ts +18 -0
  126. package/dist/table/components/row-controls.d.ts.map +1 -0
  127. package/dist/table/components/table-controls.d.ts +6 -0
  128. package/dist/table/components/table-controls.d.ts.map +1 -0
  129. package/dist/table/components/table-selection-overlay.d.ts +6 -0
  130. package/dist/table/components/table-selection-overlay.d.ts.map +1 -0
  131. package/dist/table/elements/table-data-cell.d.ts +3 -0
  132. package/dist/table/elements/table-data-cell.d.ts.map +1 -0
  133. package/dist/table/elements/table-row.d.ts +3 -0
  134. package/dist/table/elements/table-row.d.ts.map +1 -0
  135. package/dist/table/elements/table.d.ts +3 -0
  136. package/dist/table/elements/table.d.ts.map +1 -0
  137. package/dist/table/index.d.ts +13 -0
  138. package/dist/table/index.d.ts.map +1 -0
  139. package/dist/tabs/elements/tabs-container.d.ts +3 -0
  140. package/dist/tabs/elements/tabs-container.d.ts.map +1 -0
  141. package/dist/tabs/elements/tabs-item-content.d.ts +3 -0
  142. package/dist/tabs/elements/tabs-item-content.d.ts.map +1 -0
  143. package/dist/tabs/elements/tabs-item-heading.d.ts +3 -0
  144. package/dist/tabs/elements/tabs-item-heading.d.ts.map +1 -0
  145. package/dist/tabs/elements/tabs-list.d.ts +3 -0
  146. package/dist/tabs/elements/tabs-list.d.ts.map +1 -0
  147. package/dist/tabs/index.d.ts +15 -0
  148. package/dist/tabs/index.d.ts.map +1 -0
  149. package/dist/ui/accordion.d.ts +8 -0
  150. package/dist/ui/accordion.d.ts.map +1 -0
  151. package/dist/ui/button.d.ts +17 -0
  152. package/dist/ui/button.d.ts.map +1 -0
  153. package/dist/ui/card.d.ts +9 -0
  154. package/dist/ui/card.d.ts.map +1 -0
  155. package/dist/ui/carousel.d.ts +20 -0
  156. package/dist/ui/carousel.d.ts.map +1 -0
  157. package/dist/ui/dropdown-menu.d.ts +26 -0
  158. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  159. package/dist/ui/hover-card.d.ts +7 -0
  160. package/dist/ui/hover-card.d.ts.map +1 -0
  161. package/dist/ui/input.d.ts +4 -0
  162. package/dist/ui/input.d.ts.map +1 -0
  163. package/dist/ui/label.d.ts +6 -0
  164. package/dist/ui/label.d.ts.map +1 -0
  165. package/dist/ui/popover.d.ts +7 -0
  166. package/dist/ui/popover.d.ts.map +1 -0
  167. package/dist/ui/scroll-area.d.ts +6 -0
  168. package/dist/ui/scroll-area.d.ts.map +1 -0
  169. package/dist/ui/select.d.ts +16 -0
  170. package/dist/ui/select.d.ts.map +1 -0
  171. package/dist/ui/separator.d.ts +9 -0
  172. package/dist/ui/separator.d.ts.map +1 -0
  173. package/dist/ui/slider.d.ts +5 -0
  174. package/dist/ui/slider.d.ts.map +1 -0
  175. package/dist/ui/table.d.ts +11 -0
  176. package/dist/ui/table.d.ts.map +1 -0
  177. package/dist/ui/tabs.d.ts +8 -0
  178. package/dist/ui/tabs.d.ts.map +1 -0
  179. package/dist/ui/textarea.d.ts +4 -0
  180. package/dist/ui/textarea.d.ts.map +1 -0
  181. package/dist/ui/tooltip.d.ts +8 -0
  182. package/dist/ui/tooltip.d.ts.map +1 -0
  183. package/dist/utils.d.ts +3 -0
  184. package/dist/utils.d.ts.map +1 -0
  185. package/dist/withShadcnUI.d.ts +31 -0
  186. package/dist/withShadcnUI.d.ts.map +1 -0
  187. package/package.json +70 -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":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,eAAO,MAAM,oBAAoB,UAAW,wBAAwB,4CAQnE,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":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAQ7E,eAAO,MAAM,oBAAoB,UAAW,wBAAwB,4CAyJnE,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":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,eAAO,MAAM,iBAAiB,UAAW,wBAAwB,4CAWhE,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,EAAgB,MAAM,gBAAgB,CAAC;AAM7E,eAAO,MAAM,aAAa,UAAW,wBAAwB,4CAoD5D,CAAC"}
@@ -0,0 +1,16 @@
1
+ import './styles.css';
2
+ export declare const AccordionUI: {
3
+ 'accordion-list': {
4
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ 'accordion-list-item': {
7
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ 'accordion-list-item-heading': {
10
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
11
+ };
12
+ 'accordion-list-item-content': {
13
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
14
+ };
15
+ };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/accordion/index.ts"],"names":[],"mappings":"AAIA,OAAO,cAAc,CAAC;AAEtB,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":"AAAA,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 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":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAqB/D,eAAO,MAAM,OAAO,UAAW,wBAAwB,4CActD,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 CarouselContainer: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=carousel-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-container.d.ts","sourceRoot":"","sources":["../../../src/carousel/elements/carousel-container.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAK/D,eAAO,MAAM,iBAAiB,UAAW,wBAAwB,4CAuChE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const CarouselListItem: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=carousel-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-item.d.ts","sourceRoot":"","sources":["../../../src/carousel/elements/carousel-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAK/D,eAAO,MAAM,gBAAgB,UAAW,wBAAwB,4CAc/D,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const CarouselUI: {
2
+ 'carousel-container': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ 'carousel-list-item': {
6
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/carousel/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ import type { BundledLanguage, BundledTheme, HighlighterGeneric } from 'shiki';
3
+ declare global {
4
+ interface Window {
5
+ yShiki: HighlighterGeneric<BundledLanguage, BundledTheme> | null;
6
+ }
7
+ }
8
+ export declare const CodeBlockElement: ({ attributes, children, element, blockId, }: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../src/code/elements/code.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAO/E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,MAAM;QACd,MAAM,EAAE,kBAAkB,CAAC,eAAe,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC;KAClE;CACF;AAsBD,eAAO,MAAM,gBAAgB,gDAK1B,wBAAwB,4CAgL1B,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":"AAQA,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,4CA4ErB,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":"AAQA,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,4CAwE5F,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,9 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ import type { BundledLanguage, BundledTheme, HighlighterGeneric } from 'shiki';
3
+ declare global {
4
+ interface Window {
5
+ yShiki: HighlighterGeneric<BundledLanguage, BundledTheme> | null;
6
+ }
7
+ }
8
+ export declare const CodeGroupContainer: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=code-group-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-group-container.d.ts","sourceRoot":"","sources":["../../../src/code-group/elements/code-group-container.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAK/E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,MAAM;QACd,MAAM,EAAE,kBAAkB,CAAC,eAAe,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC;KAClE;CACF;AAED,eAAO,MAAM,kBAAkB,UAAW,wBAAwB,4CA+EjE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const CodeGroupContent: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=code-group-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-group-content.d.ts","sourceRoot":"","sources":["../../../src/code-group/elements/code-group-content.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAyB7E,eAAO,MAAM,gBAAgB,UAAW,wBAAwB,4CA8J/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const CodeGroupItemHeading: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=code-group-item-heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-group-item-heading.d.ts","sourceRoot":"","sources":["../../../src/code-group/elements/code-group-item-heading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAO/D,eAAO,MAAM,oBAAoB,UAAW,wBAAwB,4CAqCnE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const CodeGroupList: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=code-group-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-group-list.d.ts","sourceRoot":"","sources":["../../../src/code-group/elements/code-group-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAO/D,eAAO,MAAM,aAAa,UAAW,wBAAwB,4CAoC5D,CAAC"}
@@ -0,0 +1,16 @@
1
+ import './styles.css';
2
+ export declare const CodeGroupUI: {
3
+ 'code-group-container': {
4
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ 'code-group-list': {
7
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ 'code-group-item-heading': {
10
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
11
+ };
12
+ 'code-group-content': {
13
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
14
+ };
15
+ };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/code-group/index.ts"],"names":[],"mappings":"AAIA,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const Divider: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../src/divider/elements/divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAQ7E,eAAO,MAAM,OAAO,UAAW,wBAAwB,4CAqEtD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const DividerUI: {
2
+ divider: {
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/divider/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 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":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,UAAU,UAAW,wBAAwB,4CAYzD,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":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,YAAY,UAAW,wBAAwB,4CAY3D,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":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,UAAU,UAAW,wBAAwB,4CAYzD,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,EAAE,KAAK,wBAAwB,EAA0B,MAAM,gBAAgB,CAAC;AAevF,eAAO,MAAM,YAAY,gDAKtB,wBAAwB,4CAqG1B,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":"AAkBA,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,4CA6HjC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { ImageElementProps } from '../../types';
3
+ type ImageInlineToolbarProps = {
4
+ referenceRef: React.MutableRefObject<HTMLElement | null>;
5
+ elementProps: ImageElementProps;
6
+ onUpdate: (props: Partial<ImageElementProps>) => void;
7
+ onReplace: () => void;
8
+ onDelete: () => void;
9
+ onDownload: () => void;
10
+ onCopy: () => void;
11
+ };
12
+ export declare const ImageInlineToolbar: ({ referenceRef, elementProps, onUpdate, onReplace, onDelete, onDownload, onCopy, }: ImageInlineToolbarProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# 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":";AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,uBAAuB,GAAG;IAC7B,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzD,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,uFAQ5B,uBAAuB,4CAuIzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const ImagePlaceholderUnsplash: ({ onInsertFromUnsplash }: {
2
+ onInsertFromUnsplash: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=image-placeholder-unsplash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-placeholder-unsplash.d.ts","sourceRoot":"","sources":["../../../../src/image/elements/image/image-placeholder-unsplash.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,wBAAwB;;6CAepC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import type { PluginElementRenderProps } from '@yoopta/editor';
3
+ import type { ImageUploadPreview, ImageUploadProgress } from '@yoopta/image';
4
+ type ImagePlaceholderProps = {
5
+ onUpload: (event: React.ChangeEvent<HTMLInputElement>) => void;
6
+ onInsertUrl: (url: string) => void;
7
+ onInsertFromUnsplash?: () => void;
8
+ onInsertFromAI?: (prompt: string) => void;
9
+ className?: string;
10
+ attributes: PluginElementRenderProps['attributes'];
11
+ children: React.ReactNode;
12
+ preview: ImageUploadPreview | null;
13
+ progress: ImageUploadProgress | null;
14
+ loading: boolean;
15
+ };
16
+ export declare const ImagePlaceholder: ({ onUpload, onInsertUrl, onInsertFromUnsplash, onInsertFromAI, className, attributes, children, preview, progress, loading, }: 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":";AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAS7E,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,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,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAyQF,eAAO,MAAM,gBAAgB,kIAW1B,qBAAqB,4CA6BvB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import type { PluginElementRenderProps } from '@yoopta/editor';
3
+ import type { ImagePluginOptions } from '@yoopta/image';
4
+ import type { ImageElementProps } from '../../types';
5
+ type Props = {
6
+ blockId: string;
7
+ elementId: string;
8
+ onUpdate: (props: Partial<ImageElementProps>) => void;
9
+ onDelete: () => void;
10
+ onReplace: () => void;
11
+ attributes: PluginElementRenderProps['attributes'];
12
+ children: React.ReactNode;
13
+ elementProps: ImageElementProps;
14
+ pluginOptions?: ImagePluginOptions;
15
+ };
16
+ export declare const ImageRender: ({ blockId, elementId, attributes, children, elementProps, onUpdate, onDelete, onReplace, pluginOptions, }: Props) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# 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":";AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAMxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,iBAAiB,CAAC;IAChC,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,WAAW,8GAUrB,KAAK,4CA8PP,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,15 @@
1
+ export type ObjectFit = 'contain' | 'cover' | 'fill';
2
+ export type Alignment = 'left' | 'center' | 'right';
3
+ export type ImageElementProps = {
4
+ id: string;
5
+ src: string;
6
+ alt?: string | null;
7
+ sizes: {
8
+ width: number;
9
+ height: number;
10
+ };
11
+ fit?: ObjectFit;
12
+ alignment?: Alignment;
13
+ borderRadius?: number;
14
+ };
15
+ //# 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;AAGpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,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,17 @@
1
+ import './styles.css';
2
+ import { withShadcnUI } from './withShadcnUI';
3
+ export { AccordionUI } from './accordion';
4
+ export { TableUI } from './table';
5
+ export { HeadingsUI } from './headings';
6
+ export { BlockquoteUI } from './blockquote';
7
+ export { ParagraphUI } from './paragraph';
8
+ export { CalloutUI } from './callout';
9
+ export { ListsUI } from './lists';
10
+ export { LinkUI } from './link';
11
+ export { ImageUI } from './image';
12
+ export { CodeUI } from './code';
13
+ export { TabsUI } from './tabs';
14
+ export { StepsUI } from './steps';
15
+ export { DividerUI } from './divider';
16
+ export default withShadcnUI;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,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,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,eAAe,YAAY,CAAC"}