@jpmorganchase/mosaic-content-editor-plugin 0.1.0-beta.9

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 (249) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/README.md +7 -0
  3. package/dist/api/save.d.ts +5 -0
  4. package/dist/api/save.js +1 -0
  5. package/dist/chunk-3FJGHVH5.js +1 -0
  6. package/dist/chunk-3TDCKWYF.js +1 -0
  7. package/dist/chunk-57FSKQGH.js +1 -0
  8. package/dist/chunk-5GT4QAIQ.js +1 -0
  9. package/dist/chunk-6TM3EYFS.js +1 -0
  10. package/dist/chunk-76US6CXQ.js +1 -0
  11. package/dist/chunk-A6ZSQMSC.js +1 -0
  12. package/dist/chunk-ACFFLNAA.js +1 -0
  13. package/dist/chunk-BTI67NTQ.js +1 -0
  14. package/dist/chunk-FCCNBA44.js +1 -0
  15. package/dist/chunk-FGP7KEKC.js +1 -0
  16. package/dist/chunk-FI57IKHZ.js +1 -0
  17. package/dist/chunk-FM63P66J.js +1 -0
  18. package/dist/chunk-GR3B6XH6.js +1 -0
  19. package/dist/chunk-HL7D7RIZ.js +1 -0
  20. package/dist/chunk-HROTQ6LG.js +1 -0
  21. package/dist/chunk-I3Z6UENR.js +1 -0
  22. package/dist/chunk-IO4745QD.js +1 -0
  23. package/dist/chunk-IXKHPWRK.js +1 -0
  24. package/dist/chunk-JKQCT2R7.js +1 -0
  25. package/dist/chunk-JQUDHJIQ.js +1 -0
  26. package/dist/chunk-JVJ4H6LB.js +1 -0
  27. package/dist/chunk-JX5HLHOC.js +1 -0
  28. package/dist/chunk-KMK5XOLZ.js +1 -0
  29. package/dist/chunk-KYX7ZWMX.js +1 -0
  30. package/dist/chunk-LOZ4MGDL.js +1 -0
  31. package/dist/chunk-M5W2GPOK.js +1 -0
  32. package/dist/chunk-MXR5SEUG.js +1 -0
  33. package/dist/chunk-N3NO7L4H.js +1 -0
  34. package/dist/chunk-NXV7KCC5.js +1 -0
  35. package/dist/chunk-OFDMXZXG.js +1 -0
  36. package/dist/chunk-P3NF2XWE.js +1 -0
  37. package/dist/chunk-P5OBPOC4.js +0 -0
  38. package/dist/chunk-PPEVCQGG.js +1 -0
  39. package/dist/chunk-RHRDHZ4F.js +1 -0
  40. package/dist/chunk-RN54LVW4.js +1 -0
  41. package/dist/chunk-T2M7535Y.js +1 -0
  42. package/dist/chunk-UA5IM6NC.js +1 -0
  43. package/dist/chunk-UVZXP5EW.js +1 -0
  44. package/dist/chunk-UXLYVZ46.js +1 -0
  45. package/dist/chunk-V5Z3VNEW.js +1 -0
  46. package/dist/chunk-W44IYDHL.js +1 -0
  47. package/dist/chunk-WBUBW4PH.js +2 -0
  48. package/dist/chunk-WHPZZWKO.js +1 -0
  49. package/dist/chunk-WQSFQBP7.js +1 -0
  50. package/dist/chunk-WXWEGQ2Z.js +1 -0
  51. package/dist/chunk-XX4EWSFM.js +1 -0
  52. package/dist/chunk-YPBKG7ME.js +1 -0
  53. package/dist/chunk-ZCWG7UN7.js +1 -0
  54. package/dist/chunk-ZF6MK5QB.js +1 -0
  55. package/dist/chunk-ZK6NLAGG.js +1 -0
  56. package/dist/components/ActionMenu/ActionMenu.css.css +1 -0
  57. package/dist/components/ActionMenu/ActionMenu.css.d.ts +4 -0
  58. package/dist/components/ActionMenu/ActionMenu.css.js +1 -0
  59. package/dist/components/ActionMenu/ActionMenu.d.ts +10 -0
  60. package/dist/components/ActionMenu/ActionMenu.js +1 -0
  61. package/dist/components/ContentEditor.d.ts +3 -0
  62. package/dist/components/ContentEditor.js +1 -0
  63. package/dist/components/Editor.css +1 -0
  64. package/dist/components/Editor.css.css +1 -0
  65. package/dist/components/Editor.css.d.ts +10 -0
  66. package/dist/components/Editor.css.js +1 -0
  67. package/dist/components/Editor.d.ts +14 -0
  68. package/dist/components/Editor.js +1 -0
  69. package/dist/components/EditorControls.css +1 -0
  70. package/dist/components/EditorControls.css.css +1 -0
  71. package/dist/components/EditorControls.css.d.ts +4 -0
  72. package/dist/components/EditorControls.css.js +1 -0
  73. package/dist/components/EditorControls.d.ts +4 -0
  74. package/dist/components/EditorControls.js +1 -0
  75. package/dist/components/LinkEditor/EditLinkButton.d.ts +3 -0
  76. package/dist/components/LinkEditor/EditLinkButton.js +1 -0
  77. package/dist/components/LinkEditor/LinkEditor.css +1 -0
  78. package/dist/components/LinkEditor/LinkEditor.css.css +1 -0
  79. package/dist/components/LinkEditor/LinkEditor.css.d.ts +4 -0
  80. package/dist/components/LinkEditor/LinkEditor.css.js +1 -0
  81. package/dist/components/LinkEditor/LinkEditor.d.ts +2 -0
  82. package/dist/components/LinkEditor/LinkEditor.js +1 -0
  83. package/dist/components/LinkEditor/SaveAdornment.d.ts +7 -0
  84. package/dist/components/LinkEditor/SaveAdornment.js +1 -0
  85. package/dist/components/PersistEditDialog/PersistStatus.css +1 -0
  86. package/dist/components/PersistEditDialog/PersistStatus.css.css +1 -0
  87. package/dist/components/PersistEditDialog/PersistStatus.css.d.ts +7 -0
  88. package/dist/components/PersistEditDialog/PersistStatus.css.js +1 -0
  89. package/dist/components/PersistEditDialog/PersistStatus.d.ts +7 -0
  90. package/dist/components/PersistEditDialog/PersistStatus.js +1 -0
  91. package/dist/components/PersistEditDialog/index.css +1 -0
  92. package/dist/components/PersistEditDialog/index.d.ts +4 -0
  93. package/dist/components/PersistEditDialog/index.js +1 -0
  94. package/dist/components/Popper/Popper.css +1 -0
  95. package/dist/components/Popper/Popper.css.css +1 -0
  96. package/dist/components/Popper/Popper.css.d.ts +5 -0
  97. package/dist/components/Popper/Popper.css.js +1 -0
  98. package/dist/components/Popper/Popper.d.ts +11 -0
  99. package/dist/components/Popper/Popper.js +1 -0
  100. package/dist/components/SaveButton.d.ts +2 -0
  101. package/dist/components/SaveButton.js +1 -0
  102. package/dist/components/ScrollableSection/ScrollableSection.css +1 -0
  103. package/dist/components/ScrollableSection/ScrollableSection.css.css +1 -0
  104. package/dist/components/ScrollableSection/ScrollableSection.css.d.ts +4 -0
  105. package/dist/components/ScrollableSection/ScrollableSection.css.js +1 -0
  106. package/dist/components/ScrollableSection/ScrollableSection.d.ts +7 -0
  107. package/dist/components/ScrollableSection/ScrollableSection.js +1 -0
  108. package/dist/components/StatusBanner.d.ts +3 -0
  109. package/dist/components/StatusBanner.js +1 -0
  110. package/dist/components/Toolbar/InsertBlockDropdown.d.ts +6 -0
  111. package/dist/components/Toolbar/InsertBlockDropdown.js +1 -0
  112. package/dist/components/Toolbar/InsertHorizontalRule.d.ts +2 -0
  113. package/dist/components/Toolbar/InsertHorizontalRule.js +1 -0
  114. package/dist/components/Toolbar/InsertImage.css +1 -0
  115. package/dist/components/Toolbar/InsertImage.css.css +1 -0
  116. package/dist/components/Toolbar/InsertImage.css.d.ts +4 -0
  117. package/dist/components/Toolbar/InsertImage.css.js +1 -0
  118. package/dist/components/Toolbar/InsertImage.d.ts +2 -0
  119. package/dist/components/Toolbar/InsertImage.js +1 -0
  120. package/dist/components/Toolbar/InsertLink.css +1 -0
  121. package/dist/components/Toolbar/InsertLink.css.css +1 -0
  122. package/dist/components/Toolbar/InsertLink.css.d.ts +4 -0
  123. package/dist/components/Toolbar/InsertLink.css.js +1 -0
  124. package/dist/components/Toolbar/InsertLink.d.ts +3 -0
  125. package/dist/components/Toolbar/InsertLink.js +1 -0
  126. package/dist/components/Toolbar/InsertTable.css +1 -0
  127. package/dist/components/Toolbar/InsertTable.css.css +1 -0
  128. package/dist/components/Toolbar/InsertTable.css.d.ts +13 -0
  129. package/dist/components/Toolbar/InsertTable.css.js +1 -0
  130. package/dist/components/Toolbar/InsertTable.d.ts +10 -0
  131. package/dist/components/Toolbar/InsertTable.js +1 -0
  132. package/dist/components/Toolbar/TextFormatToolbarButton.css +1 -0
  133. package/dist/components/Toolbar/TextFormatToolbarButton.css.css +1 -0
  134. package/dist/components/Toolbar/TextFormatToolbarButton.css.d.ts +5 -0
  135. package/dist/components/Toolbar/TextFormatToolbarButton.css.js +1 -0
  136. package/dist/components/Toolbar/TextFormatToolbarButton.d.ts +7 -0
  137. package/dist/components/Toolbar/TextFormatToolbarButton.js +1 -0
  138. package/dist/components/Toolbar/TextFormatTooltray.css +1 -0
  139. package/dist/components/Toolbar/TextFormatTooltray.css.css +1 -0
  140. package/dist/components/Toolbar/TextFormatTooltray.css.d.ts +8 -0
  141. package/dist/components/Toolbar/TextFormatTooltray.css.js +1 -0
  142. package/dist/components/Toolbar/TextFormatTooltray.d.ts +4 -0
  143. package/dist/components/Toolbar/TextFormatTooltray.js +1 -0
  144. package/dist/components/Toolbar/Toolbar.css +1 -0
  145. package/dist/components/Toolbar/Toolbar.d.ts +3 -0
  146. package/dist/components/Toolbar/Toolbar.js +1 -0
  147. package/dist/hooks/useEditHistory.d.ts +6 -0
  148. package/dist/hooks/useEditHistory.js +1 -0
  149. package/dist/index.css +1 -0
  150. package/dist/index.d.ts +4 -0
  151. package/dist/index.js +1 -0
  152. package/dist/nodes/index.d.ts +8 -0
  153. package/dist/nodes/index.js +1 -0
  154. package/dist/plugins/FloatingToolbarPlugin.css +1 -0
  155. package/dist/plugins/FloatingToolbarPlugin.d.ts +2 -0
  156. package/dist/plugins/FloatingToolbarPlugin.js +1 -0
  157. package/dist/plugins/HorizontalRulePlugin.d.ts +1 -0
  158. package/dist/plugins/HorizontalRulePlugin.js +1 -0
  159. package/dist/plugins/MarkdownImagePlugin.d.ts +7 -0
  160. package/dist/plugins/MarkdownImagePlugin.js +1 -0
  161. package/dist/plugins/MarkdownLinkPlugin.css +1 -0
  162. package/dist/plugins/MarkdownLinkPlugin.d.ts +8 -0
  163. package/dist/plugins/MarkdownLinkPlugin.js +1 -0
  164. package/dist/plugins/PreviewPlugin.css +1 -0
  165. package/dist/plugins/PreviewPlugin.d.ts +5 -0
  166. package/dist/plugins/PreviewPlugin.js +1 -0
  167. package/dist/plugins/TableActionMenuPlugin.css +1 -0
  168. package/dist/plugins/TableActionMenuPlugin.css.css +1 -0
  169. package/dist/plugins/TableActionMenuPlugin.css.d.ts +60 -0
  170. package/dist/plugins/TableActionMenuPlugin.css.js +1 -0
  171. package/dist/plugins/TableActionMenuPlugin.d.ts +2 -0
  172. package/dist/plugins/TableActionMenuPlugin.js +1 -0
  173. package/dist/store/index.d.ts +38 -0
  174. package/dist/store/index.js +1 -0
  175. package/dist/theme/index.css +1 -0
  176. package/dist/theme/index.css.css +1 -0
  177. package/dist/theme/index.css.d.ts +15 -0
  178. package/dist/theme/index.css.js +1 -0
  179. package/dist/theme/index.d.ts +3 -0
  180. package/dist/theme/index.js +1 -0
  181. package/dist/transformers/horizontalRule.d.ts +2 -0
  182. package/dist/transformers/horizontalRule.js +1 -0
  183. package/dist/transformers/index.d.ts +2 -0
  184. package/dist/transformers/index.js +1 -0
  185. package/dist/transformers/link.d.ts +2 -0
  186. package/dist/transformers/link.js +1 -0
  187. package/dist/transformers/tableRule.d.ts +2 -0
  188. package/dist/transformers/tableRule.js +1 -0
  189. package/dist/utils/getSelectedNode.d.ts +2 -0
  190. package/dist/utils/getSelectedNode.js +1 -0
  191. package/package.json +54 -0
  192. package/src/api/save.ts +12 -0
  193. package/src/components/ActionMenu/ActionMenu.css.ts +9 -0
  194. package/src/components/ActionMenu/ActionMenu.tsx +28 -0
  195. package/src/components/ContentEditor.tsx +12 -0
  196. package/src/components/Editor.css.ts +64 -0
  197. package/src/components/Editor.tsx +143 -0
  198. package/src/components/EditorControls.css.ts +9 -0
  199. package/src/components/EditorControls.tsx +31 -0
  200. package/src/components/LinkEditor/EditLinkButton.tsx +9 -0
  201. package/src/components/LinkEditor/LinkEditor.css.ts +15 -0
  202. package/src/components/LinkEditor/LinkEditor.tsx +136 -0
  203. package/src/components/LinkEditor/SaveAdornment.tsx +16 -0
  204. package/src/components/PersistEditDialog/PersistStatus.css.ts +21 -0
  205. package/src/components/PersistEditDialog/PersistStatus.tsx +78 -0
  206. package/src/components/PersistEditDialog/__tests__/handlers.ts +9 -0
  207. package/src/components/PersistEditDialog/__tests__/index.test.tsx +93 -0
  208. package/src/components/PersistEditDialog/index.tsx +114 -0
  209. package/src/components/Popper/Popper.css.ts +12 -0
  210. package/src/components/Popper/Popper.tsx +31 -0
  211. package/src/components/SaveButton.tsx +23 -0
  212. package/src/components/ScrollableSection/ScrollableSection.css.ts +10 -0
  213. package/src/components/ScrollableSection/ScrollableSection.tsx +20 -0
  214. package/src/components/StatusBanner.tsx +16 -0
  215. package/src/components/Toolbar/InsertBlockDropdown.tsx +134 -0
  216. package/src/components/Toolbar/InsertHorizontalRule.tsx +18 -0
  217. package/src/components/Toolbar/InsertImage.css.ts +7 -0
  218. package/src/components/Toolbar/InsertImage.tsx +132 -0
  219. package/src/components/Toolbar/InsertLink.css.ts +7 -0
  220. package/src/components/Toolbar/InsertLink.tsx +145 -0
  221. package/src/components/Toolbar/InsertTable.css.ts +46 -0
  222. package/src/components/Toolbar/InsertTable.tsx +190 -0
  223. package/src/components/Toolbar/TextFormatToolbarButton.css.ts +10 -0
  224. package/src/components/Toolbar/TextFormatToolbarButton.tsx +29 -0
  225. package/src/components/Toolbar/TextFormatTooltray.css.ts +27 -0
  226. package/src/components/Toolbar/TextFormatTooltray.tsx +118 -0
  227. package/src/components/Toolbar/Toolbar.tsx +47 -0
  228. package/src/components/__tests__/EditorControls.test.tsx +69 -0
  229. package/src/components/__tests__/StatusBanner.test.tsx +33 -0
  230. package/src/hooks/useEditHistory.ts +49 -0
  231. package/src/index.ts +5 -0
  232. package/src/nodes/index.ts +23 -0
  233. package/src/plugins/FloatingToolbarPlugin.tsx +100 -0
  234. package/src/plugins/HorizontalRulePlugin.tsx +39 -0
  235. package/src/plugins/MarkdownImagePlugin.tsx +58 -0
  236. package/src/plugins/MarkdownLinkPlugin.tsx +69 -0
  237. package/src/plugins/PreviewPlugin.tsx +46 -0
  238. package/src/plugins/TableActionMenuPlugin.css.ts +29 -0
  239. package/src/plugins/TableActionMenuPlugin.tsx +278 -0
  240. package/src/store/__tests__/index.test.ts +171 -0
  241. package/src/store/index.ts +84 -0
  242. package/src/theme/index.css.ts +39 -0
  243. package/src/theme/index.ts +22 -0
  244. package/src/transformers/horizontalRule.ts +25 -0
  245. package/src/transformers/index.ts +6 -0
  246. package/src/transformers/link.ts +3 -0
  247. package/src/transformers/tableRule.ts +193 -0
  248. package/src/utils/getSelectedNode.ts +16 -0
  249. package/tsconfig.json +8 -0
@@ -0,0 +1,4 @@
1
+ @jpmorganchase/mosaic-content-editor-plugin:build: cache hit, replaying output 7e5cd3aa77e586d8
2
+ @jpmorganchase/mosaic-content-editor-plugin:build: $ npm-run-all --parallel build:*
3
+ @jpmorganchase/mosaic-content-editor-plugin:build: $ node ../../scripts/bundle.js
4
+ @jpmorganchase/mosaic-content-editor-plugin:build: $ tsc
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Mosaic Plugin Content Editor
2
+
3
+ `@jpmorganchase/mosaic-content-editor-plugin` is a Mosaic plugin which supports editing Markdown documents within the browser'
4
+
5
+ ## Installation
6
+
7
+ `yarn add @jpmorganchase/mosaic-content-editor-plugin`
@@ -0,0 +1,5 @@
1
+ export declare function save(user: {
2
+ sid: string;
3
+ name: string;
4
+ email: string;
5
+ }, route: string, markdown: string): Promise<Response>;
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-FI57IKHZ.js";import"../chunk-XX4EWSFM.js";export{a as save};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-JQUDHJIQ.js";var l={paragraph:e.paragraph,quote:e.quote,link:e.link,table:e.table,tableCell:e.tableCell,tableCellHeader:e.tableHeader,tableRow:e.tableRow,text:{bold:e.bold,italic:e.italic,strikethrough:e.strikeThrough,underline:e.underline,underlineStrikethrough:e.underlineStrikeThrough}},r=l;export{r as a};
@@ -0,0 +1 @@
1
+ import{$createHorizontalRuleNode as o,$isHorizontalRuleNode as r,HorizontalRuleNode as i}from"@lexical/react/LexicalHorizontalRuleNode";var n={dependencies:[i],export:e=>r(e)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:e=>{let l=o();e.getNextSibling()!=null?e.replace(l):e.insertBefore(l),l.selectNext()},type:"element"};export{n as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-XX4EWSFM.js";import t from"react";import{Button as m,Icon as r}from"@jpmorganchase/mosaic-components";var c=n=>t.createElement(m,o({},n),t.createElement(r,{name:"edit"}));export{c as a};
@@ -0,0 +1 @@
1
+ import{useCallback as t,useEffect as m,useState as n}from"react";import{useLexicalComposerContext as l}from"@lexical/react/LexicalComposerContext";import{CAN_REDO_COMMAND as f,CAN_UNDO_COMMAND as u,REDO_COMMAND as M,UNDO_COMMAND as O,COMMAND_PRIORITY_CRITICAL as r}from"lexical";import{mergeRegister as p}from"@lexical/utils";function R(){let[e]=l(),[a,s]=n(!1),[i,d]=n(!1);m(()=>p(e.registerCommand(u,o=>(s(o),!1),r),e.registerCommand(f,o=>(d(o),!1),r)),[e]);let C=t(()=>e.dispatchCommand(O,void 0),[e]),c=t(()=>e.dispatchCommand(M,void 0),[e]);return{canRedo:i,canUndo:a,undoEdit:C,redoEdit:c}}export{R as a};
@@ -0,0 +1 @@
1
+ var p={step:"_1w4kk0j0",stepActive:"_1w4kk0j1",stepComplete:"_1w4kk0j2",stepText:"_1w4kk0j3"};export{p as a};
@@ -0,0 +1 @@
1
+ import{a as r,b as i}from"./chunk-XX4EWSFM.js";import{useCallback as s}from"react";import o from"zustand";var a={pageState:"VIEW",user:void 0,previewContent:void 0,errorMessage:void 0,isInsertingLink:!1},n=o(e=>i(r({},a),{setPageState:t=>e({pageState:t}),startEditing:()=>e(i(r({},a),{pageState:"EDIT"})),stopEditing:()=>e({pageState:a.pageState}),setPreviewContent:t=>e({pageState:"EDIT",previewContent:t,errorMessage:void 0}),setErrorMessage:t=>e({errorMessage:t,pageState:"ERROR"}),setUser:t=>e({user:t}),setIsInsertingLink:t=>e({isInsertingLink:t})})),d=()=>n(s(e=>e.previewContent,[])),S=()=>n(s(e=>e.setPreviewContent,[])),I=()=>n(s(e=>({pageState:e.pageState,setPageState:e.setPageState,errorMessage:e.errorMessage,setErrorMessage:e.setErrorMessage}),[])),E=()=>n(s(e=>({user:e.user,setUser:e.setUser}),[])),u=()=>n(s(e=>({isInsertingLink:e.isInsertingLink,setIsInsertingLink:e.setIsInsertingLink}),[])),v=n;export{d as a,S as b,I as c,E as d,u as e,v as f};
@@ -0,0 +1 @@
1
+ import{a as P,b as F,c as z,d as S}from"./chunk-XX4EWSFM.js";function N(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function U(e){return["top","bottom"].includes(N(e))?"x":"y"}function ce(e){return e==="y"?"height":"width"}function X(e){return typeof e!="number"?function(t){return P({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function V(e){return F(P({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t){return S(this,null,function*(){var c;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:o,elements:l,strategy:m}=e,{boundary:a="clippingAncestors",rootBoundary:w="viewport",elementContext:f="floating",altBoundary:s=!1,padding:R=0}=t,d=X(R),y=l[s?f==="floating"?"reference":"floating":f],g=V(yield i.getClippingRect({element:(c=yield i.isElement==null?void 0:i.isElement(y))==null||c?y:y.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:w,strategy:m})),p=V(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?F(P({},o.floating),{x:r,y:n}):o.reference,offsetParent:yield i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating),strategy:m}):o[f]);return{top:g.top-p.top+d.top,bottom:p.bottom-g.bottom+d.bottom,left:g.left-p.left+d.left,right:p.right-g.right+d.right}})}var le=Math.min,ue=Math.max;var se={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e){return e.replace(/left|right|bottom|top/g,t=>se[t])}function ae(e,t,c){c===void 0&&(c=!1);let r=ie(e),n=U(e),i=ce(n),o=n==="x"?r===(c?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=H(o)),{main:o,cross:H(o)}}var fe={start:"end",end:"start"};function q(e){return e.replace(/start|end/g,t=>fe[t])}var de=["top","right","bottom","left"],Ae=de.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);var ge=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(t){return S(this,null,function*(){var c;let{placement:r,middlewareData:n,rects:i,initialPlacement:o,platform:l,elements:m}=t,I=e,{mainAxis:a=!0,crossAxis:w=!0,fallbackPlacements:f,fallbackStrategy:s="bestFit",flipAlignment:R=!0}=I,d=z(I,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),y=N(r),g=f||(y===o||!R?[H(o)]:function(h){let T=H(h);return[q(h),T,q(T)]}(o)),p=[o,...g],x=yield Y(t,d),b=[],v=((c=n.flip)==null?void 0:c.overflows)||[];if(a&&b.push(x[y]),w){let{main:h,cross:T}=ae(r,i,yield l.isRTL==null?void 0:l.isRTL(m.floating));b.push(x[h],x[T])}if(v=[...v,{placement:r,overflows:b}],!b.every(h=>h<=0)){var L,u;let h=((L=(u=n.flip)==null?void 0:u.index)!=null?L:0)+1,T=p[h];if(T)return{data:{index:h,overflows:v},reset:{placement:T}};let C="bottom";switch(s){case"bestFit":{var E;let D=(E=v.map(M=>[M,M.overflows.filter(A=>A>0).reduce((A,oe)=>A+oe,0)]).sort((M,A)=>M[1]-A[1])[0])==null?void 0:E[0].placement;D&&(C=D);break}case"initialPlacement":C=o}if(r!==C)return{reset:{placement:C}}}return{}})}}};var me=function(e){return e===void 0&&(e={}),{name:"inline",options:e,fn(t){return S(this,null,function*(){var c;let{placement:r,elements:n,rects:i,platform:o,strategy:l}=t,{padding:m=2,x:a,y:w}=e,f=V(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:yield o.getOffsetParent==null?void 0:o.getOffsetParent(n.floating),strategy:l}):i.reference),s=(c=yield o.getClientRects==null?void 0:o.getClientRects(n.reference))!=null?c:[],R=X(m),d=yield o.getElementRects({reference:{getBoundingClientRect:function(){var y;if(s.length===2&&s[0].left>s[1].right&&a!=null&&w!=null)return(y=s.find(g=>a>g.left-R.left&&a<g.right+R.right&&w>g.top-R.top&&w<g.bottom+R.bottom))!=null?y:f;if(s.length>=2){if(U(r)==="x"){let u=s[0],E=s[s.length-1],I=N(r)==="top",h=u.top,T=E.bottom,C=I?u.left:E.left,D=I?u.right:E.right;return{top:h,bottom:T,left:C,right:D,width:D-C,height:T-h,x:C,y:h}}let g=N(r)==="left",p=ue(...s.map(u=>u.right)),x=le(...s.map(u=>u.left)),b=s.filter(u=>g?u.left===x:u.right===p),v=b[0].top,L=b[b.length-1].bottom;return{top:v,bottom:L,left:x,right:p,width:p-x,height:L-v,x,y:v}}return f}},floating:n.floating,strategy:l});return i.reference.x!==d.reference.x||i.reference.y!==d.reference.y||i.reference.width!==d.reference.width||i.reference.height!==d.reference.height?{reset:{rects:d}}:{}})}}};function _(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function k(e){if(e==null)return window;if(!_(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function pe(e){return k(e).getComputedStyle(e)}function J(e){return _(e)?"":e?(e.nodeName||"").toLowerCase():""}function he(e){return e instanceof k(e).HTMLElement}function ve(e){return typeof ShadowRoot=="undefined"?!1:e instanceof k(e).ShadowRoot||e instanceof ShadowRoot}function Q(e){let{overflow:t,overflowX:c,overflowY:r}=pe(e);return/auto|scroll|overlay|hidden/.test(t+r+c)}function ye(e){return(t=e,(t instanceof k(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function we(e){return J(e)==="html"?e:e.assignedSlot||e.parentNode||(ve(e)?e.host:null)||ye(e)}function Z(e){let t=we(e);return["html","body","#document"].includes(J(t))?e.ownerDocument.body:he(t)&&Q(t)?t:Z(t)}function W(e,t){var c;t===void 0&&(t=[]);let r=Z(e),n=r===((c=e.ownerDocument)==null?void 0:c.body),i=k(r),o=n?[i].concat(i.visualViewport||[],Q(r)?r:[]):r,l=t.concat(o);return n?l:l.concat(W(o))}import*as O from"react";import{useLayoutEffect as Re,useEffect as xe,useRef as be}from"react";import{createPortal as Ue}from"react-dom";var ee=typeof document!="undefined"?Re:xe;var K=!1,Ee=0,te=()=>"floating-ui-"+Ee++;function Te(){let[e,t]=O.useState(()=>K?te():void 0);return ee(()=>{e==null&&t(te())},[]),O.useEffect(()=>{K||(K=!0)},[]),e}var ne=O["useId".toString()],Xe=ne!=null?ne:Te;var Pe=O.createContext(null);var Le=()=>O.useContext(Pe);function B(e,t,c){let r={};return P(P(P({},c==="floating"&&{tabIndex:-1}),e),t.map(n=>n?n[c]:null).concat(e).reduce((n,i)=>(i&&Object.entries(i).forEach(o=>{let[l,m]=o;l.indexOf("on")===0?(r[l]||(r[l]=[]),typeof m=="function"&&r[l].push(m),n[l]=function(){for(var a=arguments.length,w=new Array(a),f=0;f<a;f++)w[f]=arguments[f];r[l].forEach(s=>s(...w))}):n[l]=m}),n),{}))}var Ye=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>B(t,e,"reference"),getFloatingProps:t=>B(t,e,"floating"),getItemProps:t=>B(t,e,"item")}};function $(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function re(e){var t;return(t=$(e).defaultView)!=null?t:window}function j(e){return e?e instanceof re(e).Element:!1}function Ce(e){return e?e instanceof re(e).HTMLElement:!1}function Oe(e,t){var c;let r=(c=e==null?void 0:e.nodesRef.current.filter(o=>{var l;return o.parentId===t&&((l=o.context)==null?void 0:l.open)}))!=null?c:[],n=r;for(;n.length;){var i;n=(i=e==null?void 0:e.nodesRef.current.filter(o=>{var l;return(l=n)==null?void 0:l.some(m=>{var a;return o.parentId===m.id&&((a=o.context)==null?void 0:a.open)})}))!=null?i:[],r=r.concat(n)}return r}function Ie(e){let t=e.activeElement;for(;((c=t)==null||(r=c.shadowRoot)==null?void 0:r.activeElement)!=null;){var c,r;t=t.shadowRoot.activeElement}return t}function De(e){let t=be(e);return ee(()=>{t.current=e}),t}function G(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let c=e;return c.target!=null&&t.contains(c.target)}var qe=function(e,t){let{open:c,onOpenChange:r,refs:n,events:i,nodeId:o}=e,{enabled:l=!0,escapeKey:m=!0,outsidePointerDown:a=!0,referencePointerDown:w=!1,ancestorScroll:f=!1,bubbles:s=!0}=t===void 0?{}:t,R=Le(),d=De(r),y=O.useCallback(()=>{var p;return(p=n.floating.current)==null?void 0:p.contains(Ie($(n.floating.current)))},[n.floating]),g=O.useCallback(()=>{Ce(n.reference.current)&&n.reference.current.focus()},[n.reference]);return O.useEffect(()=>{if(!c||!l)return;function p(u){if(u.key==="Escape"){if(!s&&!y())return;i.emit("dismiss"),d.current(!1),g()}}function x(u){let E=R&&Oe(R,o).some(I=>{var h;return G(u,(h=I.context)==null?void 0:h.refs.floating.current)});G(u,n.floating.current)||j(n.reference.current)&&G(u,n.reference.current)||E||!s&&!y()||(i.emit("dismiss"),d.current(!1),g())}function b(){d.current(!1)}let v=$(n.floating.current);m&&v.addEventListener("keydown",p),a&&v.addEventListener("mousedown",x);let L=(f?[...j(n.reference.current)?W(n.reference.current):[],...j(n.floating.current)?W(n.floating.current):[]]:[]).filter(u=>{var E;return u!==((E=v.defaultView)==null?void 0:E.visualViewport)});return L.forEach(u=>u.addEventListener("scroll",b,{passive:!0})),()=>{m&&v.removeEventListener("keydown",p),a&&v.removeEventListener("mousedown",x),L.forEach(u=>u.removeEventListener("scroll",b))}},[m,a,i,R,o,c,d,g,f,l,s,y,n.floating,n.reference]),l?{reference:{onPointerDown(){w&&(i.emit("dismiss"),r(!1))}}}:{}};export{ge as a,me as b,Ye as c,qe as d};
@@ -0,0 +1 @@
1
+ import{b as s}from"./chunk-WHPZZWKO.js";import{a as r,c as t}from"./chunk-XX4EWSFM.js";import n,{forwardRef as l}from"react";import{Portal as f,useWindow as d}from"@jpmorganchase/uitk-core";import u from"classnames";var E=l(function(p,a){let o=p,{children:c,className:i}=o,e=t(o,["children","className"]),m=d();return e.open?n.createElement(f,null,n.createElement(m,r({className:u(i,s.root),ref:a},e),c)):null});export{E as a};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-I3Z6UENR.js";import{c as O,d as B}from"./chunk-A6ZSQMSC.js";import{a as S}from"./chunk-ACFFLNAA.js";import{a as L}from"./chunk-UA5IM6NC.js";import{a as v,c as H}from"./chunk-XX4EWSFM.js";import e,{useRef as k,useState as I}from"react";import{Icon as A}from"@jpmorganchase/mosaic-components";import{useLexicalComposerContext as J}from"@lexical/react/LexicalComposerContext";import{INSERT_TABLE_COMMAND as K}from"@lexical/table";import{useFloatingUI as Q}from"@jpmorganchase/uitk-core";var V=l=>{var s=l,{index:o}=s,r=H(s,["index"]);return e.createElement("td",v({className:n.cell,"data-column":o},r))},X=({children:o,index:r})=>e.createElement("tr",{className:r===1?n.headerRow:n.row,"data-row":r},o),Y=({rowCount:o,columnCount:r})=>{let l=[],s=[];for(let t=1;t<=r;t++)l.push(e.createElement(V,{key:t,index:t}));for(let t=1;t<=o;t++)s.push(e.createElement(X,{key:t,index:t},l));return e.createElement("tbody",null,s)};function Z(o){var t,c;let r=parseInt(((t=o==null?void 0:o.dataset)==null?void 0:t.column)||"0",10),l=o.parentNode,s=parseInt(((c=l==null?void 0:l.dataset)==null?void 0:c.row)||"0",10);return{columnIndex:r,rowIndex:s}}var ue=({minRows:o=2,minColumns:r=2,maxColumns:l=10,initialRowCount:s=4,initialColumnCount:t=4})=>{let[c]=J(),y=k(null),u=k(!1),[m,d]=I(t),[i,b]=I(s),[f,E]=I(!1),M=()=>{N(),E(a=>!a)},{context:D,floating:j,reference:_,strategy:$,x:C,y:T}=Q({placement:"bottom",strategy:"absolute",open:f,onOpenChange:M}),{getFloatingProps:z}=O([B(D,{ancestorScroll:!0})]),U=a=>{var F;let P=a.nativeEvent.target;if(!((F=y.current)==null?void 0:F.contains(P))||!u.current)return;let{columnIndex:w,rowIndex:h}=Z(P);w<m&&w>=r&&d(w),h<i&&h>=o&&b(h)};function N(){d(t),b(s),u.current=!1}let W=()=>{u.current=!0,m+1<=l&&d(a=>a+1)},q=()=>{u.current=!0,b(a=>a+1)},G=()=>{c.dispatchCommand(K,{columns:m.toString(),rows:i.toString()}),N(),E(!1)},p=25,g=i*p,x=m*p;return e.createElement(e.Fragment,null,e.createElement(L,{ref:_,onClick:M,active:f},e.createElement(A,{name:"grid"}),e.createElement("div",{className:n.spacer}),e.createElement(A,{name:"chevronDown"})),e.createElement(S,v({className:n.popper,ref:j,open:f,style:{top:T!=null?T:"",left:C!=null?C:"",position:$}},z({})),e.createElement("div",{className:n.tableContainer,onMouseOver:U,onClick:G},e.createElement("table",{className:n.table,style:{width:x,height:g},ref:y},e.createElement(Y,{rowCount:i,columnCount:m})),e.createElement("div",{className:n.dimensions},`${m} x ${i}`),e.createElement("div",{className:n.addColumnArea,style:{left:x,height:g+p},onMouseOver:W}),e.createElement("div",{className:n.addRowArea,style:{top:g,width:x+p},onMouseOver:q}))))};export{ue as a};
@@ -0,0 +1 @@
1
+ import{LINK as a}from"@lexical/markdown";var r=a;export{r as a};
@@ -0,0 +1 @@
1
+ var f={active:" wfgi8t3u wfgi8t44 wfgi8t3q wfgi8t4g wfgi8t4r wfgi8t51 wfgi8t4n wfgi8t5d wfgi8t5e wfgi8t5g wfgi8t5y wfgi8t5k wfgi8t6r wfgi8t6t wfgi8t6f wfgi8t6x",root:"_1sg4vms0"};export{f as a};
@@ -0,0 +1 @@
1
+ function i(t,n,e){return fetch("http://localhost:8080/savecontent",{method:"POST",body:JSON.stringify({user:t,route:n,markdown:e}),headers:{Accept:"application/json","Content-Type":"application/json"}})}export{i as a};
@@ -0,0 +1 @@
1
+ import{a as P}from"./chunk-ZK6NLAGG.js";import{a as T}from"./chunk-HROTQ6LG.js";import{c as S,d as L}from"./chunk-A6ZSQMSC.js";import{a as D}from"./chunk-ACFFLNAA.js";import{a as M}from"./chunk-XX4EWSFM.js";import x,{useCallback as c,useEffect as $,useState as F}from"react";import{useLexicalComposerContext as k}from"@lexical/react/LexicalComposerContext";import{$getSelection as j,$isRangeSelection as B}from"lexical";import{$deleteTableColumn as O,$getElementGridForTableNode as h,$getTableCellNodeFromLexicalNode as U,$getTableColumnIndexFromTableCellNode as v,$getTableNodeFromLexicalNodeOrThrow as a,$getTableRowIndexFromTableCellNode as C,$insertTableColumn as K,$insertTableRow as G,$isTableCellNode as m,$removeTableRowAtIndex as H}from"@lexical/table";import{useFloatingUI as q}from"@jpmorganchase/uitk-core";import{ArrowDownIcon as z,ArrowLeftIcon as J,ArrowRightIcon as Q,ArrowUpIcon as V,DeleteIcon as y,DeleteSolidIcon as W}from"@jpmorganchase/uitk-icons";var X={menuItems:[{title:"Insert Row Above",icon:V},{title:"Insert Row Below",icon:z},{title:"Insert Column Left",icon:J},{title:"Insert Column Right",icon:Q},{title:"Delete Row",icon:y},{title:"Delete Column",icon:y},{title:"Delete Table",icon:W}]};function Y({editor:n,tableCellNode:e,onComplete:o}){let i=t=>{if(!!t){if(t.title==="Delete Row"){s();return}if(t.title==="Insert Row Below"){f(!0);return}if(t.title==="Insert Row Above"){f(!1);return}if(t.title==="Insert Column Left"){p(!1);return}if(t.title==="Insert Column Right"){p(!0);return}if(t.title==="Delete Column"){d();return}t.title==="Delete Table"&&I()}},s=c(()=>{n.update(()=>{if(m(e)){let t=a(e),l=C(e);H(t,l),o()}})},[n,o,e]),f=c(t=>{n.update(()=>{if(m(e)){let l=a(e),u=C(e),r=h(n,l);G(l,u,t,1,r)}o()})},[n,e,o]),p=c(t=>{n.update(()=>{if(m(e)){let l=a(e),u=v(e),r=h(n,l);K(l,u,t,1,r)}o()})},[n,e,o]),d=c(()=>{n.update(()=>{if(m(e)){let t=a(e),l=v(e);O(t,l),o()}})},[n,e,o]),I=c(()=>{n.update(()=>{m(e)&&(a(e).remove(),o())})},[n,e,o]);return x.createElement(P,{initialSource:X,onItemClick:i})}function fe(){let[n]=k(),[e,o]=F(null),[i,s]=F(null),{context:f,floating:p,reference:d,strategy:I,x:t,y:l}=q({placement:"right",strategy:"absolute",open:e!==null,onOpenChange:()=>o(null)}),{getFloatingProps:u}=S([L(f,{ancestorScroll:!0})]),r=c(()=>{let g=j(),w=window.getSelection(),{activeElement:E}=document;if(g==null){o(null);return}let R=n.getRootElement();if(B(g)&&R!==null&&w!==null&&R.contains(w.anchorNode)){let A=U(g.anchor.getNode());if(A==null){o(null);return}let b=n.getElementByKey(A.getKey());if(b==null){o(null);return}b.classList.add(...T.focused),o(A),d(b),s(b)}else E||o(null)},[n,d]);$(()=>n.registerUpdateListener(()=>{n.getEditorState().read(()=>{r()})}),[n,r]),$(function(){return i==null||i.classList.add(...T.focused),function(){i==null||i.classList.remove(...T.focused)}},[i==null?void 0:i.classList,e]);let Z=()=>{s(null)},N=()=>{s(null),o(null)};return x.createElement(D,M({ref:p,open:e!==null,style:{top:l!=null?l:"",left:t!=null?t:"",position:I}},u({})),x.createElement(Y,{editor:n,tableCellNode:e,onComplete:N}))}export{fe as a};
@@ -0,0 +1 @@
1
+ import x from"react";import{Dropdown as B}from"@jpmorganchase/uitk-lab";import{$createCodeNode as i}from"@lexical/code";import{INSERT_ORDERED_LIST_COMMAND as N,INSERT_UNORDERED_LIST_COMMAND as k}from"@lexical/list";import{$createHeadingNode as C,$createQuoteNode as H}from"@lexical/rich-text";import{$wrapNodes as n}from"@lexical/selection";import{$createParagraphNode as E,$getSelection as a,$isRangeSelection as c}from"lexical";var L=o=>o?o.name:"",p=[{name:"Heading 1",type:"h1"},{name:"Heading 2",type:"h2"},{name:"Heading 3",type:"h3"},{name:"Heading 4",type:"h4"},{name:"Heading 5",type:"h5"},{name:"Heading 6",type:"h6"}],r=[{name:"Bulleted List",type:"bullet"},{name:"Code Block",type:"code"},...p,{name:"Numbered List",type:"number"},{name:"Paragraph",type:"paragraph"},{name:"Quote",type:"quote"}];function Q({editor:o,type:l}){let d=t=>{t.type==="paragraph"&&o.update(()=>{let e=a();c(e)&&n(e,()=>E())})},s=t=>{p.findIndex(e=>e.type===t.type)>=0&&o.update(()=>{let e=a();c(e)&&n(e,()=>C(t.type))})},m=t=>{t.type==="bullet"&&o.dispatchCommand(k,void 0)},u=t=>{t.type==="number"&&o.dispatchCommand(N,void 0)},y=t=>{t.type==="quote"&&o.update(()=>{let e=a();c(e)&&n(e,()=>H())})},f=t=>{t.type==="code"&&o.update(()=>{let e=a();if(c(e))if(e.isCollapsed())n(e,()=>i());else{let h=e.getTextContent(),T=i();e.removeText(),e.insertNodes([T]),e.insertRawText(h)}})},g=(t,e)=>{!e||(d(e),s(e),m(e),u(e),y(e),f(e))},S=r.findIndex(t=>t.type===l);return x.createElement(B,{ListProps:{width:200},defaultSelected:r[S],itemToString:L,onSelectionChange:g,source:r,width:132})}export{Q as a};
@@ -0,0 +1 @@
1
+ var e={fullWidth:"jmottr0"};export{e as a};
@@ -0,0 +1 @@
1
+ var i={focused:["m7cgune","m7cgun6","m7cgun8","m7cgun0","m7cgun3"]},n={conditions:{defaultCondition:"lightMode",conditionNames:["lightMode","darkMode"],responsiveArray:void 0},styles:{outlineColor:{values:{"var(--color-light-selectable-inEdit)":{conditions:{lightMode:"m7cgun0",darkMode:"m7cgun1"},defaultClass:"m7cgun0"},"var(--color-dark-selectable-inEdit)":{conditions:{lightMode:"m7cgun2",darkMode:"m7cgun3"},defaultClass:"m7cgun2"}}},outlineStyle:{values:{solid:{conditions:{lightMode:"m7cgun4",darkMode:"m7cgun5"},defaultClass:"m7cgun4"},dashed:{conditions:{lightMode:"m7cgun6",darkMode:"m7cgun7"},defaultClass:"m7cgun6"}}},outlineWidth:{values:{thin:{conditions:{lightMode:"m7cgun8",darkMode:"m7cgun9"},defaultClass:"m7cgun8"},medium:{conditions:{lightMode:"m7cguna",darkMode:"m7cgunb"},defaultClass:"m7cguna"},thick:{conditions:{lightMode:"m7cgunc",darkMode:"m7cgund"},defaultClass:"m7cgunc"}}}}};export{i as a,n as b};
@@ -0,0 +1 @@
1
+ var l={tableContainer:"_195c2ps0",table:"u4bxikj u4bxik0 u4bxik5 u4bxika u4bxikf pdl72e4 pdl72e5 pdl72e6 pdl72e7",addColumnArea:"_195c2ps1",addRowArea:"_195c2ps2",headerRow:" _1q7rwun1s _1q7rwun29",row:" _1q7rwun20 _1q7rwun2h",cell:"fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq76w ueedq77o ueedq78 ueedq79 ueedq7a ueedq7b ueedq7c ueedq7d ueedq7e ueedq7f",dimensions:"_195c2ps4 byd2vl0 byd2vl7",popper:"_195c2ps6 byd2vlk byd2vlp",spacer:"_195c2ps8"};export{l as a};
@@ -0,0 +1 @@
1
+ import{a as T}from"./chunk-T2M7535Y.js";import{a as C}from"./chunk-UA5IM6NC.js";import{e as g}from"./chunk-76US6CXQ.js";import{a as u,b as p,d as I}from"./chunk-XX4EWSFM.js";import{$createLinkNode as q,TOGGLE_LINK_COMMAND as W}from"@lexical/link";import{useLexicalComposerContext as G}from"@lexical/react/LexicalComposerContext";import{$wrapNodes as U}from"@lexical/selection";import{$createParagraphNode as Y,$createTextNode as z,$getSelection as H,$isRangeSelection as J,$isTextNode as Q,COMMAND_PRIORITY_EDITOR as X,createCommand as Z}from"lexical";import R,{useCallback as tt,useEffect as et}from"react";import n,{useEffect as P,useState as h}from"react";import{useLexicalComposerContext as B}from"@lexical/react/LexicalComposerContext";import{Button as N,Icon as _}from"@jpmorganchase/mosaic-components";import{string as D,object as A}from"yup";import{FormField as S,Input as b}from"@jpmorganchase/uitk-core";import{ButtonBar as O,Dialog as $,DialogTitle as w,DialogContent as v,DialogActions as K}from"@jpmorganchase/uitk-lab";import{$getSelection as V,$isRangeSelection as j}from"lexical";var y=A({url:D().required("Url is required"),text:D().required("Text is required").max(10,"Text must be fewer than 100 characters")}),xt=()=>{let{isInsertingLink:o,setIsInsertingLink:i}=g();return n.createElement(C,{active:o,onClick:()=>i(!0),label:"Insert Link"},n.createElement(_,{name:"linked"}))},F={url:"https://"},E=()=>{let[o]=B(),{isInsertingLink:i,setIsInsertingLink:s}=g(),[t,r]=h(F),[e,c]=h(),d=()=>{s(!1),c(void 0),r(F)};P(()=>{o.getEditorState().read(()=>{if(i){let a=V();if(j(a)){let l=a.getTextContent();r(m=>p(u({},m),{text:l}))}}})},[o,i]);let k=a=>{let l=a.inner.reduce((m,{path:f,message:M})=>p(u({},m),{[f]:M}),{});c(l)},L=(a,l)=>{let{name:m}=a.target,f=p(u({},t),{[m]:l});y.validateAt(m,f,{abortEarly:!1}).then(()=>{c(p(u({},e),{[m]:void 0}))},k),r(f)};return n.createElement($,{onClose:d,open:i,width:600},n.createElement("form",{onSubmit:a=>I(void 0,null,function*(){a.preventDefault(),y.validate(t,{abortEarly:!1}).then(()=>{let l={url:t==null?void 0:t.url,text:t==null?void 0:t.text};o.dispatchCommand(x,l),d()},k)}),noValidate:!0},n.createElement(w,null,"Insert Link"),n.createElement(v,null,n.createElement("div",{className:T.fullWidth},n.createElement(S,{label:"Image URL text",validationStatus:(e==null?void 0:e.url)?"error":void 0,helperText:e==null?void 0:e.url},n.createElement(b,{value:t==null?void 0:t.url,inputProps:{name:"url"},onChange:L})),n.createElement(S,{label:"Link text",validationStatus:(e==null?void 0:e.text)?"error":void 0,helperText:e==null?void 0:e.text},n.createElement(b,{value:t==null?void 0:t.text,inputProps:{name:"text"},onChange:L})))),n.createElement(K,null,n.createElement(O,null,n.createElement(N,{onClick:d},"Cancel"),n.createElement(N,{variant:"cta",type:"submit"},"Insert")))))};var x=Z();function nt(){let[o]=G(),i=tt(({url:s,text:t})=>{o.update(()=>{let r=H();if(J(r)&&s!==void 0&&t!==void 0){let e=r.focus.getNode();if(Q(e))o.dispatchCommand(W,s);else{let c=q(s),d=z(t);d.setFormat(r.focus.getNode().getFormat()),c.append(d),U(r,()=>c,Y())}}})},[o]);et(()=>o.registerCommand(x,s=>(i(s),!0),X),[o,i])}function St(){return nt(),R.createElement(E,null)}export{x as a,St as b,xt as c,E as d};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-W44IYDHL.js";import{a as x}from"./chunk-GR3B6XH6.js";import{a as c}from"./chunk-UA5IM6NC.js";import o,{useCallback as O,useEffect as C,useState as i}from"react";import d from"classnames";import{FORMAT_TEXT_COMMAND as k,SELECTION_CHANGE_COMMAND as E,COMMAND_PRIORITY_CRITICAL as M,$getSelection as A,$isRangeSelection as D}from"lexical";import{useLexicalComposerContext as _}from"@lexical/react/LexicalComposerContext";import{$isListNode as $,ListNode as K}from"@lexical/list";import{$getNearestNodeOfType as S}from"@lexical/utils";import{$isHeadingNode as w}from"@lexical/rich-text";import{$isCodeNode as j}from"@lexical/code";import{Icon as g}from"@jpmorganchase/mosaic-components";import{Tooltray as H}from"@jpmorganchase/uitk-lab";function to({floating:T=!1}){let[m]=_(),[s,u]=i(m),[N,b]=i(!1),[I,h]=i(!1),[F,f]=i(!1),[B,y]=i("paragraph"),p=e=>{s.dispatchCommand(k,e)},n=O(()=>{let e=A();if(D(e)){b(e.hasFormat("bold")),h(e.hasFormat("italic")),f(e.hasFormat("code"));let r=e.anchor.getNode(),t=r.getKey()==="root"?r:r.getTopLevelElementOrThrow(),L=t.getKey();if(s.getElementByKey(L)!==null)if($(t)){let l=S(r,K),v=l?l.getListType():t.getListType();y(v)}else{let l=w(t)?t.getTag():t.getType();l&&y(l),j(t)&&f(!0)}}},[s]);return C(()=>s.registerUpdateListener(({editorState:e})=>{e.read(()=>{n()})}),[s,n]),C(()=>m.registerCommand(E,(e,r)=>(n(),u(r),!1),M),[m,n]),o.createElement("div",{className:a.root},T?null:o.createElement("span",null),o.createElement(H,{"data-collapsible":"instant"},!T&&o.createElement(x,{editor:s,type:B}),o.createElement(c,{active:N,onClick:()=>p("bold"),label:"Bold"},o.createElement("span",{className:d(a.icon,a.bold)},"B")),o.createElement(c,{active:I,onClick:()=>p("italic"),label:"Italic"},o.createElement("span",{className:d(a.icon,a.italic)},"I")),o.createElement(c,{active:F,onClick:()=>p("code"),label:"Inline Code"},o.createElement("span",{className:d(a.code)},o.createElement(g,{name:"chevronLeft"}),o.createElement(g,{name:"chevronRight"})))))}export{to as a};
@@ -0,0 +1 @@
1
+ import{c as n}from"./chunk-76US6CXQ.js";import e,{useState as s}from"react";import{Button as r,Icon as i}from"@jpmorganchase/mosaic-components";import{OnChangePlugin as g}from"@lexical/react/LexicalOnChangePlugin";var h=()=>{let{setPageState:o}=n(),[t,a]=s(!0);return e.createElement(e.Fragment,null,e.createElement(g,{onChange:()=>{a(!1)},ignoreSelectionChange:!0}),e.createElement(r,{disabled:t,variant:"cta",onClick:()=>o("SAVING")},e.createElement(i,{name:"save"})," \xA0 Save"))};export{h as a};
@@ -0,0 +1 @@
1
+ var u={bold:"_16n1zmy0",italic:"_16n1zmy1",underline:"_16n1zmy2",strikeThrough:"_16n1zmy3",underlineStrikeThrough:"_16n1zmy4",link:"pdl72e4 pdl72e5 pdl72e6 pdl72e7 _1loq8ls2 _1loq8ls1 _651s9q3o _651s9q3y _651s9q4g _651s9q4l _651s9q4v _651s9q5d",paragraph:"_1az2uze1 _1az2uze7 _1az2uze9 _1az2uzea pdl72e4 pdl72e5 pdl72e6 pdl72e7",quote:"_1td1ted1 _1a80kmtm ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq71s ueedq71w ueedq71yo ueedq71yp ueedq71yq ueedq71yr ueedq71ys ueedq71yt ueedq71yu ueedq71yv _1lx6g9221 _1lx6g92g _1lx6g9210 _1lx6g921c _1lx6g921k pdl72e4 pdl72e5 pdl72e6 pdl72e7 pdl72e5s pdl72e5t pdl72e5u pdl72e5v pdl72ee0 pdl72ee1 pdl72ee2 pdl72ee3",table:"u4bxikj u4bxik0 u4bxik5 u4bxika u4bxikf pdl72e4 pdl72e5 pdl72e6 pdl72e7",tableCell:"q99eu4i _1az2uze3 _1az2uze7 _1az2uze9 _1az2uzea pdl72e4 pdl72e5 pdl72e6 pdl72e7 pdl72e7o pdl72e7p pdl72e7q pdl72e7r pdl72eb8 pdl72eb9 pdl72eba pdl72ebb pdl72ed4 pdl72ed5 pdl72ed6 pdl72ed7 pdl72e9k pdl72e9l pdl72e9m pdl72e9n q99eu40 q99eu45 q99eu4a q99eu4f fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq78 ueedq79 ueedq7a ueedq7b ueedq7c ueedq7d ueedq7e ueedq7f _16n1zmy9",tableHeader:"_1klzrv10 _1az2uze2 _1az2uze6 _1az2uze9 _1az2uzea pdl72e4 pdl72e5 pdl72e6 pdl72e7 pdl72e7o pdl72e7p pdl72e7q pdl72e7r pdl72eb8 pdl72eb9 pdl72eba pdl72ebb pdl72ed4 pdl72ed5 pdl72ed6 pdl72ed7 pdl72e9k pdl72e9l pdl72e9m pdl72e9n",tableRow:"fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq71xc ueedq71xd ueedq71xe ueedq71xf ueedq71xg ueedq71xh ueedq71xi ueedq71xj ueedq78 ueedq79 ueedq7a ueedq7b ueedq7c ueedq7d ueedq7e ueedq7f _16n1zmyc"};export{u as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-YPBKG7ME.js";import l,{forwardRef as t}from"react";import s from"classnames";var S=t(function({className:o,children:c},r){return l.createElement("section",{ref:r,className:s(e.root,o)},c)});export{S as a};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunk-M5W2GPOK.js";import{a as s}from"./chunk-N3NO7L4H.js";import{a as m}from"./chunk-BTI67NTQ.js";import{a as n}from"./chunk-5GT4QAIQ.js";import{a as e}from"./chunk-IXKHPWRK.js";import{c as d}from"./chunk-IO4745QD.js";import{a as i}from"./chunk-JKQCT2R7.js";import{c as l}from"./chunk-76US6CXQ.js";import o from"react";import{Toolbar as I,ToolbarButton as r,Tooltray as t}from"@jpmorganchase/uitk-lab";import{Icon as a}from"@jpmorganchase/mosaic-components";var g=()=>{let{canRedo:T,canUndo:p,redoEdit:u,undoEdit:y}=n(),{setPageState:f}=l();return o.createElement(I,{"aria-label":"page editing toolbar",style:{minWidth:"100px"}},o.createElement(t,{"aria-label":"history tooltray"},o.createElement(r,{label:"Undo",disabled:!p,onClick:y},o.createElement(a,{name:"undo"})),o.createElement(r,{label:"Redo",disabled:!T,onClick:u},o.createElement(a,{name:"redo"}))),o.createElement(e,null),o.createElement(t,{"aria-label":"text format tooltray"},o.createElement(d,null),o.createElement(m,null),o.createElement(s,null),o.createElement(b,null)),o.createElement(t,{"aria-label":"stop editing tooltray",alignEnd:!0},o.createElement(r,{label:"Cancel Editing",onClick:()=>f("VIEW")},o.createElement(a,{name:"delete"}))),o.createElement(t,{"aria-label":"copy tooltray","data-pad-start":!0},o.createElement(i,null)))},F=g;export{F as a};
@@ -0,0 +1 @@
1
+ import{useLexicalComposerContext as i}from"@lexical/react/LexicalComposerContext";import{$createParagraphNode as c,$createTextNode as l,$getSelection as m,$isRangeSelection as s,COMMAND_PRIORITY_EDITOR as d,createCommand as u}from"lexical";import{useCallback as g,useEffect as I}from"react";var f=u();function x(){let[e]=i(),n=g(({url:t,alt:o})=>{e.update(()=>{let a=m();if(s(a)&&t!==void 0&&o!==void 0){let r=c().append(l(`![${o}](${t})`));a.focus.getNode().canInsertTextAfter()&&a.insertNodes([r])}})},[e]);I(()=>e.registerCommand(f,t=>(n(t),!0),d),[e,n])}function P(){return x(),null}export{f as a,P as b};
@@ -0,0 +1 @@
1
+ import{HeadingNode as o,QuoteNode as e}from"@lexical/rich-text";import{ListNode as l,ListItemNode as i}from"@lexical/list";import{AutoLinkNode as t,LinkNode as d}from"@lexical/link";import{TableCellNode as r,TableNode as a,TableRowNode as m}from"@lexical/table";import{CodeHighlightNode as N,CodeNode as c}from"@lexical/code";import{HorizontalRuleNode as x}from"@lexical/react/LexicalHorizontalRuleNode";var u=[t,N,c,o,x,d,i,l,e,r,a,m];export{u as a};
@@ -0,0 +1 @@
1
+ import{$isAtNodeEnd as c}from"@lexical/selection";function i(e){let{anchor:n,focus:r}=e,o=e.anchor.getNode(),t=e.focus.getNode();return o===t?o:e.isBackward()?c(r)?o:t:c(n)?t:o}export{i as a};
@@ -0,0 +1 @@
1
+ import o from"react";import{ToolbarButton as t}from"@jpmorganchase/uitk-lab";import{Icon as r}from"@jpmorganchase/mosaic-components";import{useLexicalComposerContext as n}from"@lexical/react/LexicalComposerContext";import{INSERT_HORIZONTAL_RULE_COMMAND as i}from"@lexical/react/LexicalHorizontalRuleNode";var C=()=>{let[e]=n();return o.createElement(t,{onClick:()=>{e.dispatchCommand(i,void 0)}},o.createElement(r,{name:"minimize"}))};export{C as a};
@@ -0,0 +1 @@
1
+ import{useLexicalComposerContext as r}from"@lexical/react/LexicalComposerContext";import{$createHorizontalRuleNode as l,INSERT_HORIZONTAL_RULE_COMMAND as n}from"@lexical/react/LexicalHorizontalRuleNode";import{$getSelection as i,$isRangeSelection as c,COMMAND_PRIORITY_EDITOR as a}from"lexical";import{useEffect as u}from"react";function s(){let[o]=r();return u(()=>o.registerCommand(n,()=>{let e=i();if(!c(e))return!1;if(e.focus.getNode()!==null){let t=l();e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(t)}return!0},a),[o]),null}export{s as a};
@@ -0,0 +1 @@
1
+ import{a as v}from"./chunk-HL7D7RIZ.js";import{a as b}from"./chunk-KMK5XOLZ.js";import{a as I}from"./chunk-UA5IM6NC.js";import{a as i,b as s,d as h}from"./chunk-XX4EWSFM.js";import t,{useState as u}from"react";import{useLexicalComposerContext as E}from"@lexical/react/LexicalComposerContext";import{Button as C,Icon as k}from"@jpmorganchase/mosaic-components";import{string as D,object as w}from"yup";import{ButtonBar as M,Dialog as P,DialogTitle as O,DialogContent as V,DialogActions as j}from"@jpmorganchase/uitk-lab";import{FormField as F,Input as S}from"@jpmorganchase/uitk-core";var T=w({alt:D().required("Alternative Information is a required field").max(100,"Alternative Information must be fewer than 100 characters"),url:D().required("Url is required").url("Must be a valid Url")}),q={url:"https://"},X=()=>{let[x]=E(),[d,p]=u(!1),[e,y]=u(q),[o,f]=u(),m=()=>{p(!1)},B=()=>p(!0),g=n=>{let a=n.inner.reduce((r,{path:l,message:A})=>s(i({},r),{[l]:A}),{});f(a)},c=(n,a)=>{let{name:r}=n.target,l=s(i({},e),{[r]:a});T.validateAt(r,l,{abortEarly:!1}).then(()=>{f(s(i({},o),{[r]:void 0}))},g),y(l)};return t.createElement(t.Fragment,null,t.createElement(I,{active:d,onClick:B,label:"Insert Image"},t.createElement(k,{name:"addDocument"})),t.createElement(P,{onClose:m,open:d,width:600},t.createElement("form",{onSubmit:n=>h(void 0,null,function*(){n.preventDefault(),T.validate(e,{abortEarly:!1}).then(()=>{let a={alt:e&&e.alt!==void 0?e.alt:null,url:e&&e.url!==void 0?e.url:null};x.dispatchCommand(b,a),m()},g)}),noValidate:!0},t.createElement(O,null,"Insert Image"),t.createElement(V,null,t.createElement("div",{className:v.fullWidth},t.createElement(F,{label:"Url for image",validationStatus:(o==null?void 0:o.url)?"error":void 0,helperText:o==null?void 0:o.url},t.createElement(S,{value:e==null?void 0:e.url,inputProps:{name:"url"},onChange:c})),t.createElement(F,{label:"Alternative Information (alt)",validationStatus:(o==null?void 0:o.alt)?"error":void 0,helperText:(o==null?void 0:o.alt)||"Provides alternative information for the image if for some reason it cannot be viewed"},t.createElement(S,{value:e==null?void 0:e.alt,inputProps:{name:"alt"},onChange:c})))),t.createElement(j,null,t.createElement(M,null,t.createElement(C,{onClick:m},"Cancel"),t.createElement(C,{variant:"cta",type:"submit"},"Insert"))))))};export{X as a};
@@ -0,0 +1 @@
1
+ var u={root:"_1q293jk0",toolbarContainer:"_1q293jk1 fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq78 ueedq79 ueedq7a ueedq7b ueedq7c ueedq7d ueedq7e ueedq7f",editorRoot:"_1q293jk3",splitter:"_1q293jk4",gutter:"_1q293jk5 byd2vli byd2vln",unfocused:"fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq71vk ueedq71vl ueedq71vm ueedq71vn ueedq71vo ueedq71vp ueedq71vq ueedq71vr ueedq71y8 ueedq71y9 ueedq71ya ueedq71yb ueedq71yc ueedq71yd ueedq71ye ueedq71yf ueedq71wg ueedq71wh ueedq71wi ueedq71wj ueedq71wk ueedq71wl ueedq71wm ueedq71wn ueedq71x4 ueedq71x5 ueedq71x6 ueedq71x7 ueedq71x8 ueedq71x9 ueedq71xa ueedq71xb",focused:"nps8iwp ueedq714 ueedq715 ueedq716 ueedq717 ueedq718 ueedq719 ueedq71a ueedq71b ueedq7ag ueedq7bw ueedq7g ueedq7h ueedq7i ueedq7j ueedq7k ueedq7l ueedq7m ueedq7n"};export{u as a};
@@ -0,0 +1 @@
1
+ var c={root:"esx0bg0"};export{c as a};
@@ -0,0 +1 @@
1
+ import o from"react";import{Button as t,Icon as r}from"@jpmorganchase/mosaic-components";import{StaticInputAdornment as m}from"@jpmorganchase/uitk-core";var c=({onSave:n})=>o.createElement(m,null,o.createElement(t,{onClick:n},o.createElement(r,{name:"save"})));export{c as a};
File without changes
@@ -0,0 +1 @@
1
+ import{a as h}from"./chunk-LOZ4MGDL.js";import{a as N}from"./chunk-57FSKQGH.js";import{a as k}from"./chunk-RN54LVW4.js";import{a as y}from"./chunk-P3NF2XWE.js";import{c as L,d as S}from"./chunk-A6ZSQMSC.js";import{a as C}from"./chunk-ACFFLNAA.js";import{a as E}from"./chunk-XX4EWSFM.js";import{mergeRegister as _}from"@lexical/utils";import{$getSelection as v,$isRangeSelection as B,COMMAND_PRIORITY_LOW as T,SELECTION_CHANGE_COMMAND as G}from"lexical";import s,{useCallback as $,useEffect as x,useRef as b,useState as u}from"react";import{$isLinkNode as I,TOGGLE_LINK_COMMAND as F}from"@lexical/link";import{useLexicalComposerContext as H}from"@lexical/react/LexicalComposerContext";import{Input as j,useFloatingUI as w}from"@jpmorganchase/uitk-core";function re(){let[t]=H(),O=b(null),[o,r]=u(""),[A,i]=u(!1),[D,a]=u(null),g=()=>{r(""),i(!1),a(null)},{context:M,floating:P,reference:c,strategy:R,x:p,y:m}=w({placement:"right",strategy:"absolute",open:o.length>0,onOpenChange:g}),{getFloatingProps:K}=L([S(M,{ancestorScroll:!0})]),n=$(()=>{let e=v();if(B(e)){let l=h(e),f=l.getParent();I(f)?(c(t.getElementByKey(f.getKey())),r(f.getURL()),a(e)):I(l)?(c(t.getElementByKey(l.getKey())),r(l.getURL()),a(e)):g()}return i(!1),!0},[t,c]);x(()=>_(t.registerUpdateListener(({editorState:e})=>{e.read(()=>{n()})}),t.registerCommand(G,()=>(n(),!0),T)),[t,n]),x(()=>{t.getEditorState().read(()=>{n()})},[t,n]);let d=()=>{D!==null&&o!==""&&(t.dispatchCommand(F,o),i(!1))},U=()=>i(!0);return s.createElement(C,E({className:k.popper,ref:P,open:o.length>0,style:{top:m!=null?m:"",left:p!=null?p:"",position:R}},K({})),A?s.createElement(j,{endAdornment:s.createElement(y,{onSave:d}),ref:O,value:o,onChange:e=>{r(e.target.value)},onKeyDown:e=>{e.key==="Enter"?(e.preventDefault(),d()):e.key==="Escape"&&e.preventDefault()}}):s.createElement(N,{onClick:U}))}export{re as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-WBUBW4PH.js";import{a as o}from"./chunk-3TDCKWYF.js";import{TRANSFORMERS as R}from"@lexical/markdown";var e=[o,r,...R];export{e as a};
@@ -0,0 +1 @@
1
+ var q={popper:"_94v2lj0 fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq78 ueedq79 ueedq7a ueedq7b ueedq7c ueedq7d ueedq7e ueedq7f"};export{q as a};
@@ -0,0 +1 @@
1
+ var t={fullWidth:"_1cwa3bz0"};export{t as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-FGP7KEKC.js";import{a as r,c as e}from"./chunk-XX4EWSFM.js";import u,{forwardRef as c}from"react";import i from"classnames";import{ToolbarButton as b}from"@jpmorganchase/uitk-lab";var y=c(function(f,T){var t=f,{active:a,className:s,onClick:n,children:l}=t,m=e(t,["active","className","onClick","children"]);return u.createElement(b,r({ref:T,onClick:n,style:{width:28,height:28},className:i(s,o.root,{[o.active]:a})},m),l)});export{y as a};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunk-IXKHPWRK.js";import{a as T,b as y,c as x,d}from"./chunk-A6ZSQMSC.js";import{a as P}from"./chunk-ACFFLNAA.js";import{c as C}from"./chunk-IO4745QD.js";import{a as r,b as u}from"./chunk-XX4EWSFM.js";import t,{useCallback as A,useEffect as M,useState as k}from"react";import{useLexicalComposerContext as R}from"@lexical/react/LexicalComposerContext";import{mergeRegister as _}from"@lexical/utils";import{$getSelection as w,$isRangeSelection as D,COMMAND_PRIORITY_LOW as j,SELECTION_CHANGE_COMMAND as B}from"lexical";import{Toolbar as W,Tooltray as $}from"@jpmorganchase/uitk-lab";import{useFloatingUI as G}from"@jpmorganchase/uitk-core";function to(){let[n]=R(),[o,m]=k(null),[p,a]=k(!1),F=o?{middleware:[y(o),T({fallbackPlacements:["bottom-start","top-start"]})]}:{placement:"bottom-start",strategy:"absolute"},{context:I,floating:h,reference:c,strategy:E}=G(r({placement:"bottom-start",open:p,onOpenChange:a,strategy:"absolute"},F)),{getFloatingProps:L}=x([d(I,{ancestorScroll:!0})]),l=A(()=>{var f;let s=w(),e=window.getSelection(),g=(f=e==null?void 0:e.anchorNode)==null?void 0:f.parentElement;if(D(s)&&g){c(g);let O=e.getRangeAt(0),{x:S,y:U,height:N}=O.getBoundingClientRect();m({x:S,y:U+N}),a(!0)}else m(null),a(!1)},[c]);M(()=>_(n.registerUpdateListener(({editorState:s})=>{s.read(()=>{l()})}),n.registerCommand(B,()=>(l(),!1),j)),[n,l]);let i={position:E};return o&&(i=u(r({},i),{top:o.y,left:o.x})),t.createElement(P,r({ref:h,open:p,style:i},L({})),t.createElement(W,{"aria-label":"page editing toolbar",style:{minWidth:"100px"}},t.createElement(b,{floating:!0}),t.createElement($,{"aria-label":"text format tooltray"},t.createElement(C,null))))}export{to as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-6TM3EYFS.js";import s,{useEffect as m,useState as g}from"react";import u from"classnames";import{P2 as c}from"@jpmorganchase/mosaic-components";var o=["Making a copy...","Applying changes...","Creating a Pull Request..."],p=o.length-1,S=({children:l,isComplete:a,isCurrent:e})=>s.createElement("div",{className:u(r.step,{[r.stepComplete]:a,[r.stepActive]:e})},s.createElement("span",{role:"img","aria-label":"emoji with party hat"},a?"\u{1F973}":null),s.createElement("span",{role:"img","aria-label":"person grimacing emoji "},e?"\u{1F603}":null),s.createElement("span",{role:"img","aria-label":"sleepy emoji"},!e&&!a?"\u{1F4A4}":null),s.createElement("span",{className:r.stepText},l),s.createElement("span",{role:"img","aria-label":"hourglass"},e?"\u231B":null)),b=({isRaising:l,error:a})=>{let[e,i]=g(0);return m(()=>{let n=setInterval(()=>{e===o.length-1?clearInterval(n):i(t=>t+1)},2e3);return function(){clearInterval(n)}},[e]),a?s.createElement(c,null,"\u{1F622} Sorry something has went wrong. Please try again later."):s.createElement(s.Fragment,null,o.map((n,t)=>s.createElement(S,{key:`step -${t}`,isComplete:e===p&&t===p?!l:e>t,isCurrent:e===t},n)))};export{b as a};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-OFDMXZXG.js";import{f as r}from"./chunk-76US6CXQ.js";import t from"react";import{Icon as c}from"@jpmorganchase/mosaic-components";import{Toolbar as m,Tooltray as b,ToolbarButton as g}from"@jpmorganchase/uitk-lab";var k=({isLoggedIn:a=!1})=>{let{pageState:e,startEditing:i,stopEditing:n}=r(),o=e==="EDIT",s=()=>o?n():i(),d=a?o?"Cancel Editing":"Edit Page":"Login Required to Edit";return t.createElement(m,{"aria-label":"editor-controls",className:l.root},t.createElement(b,{"aria-label":"page editor controls tooltray"},t.createElement(g,{"aria-label":o?"cancel editing":"start editing",onClick:s,disabled:!a,label:d},t.createElement(c,{name:o?"delete":"edit"}))))};export{k as a};
@@ -0,0 +1 @@
1
+ var g={root:"u64up60",icon:"u64up61",bold:"u64up62",italic:"u64up63",code:"_1lf47lk0 byd2vlk byd2vlp byd2vl2 byd2vl9 u64up64"};export{g as a};
@@ -0,0 +1,2 @@
1
+ import{a as d}from"./chunk-FCCNBA44.js";import{$createTableCellNode as N,$createTableNode as C,$createTableRowNode as E,$isTableNode as u,$isTableRowNode as m,TableCellHeaderStates as x,TableCellNode as R,TableNode as S,TableRowNode as $}from"@lexical/table";import{$createParagraphNode as w,$createTextNode as _,$isElementNode as v,$isParagraphNode as k,$isTextNode as A}from"lexical";var b=/^(?:\|)(.+)(?:\|)\s?$/,f=/(---)/,z={dependencies:[S,$,R],export:(e,l)=>{if(!u(e))return null;let t=[],n=null;for(let o of e.getChildren()){let r=[];if(m(o)){for(let i of o.getChildren())v(i)&&r.push(l(i));n===null&&(n=r.length)}t.push(`| ${r.join(" | ")} |`)}return M(t,n),t.join(`
2
+ `)},regExp:b,replace:(e,l,t)=>{let n=p(t[0]);if(n==null)return;let o=P(n),r=e.getPreviousSibling(),i=n.length;for(;r&&!(!k(r)||r.getChildrenSize()!==1);){let h=r.getFirstChild();if(!A(h))break;let c=p(h.getTextContent());if(c==null)break;i=Math.max(i,c.length),o.unshift(c);let T=r.getPreviousSibling();r.remove(),r=T}let a=O(o,i),s=e.getPreviousSibling();u(s)&&L(s)===i?(s.append(...a.getChildren()),e.remove()):e.replace(a),a.selectEnd()},type:"element"};function L(e){let l=e.getFirstChild();return m(l)?l.getChildrenSize():0}var g=e=>{let l=N(x.NO_STATUS),t=w();if(e!=null){let n=_(e.trim());t.append(n);let o=e.trim().match(d.regExp);o&&d.replace(n,o)}return l.append(t),l},p=e=>{let l=e.match(b);return!l||!l[1]?null:l[1].split("|").map(t=>g(t))},M=(e,l)=>{var o;let t="";if(!l)return e;for(let r=0;r<l+1;r++)t=t.concat("|"),r<l&&(t=t.concat("----"));return((o=e[1])==null?void 0:o.match(f))?e:e.splice(1,0,t)},P=e=>{var n;let l=(n=e[0].getFirstChild())==null?void 0:n.getTextContent();return(l==null?void 0:l.match(f))===null?[e]:[]},O=(e,l)=>{let t=C();for(let n of e){let o=E();t.append(o);for(let r=0;r<l;r++)o.append(r<n.length?n[r]:g(null))}return t};export{z as a};
@@ -0,0 +1 @@
1
+ var p=10,r={root:"fdaqer0 byd2vlk byd2vlp _16h9hyp6 _16h9hypf"};export{p as a,r as b};
@@ -0,0 +1 @@
1
+ import{a as h}from"./chunk-JX5HLHOC.js";import{a as M}from"./chunk-ZF6MK5QB.js";import{a as p}from"./chunk-JVJ4H6LB.js";import{a as T}from"./chunk-PPEVCQGG.js";import{a as z}from"./chunk-FM63P66J.js";import{a as b}from"./chunk-3FJGHVH5.js";import{a as s}from"./chunk-RHRDHZ4F.js";import{a as y}from"./chunk-ZCWG7UN7.js";import{a as v}from"./chunk-KYX7ZWMX.js";import{a as D}from"./chunk-UVZXP5EW.js";import{a as F}from"./chunk-MXR5SEUG.js";import{b as S}from"./chunk-KMK5XOLZ.js";import{b as k,d as L}from"./chunk-IO4745QD.js";import{a as w}from"./chunk-WXWEGQ2Z.js";import{a as e}from"./chunk-NXV7KCC5.js";import{a as E,d as x,f as c}from"./chunk-76US6CXQ.js";import{a as f,b as P,d as C}from"./chunk-XX4EWSFM.js";import eo from"react";import{$convertToMarkdownString as to}from"@lexical/markdown";import{OnChangePlugin as no}from"@lexical/react/LexicalOnChangePlugin";import io from"lodash/debounce";import o,{useRef as X,useState as $}from"react";import U from"classnames";import W from"gray-matter";import{LexicalComposer as j}from"@lexical/react/LexicalComposer";import{ListPlugin as q}from"@lexical/react/LexicalListPlugin";import{TablePlugin as G}from"@lexical/react/LexicalTablePlugin";import{LinkPlugin as J}from"@lexical/react/LexicalLinkPlugin";import{HistoryPlugin as K}from"@lexical/react/LexicalHistoryPlugin";import{MarkdownShortcutPlugin as Q}from"@lexical/react/LexicalMarkdownShortcutPlugin";import V from"react-split";import{$convertFromMarkdownString as Y}from"@lexical/markdown";function Z(r){console.error(r)}var _={namespace:"mosaic-content-editor",onError:Z,nodes:v,theme:b},R=()=>{let r=document.createElement("div");return r.className=e.gutter,r},oo=({compileMDX:r,content:i,source:a,PreviewComponent:l,user:t,components:m})=>{let n=E()||a,{setUser:H}=x(),[u,g]=$(!1),I=X(null),{data:d,content:B}=W(i),A=()=>{g(!0),H(t)},O=()=>{g(!1)};return o.createElement(j,{initialConfig:P(f({},_),{editorState:()=>Y(B,s)})},o.createElement("div",{className:e.root,onFocus:A,onBlur:O},o.createElement("div",{className:e.toolbarContainer},o.createElement(h,null),o.createElement(M,{meta:d}),o.createElement(y,null)),o.createElement("div",{className:e.editorRoot},o.createElement(V,{className:e.splitter,cursor:"col-resize",direction:"horizontal",dragInterval:1,expandToMin:!1,gutter:R,gutterAlign:"center",minSize:100,sizes:[50,50],snapOffset:30},o.createElement(p,{className:U({[e.focused]:u,[e.unfocused]:!u}),ref:I},o.createElement(w,null)),o.createElement(p,null,o.createElement(l,{source:n,meta:d,components:m}))),o.createElement(K,null),o.createElement(q,null),o.createElement(G,null),o.createElement(J,null),o.createElement(Q,{transformers:s}),o.createElement(N,{compileMDX:r}),o.createElement(S,null),o.createElement(k,null),o.createElement(T,null),o.createElement(F,null),o.createElement(D,null),o.createElement(z,null),o.createElement(L,null))))},ro=oo;function lo(r){let i=io(r,250,{maxWait:500});return{onChange:l=>{l.read(()=>{let t=to(s);t&&i(t)})}}}var N=({compileMDX:r})=>{let{setErrorMessage:i,setPreviewContent:a}=c(),l=m=>C(void 0,null,function*(){try{let n=yield r(m,!1);a(n)}catch(n){n instanceof Error&&i(`MDX Error: ${n.message}`)}}),{onChange:t}=lo(l);return eo.createElement(no,{onChange:t,ignoreSelectionChange:!0})};export{N as a,ro as b};
@@ -0,0 +1 @@
1
+ import{createElement as t}from"react";import{RichTextPlugin as e}from"@lexical/react/LexicalRichTextPlugin";import{ContentEditable as i}from"@lexical/react/LexicalContentEditable";var o=()=>t(e,{contentEditable:t(i,null),placeholder:t("div",null,"Enter some text...")}),r=o;export{r as a};
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty,p=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var l=(a,c,b)=>c in a?o(a,c,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[c]=b,r=(a,c)=>{for(var b in c||(c={}))j.call(c,b)&&l(a,b,c[b]);if(f)for(var b of f(c))k.call(c,b)&&l(a,b,c[b]);return a},s=(a,c)=>p(a,q(c));var t=(a,c)=>{var b={};for(var d in a)j.call(a,d)&&c.indexOf(d)<0&&(b[d]=a[d]);if(a!=null&&f)for(var d of f(a))c.indexOf(d)<0&&k.call(a,d)&&(b[d]=a[d]);return b};var u=(a,c,b)=>new Promise((d,i)=>{var m=e=>{try{g(b.next(e))}catch(h){i(h)}},n=e=>{try{g(b.throw(e))}catch(h){i(h)}},g=e=>e.done?d(e.value):Promise.resolve(e.value).then(m,n);g((b=b.apply(a,c)).next())});export{r as a,s as b,t as c,u as d};
@@ -0,0 +1 @@
1
+ var s={root:"_1q5lqdi0"};export{s as a};
@@ -0,0 +1 @@
1
+ import{c as t}from"./chunk-76US6CXQ.js";import o from"react";import{Banner as a}from"@jpmorganchase/uitk-lab";var n=()=>{let{pageState:e,errorMessage:r}=t();return e==="ERROR"?o.createElement(a,{announcement:r,status:"error"},r):null},i=n;export{i as a};
@@ -0,0 +1 @@
1
+ import{a as D}from"./chunk-UXLYVZ46.js";import{a as k}from"./chunk-RHRDHZ4F.js";import{a as w}from"./chunk-FI57IKHZ.js";import{c as S,d as b}from"./chunk-76US6CXQ.js";import{d as C}from"./chunk-XX4EWSFM.js";import e,{useState as m}from"react";import{useLexicalComposerContext as L}from"@lexical/react/LexicalComposerContext";import{$convertToMarkdownString as j}from"@lexical/markdown";import{Link as B,P2 as y,Button as x}from"@jpmorganchase/mosaic-components";import{Dialog as E,DialogTitle as F,DialogContent as G,DialogActions as N}from"@jpmorganchase/uitk-lab";var M=({isRaising:a,prHref:u,error:c})=>!a&&!u&&!c?e.createElement(e.Fragment,null,e.createElement(y,null,"The content of this page resides in a Git repository and to update it requires a Pull Request which will be reviewed by the content owners."),e.createElement("br",null),e.createElement(y,null,"Should you decide to stop editing before creating the Pull Request then all changes will be lost.")):null,X=({meta:a})=>{let{pageState:u,setPageState:c}=S(),{user:p}=b(),[T]=L(),[r,s]=m(!1),[o,t]=m(null),[i,l]=m(null),q=u==="SAVING",v=o!==null?"success":"info",d=()=>{c("EDIT"),t(null),s(!1)};return e.createElement(E,{onClose:d,open:q,status:i?"error":v,width:"50%"},e.createElement(F,null,o?"Pull Request Created Successfully":"Save Changes"),e.createElement(G,null,(r||i)&&!o&&e.createElement(D,{isRaising:r,error:i}),e.createElement(M,{isRaising:r,prHref:o,error:i}),!r&&o&&e.createElement(B,{href:o,target:"_blank"},"A Pull Request for your changes has been created")),e.createElement(N,null,e.createElement(x,{disabled:r,onClick:d},"Cancel"),e.createElement(x,{disabled:r||o!==null,onClick:()=>{s(!0),t(null),l(null);try{T.update(()=>C(void 0,null,function*(){var h,P;let f=j(k);if(f&&p){let{sid:I,displayName:A,email:H}=p,g=yield w({sid:I,name:A,email:H},a.route,f);if(g.ok){let n=yield g.json();n.error?(l(n.error),t(null),s(!1)):(t((P=(h=n==null?void 0:n.links)==null?void 0:h.self[0])==null?void 0:P.href),s(!1))}g.status===500&&(l("An unexpected error has occurred."),t(null),s(!1))}}))}catch(f){l("Sorry"),t(null),s(!1)}},variant:"cta"},"Raise Pull Request")))};export{X as a};
@@ -0,0 +1 @@
1
+ import n from"react";import{MenuButton as r}from"@jpmorganchase/uitk-lab";import{Icon as t}from"@jpmorganchase/mosaic-components";function p({initialSource:o,onItemClick:e}){return n.createElement(r,{hideCaret:!0,CascadingMenuProps:{initialSource:o,onItemClick:e}},n.createElement(t,{name:"menu"}))}export{p as a};
@@ -0,0 +1 @@
1
+ .fdaqer0{z-index:10}.ndicdo0{z-index:11}
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ menu: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ import"../../chunk-P5OBPOC4.js";import"../../chunk-XX4EWSFM.js";var n={menu:"ndicdo0"};export{n as default};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { MenuDescriptor } from '@jpmorganchase/uitk-lab';
3
+ import type { CascadingMenuProps } from '@jpmorganchase/uitk-lab';
4
+ export declare type ActionMenuSource = MenuDescriptor;
5
+ interface ActionMenuProps {
6
+ initialSource: CascadingMenuProps['initialSource'];
7
+ onItemClick: CascadingMenuProps['onItemClick'];
8
+ }
9
+ export declare function ActionMenu({ initialSource, onItemClick }: ActionMenuProps): JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-ZK6NLAGG.js";import"../../chunk-XX4EWSFM.js";export{a as ActionMenu};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ContentEditor: () => JSX.Element;
3
+ export default ContentEditor;
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-WXWEGQ2Z.js";import"../chunk-XX4EWSFM.js";export{a as default};
@@ -0,0 +1 @@
1
+ .esx0bg0{background-color:inherit;width:var(--space-none)}div[contenteditable]{outline:none}._1q293jk0{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"toolbar" "editor"}._1q293jk1{grid-area:toolbar;position:sticky;top:44px;z-index:2}._1q293jk3{display:flex;margin-top:var(--space-vertical-x3);flex-wrap:wrap;grid-area:editor}._1q293jk4{display:flex;flex-direction:row}._1q293jk5{background-repeat:no-repeat;background-position:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);cursor:col-resize}._1sg4vms0{width:28px;height:28px}.u64up60{margin:-8px 0 0}.u64up61{width:14px;font-size:12px}.u64up62{font-weight:var(--fontWeight-bold)}.u64up63{font-style:italic}.u64up64{width:22px;height:18px;background-color:inherit!important;display:inline-flex;justify-content:center;align-items:center}.fdaqer0{z-index:10}._195c2ps0{position:relative;margin:var(--space-horizontal-x2)}._195c2ps1{position:absolute;top:0;width:25px}._195c2ps2{position:absolute;left:0;height:25px}._195c2ps4{display:flex;justify-content:center;align-items:center;padding-top:var(--space-vertical-x2)}._195c2ps6{z-index:1600}._195c2ps8{margin-left:var(--space-horizontal-x1)}.jmottr0{width:100%}._1cwa3bz0{width:100%}._16n1zmy0{font-weight:var(--fontWeight-bold)}._16n1zmy1{font-style:italic}._16n1zmy2{text-decoration:underline}._16n1zmy3{text-decoration:line-through}._16n1zmy4{text-decoration:underline line-through}._16n1zmy9{font-weight:inherit}._16n1zmyc:first-of-type{font-weight:var(--fontWeight-bold)}._1w4kk0j0{padding:var(--space-vertical-x2);opacity:var(--opacity-light-disabled)}._1w4kk0j1{font-size:var(--fontSize-s80);font-style:var(--fontWeight-semibold);opacity:1}._1w4kk0j2{opacity:1}._1w4kk0j3{margin-left:var(--space-horizontal-x2);margin-right:var(--space-horizontal-x2)}._94v2lj0{padding:var(--space-vertical-x1);margin-left:var(--space-horizontal-x2)}._1q5lqdi0{padding:var(--space-horizontal-x3);max-height:100vh;overflow:scroll}[data-mode=light] .m7cgun0,[data-mode=dark] .m7cgun1{outline-color:var(--color-light-selectable-inEdit)}[data-mode=light] .m7cgun2,[data-mode=dark] .m7cgun3{outline-color:var(--color-dark-selectable-inEdit)}[data-mode=light] .m7cgun4,[data-mode=dark] .m7cgun5{outline-style:solid}[data-mode=light] .m7cgun6,[data-mode=dark] .m7cgun7{outline-style:dashed}[data-mode=light] .m7cgun8,[data-mode=dark] .m7cgun9{outline-width:thin}[data-mode=light] .m7cguna,[data-mode=dark] .m7cgunb{outline-width:medium}[data-mode=light] .m7cgunc,[data-mode=dark] .m7cgund{outline-width:thick}
@@ -0,0 +1 @@
1
+ div[contenteditable]{outline:none}._1q293jk0{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"toolbar" "editor"}._1q293jk1{grid-area:toolbar;position:sticky;top:44px;z-index:2}._1q293jk3{display:flex;margin-top:var(--space-vertical-x3);flex-wrap:wrap;grid-area:editor}._1q293jk4{display:flex;flex-direction:row}._1q293jk5{background-repeat:no-repeat;background-position:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);cursor:col-resize}
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ root: string;
3
+ toolbarContainer: string;
4
+ editorRoot: string;
5
+ splitter: string;
6
+ gutter: string;
7
+ unfocused: any;
8
+ focused: any;
9
+ };
10
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-NXV7KCC5.js";import"../chunk-XX4EWSFM.js";export{a as default};
@@ -0,0 +1,14 @@
1
+ import { ComponentType, FC } from 'react';
2
+ import type { PreviewPluginProps } from '../plugins/PreviewPlugin';
3
+ interface PreviewComponentProps {
4
+ source: any;
5
+ meta: any;
6
+ components: any;
7
+ }
8
+ interface EditorProps extends PreviewComponentProps, PreviewPluginProps {
9
+ content: string;
10
+ PreviewComponent: ComponentType<PreviewComponentProps>;
11
+ user?: any;
12
+ }
13
+ declare const Editor: FC<EditorProps>;
14
+ export default Editor;
@@ -0,0 +1 @@
1
+ import{b as a}from"../chunk-WQSFQBP7.js";import"../chunk-JX5HLHOC.js";import"../chunk-M5W2GPOK.js";import"../chunk-N3NO7L4H.js";import"../chunk-HL7D7RIZ.js";import"../chunk-BTI67NTQ.js";import"../chunk-I3Z6UENR.js";import"../chunk-ZF6MK5QB.js";import"../chunk-UXLYVZ46.js";import"../chunk-6TM3EYFS.js";import"../chunk-JVJ4H6LB.js";import"../chunk-YPBKG7ME.js";import"../chunk-PPEVCQGG.js";import"../chunk-LOZ4MGDL.js";import"../chunk-57FSKQGH.js";import"../chunk-RN54LVW4.js";import"../chunk-P3NF2XWE.js";import"../chunk-FM63P66J.js";import"../chunk-ZK6NLAGG.js";import"../chunk-HROTQ6LG.js";import"../chunk-3FJGHVH5.js";import"../chunk-JQUDHJIQ.js";import"../chunk-RHRDHZ4F.js";import"../chunk-WBUBW4PH.js";import"../chunk-3TDCKWYF.js";import"../chunk-FCCNBA44.js";import"../chunk-ZCWG7UN7.js";import"../chunk-5GT4QAIQ.js";import"../chunk-KYX7ZWMX.js";import"../chunk-UVZXP5EW.js";import"../chunk-IXKHPWRK.js";import"../chunk-W44IYDHL.js";import"../chunk-GR3B6XH6.js";import"../chunk-A6ZSQMSC.js";import"../chunk-ACFFLNAA.js";import"../chunk-WHPZZWKO.js";import"../chunk-P5OBPOC4.js";import"../chunk-MXR5SEUG.js";import"../chunk-KMK5XOLZ.js";import"../chunk-IO4745QD.js";import"../chunk-T2M7535Y.js";import"../chunk-UA5IM6NC.js";import"../chunk-FGP7KEKC.js";import"../chunk-FI57IKHZ.js";import"../chunk-WXWEGQ2Z.js";import"../chunk-NXV7KCC5.js";import"../chunk-V5Z3VNEW.js";import"../chunk-OFDMXZXG.js";import"../chunk-JKQCT2R7.js";import"../chunk-76US6CXQ.js";import"../chunk-XX4EWSFM.js";export{a as default};
@@ -0,0 +1 @@
1
+ .esx0bg0{background-color:inherit;width:var(--space-none)}
@@ -0,0 +1 @@
1
+ .esx0bg0{background-color:inherit;width:var(--space-none)}
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ root: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-OFDMXZXG.js";import"../chunk-XX4EWSFM.js";export{a as default};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const EditorControls: ({ isLoggedIn }: {
3
+ isLoggedIn?: boolean | undefined;
4
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-V5Z3VNEW.js";import"../chunk-OFDMXZXG.js";import"../chunk-76US6CXQ.js";import"../chunk-XX4EWSFM.js";export{a as EditorControls};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { ButtonProps } from '@jpmorganchase/mosaic-components';
3
+ export declare const EditLinkButton: (props: ButtonProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-57FSKQGH.js";import"../../chunk-XX4EWSFM.js";export{a as EditLinkButton};
@@ -0,0 +1 @@
1
+ ._94v2lj0{padding:var(--space-vertical-x1);margin-left:var(--space-horizontal-x2)}.fdaqer0{z-index:10}
@@ -0,0 +1 @@
1
+ ._94v2lj0{padding:var(--space-vertical-x1);margin-left:var(--space-horizontal-x2)}
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ popper: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-RN54LVW4.js";import"../../chunk-XX4EWSFM.js";export{a as default};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function LinkEditor(): JSX.Element;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-PPEVCQGG.js";import"../../chunk-LOZ4MGDL.js";import"../../chunk-57FSKQGH.js";import"../../chunk-RN54LVW4.js";import"../../chunk-P3NF2XWE.js";import"../../chunk-A6ZSQMSC.js";import"../../chunk-ACFFLNAA.js";import"../../chunk-WHPZZWKO.js";import"../../chunk-P5OBPOC4.js";import"../../chunk-XX4EWSFM.js";export{a as LinkEditor};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { ButtonProps } from '@jpmorganchase/mosaic-components';
3
+ interface SaveAdornmentProps {
4
+ onSave: ButtonProps['onClick'];
5
+ }
6
+ export declare const SaveAdornment: ({ onSave }: SaveAdornmentProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-P3NF2XWE.js";import"../../chunk-XX4EWSFM.js";export{a as SaveAdornment};
@@ -0,0 +1 @@
1
+ ._1w4kk0j0{padding:var(--space-vertical-x2);opacity:var(--opacity-light-disabled)}._1w4kk0j1{font-size:var(--fontSize-s80);font-style:var(--fontWeight-semibold);opacity:1}._1w4kk0j2{opacity:1}._1w4kk0j3{margin-left:var(--space-horizontal-x2);margin-right:var(--space-horizontal-x2)}
@@ -0,0 +1 @@
1
+ ._1w4kk0j0{padding:var(--space-vertical-x2);opacity:var(--opacity-light-disabled)}._1w4kk0j1{font-size:var(--fontSize-s80);font-style:var(--fontWeight-semibold);opacity:1}._1w4kk0j2{opacity:1}._1w4kk0j3{margin-left:var(--space-horizontal-x2);margin-right:var(--space-horizontal-x2)}
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ step: string;
3
+ stepActive: string;
4
+ stepComplete: string;
5
+ stepText: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-6TM3EYFS.js";import"../../chunk-XX4EWSFM.js";export{a as default};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface StatusProps {
3
+ isRaising: boolean;
4
+ error: string | null;
5
+ }
6
+ export declare const PersistStatus: ({ isRaising, error }: StatusProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-UXLYVZ46.js";import"../../chunk-6TM3EYFS.js";import"../../chunk-XX4EWSFM.js";export{a as PersistStatus};
@@ -0,0 +1 @@
1
+ ._1w4kk0j0{padding:var(--space-vertical-x2);opacity:var(--opacity-light-disabled)}._1w4kk0j1{font-size:var(--fontSize-s80);font-style:var(--fontWeight-semibold);opacity:1}._1w4kk0j2{opacity:1}._1w4kk0j3{margin-left:var(--space-horizontal-x2);margin-right:var(--space-horizontal-x2)}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const PersistDialog: ({ meta }: {
3
+ meta: any;
4
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-ZF6MK5QB.js";import"../../chunk-UXLYVZ46.js";import"../../chunk-6TM3EYFS.js";import"../../chunk-RHRDHZ4F.js";import"../../chunk-WBUBW4PH.js";import"../../chunk-3TDCKWYF.js";import"../../chunk-FCCNBA44.js";import"../../chunk-FI57IKHZ.js";import"../../chunk-76US6CXQ.js";import"../../chunk-XX4EWSFM.js";export{a as PersistDialog};
@@ -0,0 +1 @@
1
+ .fdaqer0{z-index:10}
@@ -0,0 +1 @@
1
+ .fdaqer0{z-index:10}
@@ -0,0 +1,5 @@
1
+ export declare const POPPER_Z_INDEX = 10;
2
+ declare const _default: {
3
+ root: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a,b}from"../../chunk-WHPZZWKO.js";import"../../chunk-P5OBPOC4.js";import"../../chunk-XX4EWSFM.js";export{a as POPPER_Z_INDEX,b as default};
@@ -0,0 +1,11 @@
1
+ import React, { HTMLAttributes, ReactNode } from 'react';
2
+ interface PopperProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Floating contents */
4
+ children?: ReactNode;
5
+ /** Class name */
6
+ className?: string;
7
+ /** Flag indicating whether the floating content is visible */
8
+ open?: boolean;
9
+ }
10
+ export declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
11
+ export {};
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-ACFFLNAA.js";import"../../chunk-WHPZZWKO.js";import"../../chunk-P5OBPOC4.js";import"../../chunk-XX4EWSFM.js";export{a as Popper};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const SaveButton: () => JSX.Element;
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-JKQCT2R7.js";import"../chunk-76US6CXQ.js";import"../chunk-XX4EWSFM.js";export{a as SaveButton};
@@ -0,0 +1 @@
1
+ ._1q5lqdi0{padding:var(--space-horizontal-x3);max-height:100vh;overflow:scroll}
@@ -0,0 +1 @@
1
+ ._1q5lqdi0{padding:var(--space-horizontal-x3);max-height:100vh;overflow:scroll}