email-builder-online 3.4.38 → 3.4.39

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 (291) hide show
  1. package/dist/editor-sample/src/App/ComponentTree/ComponentTreePanel.d.ts +2 -0
  2. package/dist/editor-sample/src/App/ComponentTree/ComponentTreePanel.d.ts.map +1 -0
  3. package/dist/editor-sample/src/App/ComponentTree/ToggleComponentTreeButton.d.ts +2 -0
  4. package/dist/editor-sample/src/App/ComponentTree/ToggleComponentTreeButton.d.ts.map +1 -0
  5. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/index.d.ts +5 -0
  6. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/index.d.ts.map +1 -0
  7. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +8 -0
  8. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts.map +1 -0
  9. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +8 -0
  10. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts.map +1 -0
  11. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +8 -0
  12. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts.map +1 -0
  13. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +8 -0
  14. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts.map +1 -0
  15. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +8 -0
  16. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts.map +1 -0
  17. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +8 -0
  18. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts.map +1 -0
  19. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +8 -0
  20. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts.map +1 -0
  21. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +8 -0
  22. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts.map +1 -0
  23. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +8 -0
  24. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts.map +1 -0
  25. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/NotionTextSidebarPanel.d.ts +8 -0
  26. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/NotionTextSidebarPanel.d.ts.map +1 -0
  27. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SocialSidebarPanel.d.ts +8 -0
  28. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SocialSidebarPanel.d.ts.map +1 -0
  29. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +8 -0
  30. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts.map +1 -0
  31. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +8 -0
  32. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts.map +1 -0
  33. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/StickyWrapper.d.ts +12 -0
  34. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/StickyWrapper.d.ts.map +1 -0
  35. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/Wrapper.d.ts +31 -0
  36. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/Wrapper.d.ts.map +1 -0
  37. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BackgroundImageInput.d.ts +11 -0
  38. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BackgroundImageInput.d.ts.map +1 -0
  39. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +8 -0
  40. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts.map +1 -0
  41. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BorderInput.d.ts +14 -0
  42. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BorderInput.d.ts.map +1 -0
  43. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +16 -0
  44. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts.map +1 -0
  45. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/LinksInput.d.ts +13 -0
  46. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/LinksInput.d.ts.map +1 -0
  47. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +10 -0
  48. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts.map +1 -0
  49. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +10 -0
  50. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts.map +1 -0
  51. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +16 -0
  52. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts.map +1 -0
  53. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +15 -0
  54. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts.map +1 -0
  55. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ContentAligment.d.ts +7 -0
  56. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ContentAligment.d.ts.map +1 -0
  57. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +8 -0
  58. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts.map +1 -0
  59. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +11 -0
  60. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts.map +1 -0
  61. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +8 -0
  62. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts.map +1 -0
  63. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/HeightInput.d.ts +9 -0
  64. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/HeightInput.d.ts.map +1 -0
  65. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ImageInput.d.ts +9 -0
  66. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ImageInput.d.ts.map +1 -0
  67. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeButton.d.ts +21 -0
  68. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeButton.d.ts.map +1 -0
  69. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeSelector.d.ts +7 -0
  70. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeSelector.d.ts.map +1 -0
  71. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputWidth.d.ts +12 -0
  72. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputWidth.d.ts.map +1 -0
  73. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LabelProperty.d.ts +6 -0
  74. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LabelProperty.d.ts.map +1 -0
  75. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LayoutSelectorInput.d.ts +9 -0
  76. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LayoutSelectorInput.d.ts.map +1 -0
  77. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LineHeightInput.d.ts +8 -0
  78. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LineHeightInput.d.ts.map +1 -0
  79. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +14 -0
  80. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts.map +1 -0
  81. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +9 -0
  82. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts.map +1 -0
  83. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SelectScreen.d.ts +3 -0
  84. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SelectScreen.d.ts.map +1 -0
  85. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/Shape.d.ts +12 -0
  86. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/Shape.d.ts.map +1 -0
  87. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +14 -0
  88. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts.map +1 -0
  89. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SocialMediaInput.d.ts +8 -0
  90. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SocialMediaInput.d.ts.map +1 -0
  91. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +8 -0
  92. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts.map +1 -0
  93. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +10 -0
  94. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts.map +1 -0
  95. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +13 -0
  96. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts.map +1 -0
  97. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInput.d.ts +10 -0
  98. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInput.d.ts.map +1 -0
  99. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ai-image-generation.d.ts +8 -0
  100. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ai-image-generation.d.ts.map +1 -0
  101. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/CloseButton.d.ts +8 -0
  102. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/CloseButton.d.ts.map +1 -0
  103. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ErrorDialog.d.ts +9 -0
  104. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ErrorDialog.d.ts.map +1 -0
  105. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ImagePreview.d.ts +7 -0
  106. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ImagePreview.d.ts.map +1 -0
  107. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/PromptInput.d.ts +8 -0
  108. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/PromptInput.d.ts.map +1 -0
  109. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/Select.d.ts +4 -0
  110. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/Select.d.ts.map +1 -0
  111. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/SkeletonImage.d.ts +2 -0
  112. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/SkeletonImage.d.ts.map +1 -0
  113. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/inputStyles.d.ts +6 -0
  114. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/inputStyles.d.ts.map +1 -0
  115. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/hooks.d.ts +5 -0
  116. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/hooks.d.ts.map +1 -0
  117. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +13 -0
  118. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts.map +1 -0
  119. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/types/errors.d.ts +13 -0
  120. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/types/errors.d.ts.map +1 -0
  121. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/utils/errorHandling.d.ts +3 -0
  122. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/utils/errorHandling.d.ts.map +1 -0
  123. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +12 -0
  124. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts.map +1 -0
  125. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +11 -0
  126. package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts.map +1 -0
  127. package/dist/editor-sample/src/App/InspectorDrawer/StylesPanel.d.ts +2 -0
  128. package/dist/editor-sample/src/App/InspectorDrawer/StylesPanel.d.ts.map +1 -0
  129. package/dist/editor-sample/src/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts +2 -0
  130. package/dist/editor-sample/src/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts.map +1 -0
  131. package/dist/editor-sample/src/App/InspectorDrawer/index.d.ts +5 -0
  132. package/dist/editor-sample/src/App/InspectorDrawer/index.d.ts.map +1 -0
  133. package/dist/editor-sample/src/App/SamplesDrawer/SidebarButton.d.ts +5 -0
  134. package/dist/editor-sample/src/App/SamplesDrawer/SidebarButton.d.ts.map +1 -0
  135. package/dist/editor-sample/src/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts +2 -0
  136. package/dist/editor-sample/src/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts.map +1 -0
  137. package/dist/editor-sample/src/App/SamplesDrawer/index.d.ts +3 -0
  138. package/dist/editor-sample/src/App/SamplesDrawer/index.d.ts.map +1 -0
  139. package/dist/editor-sample/src/App/TemplatePanel/CustomReader/CustomReader.d.ts +10 -0
  140. package/dist/editor-sample/src/App/TemplatePanel/CustomReader/CustomReader.d.ts.map +1 -0
  141. package/dist/editor-sample/src/App/TemplatePanel/DownloadJson/index.d.ts +2 -0
  142. package/dist/editor-sample/src/App/TemplatePanel/DownloadJson/index.d.ts.map +1 -0
  143. package/dist/editor-sample/src/App/TemplatePanel/HtmlPanel.d.ts +2 -0
  144. package/dist/editor-sample/src/App/TemplatePanel/HtmlPanel.d.ts.map +1 -0
  145. package/dist/editor-sample/src/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts +6 -0
  146. package/dist/editor-sample/src/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts.map +1 -0
  147. package/dist/editor-sample/src/App/TemplatePanel/ImportJson/index.d.ts +2 -0
  148. package/dist/editor-sample/src/App/TemplatePanel/ImportJson/index.d.ts.map +1 -0
  149. package/dist/editor-sample/src/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts +11 -0
  150. package/dist/editor-sample/src/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts.map +1 -0
  151. package/dist/editor-sample/src/App/TemplatePanel/JsonPanel.d.ts +2 -0
  152. package/dist/editor-sample/src/App/TemplatePanel/JsonPanel.d.ts.map +1 -0
  153. package/dist/editor-sample/src/App/TemplatePanel/MainTabsGroup.d.ts +9 -0
  154. package/dist/editor-sample/src/App/TemplatePanel/MainTabsGroup.d.ts.map +1 -0
  155. package/dist/editor-sample/src/App/TemplatePanel/ShareButton.d.ts +2 -0
  156. package/dist/editor-sample/src/App/TemplatePanel/ShareButton.d.ts.map +1 -0
  157. package/dist/editor-sample/src/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +7 -0
  158. package/dist/editor-sample/src/App/TemplatePanel/helper/HighlightedCodePanel.d.ts.map +1 -0
  159. package/dist/editor-sample/src/App/TemplatePanel/helper/cleanDocument.d.ts +9 -0
  160. package/dist/editor-sample/src/App/TemplatePanel/helper/cleanDocument.d.ts.map +1 -0
  161. package/dist/editor-sample/src/App/TemplatePanel/helper/extraFunctions.d.ts +33 -0
  162. package/dist/editor-sample/src/App/TemplatePanel/helper/extraFunctions.d.ts.map +1 -0
  163. package/dist/editor-sample/src/App/TemplatePanel/helper/formatting.d.ts +2 -0
  164. package/dist/editor-sample/src/App/TemplatePanel/helper/formatting.d.ts.map +1 -0
  165. package/dist/editor-sample/src/App/TemplatePanel/helper/globalsStyles.d.ts +2 -0
  166. package/dist/editor-sample/src/App/TemplatePanel/helper/globalsStyles.d.ts.map +1 -0
  167. package/dist/editor-sample/src/App/TemplatePanel/helper/highlighters.d.ts +3 -0
  168. package/dist/editor-sample/src/App/TemplatePanel/helper/highlighters.d.ts.map +1 -0
  169. package/dist/editor-sample/src/App/TemplatePanel/helper/qlcss.d.ts +2 -0
  170. package/dist/editor-sample/src/App/TemplatePanel/helper/qlcss.d.ts.map +1 -0
  171. package/dist/editor-sample/src/App/TemplatePanel/index.d.ts +12 -0
  172. package/dist/editor-sample/src/App/TemplatePanel/index.d.ts.map +1 -0
  173. package/dist/editor-sample/src/App/TemplatePanel/renderToStaticMarkup.d.ts +7 -0
  174. package/dist/editor-sample/src/App/TemplatePanel/renderToStaticMarkup.d.ts.map +1 -0
  175. package/dist/editor-sample/src/App/index.d.ts +16 -0
  176. package/dist/editor-sample/src/App/index.d.ts.map +1 -0
  177. package/dist/editor-sample/src/components/SampleImageGallery.d.ts +2 -0
  178. package/dist/editor-sample/src/components/SampleImageGallery.d.ts.map +1 -0
  179. package/dist/editor-sample/src/constants.d.ts +6 -0
  180. package/dist/editor-sample/src/constants.d.ts.map +1 -0
  181. package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +3 -0
  182. package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts.map +1 -0
  183. package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +362 -0
  184. package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts.map +1 -0
  185. package/dist/editor-sample/src/documents/blocks/Container/ContainerEditor.d.ts +3 -0
  186. package/dist/editor-sample/src/documents/blocks/Container/ContainerEditor.d.ts.map +1 -0
  187. package/dist/editor-sample/src/documents/blocks/Container/ContainerPropsSchema.d.ts +401 -0
  188. package/dist/editor-sample/src/documents/blocks/Container/ContainerPropsSchema.d.ts.map +1 -0
  189. package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts +3 -0
  190. package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts.map +1 -0
  191. package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +50 -0
  192. package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts.map +1 -0
  193. package/dist/editor-sample/src/documents/blocks/customHooks/useParentImageWidth.d.ts +4 -0
  194. package/dist/editor-sample/src/documents/blocks/customHooks/useParentImageWidth.d.ts.map +1 -0
  195. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +9 -0
  196. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts.map +1 -0
  197. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +9 -0
  198. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts.map +1 -0
  199. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +7 -0
  200. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts.map +1 -0
  201. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +6 -0
  202. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts.map +1 -0
  203. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +9 -0
  204. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts.map +1 -0
  205. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +8 -0
  206. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts.map +1 -0
  207. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/EditorChildrenNoDragable.d.ts +14 -0
  208. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/EditorChildrenNoDragable.d.ts.map +1 -0
  209. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/index.d.ts +15 -0
  210. package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/index.d.ts.map +1 -0
  211. package/dist/editor-sample/src/documents/blocks/helpers/TStyle.d.ts +32 -0
  212. package/dist/editor-sample/src/documents/blocks/helpers/TStyle.d.ts.map +1 -0
  213. package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +10 -0
  214. package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts.map +1 -0
  215. package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +8 -0
  216. package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts.map +1 -0
  217. package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +8 -0
  218. package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts.map +1 -0
  219. package/dist/editor-sample/src/documents/blocks/helpers/changeWidth.d.ts +4 -0
  220. package/dist/editor-sample/src/documents/blocks/helpers/changeWidth.d.ts.map +1 -0
  221. package/dist/editor-sample/src/documents/blocks/helpers/constants.d.ts +3 -0
  222. package/dist/editor-sample/src/documents/blocks/helpers/constants.d.ts.map +1 -0
  223. package/dist/editor-sample/src/documents/blocks/helpers/fontFamily.d.ts +14 -0
  224. package/dist/editor-sample/src/documents/blocks/helpers/fontFamily.d.ts.map +1 -0
  225. package/dist/editor-sample/src/documents/blocks/helpers/zod.d.ts +22 -0
  226. package/dist/editor-sample/src/documents/blocks/helpers/zod.d.ts.map +1 -0
  227. package/dist/editor-sample/src/documents/editor/ClientOnly.d.ts +5 -0
  228. package/dist/editor-sample/src/documents/editor/ClientOnly.d.ts.map +1 -0
  229. package/dist/editor-sample/src/documents/editor/EJEMPLO_USO_GRANULAR.d.ts +89 -0
  230. package/dist/editor-sample/src/documents/editor/EJEMPLO_USO_GRANULAR.d.ts.map +1 -0
  231. package/dist/editor-sample/src/documents/editor/EditorBlock.d.ts +14 -0
  232. package/dist/editor-sample/src/documents/editor/EditorBlock.d.ts.map +1 -0
  233. package/dist/editor-sample/src/documents/editor/UndoRedoStore.d.ts +64 -0
  234. package/dist/editor-sample/src/documents/editor/UndoRedoStore.d.ts.map +1 -0
  235. package/dist/editor-sample/src/documents/editor/blockHooks.d.ts +77 -0
  236. package/dist/editor-sample/src/documents/editor/blockHooks.d.ts.map +1 -0
  237. package/dist/editor-sample/src/documents/editor/blockSelectors.d.ts +60 -0
  238. package/dist/editor-sample/src/documents/editor/blockSelectors.d.ts.map +1 -0
  239. package/dist/editor-sample/src/documents/editor/blockUpdaters.d.ts +47 -0
  240. package/dist/editor-sample/src/documents/editor/blockUpdaters.d.ts.map +1 -0
  241. package/dist/editor-sample/src/documents/editor/granular.d.ts +125 -0
  242. package/dist/editor-sample/src/documents/editor/granular.d.ts.map +1 -0
  243. package/dist/editor-sample/src/documents/editor/migrateDocument.d.ts +8 -0
  244. package/dist/editor-sample/src/documents/editor/migrateDocument.d.ts.map +1 -0
  245. package/dist/editor-sample/src/getConfiguration/index.d.ts +2 -0
  246. package/dist/editor-sample/src/getConfiguration/index.d.ts.map +1 -0
  247. package/dist/editor-sample/src/getConfiguration/sample/empty-email-message.d.ts +5 -0
  248. package/dist/editor-sample/src/getConfiguration/sample/empty-email-message.d.ts.map +1 -0
  249. package/dist/editor-sample/src/getConfiguration/sample/one-time-passcode.d.ts +4 -0
  250. package/dist/editor-sample/src/getConfiguration/sample/one-time-passcode.d.ts.map +1 -0
  251. package/dist/editor-sample/src/getConfiguration/sample/order-ecommerce.d.ts +4 -0
  252. package/dist/editor-sample/src/getConfiguration/sample/order-ecommerce.d.ts.map +1 -0
  253. package/dist/editor-sample/src/getConfiguration/sample/post-metrics-report.d.ts +4 -0
  254. package/dist/editor-sample/src/getConfiguration/sample/post-metrics-report.d.ts.map +1 -0
  255. package/dist/editor-sample/src/getConfiguration/sample/reservation-reminder.d.ts +4 -0
  256. package/dist/editor-sample/src/getConfiguration/sample/reservation-reminder.d.ts.map +1 -0
  257. package/dist/editor-sample/src/getConfiguration/sample/reset-password.d.ts +4 -0
  258. package/dist/editor-sample/src/getConfiguration/sample/reset-password.d.ts.map +1 -0
  259. package/dist/editor-sample/src/getConfiguration/sample/respond-to-message.d.ts +4 -0
  260. package/dist/editor-sample/src/getConfiguration/sample/respond-to-message.d.ts.map +1 -0
  261. package/dist/editor-sample/src/getConfiguration/sample/subscription-receipt.d.ts +4 -0
  262. package/dist/editor-sample/src/getConfiguration/sample/subscription-receipt.d.ts.map +1 -0
  263. package/dist/editor-sample/src/getConfiguration/sample/test-load-json.d.ts +8 -0
  264. package/dist/editor-sample/src/getConfiguration/sample/test-load-json.d.ts.map +1 -0
  265. package/dist/editor-sample/src/getConfiguration/sample/welcome.d.ts +4 -0
  266. package/dist/editor-sample/src/getConfiguration/sample/welcome.d.ts.map +1 -0
  267. package/dist/editor-sample/src/i18n.d.ts +14 -0
  268. package/dist/editor-sample/src/i18n.d.ts.map +1 -0
  269. package/dist/editor-sample/src/index.d.ts +58 -0
  270. package/dist/editor-sample/src/index.d.ts.map +1 -0
  271. package/dist/editor-sample/src/locales/en-US/common.json.d.ts +44 -0
  272. package/dist/editor-sample/src/locales/en-US/inspector.json.d.ts +224 -0
  273. package/dist/editor-sample/src/locales/es-419/common.json.d.ts +44 -0
  274. package/dist/editor-sample/src/locales/es-419/inspector.json.d.ts +220 -0
  275. package/dist/editor-sample/src/locales/it-IT/common.json.d.ts +44 -0
  276. package/dist/editor-sample/src/locales/it-IT/inspector.json.d.ts +220 -0
  277. package/dist/editor-sample/src/theme.d.ts +8 -0
  278. package/dist/editor-sample/src/theme.d.ts.map +1 -0
  279. package/dist/editor-sample/src/utils/useDebounce.d.ts +8 -0
  280. package/dist/editor-sample/src/utils/useDebounce.d.ts.map +1 -0
  281. package/dist/index.cjs +439 -0
  282. package/dist/index.cjs.map +1 -0
  283. package/dist/index.d.ts +6 -0
  284. package/dist/index.mjs +111403 -0
  285. package/dist/index.mjs.map +1 -0
  286. package/dist/module-BG678m1F.cjs +717 -0
  287. package/dist/module-BG678m1F.cjs.map +1 -0
  288. package/dist/module-BQBGH1lE.js +2957 -0
  289. package/dist/module-BQBGH1lE.js.map +1 -0
  290. package/dist/style.css +1 -0
  291. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import { TStyle } from '../TStyle';
2
+ type TReaderBlockWrapperProps = {
3
+ style: TStyle;
4
+ children: JSX.Element;
5
+ };
6
+ export default function ReaderBlockWrapper({ style, children }: TReaderBlockWrapperProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=ReaderBlockWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReaderBlockWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,wBAAwB,2CAgBvF"}
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ blockId: string;
4
+ };
5
+ declare function TuneMenuInner({ blockId }: Props): import("react/jsx-runtime").JSX.Element;
6
+ declare const TuneMenu: React.MemoExoticComponent<typeof TuneMenuInner>;
7
+ export default TuneMenu;
8
+ //# sourceMappingURL=TuneMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TuneMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/documents/blocks/helpers/block-wrappers/TuneMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAoC9E,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAKF,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,2CAgVxC;AAGD,QAAA,MAAM,QAAQ,iDAAsB,CAAC;AACrC,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ImageProps } from '../../../../../block-image/src';
2
+ export declare const changeWidth: (blockId: string, setData: (v: ImageProps) => void, data: ImageProps) => void;
3
+ export declare const getParentWidth: (blockId: string | null) => number;
4
+ //# sourceMappingURL=changeWidth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changeWidth.d.ts","sourceRoot":"","sources":["../../../../../../src/documents/blocks/helpers/changeWidth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAM5D,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,SAAS,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,EAAE,MAAM,UAAU,SA0B9F,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,IAAI,WAiBpD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const BLOCKS_DEFAULT_CSS: string[];
2
+ export declare const DEFAULT_LAYOUT = "layout-50-50";
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/documents/blocks/helpers/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,UAA2C,CAAA;AAC1E,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const FONT_FAMILIES: {
3
+ key: string;
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ export declare const DEFAULT_FONT: {
8
+ FAMILY: string;
9
+ SIZE: number;
10
+ };
11
+ export declare const FONT_FAMILY_NAMES: readonly ["MODERN_SANS", "LATO", "MERRIWEATHER", "MONTSERRAT", "OPEN_SANS", "OSWALD", "PACIFICO", "PLAYFAIR", "ROBOTO", "INHERIT"];
12
+ export declare const FONT_FAMILY_SCHEMA: z.ZodOptional<z.ZodNullable<z.ZodEnum<["MODERN_SANS", "LATO", "MERRIWEATHER", "MONTSERRAT", "OPEN_SANS", "OSWALD", "PACIFICO", "PLAYFAIR", "ROBOTO", "INHERIT"]>>>;
13
+ export declare function getFontFamily(fontFamily: z.infer<typeof FONT_FAMILY_SCHEMA>): string;
14
+ //# sourceMappingURL=fontFamily.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fontFamily.d.ts","sourceRoot":"","sources":["../../../../../../src/documents/blocks/helpers/fontFamily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,aAAa;;;;GA8FzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AAED,eAAO,MAAM,iBAAiB,oIAWpB,CAAC;AAGX,eAAO,MAAM,kBAAkB,oKAchB,CAAC;AAMhB,wBAAgB,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,UAQ3E"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare function zColor(): z.ZodString;
3
+ export declare function zFontFamily(): z.ZodEnum<["MODERN_SANS", "LATO", "MERRIWEATHER", "MONTSERRAT", "OPEN_SANS", "OSWALD", "PACIFICO", "PLAYFAIR", "ROBOTO", "INHERIT"]>;
4
+ export declare function zFontWeight(): z.ZodEnum<["bold", "normal"]>;
5
+ export declare function zTextAlign(): z.ZodEnum<["left", "center", "right"]>;
6
+ export declare function zPadding(): z.ZodObject<{
7
+ top: z.ZodNumber;
8
+ bottom: z.ZodNumber;
9
+ right: z.ZodNumber;
10
+ left: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
+ left?: number;
13
+ right?: number;
14
+ top?: number;
15
+ bottom?: number;
16
+ }, {
17
+ left?: number;
18
+ right?: number;
19
+ top?: number;
20
+ bottom?: number;
21
+ }>;
22
+ //# sourceMappingURL=zod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../../src/documents/blocks/helpers/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,wBAAgB,MAAM,gBAErB;AAED,wBAAgB,WAAW,yIAE1B;AAED,wBAAgB,WAAW,kCAE1B;AAED,wBAAgB,UAAU,2CAEzB;AAED,wBAAgB,QAAQ;;;;;;;;;;;;;;;GAOvB"}
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default function ClientOnly({ children }: {
3
+ children: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=ClientOnly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientOnly.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/ClientOnly.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAa7E"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * EJEMPLOS DE USO DE LA ARQUITECTURA GRANULAR
3
+ *
4
+ * Este archivo contiene ejemplos prácticos de cómo usar la nueva arquitectura
5
+ * de actualizaciones granulares en componentes reales.
6
+ */
7
+ /**
8
+ * Input de texto que solo se re-renderiza cuando cambia el texto
9
+ * Usa actualización granular para máxima eficiencia
10
+ */
11
+ export declare function TextInputGranular({ blockId }: {
12
+ blockId: string;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ /**
15
+ * Formulario que edita múltiples props del bloque
16
+ * Usa batch updates para eficiencia
17
+ */
18
+ export declare function BlockFormGranular({ blockId }: {
19
+ blockId: string;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ /**
22
+ * Toggle que actualiza una prop booleana
23
+ * Usa actualización directa sin estado local
24
+ */
25
+ export declare function BooleanToggleGranular({ blockId, propName }: {
26
+ blockId: string;
27
+ propName: string;
28
+ }): import("react/jsx-runtime").JSX.Element;
29
+ /**
30
+ * Slider que actualiza un valor numérico en tiempo real
31
+ * Muestra el valor actual mientras se arrastra
32
+ */
33
+ export declare function SliderGranular({ blockId, propName, min, max, step, }: {
34
+ blockId: string;
35
+ propName: string;
36
+ min?: number;
37
+ max?: number;
38
+ step?: number;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ /**
41
+ * Selector de color que muestra preview en tiempo real
42
+ * Usa actualización optimista para mejor UX
43
+ */
44
+ export declare function ColorPickerGranular({ blockId, propName }: {
45
+ blockId: string;
46
+ propName: string;
47
+ }): import("react/jsx-runtime").JSX.Element;
48
+ /**
49
+ * Lista de checkboxes que actualiza múltiples props
50
+ * Usa batch update para eficiencia
51
+ */
52
+ export declare function CheckboxListGranular({ blockId, options }: {
53
+ blockId: string;
54
+ options: Array<{
55
+ key: string;
56
+ label: string;
57
+ }>;
58
+ }): import("react/jsx-runtime").JSX.Element;
59
+ /**
60
+ * Componente que guarda en servidor con actualización optimista
61
+ * Muestra loading state y maneja errores con rollback
62
+ */
63
+ export declare function SaveToServerGranular({ blockId }: {
64
+ blockId: string;
65
+ }): import("react/jsx-runtime").JSX.Element;
66
+ /**
67
+ * Componente que solo muestra datos sin causar re-renders
68
+ * Útil para displays que no necesitan actualizarse en tiempo real
69
+ */
70
+ export declare function ReadOnlyDisplayGranular({ blockId }: {
71
+ blockId: string;
72
+ }): import("react/jsx-runtime").JSX.Element;
73
+ /**
74
+ * Input con validación que solo actualiza si el valor es válido
75
+ * Muestra errores sin actualizar el store
76
+ */
77
+ export declare function ValidatedInputGranular({ blockId, propName, validate, }: {
78
+ blockId: string;
79
+ propName: string;
80
+ validate: (value: string) => string | null;
81
+ }): import("react/jsx-runtime").JSX.Element;
82
+ /**
83
+ * Editor con undo/redo local (independiente del global)
84
+ * Útil para ediciones complejas antes de confirmar
85
+ */
86
+ export declare function UndoableEditorGranular({ blockId }: {
87
+ blockId: string;
88
+ }): import("react/jsx-runtime").JSX.Element;
89
+ //# sourceMappingURL=EJEMPLO_USO_GRANULAR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EJEMPLO_USO_GRANULAR.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/EJEMPLO_USO_GRANULAR.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiBH;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,2CAyBjE;AAMD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,2CAmEjE;AAMD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,QAAQ,EACT,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,2CAmBA;AAMD;;;GAGG;AACH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0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export declare const useCurrentBlockId: () => string;
3
+ type EditorBlockProps = {
4
+ id: string;
5
+ isNotClient?: boolean;
6
+ };
7
+ /**
8
+ * Componente memoizado que solo se re-renderiza cuando su bloque específico cambia
9
+ * @param id - Block id
10
+ * @returns EditorBlock component that loads data from the EditorDocumentContext
11
+ */
12
+ declare const EditorBlockComponent: React.NamedExoticComponent<EditorBlockProps>;
13
+ export default EditorBlockComponent;
14
+ //# sourceMappingURL=EditorBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorBlock.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/EditorBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,eAAO,MAAM,iBAAiB,cAAwC,CAAC;AAEvE,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,oBAAoB,8CAmBxB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { Operation } from 'fast-json-patch';
2
+ /** Entrada de undo/redo: checkpoint completo o patch incremental (RFC 6902) */
3
+ export type UndoEntry = {
4
+ version: 1;
5
+ type: 'full';
6
+ doc: string;
7
+ } | {
8
+ version: 1;
9
+ type: 'patch';
10
+ baseIndex: number;
11
+ ops: Operation[];
12
+ };
13
+ type UndoRedoState = {
14
+ stackUndo: UndoEntry[];
15
+ stackRedo: UndoEntry[];
16
+ pendingUndoTimeout: ReturnType<typeof setTimeout> | null;
17
+ pendingOriginalDocument: any | null;
18
+ lastChange: {
19
+ blockId: string;
20
+ timestamp: number;
21
+ } | null;
22
+ };
23
+ export declare const undoRedoStore: import('zustand').UseBoundStore<import('zustand').StoreApi<UndoRedoState>>;
24
+ /**
25
+ * Hook para saber si se puede hacer undo
26
+ * Solo causa re-render cuando el valor booleano cambia
27
+ */
28
+ export declare function useCanUndo(): boolean;
29
+ /**
30
+ * Hook para saber si se puede hacer redo
31
+ * Solo causa re-render cuando el valor booleano cambia
32
+ */
33
+ export declare function useCanRedo(): boolean;
34
+ /**
35
+ * Hook para obtener el stack de undo (usar con precaución)
36
+ * Este hook causa re-render cada vez que cambia el array
37
+ * Solo usar en componentes que realmente necesitan el array completo
38
+ */
39
+ export declare function useStackUndo(): UndoEntry[];
40
+ /**
41
+ * Hook para obtener el stack de redo (usar con precaución)
42
+ */
43
+ export declare function useStackRedo(): UndoEntry[];
44
+ export declare function getUndoRedoState(): UndoRedoState;
45
+ export declare function getStackUndo(): UndoEntry[];
46
+ export declare function getStackRedo(): UndoEntry[];
47
+ export declare function getPendingOriginalDocument(): any | null;
48
+ export declare function getLastChange(): UndoRedoState['lastChange'];
49
+ export declare function setStackUndo(stackUndo: UndoEntry[]): void;
50
+ export declare function setStackRedo(stackRedo: UndoEntry[]): void;
51
+ export declare function setPendingUndoTimeout(timeout: ReturnType<typeof setTimeout> | null): void;
52
+ export declare function setPendingOriginalDocument(document: any | null): void;
53
+ export declare function setLastChange(lastChange: UndoRedoState['lastChange']): void;
54
+ /**
55
+ * Actualización atómica de múltiples propiedades
56
+ * Minimiza el número de notificaciones a los suscriptores
57
+ */
58
+ export declare function updateUndoRedoState(updates: Partial<UndoRedoState>): void;
59
+ /**
60
+ * Resetea el store de undo/redo al estado inicial
61
+ */
62
+ export declare function resetUndoRedoStore(): void;
63
+ export {};
64
+ //# sourceMappingURL=UndoRedoStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoRedoStore.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/UndoRedoStore.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD,+EAA+E;AAC/E,MAAM,MAAM,SAAS,GACjB;IAAE,OAAO,EAAE,CAAC,CAAC;IAAC,IAAI,EAAE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AAI,GAAG,IAAI,CAEzF;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,CAErE;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,GAAG,IAAI,CAE3E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI,CAEzE;AAMD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAezC"}
@@ -0,0 +1,77 @@
1
+ import { TEditorBlock } from './core';
2
+ /**
3
+ * Hook para obtener un bloque completo
4
+ * Solo se re-renderiza cuando el bloque cambia
5
+ */
6
+ export declare function useBlock(blockId: string): TEditorBlock | undefined;
7
+ /**
8
+ * Hook para obtener las props de un bloque
9
+ * Solo se re-renderiza cuando las props cambian
10
+ */
11
+ export declare function useBlockPropsGranular<T = any>(blockId: string): T;
12
+ /**
13
+ * Hook para obtener UNA prop específica
14
+ * Máxima granularidad - solo se re-renderiza cuando cambia ESA prop
15
+ */
16
+ export declare function useBlockPropGranular<T = any>(blockId: string, propName: string): T;
17
+ /**
18
+ * Hook para obtener el tipo de bloque
19
+ */
20
+ export declare function useBlockTypeGranular(blockId: string): string | undefined;
21
+ /**
22
+ * Hook para obtener los estilos de un bloque
23
+ */
24
+ export declare function useBlockStylesGranular(blockId: string): any;
25
+ /**
26
+ * Hook para obtener UN estilo específico
27
+ */
28
+ export declare function useBlockStyleGranular<T = any>(blockId: string, styleName: string): T;
29
+ /**
30
+ * Hook para obtener los childrenIds de un bloque
31
+ */
32
+ export declare function useBlockChildrenGranular(blockId: string): string[];
33
+ /**
34
+ * Hook para verificar si un bloque está seleccionado
35
+ */
36
+ export declare function useIsBlockSelectedGranular(blockId: string): boolean;
37
+ /**
38
+ * Hook para verificar si un bloque existe
39
+ */
40
+ export declare function useBlockExistsGranular(blockId: string): boolean;
41
+ /**
42
+ * Hook que retorna funciones de actualización memoizadas
43
+ * Evita crear nuevas funciones en cada render
44
+ */
45
+ export declare function useBlockUpdater(blockId: string): {
46
+ updateBlock: (updater: (block: TEditorBlock) => TEditorBlock) => void;
47
+ updateProps: (propsUpdater: any) => void;
48
+ updateProp: (propName: string, value: any) => void;
49
+ updateStyles: (stylesUpdater: any) => void;
50
+ updateStyle: (styleName: string, value: any) => void;
51
+ batchUpdateProps: (updates: Record<string, any>) => void;
52
+ batchUpdateStyles: (updates: Record<string, any>) => void;
53
+ };
54
+ /**
55
+ * Hook combinado: obtiene una prop Y su función de actualización
56
+ * Patrón común optimizado
57
+ */
58
+ export declare function useBlockPropWithUpdater<T = any>(blockId: string, propName: string): [T, (value: T) => void];
59
+ /**
60
+ * Hook combinado: obtiene un estilo Y su función de actualización
61
+ */
62
+ export declare function useBlockStyleWithUpdater<T = any>(blockId: string, styleName: string): [T, (value: T) => void];
63
+ /**
64
+ * Hook para múltiples props con un solo re-render
65
+ * Útil cuando necesitas varias props del mismo bloque
66
+ */
67
+ export declare function useBlockPropsMultiple<T extends Record<string, any>>(blockId: string, propNames: (keyof T)[]): Partial<T>;
68
+ /**
69
+ * Hook para múltiples estilos con un solo re-render
70
+ */
71
+ export declare function useBlockStylesMultiple<T extends Record<string, any>>(blockId: string, styleNames: (keyof T)[]): Partial<T>;
72
+ /**
73
+ * Hook para observar cambios en un bloque sin causar re-renders
74
+ * Útil para efectos secundarios
75
+ */
76
+ export declare function useBlockObserver(blockId: string, callback: (block: TEditorBlock) => void, deps?: any[]): void;
77
+ //# sourceMappingURL=blockHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockHooks.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/blockHooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,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H,wBAAgB,wBAAwB,CAAC,CAAC,GAAG,GAAG,EAC9C,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAWzB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACjE,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GACrB,OAAO,CAAC,CAAC,CAAC,CAgBZ;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClE,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GACtB,OAAO,CAAC,CAAC,CAAC,CAgBZ;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,EACvC,IAAI,GAAE,GAAG,EAAO,QASjB"}
@@ -0,0 +1,60 @@
1
+ import { TEditorBlock } from './core';
2
+ /** Nodo del árbol de bloques para el panel flotante Component Tree */
3
+ export type TreeNode = {
4
+ blockId: string;
5
+ type: string;
6
+ label: string;
7
+ iconName: string;
8
+ children: TreeNode[];
9
+ depth: number;
10
+ };
11
+ /**
12
+ * Selector para obtener un bloque completo
13
+ * Usa comparación de referencia para evitar re-renders innecesarios
14
+ */
15
+ export declare const selectBlock: (blockId: string) => (state: any) => TEditorBlock | undefined;
16
+ /**
17
+ * Selector para props de un bloque
18
+ * Solo se actualiza cuando las props cambian
19
+ */
20
+ export declare const selectBlockProps: (blockId: string) => (state: any) => any;
21
+ /**
22
+ * Selector para una prop específica
23
+ * Máxima granularidad - solo se actualiza cuando cambia ESA prop
24
+ */
25
+ export declare const selectBlockProp: <T = any>(blockId: string, propName: string) => (state: any) => T;
26
+ /**
27
+ * Selector para el tipo de bloque
28
+ */
29
+ export declare const selectBlockType: (blockId: string) => (state: any) => string | undefined;
30
+ /**
31
+ * Selector para los estilos de un bloque
32
+ */
33
+ export declare const selectBlockStyles: (blockId: string) => (state: any) => any;
34
+ /**
35
+ * Selector para un estilo específico
36
+ */
37
+ export declare const selectBlockStyle: (blockId: string, styleName: string) => (state: any) => any;
38
+ /**
39
+ * Selector para childrenIds de un bloque
40
+ */
41
+ export declare const selectBlockChildren: (blockId: string) => (state: any) => string[];
42
+ /**
43
+ * Selector para verificar si un bloque está seleccionado
44
+ */
45
+ export declare const selectIsBlockSelected: (blockId: string) => (state: any) => boolean;
46
+ /**
47
+ * Selector para verificar si un bloque existe
48
+ */
49
+ export declare const selectBlockExists: (blockId: string) => (state: any) => boolean;
50
+ /**
51
+ * Selector que construye el árbol jerárquico de bloques desde el documento plano.
52
+ * Usado por el panel flotante Component Tree.
53
+ */
54
+ export declare function selectBlockTree(state: any): TreeNode | null;
55
+ /**
56
+ * Hook optimizado para usar selectores
57
+ * Evita crear funciones nuevas en cada render
58
+ */
59
+ export declare function useBlockSelector<T>(selector: (state: any) => T): T;
60
+ //# sourceMappingURL=blockSelectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/blockSelectors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,sEAAsE;AACtE,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAiBF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,YAAY,GAAG,SAE5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,GAElE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,GAAG,GAAG,EAAE,SAAS,MAAM,EAAE,UAAU,MAAM,MAAM,OAAO,GAAG,KAAG,CAE5F,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,MAAM,GAAG,SAE1E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,GAEnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,WAAW,MAAM,MAAM,OAAO,GAAG,KAAG,GAErF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,MAAM,EAgB3E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,OAEvE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,MAAM,OAAO,GAAG,KAAG,OAEnE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,QAAQ,GAAG,IAAI,CAoC3D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAElE"}
@@ -0,0 +1,47 @@
1
+ import { TEditorBlock } from './core';
2
+ /**
3
+ * Tipo para funciones de actualización
4
+ */
5
+ type BlockUpdater<T = any> = (current: T) => T;
6
+ /**
7
+ * Actualización atómica de un bloque completo
8
+ * Usa shallow copy para máxima eficiencia
9
+ */
10
+ export declare function atomicUpdateBlock(blockId: string, updater: BlockUpdater<TEditorBlock>): void;
11
+ /**
12
+ * Actualización atómica de props de un bloque
13
+ * Solo toca las props, no el resto del bloque
14
+ */
15
+ export declare function atomicUpdateBlockProps(blockId: string, propsUpdater: BlockUpdater | Partial<any>): void;
16
+ /**
17
+ * Actualización atómica de UNA SOLA prop
18
+ * Máxima granularidad - solo cambia un campo
19
+ */
20
+ export declare function atomicUpdateBlockProp<T = any>(blockId: string, propName: string, value: T): void;
21
+ /**
22
+ * Actualización atómica de estilos de un bloque
23
+ */
24
+ export declare function atomicUpdateBlockStyles(blockId: string, stylesUpdater: BlockUpdater | Partial<any>): void;
25
+ /**
26
+ * Actualización atómica de UN SOLO estilo
27
+ */
28
+ export declare function atomicUpdateBlockStyle<T = any>(blockId: string, styleName: string, value: T): void;
29
+ /**
30
+ * Actualización batch de múltiples props
31
+ * Más eficiente que múltiples llamadas individuales
32
+ */
33
+ export declare function atomicBatchUpdateProps(blockId: string, updates: Record<string, any>): void;
34
+ /**
35
+ * Actualización batch de múltiples estilos
36
+ */
37
+ export declare function atomicBatchUpdateStyles(blockId: string, updates: Record<string, any>): void;
38
+ /**
39
+ * Actualización condicional - solo actualiza si la condición se cumple
40
+ */
41
+ export declare function atomicConditionalUpdate(blockId: string, condition: (block: TEditorBlock) => boolean, updater: BlockUpdater<TEditorBlock>): void;
42
+ /**
43
+ * Actualización optimista - actualiza inmediatamente y permite rollback
44
+ */
45
+ export declare function atomicOptimisticUpdate(blockId: string, updater: BlockUpdater<TEditorBlock>, onError?: (error: Error) => void): () => void;
46
+ export {};
47
+ //# sourceMappingURL=blockUpdaters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockUpdaters.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/blockUpdaters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,YAAY,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E,YAAY,CAAC,YAAY,CAAC,EACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAC/B,MAAM,IAAI,CAyBZ"}
@@ -0,0 +1,125 @@
1
+ /**
2
+ * Sistema de Actualizaciones Granulares - Punto de entrada único
3
+ *
4
+ * Esta arquitectura permite actualizaciones instantáneas y modulares de bloques individuales
5
+ * sin afectar el resto del documento, mejorando significativamente el performance.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * import { useBlockPropGranular, atomicUpdateBlockProp } from './granular';
10
+ *
11
+ * function MyComponent({ blockId }) {
12
+ * // Solo se re-renderiza cuando cambia 'text'
13
+ * const text = useBlockPropGranular(blockId, 'text');
14
+ *
15
+ * // Actualización instantánea y atómica
16
+ * const handleChange = (newText) => {
17
+ * atomicUpdateBlockProp(blockId, 'text', newText);
18
+ * };
19
+ *
20
+ * return <input value={text} onChange={e => handleChange(e.target.value)} />;
21
+ * }
22
+ * ```
23
+ */
24
+ export { selectBlock, selectBlockProps, selectBlockProp, selectBlockType, selectBlockStyles, selectBlockStyle, selectBlockChildren, selectIsBlockSelected, selectBlockExists, selectBlockTree, useBlockSelector, } from './blockSelectors';
25
+ export type { TreeNode } from './blockSelectors';
26
+ export { atomicUpdateBlock, atomicUpdateBlockProps, atomicUpdateBlockProp, atomicUpdateBlockStyles, atomicUpdateBlockStyle, atomicBatchUpdateProps, atomicBatchUpdateStyles, atomicConditionalUpdate, atomicOptimisticUpdate, } from './blockUpdaters';
27
+ export { useBlock, useBlockPropsGranular, useBlockPropGranular, useBlockTypeGranular, useBlockStylesGranular, useBlockStyleGranular, useBlockChildrenGranular, useIsBlockSelectedGranular, useBlockExistsGranular, useBlockUpdater, useBlockPropWithUpdater, useBlockStyleWithUpdater, useBlockPropsMultiple, useBlockStylesMultiple, useBlockObserver, } from './blockHooks';
28
+ /**
29
+ * CUÁNDO USAR CADA HOOK:
30
+ *
31
+ * 1. useBlockPropGranular(blockId, 'propName')
32
+ * - Cuando necesitas UNA prop específica
33
+ * - Máxima granularidad, mínimos re-renders
34
+ * - Ejemplo: const text = useBlockPropGranular(blockId, 'text');
35
+ *
36
+ * 2. useBlockPropsGranular(blockId)
37
+ * - Cuando necesitas TODAS las props del bloque
38
+ * - Se re-renderiza cuando cambia cualquier prop
39
+ * - Ejemplo: const props = useBlockPropsGranular(blockId);
40
+ *
41
+ * 3. useBlockPropsMultiple(blockId, ['prop1', 'prop2'])
42
+ * - Cuando necesitas VARIAS props específicas
43
+ * - Un solo re-render cuando cambia cualquiera de ellas
44
+ * - Ejemplo: const { text, color } = useBlockPropsMultiple(blockId, ['text', 'color']);
45
+ *
46
+ * 4. useBlockPropWithUpdater(blockId, 'propName')
47
+ * - Cuando necesitas leer Y escribir una prop
48
+ * - Retorna [value, setValue] como useState
49
+ * - Ejemplo: const [text, setText] = useBlockPropWithUpdater(blockId, 'text');
50
+ *
51
+ * 5. useBlockUpdater(blockId)
52
+ * - Cuando solo necesitas funciones de actualización
53
+ * - No causa re-renders, solo retorna funciones memoizadas
54
+ * - Ejemplo: const { updateProp, batchUpdateProps } = useBlockUpdater(blockId);
55
+ */
56
+ /**
57
+ * CUÁNDO USAR CADA ACTUALIZADOR:
58
+ *
59
+ * 1. atomicUpdateBlockProp(blockId, 'propName', value)
60
+ * - Para actualizar UNA prop específica
61
+ * - Más rápido y eficiente
62
+ * - Ejemplo: atomicUpdateBlockProp(blockId, 'text', 'Hello');
63
+ *
64
+ * 2. atomicBatchUpdateProps(blockId, { prop1: value1, prop2: value2 })
65
+ * - Para actualizar MÚLTIPLES props a la vez
66
+ * - Un solo re-render en lugar de múltiples
67
+ * - Ejemplo: atomicBatchUpdateProps(blockId, { text: 'Hello', color: 'red' });
68
+ *
69
+ * 3. atomicUpdateBlockProps(blockId, (props) => ({ ...props, text: 'Hello' }))
70
+ * - Para actualizaciones basadas en el valor actual
71
+ * - Útil para transformaciones complejas
72
+ * - Ejemplo: atomicUpdateBlockProps(blockId, props => ({ ...props, count: props.count + 1 }));
73
+ *
74
+ * 4. atomicOptimisticUpdate(blockId, updater)
75
+ * - Para actualizaciones optimistas con rollback
76
+ * - Útil para operaciones asíncronas
77
+ * - Ejemplo: const rollback = atomicOptimisticUpdate(blockId, block => ({ ...block, loading: true }));
78
+ */
79
+ /**
80
+ * PATRONES RECOMENDADOS:
81
+ *
82
+ * ✅ CORRECTO - Actualización granular:
83
+ * ```tsx
84
+ * const text = useBlockPropGranular(blockId, 'text');
85
+ * const handleChange = (newText) => atomicUpdateBlockProp(blockId, 'text', newText);
86
+ * ```
87
+ *
88
+ * ❌ EVITAR - Actualización completa del documento:
89
+ * ```tsx
90
+ * const document = useDocument();
91
+ * const handleChange = (newText) => {
92
+ * setDocument({ ...document, [blockId]: { ...document[blockId], data: { ...data, props: { ...props, text: newText } } } });
93
+ * };
94
+ * ```
95
+ *
96
+ * ✅ CORRECTO - Múltiples actualizaciones en batch:
97
+ * ```tsx
98
+ * atomicBatchUpdateProps(blockId, {
99
+ * text: 'Hello',
100
+ * color: 'red',
101
+ * fontSize: 16
102
+ * });
103
+ * ```
104
+ *
105
+ * ❌ EVITAR - Múltiples actualizaciones individuales:
106
+ * ```tsx
107
+ * atomicUpdateBlockProp(blockId, 'text', 'Hello');
108
+ * atomicUpdateBlockProp(blockId, 'color', 'red');
109
+ * atomicUpdateBlockProp(blockId, 'fontSize', 16);
110
+ * ```
111
+ */
112
+ /**
113
+ * MIGRACIÓN DESDE LA API ANTIGUA:
114
+ *
115
+ * Antigua API → Nueva API Granular
116
+ *
117
+ * useBlockProps(blockId) → useBlockPropsGranular(blockId)
118
+ * useBlockProp(blockId, 'prop') → useBlockPropGranular(blockId, 'prop')
119
+ * updateBlockProp(blockId, 'prop', value) → atomicUpdateBlockProp(blockId, 'prop', value)
120
+ * updateBlockProps(blockId, props) → atomicUpdateBlockProps(blockId, props)
121
+ *
122
+ * La API antigua sigue funcionando para compatibilidad hacia atrás,
123
+ * pero se recomienda migrar a la nueva API para mejor performance.
124
+ */
125
+ //# sourceMappingURL=granular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"granular.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/granular.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAMtB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,8 @@
1
+ import { TEditorConfiguration } from './core';
2
+ /**
3
+ * Migra bloques CustomEditor, Wysiwyg y Text antiguos a NotionText
4
+ * Los templates creados antes de la introducción del bloque NotionText
5
+ * usaban CustomEditor, Wysiwyg o Text, que ahora deben ser tratados como NotionText
6
+ */
7
+ export declare function migrateDocument(document: TEditorConfiguration): TEditorConfiguration;
8
+ //# sourceMappingURL=migrateDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrateDocument.d.ts","sourceRoot":"","sources":["../../../../../src/documents/editor/migrateDocument.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAoB9C;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,oBAAoB,GAAG,oBAAoB,CA0BpF"}
@@ -0,0 +1,2 @@
1
+ export default function getConfiguration(template: string): any;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/getConfiguration/index.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,EAAE,MAAM,OAkCxD"}