@os-design/editor 1.0.260 → 1.0.261

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 (240) hide show
  1. package/dist/@types/emotion.d.js +1 -0
  2. package/dist/{types/Editor → Editor}/BlockToolbar.d.ts +2 -2
  3. package/dist/Editor/BlockToolbar.d.ts.map +1 -0
  4. package/dist/{esm/Editor → Editor}/BlockToolbar.js +9 -6
  5. package/dist/{types/Editor → Editor}/StyleToolbar.d.ts +2 -2
  6. package/dist/Editor/StyleToolbar.d.ts.map +1 -0
  7. package/dist/{esm/Editor → Editor}/StyleToolbar.js +15 -13
  8. package/dist/Editor/Toolbar.d.ts.map +1 -0
  9. package/dist/{esm/Editor → Editor}/Toolbar.js +1 -2
  10. package/dist/Editor/ToolbarButton.d.ts.map +1 -0
  11. package/dist/{esm/Editor → Editor}/ToolbarButton.js +6 -6
  12. package/dist/Editor/blocks/Figure.d.ts.map +1 -0
  13. package/dist/{esm/Editor → Editor}/blocks/Figure.js +1 -2
  14. package/dist/Editor/blocks/FigureCaption.d.ts.map +1 -0
  15. package/dist/{esm/Editor → Editor}/blocks/FigureCaption.js +1 -2
  16. package/dist/{types/Editor → Editor}/blocks/imageBlock.d.ts +1 -1
  17. package/dist/Editor/blocks/imageBlock.d.ts.map +1 -0
  18. package/dist/{esm/Editor → Editor}/blocks/imageBlock.js +18 -11
  19. package/dist/Editor/blocks/types.d.ts.map +1 -0
  20. package/dist/Editor/blocks/types.js +1 -0
  21. package/dist/{types/Editor → Editor}/blocks/videoBlock.d.ts +1 -1
  22. package/dist/Editor/blocks/videoBlock.d.ts.map +1 -0
  23. package/dist/{esm/Editor → Editor}/blocks/videoBlock.js +13 -9
  24. package/dist/Editor/decorators/linkDecorator.d.ts +4 -0
  25. package/dist/Editor/decorators/linkDecorator.d.ts.map +1 -0
  26. package/dist/{esm/Editor → Editor}/decorators/linkDecorator.js +6 -6
  27. package/dist/{types/Editor → Editor}/hooks/useBlockToolbarProps.d.ts +3 -0
  28. package/dist/Editor/hooks/useBlockToolbarProps.d.ts.map +1 -0
  29. package/dist/{esm/Editor → Editor}/hooks/useBlockToolbarProps.js +1 -2
  30. package/dist/{types/Editor → Editor}/hooks/usePastedTextHandler.d.ts +4 -1
  31. package/dist/Editor/hooks/usePastedTextHandler.d.ts.map +1 -0
  32. package/dist/{esm/Editor → Editor}/hooks/usePastedTextHandler.js +1 -2
  33. package/dist/{types/Editor → Editor}/hooks/useReturnHandler.d.ts +4 -1
  34. package/dist/Editor/hooks/useReturnHandler.d.ts.map +1 -0
  35. package/dist/{esm/Editor → Editor}/hooks/useReturnHandler.js +1 -2
  36. package/dist/{types/Editor → Editor}/hooks/useStyleToolbarProps.d.ts +3 -0
  37. package/dist/Editor/hooks/useStyleToolbarProps.d.ts.map +1 -0
  38. package/dist/{esm/Editor → Editor}/hooks/useStyleToolbarProps.js +1 -2
  39. package/dist/Editor/index.d.ts +42 -0
  40. package/dist/Editor/index.d.ts.map +1 -0
  41. package/dist/{esm/Editor → Editor}/index.js +41 -37
  42. package/dist/Editor/styles/defaultDraftJsStyles.d.ts +7 -0
  43. package/dist/Editor/styles/defaultDraftJsStyles.d.ts.map +1 -0
  44. package/dist/{esm/Editor → Editor}/styles/defaultDraftJsStyles.js +1 -2
  45. package/dist/{types/Editor → Editor}/styles/overrideDraftJsStyles.d.ts +1 -1
  46. package/dist/Editor/styles/overrideDraftJsStyles.d.ts.map +1 -0
  47. package/dist/{esm/Editor → Editor}/styles/overrideDraftJsStyles.js +1 -4
  48. package/dist/Editor/utils/addNewBlockAt.d.ts.map +1 -0
  49. package/dist/{esm/Editor → Editor}/utils/addNewBlockAt.js +1 -2
  50. package/dist/Editor/utils/changeBlock.d.ts.map +1 -0
  51. package/dist/{esm/Editor → Editor}/utils/changeBlock.js +1 -2
  52. package/dist/Editor/utils/createContentEditorState.d.ts.map +1 -0
  53. package/dist/{esm/Editor → Editor}/utils/createContentEditorState.js +1 -2
  54. package/dist/Editor/utils/createDecorator.d.ts.map +1 -0
  55. package/dist/{esm/Editor → Editor}/utils/createDecorator.js +1 -2
  56. package/dist/Editor/utils/createEmptyEditorState.d.ts.map +1 -0
  57. package/dist/{esm/Editor → Editor}/utils/createEmptyEditorState.js +1 -2
  58. package/dist/Editor/utils/defaultStyleToolbarItems.d.ts.map +1 -0
  59. package/dist/{esm/Editor → Editor}/utils/defaultStyleToolbarItems.js +8 -8
  60. package/dist/Editor/utils/getCurrentBlock.d.ts.map +1 -0
  61. package/dist/{esm/Editor → Editor}/utils/getCurrentBlock.js +1 -2
  62. package/dist/Editor/utils/getSelectedBlockElement.d.ts.map +1 -0
  63. package/dist/{esm/Editor → Editor}/utils/getSelectedBlockElement.js +1 -2
  64. package/dist/Editor/utils/getSelectionRange.d.ts.map +1 -0
  65. package/dist/{esm/Editor → Editor}/utils/getSelectionRange.js +1 -2
  66. package/dist/Editor/utils/setLink.d.ts.map +1 -0
  67. package/dist/{esm/Editor → Editor}/utils/setLink.js +1 -2
  68. package/dist/Editor/utils/transformers.d.ts.map +1 -0
  69. package/dist/{esm/Editor → Editor}/utils/transformers.js +1 -2
  70. package/dist/Editor/utils/unsetLink.d.ts.map +1 -0
  71. package/dist/{esm/Editor → Editor}/utils/unsetLink.js +1 -2
  72. package/dist/EditorSkeleton/index.d.ts +8 -0
  73. package/dist/EditorSkeleton/index.d.ts.map +1 -0
  74. package/dist/EditorSkeleton/index.js +17 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/{esm/index.js → index.js} +1 -2
  77. package/package.json +12 -13
  78. package/src/@types/emotion.d.ts +1 -1
  79. package/src/Editor/BlockToolbar.tsx +2 -2
  80. package/src/Editor/StyleToolbar.tsx +2 -3
  81. package/src/Editor/blocks/imageBlock.tsx +1 -1
  82. package/src/Editor/blocks/videoBlock.tsx +1 -3
  83. package/src/Editor/decorators/linkDecorator.tsx +1 -2
  84. package/src/Editor/hooks/usePastedTextHandler.ts +2 -2
  85. package/src/Editor/hooks/useReturnHandler.ts +1 -1
  86. package/src/Editor/index.tsx +5 -5
  87. package/src/Editor/styles/overrideDraftJsStyles.ts +0 -1
  88. package/src/EditorSkeleton/index.tsx +2 -2
  89. package/dist/cjs/@types/emotion.d.js +0 -4
  90. package/dist/cjs/@types/emotion.d.js.map +0 -1
  91. package/dist/cjs/Editor/BlockToolbar.js +0 -44
  92. package/dist/cjs/Editor/BlockToolbar.js.map +0 -1
  93. package/dist/cjs/Editor/StyleToolbar.js +0 -65
  94. package/dist/cjs/Editor/StyleToolbar.js.map +0 -1
  95. package/dist/cjs/Editor/Toolbar.js +0 -18
  96. package/dist/cjs/Editor/Toolbar.js.map +0 -1
  97. package/dist/cjs/Editor/ToolbarButton.js +0 -47
  98. package/dist/cjs/Editor/ToolbarButton.js.map +0 -1
  99. package/dist/cjs/Editor/blocks/Figure.js +0 -16
  100. package/dist/cjs/Editor/blocks/Figure.js.map +0 -1
  101. package/dist/cjs/Editor/blocks/FigureCaption.js +0 -21
  102. package/dist/cjs/Editor/blocks/FigureCaption.js.map +0 -1
  103. package/dist/cjs/Editor/blocks/imageBlock.js +0 -156
  104. package/dist/cjs/Editor/blocks/imageBlock.js.map +0 -1
  105. package/dist/cjs/Editor/blocks/types.js +0 -2
  106. package/dist/cjs/Editor/blocks/types.js.map +0 -1
  107. package/dist/cjs/Editor/blocks/videoBlock.js +0 -82
  108. package/dist/cjs/Editor/blocks/videoBlock.js.map +0 -1
  109. package/dist/cjs/Editor/decorators/linkDecorator.js +0 -29
  110. package/dist/cjs/Editor/decorators/linkDecorator.js.map +0 -1
  111. package/dist/cjs/Editor/hooks/useBlockToolbarProps.js +0 -69
  112. package/dist/cjs/Editor/hooks/useBlockToolbarProps.js.map +0 -1
  113. package/dist/cjs/Editor/hooks/usePastedTextHandler.js +0 -26
  114. package/dist/cjs/Editor/hooks/usePastedTextHandler.js.map +0 -1
  115. package/dist/cjs/Editor/hooks/useReturnHandler.js +0 -27
  116. package/dist/cjs/Editor/hooks/useReturnHandler.js.map +0 -1
  117. package/dist/cjs/Editor/hooks/useStyleToolbarProps.js +0 -56
  118. package/dist/cjs/Editor/hooks/useStyleToolbarProps.js.map +0 -1
  119. package/dist/cjs/Editor/index.js +0 -156
  120. package/dist/cjs/Editor/index.js.map +0 -1
  121. package/dist/cjs/Editor/styles/defaultDraftJsStyles.js +0 -16
  122. package/dist/cjs/Editor/styles/defaultDraftJsStyles.js.map +0 -1
  123. package/dist/cjs/Editor/styles/overrideDraftJsStyles.js +0 -16
  124. package/dist/cjs/Editor/styles/overrideDraftJsStyles.js.map +0 -1
  125. package/dist/cjs/Editor/utils/addNewBlockAt.js +0 -48
  126. package/dist/cjs/Editor/utils/addNewBlockAt.js.map +0 -1
  127. package/dist/cjs/Editor/utils/changeBlock.js +0 -22
  128. package/dist/cjs/Editor/utils/changeBlock.js.map +0 -1
  129. package/dist/cjs/Editor/utils/createContentEditorState.js +0 -14
  130. package/dist/cjs/Editor/utils/createContentEditorState.js.map +0 -1
  131. package/dist/cjs/Editor/utils/createDecorator.js +0 -14
  132. package/dist/cjs/Editor/utils/createDecorator.js.map +0 -1
  133. package/dist/cjs/Editor/utils/createEmptyEditorState.js +0 -14
  134. package/dist/cjs/Editor/utils/createEmptyEditorState.js.map +0 -1
  135. package/dist/cjs/Editor/utils/defaultStyleToolbarItems.js +0 -40
  136. package/dist/cjs/Editor/utils/defaultStyleToolbarItems.js.map +0 -1
  137. package/dist/cjs/Editor/utils/getCurrentBlock.js +0 -13
  138. package/dist/cjs/Editor/utils/getCurrentBlock.js.map +0 -1
  139. package/dist/cjs/Editor/utils/getSelectedBlockElement.js +0 -20
  140. package/dist/cjs/Editor/utils/getSelectedBlockElement.js.map +0 -1
  141. package/dist/cjs/Editor/utils/getSelectionRange.js +0 -13
  142. package/dist/cjs/Editor/utils/getSelectionRange.js.map +0 -1
  143. package/dist/cjs/Editor/utils/setLink.js +0 -22
  144. package/dist/cjs/Editor/utils/setLink.js.map +0 -1
  145. package/dist/cjs/Editor/utils/transformers.js +0 -16
  146. package/dist/cjs/Editor/utils/transformers.js.map +0 -1
  147. package/dist/cjs/Editor/utils/unsetLink.js +0 -15
  148. package/dist/cjs/Editor/utils/unsetLink.js.map +0 -1
  149. package/dist/cjs/EditorSkeleton/index.js +0 -31
  150. package/dist/cjs/EditorSkeleton/index.js.map +0 -1
  151. package/dist/cjs/index.js +0 -146
  152. package/dist/cjs/index.js.map +0 -1
  153. package/dist/esm/@types/emotion.d.js +0 -2
  154. package/dist/esm/@types/emotion.d.js.map +0 -1
  155. package/dist/esm/Editor/BlockToolbar.js.map +0 -1
  156. package/dist/esm/Editor/StyleToolbar.js.map +0 -1
  157. package/dist/esm/Editor/Toolbar.js.map +0 -1
  158. package/dist/esm/Editor/ToolbarButton.js.map +0 -1
  159. package/dist/esm/Editor/blocks/Figure.js.map +0 -1
  160. package/dist/esm/Editor/blocks/FigureCaption.js.map +0 -1
  161. package/dist/esm/Editor/blocks/imageBlock.js.map +0 -1
  162. package/dist/esm/Editor/blocks/types.js +0 -2
  163. package/dist/esm/Editor/blocks/types.js.map +0 -1
  164. package/dist/esm/Editor/blocks/videoBlock.js.map +0 -1
  165. package/dist/esm/Editor/decorators/linkDecorator.js.map +0 -1
  166. package/dist/esm/Editor/hooks/useBlockToolbarProps.js.map +0 -1
  167. package/dist/esm/Editor/hooks/usePastedTextHandler.js.map +0 -1
  168. package/dist/esm/Editor/hooks/useReturnHandler.js.map +0 -1
  169. package/dist/esm/Editor/hooks/useStyleToolbarProps.js.map +0 -1
  170. package/dist/esm/Editor/index.js.map +0 -1
  171. package/dist/esm/Editor/styles/defaultDraftJsStyles.js.map +0 -1
  172. package/dist/esm/Editor/styles/overrideDraftJsStyles.js.map +0 -1
  173. package/dist/esm/Editor/utils/addNewBlockAt.js.map +0 -1
  174. package/dist/esm/Editor/utils/changeBlock.js.map +0 -1
  175. package/dist/esm/Editor/utils/createContentEditorState.js.map +0 -1
  176. package/dist/esm/Editor/utils/createDecorator.js.map +0 -1
  177. package/dist/esm/Editor/utils/createEmptyEditorState.js.map +0 -1
  178. package/dist/esm/Editor/utils/defaultStyleToolbarItems.js.map +0 -1
  179. package/dist/esm/Editor/utils/getCurrentBlock.js.map +0 -1
  180. package/dist/esm/Editor/utils/getSelectedBlockElement.js.map +0 -1
  181. package/dist/esm/Editor/utils/getSelectionRange.js.map +0 -1
  182. package/dist/esm/Editor/utils/setLink.js.map +0 -1
  183. package/dist/esm/Editor/utils/transformers.js.map +0 -1
  184. package/dist/esm/Editor/utils/unsetLink.js.map +0 -1
  185. package/dist/esm/EditorSkeleton/index.js +0 -17
  186. package/dist/esm/EditorSkeleton/index.js.map +0 -1
  187. package/dist/esm/index.js.map +0 -1
  188. package/dist/types/Editor/BlockToolbar.d.ts.map +0 -1
  189. package/dist/types/Editor/StyleToolbar.d.ts.map +0 -1
  190. package/dist/types/Editor/Toolbar.d.ts.map +0 -1
  191. package/dist/types/Editor/ToolbarButton.d.ts.map +0 -1
  192. package/dist/types/Editor/blocks/Figure.d.ts.map +0 -1
  193. package/dist/types/Editor/blocks/FigureCaption.d.ts.map +0 -1
  194. package/dist/types/Editor/blocks/imageBlock.d.ts.map +0 -1
  195. package/dist/types/Editor/blocks/types.d.ts.map +0 -1
  196. package/dist/types/Editor/blocks/videoBlock.d.ts.map +0 -1
  197. package/dist/types/Editor/decorators/linkDecorator.d.ts +0 -4
  198. package/dist/types/Editor/decorators/linkDecorator.d.ts.map +0 -1
  199. package/dist/types/Editor/hooks/useBlockToolbarProps.d.ts.map +0 -1
  200. package/dist/types/Editor/hooks/usePastedTextHandler.d.ts.map +0 -1
  201. package/dist/types/Editor/hooks/useReturnHandler.d.ts.map +0 -1
  202. package/dist/types/Editor/hooks/useStyleToolbarProps.d.ts.map +0 -1
  203. package/dist/types/Editor/index.d.ts +0 -16
  204. package/dist/types/Editor/index.d.ts.map +0 -1
  205. package/dist/types/Editor/styles/defaultDraftJsStyles.d.ts +0 -3
  206. package/dist/types/Editor/styles/defaultDraftJsStyles.d.ts.map +0 -1
  207. package/dist/types/Editor/styles/overrideDraftJsStyles.d.ts.map +0 -1
  208. package/dist/types/Editor/utils/addNewBlockAt.d.ts.map +0 -1
  209. package/dist/types/Editor/utils/changeBlock.d.ts.map +0 -1
  210. package/dist/types/Editor/utils/createContentEditorState.d.ts.map +0 -1
  211. package/dist/types/Editor/utils/createDecorator.d.ts.map +0 -1
  212. package/dist/types/Editor/utils/createEmptyEditorState.d.ts.map +0 -1
  213. package/dist/types/Editor/utils/defaultStyleToolbarItems.d.ts.map +0 -1
  214. package/dist/types/Editor/utils/getCurrentBlock.d.ts.map +0 -1
  215. package/dist/types/Editor/utils/getSelectedBlockElement.d.ts.map +0 -1
  216. package/dist/types/Editor/utils/getSelectionRange.d.ts.map +0 -1
  217. package/dist/types/Editor/utils/setLink.d.ts.map +0 -1
  218. package/dist/types/Editor/utils/transformers.d.ts.map +0 -1
  219. package/dist/types/Editor/utils/unsetLink.d.ts.map +0 -1
  220. package/dist/types/EditorSkeleton/index.d.ts +0 -6
  221. package/dist/types/EditorSkeleton/index.d.ts.map +0 -1
  222. package/dist/types/index.d.ts.map +0 -1
  223. /package/dist/{types/Editor → Editor}/Toolbar.d.ts +0 -0
  224. /package/dist/{types/Editor → Editor}/ToolbarButton.d.ts +0 -0
  225. /package/dist/{types/Editor → Editor}/blocks/Figure.d.ts +0 -0
  226. /package/dist/{types/Editor → Editor}/blocks/FigureCaption.d.ts +0 -0
  227. /package/dist/{types/Editor → Editor}/blocks/types.d.ts +0 -0
  228. /package/dist/{types/Editor → Editor}/utils/addNewBlockAt.d.ts +0 -0
  229. /package/dist/{types/Editor → Editor}/utils/changeBlock.d.ts +0 -0
  230. /package/dist/{types/Editor → Editor}/utils/createContentEditorState.d.ts +0 -0
  231. /package/dist/{types/Editor → Editor}/utils/createDecorator.d.ts +0 -0
  232. /package/dist/{types/Editor → Editor}/utils/createEmptyEditorState.d.ts +0 -0
  233. /package/dist/{types/Editor → Editor}/utils/defaultStyleToolbarItems.d.ts +0 -0
  234. /package/dist/{types/Editor → Editor}/utils/getCurrentBlock.d.ts +0 -0
  235. /package/dist/{types/Editor → Editor}/utils/getSelectedBlockElement.d.ts +0 -0
  236. /package/dist/{types/Editor → Editor}/utils/getSelectionRange.d.ts +0 -0
  237. /package/dist/{types/Editor → Editor}/utils/setLink.d.ts +0 -0
  238. /package/dist/{types/Editor → Editor}/utils/transformers.d.ts +0 -0
  239. /package/dist/{types/Editor → Editor}/utils/unsetLink.d.ts +0 -0
  240. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"overrideDraftJsStyles.js","names":["css","clr","overrideDraftJsStyles","p","theme","lineHeight","colorText","inputColorPlaceholder","paragraphMarginBottom"],"sources":["../../../../src/Editor/styles/overrideDraftJsStyles.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { clr } from '@os-design/theming';\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst overrideDraftJsStyles = (p) => css`\n .DraftEditor-root {\n width: 100%;\n overflow: hidden;\n line-height: ${p.theme.lineHeight};\n color: ${clr(p.theme.colorText)};\n }\n .public-DraftEditorPlaceholder-root {\n color: ${clr(p.theme.inputColorPlaceholder)};\n }\n .public-DraftStyleDefault-block {\n margin: 0 0 ${p.theme.paragraphMarginBottom}em;\n }\n`;\n\nexport default overrideDraftJsStyles;\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AACpC,SAASC,GAAG,QAAQ,oBAAoB;;AAExC;AACA,MAAMC,qBAAqB,GAAIC,CAAC,IAAKH,GAAG;AACxC;AACA;AACA;AACA,mBAAmBG,CAAC,CAACC,KAAK,CAACC,UAAU;AACrC,aAAaJ,GAAG,CAACE,CAAC,CAACC,KAAK,CAACE,SAAS,CAAC;AACnC;AACA;AACA,aAAaL,GAAG,CAACE,CAAC,CAACC,KAAK,CAACG,qBAAqB,CAAC;AAC/C;AACA;AACA,kBAAkBJ,CAAC,CAACC,KAAK,CAACI,qBAAqB;AAC/C;AACA,CAAC;AAED,eAAeN,qBAAqB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"addNewBlockAt.js","names":["ContentBlock","EditorState","genKey","Immutable","addNewBlockAt","editorState","pivotBlockKey","type","data","contentState","getCurrentContent","blockMap","getBlockMap","pivotBlock","get","Error","blocksBefore","toSeq","takeUntil","v","blocksAfter","skipUntil","rest","key","block","text","characterList","List","depth","Map","selectionState","getSelection","nextBlockMap","concat","toOrderedMap","nextContentState","merge","selectionBefore","selectionAfter","anchorKey","anchorOffset","focusKey","focusOffset","isBackward","push"],"sources":["../../../../src/Editor/utils/addNewBlockAt.ts"],"sourcesContent":["import { ContentBlock, ContentState, EditorState, genKey } from 'draft-js';\nimport Immutable from 'immutable';\n\nconst addNewBlockAt = (\n editorState: EditorState,\n pivotBlockKey: string,\n type = 'unstyled',\n data: Record<string, any> = {} // eslint-disable-line @typescript-eslint/no-explicit-any\n): EditorState => {\n const contentState = editorState.getCurrentContent();\n const blockMap = contentState.getBlockMap();\n const pivotBlock = blockMap.get(pivotBlockKey);\n if (!pivotBlock)\n throw new Error(\n `The pivot key - ${pivotBlockKey} is not present in blockMap`\n );\n const blocksBefore = blockMap.toSeq().takeUntil((v) => v === pivotBlock);\n const blocksAfter = blockMap\n .toSeq()\n .skipUntil((v) => v === pivotBlock)\n .rest();\n const key = genKey();\n\n const block = new ContentBlock({\n key,\n type,\n text: '',\n characterList: Immutable.List(),\n depth: 0,\n data: Immutable.Map(data),\n });\n\n const selectionState = editorState.getSelection();\n const nextBlockMap = blocksBefore\n .concat(\n [\n [pivotBlockKey, pivotBlock],\n [key, block],\n ],\n blocksAfter\n )\n .toOrderedMap();\n\n const nextContentState = contentState.merge({\n blockMap: nextBlockMap,\n selectionBefore: selectionState,\n selectionAfter: selectionState.merge({\n anchorKey: key,\n anchorOffset: 0,\n focusKey: key,\n focusOffset: 0,\n isBackward: false,\n }),\n }) as ContentState;\n\n return EditorState.push(editorState, nextContentState, 'split-block');\n};\n\nexport default addNewBlockAt;\n"],"mappings":"AAAA,SAASA,YAAY,EAAgBC,WAAW,EAAEC,MAAM,QAAQ,UAAU;AAC1E,OAAOC,SAAS,MAAM,WAAW;AAEjC,MAAMC,aAAa,GAAGA,CACpBC,WAAwB,EACxBC,aAAqB,EACrBC,IAAI,GAAG,UAAU,EACjBC,IAAyB,GAAG,CAAC,CAAC,CAAC;AAAA,KACf;EAChB,MAAMC,YAAY,GAAGJ,WAAW,CAACK,iBAAiB,CAAC,CAAC;EACpD,MAAMC,QAAQ,GAAGF,YAAY,CAACG,WAAW,CAAC,CAAC;EAC3C,MAAMC,UAAU,GAAGF,QAAQ,CAACG,GAAG,CAACR,aAAa,CAAC;EAC9C,IAAI,CAACO,UAAU,EACb,MAAM,IAAIE,KAAK,CACb,mBAAmBT,aAAa,6BAClC,CAAC;EACH,MAAMU,YAAY,GAAGL,QAAQ,CAACM,KAAK,CAAC,CAAC,CAACC,SAAS,CAAEC,CAAC,IAAKA,CAAC,KAAKN,UAAU,CAAC;EACxE,MAAMO,WAAW,GAAGT,QAAQ,CACzBM,KAAK,CAAC,CAAC,CACPI,SAAS,CAAEF,CAAC,IAAKA,CAAC,KAAKN,UAAU,CAAC,CAClCS,IAAI,CAAC,CAAC;EACT,MAAMC,GAAG,GAAGrB,MAAM,CAAC,CAAC;EAEpB,MAAMsB,KAAK,GAAG,IAAIxB,YAAY,CAAC;IAC7BuB,GAAG;IACHhB,IAAI;IACJkB,IAAI,EAAE,EAAE;IACRC,aAAa,EAAEvB,SAAS,CAACwB,IAAI,CAAC,CAAC;IAC/BC,KAAK,EAAE,CAAC;IACRpB,IAAI,EAAEL,SAAS,CAAC0B,GAAG,CAACrB,IAAI;EAC1B,CAAC,CAAC;EAEF,MAAMsB,cAAc,GAAGzB,WAAW,CAAC0B,YAAY,CAAC,CAAC;EACjD,MAAMC,YAAY,GAAGhB,YAAY,CAC9BiB,MAAM,CACL,CACE,CAAC3B,aAAa,EAAEO,UAAU,CAAC,EAC3B,CAACU,GAAG,EAAEC,KAAK,CAAC,CACb,EACDJ,WACF,CAAC,CACAc,YAAY,CAAC,CAAC;EAEjB,MAAMC,gBAAgB,GAAG1B,YAAY,CAAC2B,KAAK,CAAC;IAC1CzB,QAAQ,EAAEqB,YAAY;IACtBK,eAAe,EAAEP,cAAc;IAC/BQ,cAAc,EAAER,cAAc,CAACM,KAAK,CAAC;MACnCG,SAAS,EAAEhB,GAAG;MACdiB,YAAY,EAAE,CAAC;MACfC,QAAQ,EAAElB,GAAG;MACbmB,WAAW,EAAE,CAAC;MACdC,UAAU,EAAE;IACd,CAAC;EACH,CAAC,CAAiB;EAElB,OAAO1C,WAAW,CAAC2C,IAAI,CAACvC,WAAW,EAAE8B,gBAAgB,EAAE,aAAa,CAAC;AACvE,CAAC;AAED,eAAe/B,aAAa","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"changeBlock.js","names":["EditorState","changeBlock","editorState","block","type","data","contentState","getCurrentContent","nextCurrentBlock","merge","nextContentState","blockMap","getBlockMap","set","getKey","selectionAfter","getSelection","push"],"sources":["../../../../src/Editor/utils/changeBlock.ts"],"sourcesContent":["import { ContentBlock, ContentState, EditorState } from 'draft-js';\n\nconst changeBlock = (\n editorState: EditorState,\n block: ContentBlock,\n type: string,\n data: Record<string, any> = {} // eslint-disable-line @typescript-eslint/no-explicit-any\n): EditorState => {\n const contentState = editorState.getCurrentContent();\n\n const nextCurrentBlock = block.merge({ type, data }) as ContentBlock;\n const nextContentState = contentState.merge({\n blockMap: contentState.getBlockMap().set(block.getKey(), nextCurrentBlock),\n selectionAfter: editorState.getSelection(),\n }) as ContentState;\n\n return EditorState.push(editorState, nextContentState, 'change-block-type');\n};\n\nexport default changeBlock;\n"],"mappings":"AAAA,SAAqCA,WAAW,QAAQ,UAAU;AAElE,MAAMC,WAAW,GAAGA,CAClBC,WAAwB,EACxBC,KAAmB,EACnBC,IAAY,EACZC,IAAyB,GAAG,CAAC,CAAC,CAAC;AAAA,KACf;EAChB,MAAMC,YAAY,GAAGJ,WAAW,CAACK,iBAAiB,CAAC,CAAC;EAEpD,MAAMC,gBAAgB,GAAGL,KAAK,CAACM,KAAK,CAAC;IAAEL,IAAI;IAAEC;EAAK,CAAC,CAAiB;EACpE,MAAMK,gBAAgB,GAAGJ,YAAY,CAACG,KAAK,CAAC;IAC1CE,QAAQ,EAAEL,YAAY,CAACM,WAAW,CAAC,CAAC,CAACC,GAAG,CAACV,KAAK,CAACW,MAAM,CAAC,CAAC,EAAEN,gBAAgB,CAAC;IAC1EO,cAAc,EAAEb,WAAW,CAACc,YAAY,CAAC;EAC3C,CAAC,CAAiB;EAElB,OAAOhB,WAAW,CAACiB,IAAI,CAACf,WAAW,EAAEQ,gBAAgB,EAAE,mBAAmB,CAAC;AAC7E,CAAC;AAED,eAAeT,WAAW","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createContentEditorState.js","names":["EditorState","createDecorator","createContentEditorState","contentState","createWithContent"],"sources":["../../../../src/Editor/utils/createContentEditorState.ts"],"sourcesContent":["import { ContentState, EditorState } from 'draft-js';\nimport createDecorator from './createDecorator';\n\nconst createContentEditorState = (contentState: ContentState): EditorState =>\n EditorState.createWithContent(contentState, createDecorator());\n\nexport default createContentEditorState;\n"],"mappings":"AAAA,SAAuBA,WAAW,QAAQ,UAAU;AACpD,OAAOC,eAAe,MAAM,mBAAmB;AAE/C,MAAMC,wBAAwB,GAAIC,YAA0B,IAC1DH,WAAW,CAACI,iBAAiB,CAACD,YAAY,EAAEF,eAAe,CAAC,CAAC,CAAC;AAEhE,eAAeC,wBAAwB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createDecorator.js","names":["CompositeDecorator","linkDecorator","createDecorator"],"sources":["../../../../src/Editor/utils/createDecorator.ts"],"sourcesContent":["import { CompositeDecorator } from 'draft-js';\nimport linkDecorator from '../decorators/linkDecorator';\n\nconst createDecorator = (): CompositeDecorator =>\n new CompositeDecorator([linkDecorator]);\n\nexport default createDecorator;\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,UAAU;AAC7C,OAAOC,aAAa,MAAM,6BAA6B;AAEvD,MAAMC,eAAe,GAAGA,CAAA,KACtB,IAAIF,kBAAkB,CAAC,CAACC,aAAa,CAAC,CAAC;AAEzC,eAAeC,eAAe","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEmptyEditorState.js","names":["EditorState","createDecorator","createEmptyEditorState","createEmpty"],"sources":["../../../../src/Editor/utils/createEmptyEditorState.ts"],"sourcesContent":["import { EditorState } from 'draft-js';\nimport createDecorator from './createDecorator';\n\nconst createEmptyEditorState = (): EditorState =>\n EditorState.createEmpty(createDecorator());\n\nexport default createEmptyEditorState;\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,UAAU;AACtC,OAAOC,eAAe,MAAM,mBAAmB;AAE/C,MAAMC,sBAAsB,GAAGA,CAAA,KAC7BF,WAAW,CAACG,WAAW,CAACF,eAAe,CAAC,CAAC,CAAC;AAE5C,eAAeC,sBAAsB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultStyleToolbarItems.js","names":["styled","Bold","FontSize","Link","LinkIcon","OrderedList","UnorderedList","React","FontSizeSmall","defaultStyleToolbarItems","name","type","icon","createElement"],"sources":["../../../../src/Editor/utils/defaultStyleToolbarItems.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport {\n Bold,\n FontSize,\n Link as LinkIcon,\n OrderedList,\n UnorderedList,\n} from '@os-design/icons';\nimport React from 'react';\n\nexport interface StyleToolbarItem {\n name: string;\n type: 'block' | 'inline';\n icon: React.ReactNode;\n}\n\nconst FontSizeSmall = styled(FontSize)`\n transform: scale(0.7);\n`;\n\nconst defaultStyleToolbarItems: StyleToolbarItem[] = [\n { name: 'header-two', type: 'block', icon: <FontSize /> },\n { name: 'header-three', type: 'block', icon: <FontSizeSmall /> },\n { name: 'BOLD', type: 'inline', icon: <Bold /> },\n { name: 'unordered-list-item', type: 'block', icon: <UnorderedList /> },\n { name: 'ordered-list-item', type: 'block', icon: <OrderedList /> },\n { name: 'LINK', type: 'inline', icon: <LinkIcon /> },\n];\n\nexport default defaultStyleToolbarItems;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SACEC,IAAI,EACJC,QAAQ,EACRC,IAAI,IAAIC,QAAQ,EAChBC,WAAW,EACXC,aAAa,QACR,kBAAkB;AACzB,OAAOC,KAAK,MAAM,OAAO;AAQzB,MAAMC,aAAa,GAAGR,MAAM,CAACE,QAAQ,CAAC;AACtC;AACA,CAAC;AAED,MAAMO,wBAA4C,GAAG,CACnD;EAAEC,IAAI,EAAE,YAAY;EAAEC,IAAI,EAAE,OAAO;EAAEC,IAAI,eAAEL,KAAA,CAAAM,aAAA,CAACX,QAAQ,MAAE;AAAE,CAAC,EACzD;EAAEQ,IAAI,EAAE,cAAc;EAAEC,IAAI,EAAE,OAAO;EAAEC,IAAI,eAAEL,KAAA,CAAAM,aAAA,CAACL,aAAa,MAAE;AAAE,CAAC,EAChE;EAAEE,IAAI,EAAE,MAAM;EAAEC,IAAI,EAAE,QAAQ;EAAEC,IAAI,eAAEL,KAAA,CAAAM,aAAA,CAACZ,IAAI,MAAE;AAAE,CAAC,EAChD;EAAES,IAAI,EAAE,qBAAqB;EAAEC,IAAI,EAAE,OAAO;EAAEC,IAAI,eAAEL,KAAA,CAAAM,aAAA,CAACP,aAAa,MAAE;AAAE,CAAC,EACvE;EAAEI,IAAI,EAAE,mBAAmB;EAAEC,IAAI,EAAE,OAAO;EAAEC,IAAI,eAAEL,KAAA,CAAAM,aAAA,CAACR,WAAW,MAAE;AAAE,CAAC,EACnE;EAAEK,IAAI,EAAE,MAAM;EAAEC,IAAI,EAAE,QAAQ;EAAEC,IAAI,eAAEL,KAAA,CAAAM,aAAA,CAACT,QAAQ,MAAE;AAAE,CAAC,CACrD;AAED,eAAeK,wBAAwB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrentBlock.js","names":["getCurrentBlock","editorState","selectionState","getSelection","contentState","getCurrentContent","getBlockForKey","getStartKey"],"sources":["../../../../src/Editor/utils/getCurrentBlock.ts"],"sourcesContent":["import { ContentBlock, EditorState } from 'draft-js';\n\nconst getCurrentBlock = (editorState: EditorState): ContentBlock => {\n const selectionState = editorState.getSelection();\n const contentState = editorState.getCurrentContent();\n return contentState.getBlockForKey(selectionState.getStartKey());\n};\n\nexport default getCurrentBlock;\n"],"mappings":"AAEA,MAAMA,eAAe,GAAIC,WAAwB,IAAmB;EAClE,MAAMC,cAAc,GAAGD,WAAW,CAACE,YAAY,CAAC,CAAC;EACjD,MAAMC,YAAY,GAAGH,WAAW,CAACI,iBAAiB,CAAC,CAAC;EACpD,OAAOD,YAAY,CAACE,cAAc,CAACJ,cAAc,CAACK,WAAW,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,eAAeP,eAAe","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSelectedBlockElement.js","names":["getSelectionRange","getSelectedBlockElement","selectionRange","node","startContainer","Element","getAttribute","parentNode"],"sources":["../../../../src/Editor/utils/getSelectedBlockElement.ts"],"sourcesContent":["import getSelectionRange from './getSelectionRange';\n\nconst getSelectedBlockElement = (): Element | null => {\n const selectionRange = getSelectionRange();\n if (!selectionRange) return null;\n\n let node: Node | null = selectionRange.startContainer;\n\n do {\n if (node instanceof Element && node.getAttribute('data-block') === 'true')\n return node;\n node = node.parentNode;\n } while (node != null);\n return null;\n};\n\nexport default getSelectedBlockElement;\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,qBAAqB;AAEnD,MAAMC,uBAAuB,GAAGA,CAAA,KAAsB;EACpD,MAAMC,cAAc,GAAGF,iBAAiB,CAAC,CAAC;EAC1C,IAAI,CAACE,cAAc,EAAE,OAAO,IAAI;EAEhC,IAAIC,IAAiB,GAAGD,cAAc,CAACE,cAAc;EAErD,GAAG;IACD,IAAID,IAAI,YAAYE,OAAO,IAAIF,IAAI,CAACG,YAAY,CAAC,YAAY,CAAC,KAAK,MAAM,EACvE,OAAOH,IAAI;IACbA,IAAI,GAAGA,IAAI,CAACI,UAAU;EACxB,CAAC,QAAQJ,IAAI,IAAI,IAAI;EACrB,OAAO,IAAI;AACb,CAAC;AAED,eAAeF,uBAAuB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSelectionRange.js","names":["getSelectionRange","selection","document","getSelection","rangeCount","getRangeAt"],"sources":["../../../../src/Editor/utils/getSelectionRange.ts"],"sourcesContent":["const getSelectionRange = (): Range | null => {\n const selection = document.getSelection();\n if (!selection || selection.rangeCount === 0) return null;\n return selection.getRangeAt(0);\n};\n\nexport default getSelectionRange;\n"],"mappings":"AAAA,MAAMA,iBAAiB,GAAGA,CAAA,KAAoB;EAC5C,MAAMC,SAAS,GAAGC,QAAQ,CAACC,YAAY,CAAC,CAAC;EACzC,IAAI,CAACF,SAAS,IAAIA,SAAS,CAACG,UAAU,KAAK,CAAC,EAAE,OAAO,IAAI;EACzD,OAAOH,SAAS,CAACI,UAAU,CAAC,CAAC,CAAC;AAChC,CAAC;AAED,eAAeL,iBAAiB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"setLink.js","names":["EditorState","RichUtils","setLink","editorState","url","containsLink","currentBlockContainsLink","contentState","getCurrentContent","contentStateWithLink","createEntity","entityKey","getLastCreatedEntityKey","nextEditorState","set","currentContent","toggleLink","getSelection"],"sources":["../../../../src/Editor/utils/setLink.ts"],"sourcesContent":["import { EditorState, RichUtils } from 'draft-js';\n\nconst setLink = (editorState: EditorState, url: string): EditorState => {\n const containsLink = RichUtils.currentBlockContainsLink(editorState);\n if (containsLink) return editorState;\n\n const contentState = editorState.getCurrentContent();\n const contentStateWithLink = contentState.createEntity('LINK', 'MUTABLE', {\n url,\n });\n const entityKey = contentStateWithLink.getLastCreatedEntityKey();\n const nextEditorState = EditorState.set(editorState, {\n currentContent: contentStateWithLink,\n });\n return RichUtils.toggleLink(\n nextEditorState,\n nextEditorState.getSelection(),\n entityKey\n );\n};\n\nexport default setLink;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,QAAQ,UAAU;AAEjD,MAAMC,OAAO,GAAGA,CAACC,WAAwB,EAAEC,GAAW,KAAkB;EACtE,MAAMC,YAAY,GAAGJ,SAAS,CAACK,wBAAwB,CAACH,WAAW,CAAC;EACpE,IAAIE,YAAY,EAAE,OAAOF,WAAW;EAEpC,MAAMI,YAAY,GAAGJ,WAAW,CAACK,iBAAiB,CAAC,CAAC;EACpD,MAAMC,oBAAoB,GAAGF,YAAY,CAACG,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE;IACxEN;EACF,CAAC,CAAC;EACF,MAAMO,SAAS,GAAGF,oBAAoB,CAACG,uBAAuB,CAAC,CAAC;EAChE,MAAMC,eAAe,GAAGb,WAAW,CAACc,GAAG,CAACX,WAAW,EAAE;IACnDY,cAAc,EAAEN;EAClB,CAAC,CAAC;EACF,OAAOR,SAAS,CAACe,UAAU,CACzBH,eAAe,EACfA,eAAe,CAACI,YAAY,CAAC,CAAC,EAC9BN,SACF,CAAC;AACH,CAAC;AAED,eAAeT,OAAO","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformers.js","names":["editorStateToFirstParagraph","editorState","firstUnstyledBlock","getCurrentContent","getBlocksAsArray","find","block","getType","getText","editorStateToMetaDescription","slice","replace","trim"],"sources":["../../../../src/Editor/utils/transformers.ts"],"sourcesContent":["import { EditorState } from 'draft-js';\n\nexport const editorStateToFirstParagraph = (\n editorState: EditorState\n): string => {\n const firstUnstyledBlock = editorState\n .getCurrentContent()\n .getBlocksAsArray()\n .find((block) => block.getType() === 'unstyled');\n\n return firstUnstyledBlock ? firstUnstyledBlock.getText() : '';\n};\n\nexport const editorStateToMetaDescription = (\n editorState: EditorState\n): string =>\n editorStateToFirstParagraph(editorState)\n .slice(0, 200)\n .replace(/^(.*[.?!])(.*)/, '$1')\n .trim();\n"],"mappings":"AAEA,OAAO,MAAMA,2BAA2B,GACtCC,WAAwB,IACb;EACX,MAAMC,kBAAkB,GAAGD,WAAW,CACnCE,iBAAiB,CAAC,CAAC,CACnBC,gBAAgB,CAAC,CAAC,CAClBC,IAAI,CAAEC,KAAK,IAAKA,KAAK,CAACC,OAAO,CAAC,CAAC,KAAK,UAAU,CAAC;EAElD,OAAOL,kBAAkB,GAAGA,kBAAkB,CAACM,OAAO,CAAC,CAAC,GAAG,EAAE;AAC/D,CAAC;AAED,OAAO,MAAMC,4BAA4B,GACvCR,WAAwB,IAExBD,2BAA2B,CAACC,WAAW,CAAC,CACrCS,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CACbC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAC/BC,IAAI,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unsetLink.js","names":["RichUtils","unsetLink","editorState","containsLink","currentBlockContainsLink","selectionState","getSelection","toggleLink"],"sources":["../../../../src/Editor/utils/unsetLink.ts"],"sourcesContent":["import { EditorState, RichUtils } from 'draft-js';\n\nconst unsetLink = (editorState: EditorState): EditorState => {\n const containsLink = RichUtils.currentBlockContainsLink(editorState);\n if (!containsLink) return editorState;\n\n const selectionState = editorState.getSelection();\n return RichUtils.toggleLink(editorState, selectionState, null);\n};\n\nexport default unsetLink;\n"],"mappings":"AAAA,SAAsBA,SAAS,QAAQ,UAAU;AAEjD,MAAMC,SAAS,GAAIC,WAAwB,IAAkB;EAC3D,MAAMC,YAAY,GAAGH,SAAS,CAACI,wBAAwB,CAACF,WAAW,CAAC;EACpE,IAAI,CAACC,YAAY,EAAE,OAAOD,WAAW;EAErC,MAAMG,cAAc,GAAGH,WAAW,CAACI,YAAY,CAAC,CAAC;EACjD,OAAON,SAAS,CAACO,UAAU,CAACL,WAAW,EAAEG,cAAc,EAAE,IAAI,CAAC;AAChE,CAAC;AAED,eAAeJ,SAAS","ignoreList":[]}
@@ -1,17 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import styled from '@emotion/styled';
3
- import { InputSkeleton } from '@os-design/core';
4
- import React, { forwardRef } from 'react';
5
- const StyledEditorSkeleton = styled(InputSkeleton)`
6
- height: ${p => p.theme.editorMinHeight}em;
7
- `;
8
-
9
- /**
10
- * Provides an editor placeholder while a user waits for the content to load.
11
- */
12
- const EditorSkeleton = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React.createElement(StyledEditorSkeleton, _extends({}, props, {
13
- ref: ref
14
- })));
15
- EditorSkeleton.displayName = 'EditorSkeleton';
16
- export default EditorSkeleton;
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["styled","InputSkeleton","React","forwardRef","StyledEditorSkeleton","p","theme","editorMinHeight","EditorSkeleton","props","ref","createElement","_extends","displayName"],"sources":["../../../src/EditorSkeleton/index.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport { InputSkeleton, InputSkeletonProps } from '@os-design/core';\nimport React, { forwardRef } from 'react';\n\nexport type EditorSkeletonProps = InputSkeletonProps;\n\nconst StyledEditorSkeleton = styled(InputSkeleton)`\n height: ${(p) => p.theme.editorMinHeight}em;\n`;\n\n/**\n * Provides an editor placeholder while a user waits for the content to load.\n */\nconst EditorSkeleton = forwardRef<HTMLDivElement, EditorSkeletonProps>(\n (props, ref) => <StyledEditorSkeleton {...props} ref={ref} />\n);\n\nEditorSkeleton.displayName = 'EditorSkeleton';\n\nexport default EditorSkeleton;\n"],"mappings":";AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,aAAa,QAA4B,iBAAiB;AACnE,OAAOC,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAIzC,MAAMC,oBAAoB,GAAGJ,MAAM,CAACC,aAAa,CAAC;AAClD,YAAaI,CAAC,IAAKA,CAAC,CAACC,KAAK,CAACC,eAAe;AAC1C,CAAC;;AAED;AACA;AACA;AACA,MAAMC,cAAc,gBAAGL,UAAU,CAC/B,CAACM,KAAK,EAAEC,GAAG,kBAAKR,KAAA,CAAAS,aAAA,CAACP,oBAAoB,EAAAQ,QAAA,KAAKH,KAAK;EAAEC,GAAG,EAAEA;AAAI,EAAE,CAC9D,CAAC;AAEDF,cAAc,CAACK,WAAW,GAAG,gBAAgB;AAE7C,eAAeL,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["default","Editor","addNewBlockAt","changeBlock","createContentEditorState","createDecorator","createEmptyEditorState","defaultStyleToolbarItems","getCurrentBlock","imageBlock","videoBlock","EditorSkeleton"],"sources":["../../src/index.ts"],"sourcesContent":["export { default as Editor } from './Editor';\nexport { default as addNewBlockAt } from './Editor/utils/addNewBlockAt';\nexport { default as changeBlock } from './Editor/utils/changeBlock';\nexport { default as createContentEditorState } from './Editor/utils/createContentEditorState';\nexport { default as createDecorator } from './Editor/utils/createDecorator';\nexport { default as createEmptyEditorState } from './Editor/utils/createEmptyEditorState';\nexport { default as defaultStyleToolbarItems } from './Editor/utils/defaultStyleToolbarItems';\nexport { default as getCurrentBlock } from './Editor/utils/getCurrentBlock';\nexport { default as imageBlock } from './Editor/blocks/imageBlock';\nexport { default as videoBlock } from './Editor/blocks/videoBlock';\nexport { default as EditorSkeleton } from './EditorSkeleton';\n\nexport * from './Editor';\nexport * from './Editor/utils/transformers';\nexport * from './Editor/blocks/types';\nexport * from './EditorSkeleton';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,MAAM,QAAQ,UAAU;AAC5C,SAASD,OAAO,IAAIE,aAAa,QAAQ,8BAA8B;AACvE,SAASF,OAAO,IAAIG,WAAW,QAAQ,4BAA4B;AACnE,SAASH,OAAO,IAAII,wBAAwB,QAAQ,yCAAyC;AAC7F,SAASJ,OAAO,IAAIK,eAAe,QAAQ,gCAAgC;AAC3E,SAASL,OAAO,IAAIM,sBAAsB,QAAQ,uCAAuC;AACzF,SAASN,OAAO,IAAIO,wBAAwB,QAAQ,yCAAyC;AAC7F,SAASP,OAAO,IAAIQ,eAAe,QAAQ,gCAAgC;AAC3E,SAASR,OAAO,IAAIS,UAAU,QAAQ,4BAA4B;AAClE,SAAST,OAAO,IAAIU,UAAU,QAAQ,4BAA4B;AAClE,SAASV,OAAO,IAAIW,cAAc,QAAQ,kBAAkB;AAE5D,cAAc,UAAU;AACxB,cAAc,6BAA6B;AAC3C,cAAc,uBAAuB;AACrC,cAAc,kBAAkB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockToolbar.d.ts","sourceRoot":"","sources":["../../../src/Editor/BlockToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC;IAChE,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8B7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StyleToolbar.d.ts","sourceRoot":"","sources":["../../../src/Editor/StyleToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAa,MAAM,UAAU,CAAC;AAClD,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAIpE,UAAU,iBAAkB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC;IAChE,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0D7C,CAAC;AAIF,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/Editor/Toolbar.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,OAAO;;UASZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/Editor/ToolbarButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,cAAc,GAAG,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AACtD,UAAU,kBAAmB,SAAQ,cAAc;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAqCD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAW/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Figure.d.ts","sourceRoot":"","sources":["../../../../src/Editor/blocks/Figure.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;SAQqV,MAAO,WAAW;mGALlX,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FigureCaption.d.ts","sourceRoot":"","sources":["../../../../src/Editor/blocks/FigureCaption.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,aAAa;;SAgBiD,MAAO,WAAW;mGALrF,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"imageBlock.d.ts","sourceRoot":"","sources":["../../../../src/Editor/blocks/imageBlock.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAc,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA2FvD,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAE1C,QAAA,MAAM,UAAU,kBACC,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,KAC7C,gBAgDD,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Editor/blocks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACrD,KAAK,EAAE,YAAY,CAAC;CACrB;AAGD,MAAM,WAAW,4BAA6B,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACvE,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAChC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;CACxD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"videoBlock.d.ts","sourceRoot":"","sources":["../../../../src/Editor/blocks/videoBlock.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAc,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAkDvD,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAE1C,QAAA,MAAM,UAAU,EAAE,gBAmBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,4 +0,0 @@
1
- import { DraftDecorator } from 'draft-js';
2
- declare const linkDecorator: DraftDecorator;
3
- export default linkDecorator;
4
- //# sourceMappingURL=linkDecorator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkDecorator.d.ts","sourceRoot":"","sources":["../../../../src/Editor/decorators/linkDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,QAAA,MAAM,aAAa,EAAE,cAcpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBlockToolbarProps.d.ts","sourceRoot":"","sources":["../../../../src/Editor/hooks/useBlockToolbarProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,IAAI;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,uBAAuB;IAC/B,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAKD,QAAA,MAAM,oBAAoB,UACjB,WAAW,QACZ,OAAO,KACZ,uBA+CF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePastedTextHandler.d.ts","sourceRoot":"","sources":["../../../../src/Editor/hooks/usePastedTextHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,gBAAgB,EAE/B,WAAW,EAGZ,MAAM,UAAU,CAAC;AAGlB,KAAK,uBAAuB,GAAG,OAAO,CACpC,gBAAgB,CAAC,kBAAkB,CAAC,EACpC,SAAS,CACV,CAAC;AAKF,QAAA,MAAM,oBAAoB,aACd,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,WAC7B,uBAAuB,KAC/B,uBAwBA,CAAC;AAEJ,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useReturnHandler.d.ts","sourceRoot":"","sources":["../../../../src/Editor/hooks/useReturnHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKxE,KAAK,mBAAmB,GAAG,WAAW,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;AAKzE,QAAA,MAAM,gBAAgB,aACV,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,WAC7B,mBAAmB,KAC3B,mBAqBA,CAAC;AAEJ,eAAe,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStyleToolbarProps.d.ts","sourceRoot":"","sources":["../../../../src/Editor/hooks/useStyleToolbarProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAa,MAAM,UAAU,CAAC;AAIlD,UAAU,IAAI;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,uBAAuB;IAC/B,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAKD,QAAA,MAAM,oBAAoB,UAAW,WAAW,KAAG,uBA+BlD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,16 +0,0 @@
1
- import { WithSize } from '@os-design/styles';
2
- import { Editor as DraftEditor, EditorProps as DraftEditorProps, EditorState } from 'draft-js';
3
- import React from 'react';
4
- import { BlockToolbarItem } from './blocks/types';
5
- import { StyleToolbarItem } from './utils/defaultStyleToolbarItems';
6
- export interface EditorProps extends Omit<DraftEditorProps, 'editorState' | 'onChange'>, WithSize {
7
- disabled?: boolean;
8
- styleToolbarItems?: StyleToolbarItem[];
9
- blockToolbarItems?: BlockToolbarItem[];
10
- value?: EditorState;
11
- defaultValue?: EditorState;
12
- onChange?: (value: EditorState) => void;
13
- }
14
- declare const Editor: React.ForwardRefExoticComponent<EditorProps & React.RefAttributes<DraftEditor>>;
15
- export default Editor;
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Editor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EACL,MAAM,IAAI,WAAW,EACrB,WAAW,IAAI,gBAAgB,EAC/B,WAAW,EACZ,MAAM,UAAU,CAAC;AAClB,OAAO,KAA4C,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQlD,OAAiC,EAC/B,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,gBAAgB,EAAE,aAAa,GAAG,UAAU,CAAC,EACxD,QAAQ;IAKV,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAKvC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAKvC,KAAK,CAAC,EAAE,WAAW,CAAC;IAKpB,YAAY,CAAC,EAAE,WAAW,CAAC;IAK3B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC;AAwBD,QAAA,MAAM,MAAM,iFAiHX,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const defaultDraftJsStyles: import("@emotion/react").SerializedStyles;
2
- export default defaultDraftJsStyles;
3
- //# sourceMappingURL=defaultDraftJsStyles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultDraftJsStyles.d.ts","sourceRoot":"","sources":["../../../../src/Editor/styles/defaultDraftJsStyles.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,oBAAoB,2CA0KzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"overrideDraftJsStyles.d.ts","sourceRoot":"","sources":["../../../../src/Editor/styles/overrideDraftJsStyles.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,qBAAqB,uDAa1B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"addNewBlockAt.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/addNewBlockAt.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,WAAW,EAAU,MAAM,UAAU,CAAC;AAG3E,QAAA,MAAM,aAAa,gBACJ,WAAW,iBACT,MAAM,wBAEf,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACxB,WAgDF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"changeBlock.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/changeBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,WAAW,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,WAAW,gBACF,WAAW,SACjB,YAAY,QACb,MAAM,SACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACxB,WAUF,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createContentEditorState.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/createContentEditorState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGrD,QAAA,MAAM,wBAAwB,iBAAkB,YAAY,KAAG,WACC,CAAC;AAEjE,eAAe,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createDecorator.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/createDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG9C,QAAA,MAAM,eAAe,QAAO,kBACa,CAAC;AAE1C,eAAe,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEmptyEditorState.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/createEmptyEditorState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,sBAAsB,QAAO,WACS,CAAC;AAE7C,eAAe,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultStyleToolbarItems.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/defaultStyleToolbarItems.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAMD,QAAA,MAAM,wBAAwB,EAAE,gBAAgB,EAO/C,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrentBlock.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/getCurrentBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAErD,QAAA,MAAM,eAAe,gBAAiB,WAAW,KAAG,YAInD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSelectedBlockElement.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/getSelectedBlockElement.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,uBAAuB,QAAO,OAAO,GAAG,IAY7C,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSelectionRange.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/getSelectionRange.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB,QAAO,KAAK,GAAG,IAIrC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"setLink.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/setLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAa,MAAM,UAAU,CAAC;AAElD,QAAA,MAAM,OAAO,gBAAiB,WAAW,OAAO,MAAM,KAAG,WAiBxD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/transformers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,2BAA2B,gBACzB,WAAW,KACvB,MAOF,CAAC;AAEF,eAAO,MAAM,4BAA4B,gBAC1B,WAAW,KACvB,MAIQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unsetLink.d.ts","sourceRoot":"","sources":["../../../../src/Editor/utils/unsetLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAa,MAAM,UAAU,CAAC;AAElD,QAAA,MAAM,SAAS,gBAAiB,WAAW,KAAG,WAM7C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,6 +0,0 @@
1
- import { InputSkeletonProps } from '@os-design/core';
2
- import React from 'react';
3
- export type EditorSkeletonProps = InputSkeletonProps;
4
- declare const EditorSkeleton: React.ForwardRefExoticComponent<Omit<import("@os-design/core").SkeletonProps, "width"> & import("@os-design/styles").WithSize & React.RefAttributes<HTMLDivElement>>;
5
- export default EditorSkeleton;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EditorSkeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AASrD,QAAA,MAAM,cAAc,sKAEnB,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE7D,cAAc,UAAU,CAAC;AACzB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
File without changes
File without changes
File without changes