@jpmorganchase/mosaic-content-editor-plugin 0.1.0-beta.10
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.
- package/.turbo/turbo-build.log +4 -0
- package/CHANGELOG.md +19 -0
- package/README.md +7 -0
- package/dist/api/save.d.ts +5 -0
- package/dist/api/save.js +1 -0
- package/dist/chunk-2N4TKE2M.js +1 -0
- package/dist/chunk-3FJGHVH5.js +1 -0
- package/dist/chunk-3ODP7WU3.js +1 -0
- package/dist/chunk-4EAOB7YQ.js +1 -0
- package/dist/chunk-4QQTGYY3.js +1 -0
- package/dist/chunk-5YCBSSDA.js +1 -0
- package/dist/chunk-6TM3EYFS.js +1 -0
- package/dist/chunk-7FEXXQT5.js +1 -0
- package/dist/chunk-7N3YX6NW.js +1 -0
- package/dist/chunk-BXNO7GED.js +1 -0
- package/dist/chunk-ENTOKO6G.js +1 -0
- package/dist/chunk-ESJNOEFD.js +1 -0
- package/dist/chunk-ESKW4XF6.js +1 -0
- package/dist/chunk-FFJYM47T.js +1 -0
- package/dist/chunk-FI57IKHZ.js +1 -0
- package/dist/chunk-FKL4ZGDB.js +1 -0
- package/dist/chunk-FW7CHFWO.js +1 -0
- package/dist/chunk-G4LBXKDE.js +1 -0
- package/dist/chunk-GDXWHJOU.js +1 -0
- package/dist/chunk-GGJCFLQH.js +1 -0
- package/dist/chunk-GWUYDDYS.js +1 -0
- package/dist/chunk-HB6ONQSD.js +1 -0
- package/dist/chunk-I7LEOMRH.js +1 -0
- package/dist/chunk-JQUDHJIQ.js +1 -0
- package/dist/chunk-JYGEHLYM.js +1 -0
- package/dist/chunk-KE4TEFFN.js +1 -0
- package/dist/chunk-KQ2ZCDYD.js +1 -0
- package/dist/chunk-KZXCNQER.js +1 -0
- package/dist/chunk-MJUOPD42.js +1 -0
- package/dist/chunk-NLBFMDUH.js +1 -0
- package/dist/chunk-NXV7KCC5.js +1 -0
- package/dist/chunk-P5OBPOC4.js +0 -0
- package/dist/chunk-PHAO5PCV.js +1 -0
- package/dist/chunk-PVPRWTXB.js +1 -0
- package/dist/chunk-PZQ26XWS.js +1 -0
- package/dist/chunk-QWW5D4V7.js +1 -0
- package/dist/chunk-RO6ARCLZ.js +1 -0
- package/dist/chunk-RT5CJ7T5.js +1 -0
- package/dist/chunk-U22HX567.js +1 -0
- package/dist/chunk-U7COOUR6.js +1 -0
- package/dist/chunk-VC2SMAQF.js +1 -0
- package/dist/chunk-WCG3U3X2.js +1 -0
- package/dist/chunk-WNTJMWYJ.js +2 -0
- package/dist/chunk-WTMALWJU.js +1 -0
- package/dist/chunk-WZYDYWT3.js +1 -0
- package/dist/chunk-XGBC7YGO.js +1 -0
- package/dist/chunk-XP37MJCS.js +1 -0
- package/dist/chunk-Y4VRZBBA.js +1 -0
- package/dist/chunk-YBFKG74H.js +1 -0
- package/dist/chunk-ZUGL4RMA.js +1 -0
- package/dist/components/ActionMenu/ActionMenu.css.css +1 -0
- package/dist/components/ActionMenu/ActionMenu.css.d.ts +4 -0
- package/dist/components/ActionMenu/ActionMenu.css.js +1 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +10 -0
- package/dist/components/ActionMenu/ActionMenu.js +1 -0
- package/dist/components/ContentEditor.d.ts +3 -0
- package/dist/components/ContentEditor.js +1 -0
- package/dist/components/Editor.css +1 -0
- package/dist/components/Editor.css.css +1 -0
- package/dist/components/Editor.css.d.ts +10 -0
- package/dist/components/Editor.css.js +1 -0
- package/dist/components/Editor.d.ts +14 -0
- package/dist/components/Editor.js +1 -0
- package/dist/components/EditorControls.css +1 -0
- package/dist/components/EditorControls.css.css +1 -0
- package/dist/components/EditorControls.css.d.ts +4 -0
- package/dist/components/EditorControls.css.js +1 -0
- package/dist/components/EditorControls.d.ts +4 -0
- package/dist/components/EditorControls.js +1 -0
- package/dist/components/LinkEditor/EditLinkButton.d.ts +3 -0
- package/dist/components/LinkEditor/EditLinkButton.js +1 -0
- package/dist/components/LinkEditor/LinkEditor.css +1 -0
- package/dist/components/LinkEditor/LinkEditor.css.css +1 -0
- package/dist/components/LinkEditor/LinkEditor.css.d.ts +4 -0
- package/dist/components/LinkEditor/LinkEditor.css.js +1 -0
- package/dist/components/LinkEditor/LinkEditor.d.ts +2 -0
- package/dist/components/LinkEditor/LinkEditor.js +1 -0
- package/dist/components/LinkEditor/SaveAdornment.d.ts +7 -0
- package/dist/components/LinkEditor/SaveAdornment.js +1 -0
- package/dist/components/PersistEditDialog/PersistStatus.css +1 -0
- package/dist/components/PersistEditDialog/PersistStatus.css.css +1 -0
- package/dist/components/PersistEditDialog/PersistStatus.css.d.ts +7 -0
- package/dist/components/PersistEditDialog/PersistStatus.css.js +1 -0
- package/dist/components/PersistEditDialog/PersistStatus.d.ts +7 -0
- package/dist/components/PersistEditDialog/PersistStatus.js +1 -0
- package/dist/components/PersistEditDialog/index.css +1 -0
- package/dist/components/PersistEditDialog/index.d.ts +4 -0
- package/dist/components/PersistEditDialog/index.js +1 -0
- package/dist/components/Popper/Popper.css +1 -0
- package/dist/components/Popper/Popper.css.css +1 -0
- package/dist/components/Popper/Popper.css.d.ts +5 -0
- package/dist/components/Popper/Popper.css.js +1 -0
- package/dist/components/Popper/Popper.d.ts +11 -0
- package/dist/components/Popper/Popper.js +1 -0
- package/dist/components/SaveButton.d.ts +2 -0
- package/dist/components/SaveButton.js +1 -0
- package/dist/components/ScrollableSection/ScrollableSection.css +1 -0
- package/dist/components/ScrollableSection/ScrollableSection.css.css +1 -0
- package/dist/components/ScrollableSection/ScrollableSection.css.d.ts +4 -0
- package/dist/components/ScrollableSection/ScrollableSection.css.js +1 -0
- package/dist/components/ScrollableSection/ScrollableSection.d.ts +7 -0
- package/dist/components/ScrollableSection/ScrollableSection.js +1 -0
- package/dist/components/StatusBanner.d.ts +3 -0
- package/dist/components/StatusBanner.js +1 -0
- package/dist/components/Toolbar/InsertBlockDropdown.d.ts +6 -0
- package/dist/components/Toolbar/InsertBlockDropdown.js +1 -0
- package/dist/components/Toolbar/InsertHorizontalRule.d.ts +2 -0
- package/dist/components/Toolbar/InsertHorizontalRule.js +1 -0
- package/dist/components/Toolbar/InsertImage.css +1 -0
- package/dist/components/Toolbar/InsertImage.css.css +1 -0
- package/dist/components/Toolbar/InsertImage.css.d.ts +4 -0
- package/dist/components/Toolbar/InsertImage.css.js +1 -0
- package/dist/components/Toolbar/InsertImage.d.ts +2 -0
- package/dist/components/Toolbar/InsertImage.js +1 -0
- package/dist/components/Toolbar/InsertLink.css +1 -0
- package/dist/components/Toolbar/InsertLink.css.css +1 -0
- package/dist/components/Toolbar/InsertLink.css.d.ts +4 -0
- package/dist/components/Toolbar/InsertLink.css.js +1 -0
- package/dist/components/Toolbar/InsertLink.d.ts +3 -0
- package/dist/components/Toolbar/InsertLink.js +1 -0
- package/dist/components/Toolbar/InsertTable.css +1 -0
- package/dist/components/Toolbar/InsertTable.css.css +1 -0
- package/dist/components/Toolbar/InsertTable.css.d.ts +13 -0
- package/dist/components/Toolbar/InsertTable.css.js +1 -0
- package/dist/components/Toolbar/InsertTable.d.ts +10 -0
- package/dist/components/Toolbar/InsertTable.js +1 -0
- package/dist/components/Toolbar/TextFormatToolbarButton.css +1 -0
- package/dist/components/Toolbar/TextFormatToolbarButton.css.css +1 -0
- package/dist/components/Toolbar/TextFormatToolbarButton.css.d.ts +5 -0
- package/dist/components/Toolbar/TextFormatToolbarButton.css.js +1 -0
- package/dist/components/Toolbar/TextFormatToolbarButton.d.ts +7 -0
- package/dist/components/Toolbar/TextFormatToolbarButton.js +1 -0
- package/dist/components/Toolbar/TextFormatTooltray.css +1 -0
- package/dist/components/Toolbar/TextFormatTooltray.css.css +1 -0
- package/dist/components/Toolbar/TextFormatTooltray.css.d.ts +8 -0
- package/dist/components/Toolbar/TextFormatTooltray.css.js +1 -0
- package/dist/components/Toolbar/TextFormatTooltray.d.ts +4 -0
- package/dist/components/Toolbar/TextFormatTooltray.js +1 -0
- package/dist/components/Toolbar/Toolbar.css +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/components/Toolbar/Toolbar.js +1 -0
- package/dist/hooks/useEditHistory.d.ts +6 -0
- package/dist/hooks/useEditHistory.js +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/nodes/index.d.ts +8 -0
- package/dist/nodes/index.js +1 -0
- package/dist/plugins/FloatingToolbarPlugin.css +1 -0
- package/dist/plugins/FloatingToolbarPlugin.d.ts +2 -0
- package/dist/plugins/FloatingToolbarPlugin.js +1 -0
- package/dist/plugins/HorizontalRulePlugin.d.ts +1 -0
- package/dist/plugins/HorizontalRulePlugin.js +1 -0
- package/dist/plugins/MarkdownImagePlugin.d.ts +7 -0
- package/dist/plugins/MarkdownImagePlugin.js +1 -0
- package/dist/plugins/MarkdownLinkPlugin.css +1 -0
- package/dist/plugins/MarkdownLinkPlugin.d.ts +8 -0
- package/dist/plugins/MarkdownLinkPlugin.js +1 -0
- package/dist/plugins/PreviewPlugin.css +1 -0
- package/dist/plugins/PreviewPlugin.d.ts +5 -0
- package/dist/plugins/PreviewPlugin.js +1 -0
- package/dist/plugins/TableActionMenuPlugin.css +1 -0
- package/dist/plugins/TableActionMenuPlugin.css.css +1 -0
- package/dist/plugins/TableActionMenuPlugin.css.d.ts +66 -0
- package/dist/plugins/TableActionMenuPlugin.css.js +1 -0
- package/dist/plugins/TableActionMenuPlugin.d.ts +2 -0
- package/dist/plugins/TableActionMenuPlugin.js +1 -0
- package/dist/store/index.d.ts +38 -0
- package/dist/store/index.js +1 -0
- package/dist/theme/index.css +1 -0
- package/dist/theme/index.css.css +1 -0
- package/dist/theme/index.css.d.ts +15 -0
- package/dist/theme/index.css.js +1 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.js +1 -0
- package/dist/transformers/horizontalRule.d.ts +2 -0
- package/dist/transformers/horizontalRule.js +1 -0
- package/dist/transformers/index.d.ts +2 -0
- package/dist/transformers/index.js +1 -0
- package/dist/transformers/link.d.ts +2 -0
- package/dist/transformers/link.js +1 -0
- package/dist/transformers/tableRule.d.ts +2 -0
- package/dist/transformers/tableRule.js +1 -0
- package/dist/utils/getSelectedNode.d.ts +2 -0
- package/dist/utils/getSelectedNode.js +1 -0
- package/package.json +56 -0
- package/src/api/save.ts +12 -0
- package/src/components/ActionMenu/ActionMenu.css.ts +9 -0
- package/src/components/ActionMenu/ActionMenu.tsx +26 -0
- package/src/components/ContentEditor.tsx +12 -0
- package/src/components/Editor.css.ts +64 -0
- package/src/components/Editor.tsx +145 -0
- package/src/components/EditorControls.css.ts +9 -0
- package/src/components/EditorControls.tsx +31 -0
- package/src/components/LinkEditor/EditLinkButton.tsx +9 -0
- package/src/components/LinkEditor/LinkEditor.css.ts +15 -0
- package/src/components/LinkEditor/LinkEditor.tsx +136 -0
- package/src/components/LinkEditor/SaveAdornment.tsx +16 -0
- package/src/components/PersistEditDialog/PersistStatus.css.ts +21 -0
- package/src/components/PersistEditDialog/PersistStatus.tsx +78 -0
- package/src/components/PersistEditDialog/__tests__/handlers.ts +9 -0
- package/src/components/PersistEditDialog/__tests__/index.test.tsx +93 -0
- package/src/components/PersistEditDialog/index.tsx +109 -0
- package/src/components/Popper/Popper.css.ts +12 -0
- package/src/components/Popper/Popper.tsx +31 -0
- package/src/components/SaveButton.tsx +23 -0
- package/src/components/ScrollableSection/ScrollableSection.css.ts +10 -0
- package/src/components/ScrollableSection/ScrollableSection.tsx +20 -0
- package/src/components/StatusBanner.tsx +16 -0
- package/src/components/Toolbar/InsertBlockDropdown.tsx +134 -0
- package/src/components/Toolbar/InsertHorizontalRule.tsx +18 -0
- package/src/components/Toolbar/InsertImage.css.ts +7 -0
- package/src/components/Toolbar/InsertImage.tsx +132 -0
- package/src/components/Toolbar/InsertLink.css.ts +7 -0
- package/src/components/Toolbar/InsertLink.tsx +145 -0
- package/src/components/Toolbar/InsertTable.css.ts +46 -0
- package/src/components/Toolbar/InsertTable.tsx +190 -0
- package/src/components/Toolbar/TextFormatToolbarButton.css.ts +10 -0
- package/src/components/Toolbar/TextFormatToolbarButton.tsx +29 -0
- package/src/components/Toolbar/TextFormatTooltray.css.ts +27 -0
- package/src/components/Toolbar/TextFormatTooltray.tsx +118 -0
- package/src/components/Toolbar/Toolbar.tsx +47 -0
- package/src/components/__tests__/EditorControls.test.tsx +69 -0
- package/src/components/__tests__/StatusBanner.test.tsx +33 -0
- package/src/hooks/useEditHistory.ts +49 -0
- package/src/index.ts +5 -0
- package/src/nodes/index.ts +23 -0
- package/src/plugins/FloatingToolbarPlugin.tsx +100 -0
- package/src/plugins/HorizontalRulePlugin.tsx +39 -0
- package/src/plugins/MarkdownImagePlugin.tsx +58 -0
- package/src/plugins/MarkdownLinkPlugin.tsx +69 -0
- package/src/plugins/PreviewPlugin.tsx +46 -0
- package/src/plugins/TableActionMenuPlugin.css.ts +29 -0
- package/src/plugins/TableActionMenuPlugin.tsx +274 -0
- package/src/store/__tests__/index.test.ts +171 -0
- package/src/store/index.ts +84 -0
- package/src/theme/index.css.ts +39 -0
- package/src/theme/index.ts +22 -0
- package/src/transformers/horizontalRule.ts +25 -0
- package/src/transformers/index.ts +6 -0
- package/src/transformers/link.ts +3 -0
- package/src/transformers/tableRule.ts +193 -0
- package/src/utils/getSelectedNode.ts +16 -0
- package/tsconfig.json +8 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
@jpmorganchase/mosaic-content-editor-plugin:build: cache hit, replaying output 53879ed0068c2a4a
|
|
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @jpmorganchase/mosaic-content-editor-plugin
|
|
2
|
+
|
|
3
|
+
## 0.1.0-beta.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- af2f579: Converted repo to ESM and Salt DS nomenclature
|
|
8
|
+
|
|
9
|
+
- Switch UITK nomenclature to Salt DS
|
|
10
|
+
Upgraded to first stable version of Salt DS version 1.0.0
|
|
11
|
+
- CommonJS code switched to ESM and upgraded to Node 16
|
|
12
|
+
- Removed example-nextjs-ssr package as un-required, can be replaced by documentation
|
|
13
|
+
- Sites can now generate immutable snapshots of content that loads content like a SGS (statically generated site)
|
|
14
|
+
Snapshots can be used as a serverless solution when deployed to Vercel.
|
|
15
|
+
- New Middleware package `@jpmorganchase/mosaic-site-middleware`
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [af2f579]
|
|
18
|
+
- @jpmorganchase/mosaic-components@0.1.0-beta.10
|
|
19
|
+
- @jpmorganchase/mosaic-theme@0.1.0-beta.10
|
package/README.md
ADDED
package/dist/api/save.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-FI57IKHZ.js";export{a as save};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"./chunk-KE4TEFFN.js";import n,{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 C=()=>{let{setPageState:t}=e(),[o,a]=s(!0);return n.createElement(n.Fragment,null,n.createElement(g,{onChange:()=>{a(!1)},ignoreSelectionChange:!0}),n.createElement(r,{disabled:o,variant:"cta",onClick:()=>t("SAVING")},n.createElement(i,{name:"save"})," \xA0 Save"))};export{C as a};
|
|
@@ -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{a as r}from"./chunk-6TM3EYFS.js";import s,{useEffect as m,useState as g}from"react";import u from"classnames";import{P2 as S}from"@jpmorganchase/mosaic-components";var p=["Making a copy...","Applying changes...","Creating a Pull Request..."],o=p.length-1,c=({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===p.length-1?clearInterval(n):i(t=>t+1)},2e3);return function(){clearInterval(n)}},[e]),a?s.createElement(S,null,"\u{1F622} Sorry something has went wrong. Please try again later."):s.createElement(s.Fragment,null,p.map((n,t)=>s.createElement(c,{key:`step -${t}`,isComplete:e===o&&t===o?!l:e>t,isCurrent:e===t},n)))};export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as M}from"./chunk-ESKW4XF6.js";import{a as T}from"./chunk-PHAO5PCV.js";import{c as S,d as L}from"./chunk-ENTOKO6G.js";import{a as D}from"./chunk-4QQTGYY3.js";import A,{useCallback as i,useEffect as h,useState as E}from"react";import{useLexicalComposerContext as N}from"@lexical/react/LexicalComposerContext";import{$getSelection as B,$isRangeSelection as O}from"lexical";import{$deleteTableColumn as U,$getElementGridForTableNode as $,$getTableCellNodeFromLexicalNode as k,$getTableColumnIndexFromTableCellNode as y,$getTableNodeFromLexicalNodeOrThrow as u,$getTableRowIndexFromTableCellNode as F,$insertTableColumn as K,$insertTableRow as G,$isTableCellNode as a,$removeTableRowAtIndex as H}from"@lexical/table";import{useFloatingUI as j}from"@salt-ds/lab";import{ArrowDownIcon as q,ArrowLeftIcon as z,ArrowRightIcon as J,ArrowUpIcon as Q,DeleteIcon as v,DeleteSolidIcon as V}from"@salt-ds/icons";var W={menuItems:[{title:"Insert Row Above",icon:Q},{title:"Insert Row Below",icon:q},{title:"Insert Column Left",icon:z},{title:"Insert Column Right",icon:J},{title:"Delete Row",icon:v},{title:"Delete Column",icon:v},{title:"Delete Table",icon:V}]};function X({editor:t,tableCellNode:e,onComplete:o}){let s=n=>{if(!!n){if(n.title==="Delete Row"){f();return}if(n.title==="Insert Row Below"){m(!0);return}if(n.title==="Insert Row Above"){m(!1);return}if(n.title==="Insert Column Left"){d(!1);return}if(n.title==="Insert Column Right"){d(!0);return}if(n.title==="Delete Column"){p();return}n.title==="Delete Table"&&I()}},f=i(()=>{t.update(()=>{if(a(e)){let n=u(e),l=F(e);H(n,l),o()}})},[t,o,e]),m=i(n=>{t.update(()=>{if(a(e)){let l=u(e),c=F(e),r=$(t,l);G(l,c,n,1,r)}o()})},[t,e,o]),d=i(n=>{t.update(()=>{if(a(e)){let l=u(e),c=y(e),r=$(t,l);K(l,c,n,1,r)}o()})},[t,e,o]),p=i(()=>{t.update(()=>{if(a(e)){let n=u(e),l=y(e);U(n,l),o()}})},[t,e,o]),I=i(()=>{t.update(()=>{a(e)&&(u(e).remove(),o())})},[t,e,o]);return A.createElement(M,{initialSource:W,onItemClick:s})}function ae(){let[t]=N(),[e,o]=E(null),[s,f]=E(null),{context:m,floating:d,reference:p,strategy:I,x:n,y:l}=j({placement:"right",strategy:"absolute",open:e!==null,onOpenChange:()=>o(null)}),{getFloatingProps:c}=S([L(m,{ancestorScroll:!0})]),r=i(()=>{let g=B(),w=window.getSelection(),{activeElement:C}=document;if(g==null){o(null);return}let x=t.getRootElement();if(O(g)&&x!==null&&w!==null&&x.contains(w.anchorNode)){let R=k(g.anchor.getNode());if(R==null){o(null);return}let b=t.getElementByKey(R.getKey());if(b==null){o(null);return}b.classList.add(...T.focused),o(R),p(b),f(b)}else C||o(null)},[t,p]);h(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{r()})}),[t,r]),h(function(){return s?.classList.add(...T.focused),function(){s?.classList.remove(...T.focused)}},[s?.classList,e]);let P=()=>{f(null),o(null)};return A.createElement(D,{ref:d,open:e!==null,style:{top:l??"",left:n??"",position:I},...c({})},A.createElement(X,{editor:t,tableCellNode:e,onComplete:P}))}export{ae as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as o}from"./chunk-XP37MJCS.js";import r,{forwardRef as a}from"react";import{Portal as l,useWindow as m}from"@salt-ds/lab";import c from"classnames";var L=a(function(t,n){let{children:s,className:i,...e}=t,p=m();return e.open?r.createElement(l,null,r.createElement(p,{className:c(i,o.root),ref:n,...e},s)):null});export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u={popper:"_94v2lj0 fxs0xn ueedq71k ueedq71l ueedq71m ueedq71n ueedq71o ueedq71p ueedq71q ueedq71r ueedq77c ueedq784 ueedq78 ueedq79 ueedq7a ueedq7b ueedq7c ueedq7d ueedq7e ueedq7f"};export{u 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 L}from"./chunk-WZYDYWT3.js";import{a as I}from"./chunk-7N3YX6NW.js";import{e as f}from"./chunk-KE4TEFFN.js";import{$createLinkNode as K,TOGGLE_LINK_COMMAND as V}from"@lexical/link";import{useLexicalComposerContext as q}from"@lexical/react/LexicalComposerContext";import{$wrapNodes as W}from"@lexical/selection";import{$createParagraphNode as G,$createTextNode as U,$getSelection as j,$isRangeSelection as Y,$isTextNode as z,COMMAND_PRIORITY_EDITOR as H,createCommand as J}from"lexical";import Q,{useCallback as X,useEffect as Z}from"react";import t,{useEffect as E,useState as k}from"react";import{useLexicalComposerContext as F}from"@lexical/react/LexicalComposerContext";import{Button as C,Icon as v}from"@jpmorganchase/mosaic-components";import{string as N,object as M}from"yup";import{FormField as S,Input as h}from"@salt-ds/lab";import{ButtonBar as P,Dialog as B,DialogTitle as _,DialogContent as A,DialogActions as O}from"@salt-ds/lab";import{$getSelection as $,$isRangeSelection as w}from"lexical";var D=M({url:N().required("Url is required"),text:N().required("Text is required").max(10,"Text must be fewer than 100 characters")}),ft=()=>{let{isInsertingLink:e,setIsInsertingLink:o}=f();return t.createElement(I,{active:e,onClick:()=>o(!0),label:"Insert Link"},t.createElement(v,{name:"linked"}))},T={url:"https://"},b=()=>{let[e]=F(),{isInsertingLink:o,setIsInsertingLink:a}=f(),[n,r]=k(T),[s,d]=k(),u=()=>{a(!1),d(void 0),r(T)};E(()=>{e.getEditorState().read(()=>{if(o){let i=$();if(w(i)){let l=i.getTextContent();r(m=>({...m,text:l}))}}})},[e,o]);let g=i=>{let l=i.inner.reduce((m,{path:c,message:y})=>({...m,[c]:y}),{});d(l)},x=(i,l)=>{let{name:m}=i.target,c={...n,[m]:l};D.validateAt(m,c,{abortEarly:!1}).then(()=>{d({...s,[m]:void 0})},g),r(c)};return t.createElement(B,{onClose:u,open:o,width:600},t.createElement("form",{onSubmit:async i=>{i.preventDefault(),D.validate(n,{abortEarly:!1}).then(()=>{let l={url:n?.url,text:n?.text};e.dispatchCommand(p,l),u()},g)},noValidate:!0},t.createElement(_,null,"Insert Link"),t.createElement(A,null,t.createElement("div",{className:L.fullWidth},t.createElement(S,{label:"Image URL text",validationStatus:s?.url?"error":void 0,helperText:s?.url},t.createElement(h,{value:n?.url,inputProps:{name:"url"},onChange:x})),t.createElement(S,{label:"Link text",validationStatus:s?.text?"error":void 0,helperText:s?.text},t.createElement(h,{value:n?.text,inputProps:{name:"text"},onChange:x})))),t.createElement(O,null,t.createElement(P,null,t.createElement(C,{onClick:u},"Cancel"),t.createElement(C,{variant:"cta",type:"submit"},"Insert")))))};var p=J();function R(){let[e]=q(),o=X(({url:a,text:n})=>{e.update(()=>{let r=j();if(Y(r)&&a!==void 0&&n!==void 0){let s=r.focus.getNode();if(z(s))e.dispatchCommand(V,a);else{let d=K(a),u=U(n);u.setFormat(r.focus.getNode().getFormat()),d.append(u),W(r,()=>d,G())}}})},[e]);Z(()=>e.registerCommand(p,a=>(o(a),!0),H),[e,o])}function St(){return R(),Q.createElement(b,null)}export{p as a,St as b,ft as c,b as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-FFJYM47T.js";import l,{forwardRef as m}from"react";import T from"classnames";import{ToolbarButton as u}from"@salt-ds/lab";var d=m(function({active:t,className:r,onClick:e,children:a,...n},s){return l.createElement(u,{ref:s,onClick:e,style:{width:28,height:28},className:T(r,o.root,{[o.active]:t}),...n},a)});export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t}from"./chunk-KE4TEFFN.js";import n from"react";import{Banner as o}from"@salt-ds/lab";var a=()=>{let{pageState:e,errorMessage:r}=t();return e==="ERROR"?n.createElement(o,{announcement:r,status:"error"},r):null},p=a;export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function F(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function K(e){return["top","bottom"].includes(F(e))?"x":"y"}function J(e){return e==="y"?"height":"width"}function B(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function S(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function $(e,t){var c;t===void 0&&(t={});let{x:r,y:n,platform:i,rects:o,elements:l,strategy:p}=e,{boundary:a="clippingAncestors",rootBoundary:x="viewport",elementContext:f="floating",altBoundary:s=!1,padding:b=0}=t,d=B(b),R=l[s?f==="floating"?"reference":"floating":f],g=S(await i.getClippingRect({element:(c=await(i.isElement==null?void 0:i.isElement(R)))==null||c?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:x,strategy:p})),h=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...o.floating,x:r,y:n}:o.reference,offsetParent:await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),strategy:p}):o[f]);return{top:g.top-h.top+d.top,bottom:h.bottom-g.bottom+d.bottom,left:g.left-h.left+d.left,right:h.right-g.right+d.right}}var Q=Math.min,Z=Math.max;var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function k(e){return e.replace(/left|right|bottom|top/g,t=>ee[t])}function te(e,t,c){c===void 0&&(c=!1);let r=_(e),n=K(e),i=J(n),o=n==="x"?r===(c?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=k(o)),{main:o,cross:k(o)}}var ne={start:"end",end:"start"};function V(e){return e.replace(/start|end/g,t=>ne[t])}var re=["top","right","bottom","left"],xe=re.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);var oe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var c;let{placement:r,middlewareData:n,rects:i,initialPlacement:o,platform:l,elements:p}=t,{mainAxis:a=!0,crossAxis:x=!0,fallbackPlacements:f,fallbackStrategy:s="bestFit",flipAlignment:b=!0,...d}=e,R=F(r),g=f||(R===o||!b?[k(o)]:function(y){let w=k(y);return[V(y),w,V(w)]}(o)),h=[o,...g],E=await $(t,d),T=[],v=((c=n.flip)==null?void 0:c.overflows)||[];if(a&&T.push(E[R]),x){let{main:y,cross:w}=te(r,i,await(l.isRTL==null?void 0:l.isRTL(p.floating)));T.push(E[y],E[w])}if(v=[...v,{placement:r,overflows:T}],!T.every(y=>y<=0)){var L,u;let y=((L=(u=n.flip)==null?void 0:u.index)!=null?L:0)+1,w=h[y];if(w)return{data:{index:y,overflows:v},reset:{placement:w}};let C="bottom";switch(s){case"bestFit":{var P;let I=(P=v.map(O=>[O,O.overflows.filter(D=>D>0).reduce((D,q)=>D+q,0)]).sort((O,D)=>O[1]-D[1])[0])==null?void 0:P[0].placement;I&&(C=I);break}case"initialPlacement":C=o}if(r!==C)return{reset:{placement:C}}}return{}}}};var ie=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var c;let{placement:r,elements:n,rects:i,platform:o,strategy:l}=t,{padding:p=2,x:a,y:x}=e,f=S(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(n.floating)),strategy:l}):i.reference),s=(c=await(o.getClientRects==null?void 0:o.getClientRects(n.reference)))!=null?c:[],b=B(p),d=await o.getElementRects({reference:{getBoundingClientRect:function(){var R;if(s.length===2&&s[0].left>s[1].right&&a!=null&&x!=null)return(R=s.find(g=>a>g.left-b.left&&a<g.right+b.right&&x>g.top-b.top&&x<g.bottom+b.bottom))!=null?R:f;if(s.length>=2){if(K(r)==="x"){let u=s[0],P=s[s.length-1],y=F(r)==="top",w=u.top,C=P.bottom,I=y?u.left:P.left,O=y?u.right:P.right;return{top:w,bottom:C,left:I,right:O,width:O-I,height:C-w,x:I,y:w}}let g=F(r)==="left",h=Z(...s.map(u=>u.right)),E=Q(...s.map(u=>u.left)),T=s.filter(u=>g?u.left===E:u.right===h),v=T[0].top,L=T[T.length-1].bottom;return{top:v,bottom:L,left:E,right:h,width:h-E,height:L-v,x:E,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 j(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function A(e){if(e==null)return window;if(!j(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function ce(e){return A(e).getComputedStyle(e)}function G(e){return j(e)?"":e?(e.nodeName||"").toLowerCase():""}function le(e){return e instanceof A(e).HTMLElement}function ue(e){return typeof ShadowRoot>"u"?!1:e instanceof A(e).ShadowRoot||e instanceof ShadowRoot}function U(e){let{overflow:t,overflowX:c,overflowY:r}=ce(e);return/auto|scroll|overlay|hidden/.test(t+r+c)}function se(e){return(t=e,(t instanceof A(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ae(e){return G(e)==="html"?e:e.assignedSlot||e.parentNode||(ue(e)?e.host:null)||se(e)}function X(e){let t=ae(e);return["html","body","#document"].includes(G(t))?e.ownerDocument.body:le(t)&&U(t)?t:X(t)}function M(e,t){var c;t===void 0&&(t=[]);let r=X(e),n=r===((c=e.ownerDocument)==null?void 0:c.body),i=A(r),o=n?[i].concat(i.visualViewport||[],U(r)?r:[]):r,l=t.concat(o);return n?l:l.concat(M(o))}import*as m from"react";import{useLayoutEffect as fe,useEffect as de,useRef as ge}from"react";import{createPortal as Ne}from"react-dom";var me=typeof document<"u"?fe:de;var He=m["useId".toString()];var pe=m.createContext(null);var he=()=>m.useContext(pe);function N(e,t,c){let r={};return{...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,p]=o;l.indexOf("on")===0?(r[l]||(r[l]=[]),typeof p=="function"&&r[l].push(p),n[l]=function(){for(var a=arguments.length,x=new Array(a),f=0;f<a;f++)x[f]=arguments[f];r[l].forEach(s=>s(...x))}):n[l]=p}),n),{})}}var We=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>N(t,e,"reference"),getFloatingProps:t=>N(t,e,"floating"),getItemProps:t=>N(t,e,"item")}};function z(e){var t;return(t=e?.ownerDocument)!=null?t:document}function Y(e){var t;return(t=z(e).defaultView)!=null?t:window}function H(e){return e?e instanceof Y(e).Element:!1}function ve(e){return e?e instanceof Y(e).HTMLElement:!1}function ye(e,t){var c;let r=(c=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?.nodesRef.current.filter(o=>{var l;return(l=n)==null?void 0:l.some(p=>{var a;return o.parentId===p.id&&((a=o.context)==null?void 0:a.open)})}))!=null?i:[],r=r.concat(n)}return r}function we(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 Re(e){let t=ge(e);return me(()=>{t.current=e}),t}function W(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 ze=function(e,t){let{open:c,onOpenChange:r,refs:n,events:i,nodeId:o}=e,{enabled:l=!0,escapeKey:p=!0,outsidePointerDown:a=!0,referencePointerDown:x=!1,ancestorScroll:f=!1,bubbles:s=!0}=t===void 0?{}:t,b=he(),d=Re(r),R=m.useCallback(()=>{var h;return(h=n.floating.current)==null?void 0:h.contains(we(z(n.floating.current)))},[n.floating]),g=m.useCallback(()=>{ve(n.reference.current)&&n.reference.current.focus()},[n.reference]);return m.useEffect(()=>{if(!c||!l)return;function h(u){if(u.key==="Escape"){if(!s&&!R())return;i.emit("dismiss"),d.current(!1),g()}}function E(u){let P=b&&ye(b,o).some(y=>{var w;return W(u,(w=y.context)==null?void 0:w.refs.floating.current)});W(u,n.floating.current)||H(n.reference.current)&&W(u,n.reference.current)||P||!s&&!R()||(i.emit("dismiss"),d.current(!1),g())}function T(){d.current(!1)}let v=z(n.floating.current);p&&v.addEventListener("keydown",h),a&&v.addEventListener("mousedown",E);let L=(f?[...H(n.reference.current)?M(n.reference.current):[],...H(n.floating.current)?M(n.floating.current):[]]:[]).filter(u=>{var P;return u!==((P=v.defaultView)==null?void 0:P.visualViewport)});return L.forEach(u=>u.addEventListener("scroll",T,{passive:!0})),()=>{p&&v.removeEventListener("keydown",h),a&&v.removeEventListener("mousedown",E),L.forEach(u=>u.removeEventListener("scroll",T))}},[p,a,i,b,o,c,d,g,f,l,s,R,n.floating,n.reference]),l?{reference:{onPointerDown(){x&&(i.emit("dismiss"),r(!1))}}}:{}};export{oe as a,ie as b,We as c,ze as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$createHorizontalRuleNode as l,$isHorizontalRuleNode as r,HorizontalRuleNode as t}from"@lexical/react/LexicalHorizontalRuleNode";var n={dependencies:[t],export:e=>r(e)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:e=>{let o=l();e.getNextSibling()!=null?e.replace(o):e.insertBefore(o),o.selectNext()},type:"element"};export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"react";import{MenuButton as r}from"@salt-ds/lab";import{Icon as t}from"@jpmorganchase/mosaic-components";function a({initialSource:o,onItemClick:e}){return n.createElement(r,{hideCaret:!0,CascadingMenuProps:{initialSource:o,onItemClick:e}},n.createElement(t,{name:"menu"}))}export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i={active:" wfgi8t3u wfgi8t44 wfgi8t3q wfgi8t4g wfgi8t4r wfgi8t51 wfgi8t4n wfgi8t5d wfgi8t5e wfgi8t5g wfgi8t5y wfgi8t5k wfgi8t6r wfgi8t6t wfgi8t6f wfgi8t6x",root:"_1sg4vms0"};export{i 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{useLexicalComposerContext as r}from"@lexical/react/LexicalComposerContext";import{$createHorizontalRuleNode as n,INSERT_HORIZONTAL_RULE_COMMAND as l}from"@lexical/react/LexicalHorizontalRuleNode";import{$getSelection as i,$isRangeSelection as u,COMMAND_PRIORITY_EDITOR as s}from"lexical";import{useEffect as f}from"react";function c(){let[o]=r();return f(()=>o.registerCommand(l,()=>{let e=i();if(!u(e))return!1;if(e.focus.getNode()!==null){let t=n();e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(t)}return!0},s),[o]),null}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as t,useEffect as c,useState as n}from"react";import{useLexicalComposerContext as f}from"@lexical/react/LexicalComposerContext";import{CAN_REDO_COMMAND as u,CAN_UNDO_COMMAND as M,REDO_COMMAND as O,UNDO_COMMAND as l,COMMAND_PRIORITY_CRITICAL as r}from"lexical";import{mergeRegister as D}from"@lexical/utils";function _(){let[e]=f(),[s,a]=n(!1),[d,i]=n(!1);c(()=>D(e.registerCommand(M,o=>(a(o),!1),r),e.registerCommand(u,o=>(i(o),!1),r)),[e]);let m=t(()=>e.dispatchCommand(l,void 0),[e]),C=t(()=>e.dispatchCommand(O,void 0),[e]);return{canRedo:d,canUndo:s,undoEdit:m,redoEdit:C}}export{_ as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$isAtNodeEnd as r}from"@lexical/selection";function N(e){let{anchor:n,focus:d}=e,o=e.anchor.getNode(),t=e.focus.getNode();return o===t?o:e.isBackward()?r(d)?o:t:r(n)?t:o}export{N as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-VC2SMAQF.js";import{a as k}from"./chunk-I7LEOMRH.js";import{a as f}from"./chunk-PZQ26XWS.js";import{a as b}from"./chunk-U22HX567.js";import{a as T}from"./chunk-4EAOB7YQ.js";import{a as y}from"./chunk-3FJGHVH5.js";import{a as s}from"./chunk-XGBC7YGO.js";import{a as M}from"./chunk-BXNO7GED.js";import{a as P}from"./chunk-RO6ARCLZ.js";import{a as F}from"./chunk-NLBFMDUH.js";import{a as x}from"./chunk-FKL4ZGDB.js";import{b as w}from"./chunk-YBFKG74H.js";import{b as E,d as S}from"./chunk-7FEXXQT5.js";import{a as g}from"./chunk-WCG3U3X2.js";import{a as t}from"./chunk-NXV7KCC5.js";import{a as C,d as v,f as p}from"./chunk-KE4TEFFN.js";import R from"react";import{$convertToMarkdownString as oo}from"@lexical/markdown";import{OnChangePlugin as ro}from"@lexical/react/LexicalOnChangePlugin";import to from"lodash/debounce";import o,{useRef as I,useState as $}from"react";import A from"classnames";import O from"gray-matter";import{LexicalComposer as U}from"@lexical/react/LexicalComposer";import{ListPlugin as X}from"@lexical/react/LexicalListPlugin";import{TablePlugin as W}from"@lexical/react/LexicalTablePlugin";import{LinkPlugin as j}from"@lexical/react/LexicalLinkPlugin";import{HistoryPlugin as q}from"@lexical/react/LexicalHistoryPlugin";import{MarkdownShortcutPlugin as G}from"@lexical/react/LexicalMarkdownShortcutPlugin";import J from"react-split";import{$convertFromMarkdownString as K}from"@lexical/markdown";function Q(r){console.error(r)}var V={namespace:"mosaic-content-editor",onError:Q,nodes:P,theme:y},Y=()=>{let r=document.createElement("div");return r.className=t.gutter,r},Z=({compileMDX:r,content:m,source:a,PreviewComponent:e,user:n,components:l})=>{let i=C()||a,{setUser:N}=v(),[u,d]=$(!1),z=I(null),{data:c,content:D}=O(m),B=()=>{d(!0),N(n)},H=()=>{d(!1)};return o.createElement(U,{initialConfig:{...V,editorState:()=>K(D,s)}},o.createElement("div",{className:t.root,onFocus:B,onBlur:H},o.createElement("div",{className:t.toolbarContainer},o.createElement(h,null),o.createElement(k,{meta:c}),o.createElement(M,null)),o.createElement("div",{className:t.editorRoot},o.createElement(J,{className:t.splitter,cursor:"col-resize",direction:"horizontal",dragInterval:1,expandToMin:!1,gutter:Y,gutterAlign:"center",minSize:100,sizes:[50,50],snapOffset:30},o.createElement(f,{className:A({[t.focused]:u,[t.unfocused]:!u}),ref:z},o.createElement(g,null)),o.createElement(f,null,e&&o.createElement(e,{source:i,meta:c,components:l}))),o.createElement(q,null),o.createElement(X,null),o.createElement(W,null),o.createElement(j,null),o.createElement(G,{transformers:s}),r&&o.createElement(L,{compileMDX:r}),o.createElement(w,null),o.createElement(E,null),o.createElement(b,null),o.createElement(x,null),o.createElement(F,null),o.createElement(T,null),o.createElement(S,null))))},_=Z;function eo(r){let m=to(r,250,{maxWait:500});return{onChange:e=>{e.read(()=>{let n=oo(s);n&&m(n)})}}}var L=({compileMDX:r})=>{let{setErrorMessage:m,setPreviewContent:a}=p(),e=async l=>{try{let i=await r(l,!1);a(i)}catch(i){i instanceof Error&&m(`MDX Error: ${i.message}`)}},{onChange:n}=eo(e);return R.createElement(ro,{onChange:n,ignoreSelectionChange:!0})};export{L as a,_ as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-KZXCNQER.js";import{a as c}from"./chunk-YBFKG74H.js";import{a as g}from"./chunk-7N3YX6NW.js";import t,{useState as s}from"react";import{useLexicalComposerContext as B}from"@lexical/react/LexicalComposerContext";import{Button as v,Icon as E}from"@jpmorganchase/mosaic-components";import{string as I,object as T}from"yup";import{ButtonBar as x,Dialog as w,DialogTitle as M,DialogContent as O,DialogActions as P}from"@salt-ds/lab";import{FormField as b,Input as S}from"@salt-ds/lab";var C=T({alt:I().required("Alternative Information is a required field").max(100,"Alternative Information must be fewer than 100 characters"),url:I().required("Url is required").url("Must be a valid Url")}),V={url:"https://"},H=()=>{let[D]=B(),[u,m]=s(!1),[e,F]=s(V),[r,d]=s(),i=()=>{m(!1)},y=()=>m(!0),f=o=>{let n=o.inner.reduce((a,{path:l,message:A})=>({...a,[l]:A}),{});d(n)},p=(o,n)=>{let{name:a}=o.target,l={...e,[a]:n};C.validateAt(a,l,{abortEarly:!1}).then(()=>{d({...r,[a]:void 0})},f),F(l)};return t.createElement(t.Fragment,null,t.createElement(g,{active:u,onClick:y,label:"Insert Image"},t.createElement(E,{name:"addDocument"})),t.createElement(w,{onClose:i,open:u,width:600},t.createElement("form",{onSubmit:async o=>{o.preventDefault(),C.validate(e,{abortEarly:!1}).then(()=>{let n={alt:e&&e.alt!==void 0?e.alt:null,url:e&&e.url!==void 0?e.url:null};D.dispatchCommand(c,n),i()},f)},noValidate:!0},t.createElement(M,null,"Insert Image"),t.createElement(O,null,t.createElement("div",{className:h.fullWidth},t.createElement(b,{label:"Url for image",validationStatus:r?.url?"error":void 0,helperText:r?.url},t.createElement(S,{value:e?.url,inputProps:{name:"url"},onChange:p})),t.createElement(b,{label:"Alternative Information (alt)",validationStatus:r?.alt?"error":void 0,helperText:r?.alt||"Provides alternative information for the image if for some reason it cannot be viewed"},t.createElement(S,{value:e?.alt,inputProps:{name:"alt"},onChange:p})))),t.createElement(P,null,t.createElement(x,null,t.createElement(v,{onClick:i},"Cancel"),t.createElement(v,{variant:"cta",type:"submit"},"Insert"))))))};export{H as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var q={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{q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"react";import{Button as n,Icon as m}from"@jpmorganchase/mosaic-components";var i=t=>o.createElement(n,{...t},o.createElement(m,{name:"edit"}));export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as D}from"./chunk-3ODP7WU3.js";import{a as h}from"./chunk-XGBC7YGO.js";import{a as S}from"./chunk-FI57IKHZ.js";import{c as P,d as C}from"./chunk-KE4TEFFN.js";import e,{useState as d}from"react";import{useLexicalComposerContext as T}from"@lexical/react/LexicalComposerContext";import{$convertToMarkdownString as x}from"@lexical/markdown";import{Link as H,P2 as b,Button as w}from"@jpmorganchase/mosaic-components";import{Dialog as B,DialogTitle as E,DialogContent as L,DialogActions as F}from"@salt-ds/lab";var G=({isRaising:i,prHref:a,error:u})=>!i&&!a&&!u?e.createElement(e.Fragment,null,e.createElement(b,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(b,null,"Should you decide to stop editing before creating the Pull Request then all changes will be lost.")):null,Q=({meta:i})=>{let{pageState:a,setPageState:u}=P(),{user:p}=C(),[y]=T(),[r,s]=d(!1),[o,t]=d(null),[n,l]=d(null),k=a==="SAVING",q=o!==null?"success":"info",m=()=>{u("EDIT"),t(null),s(!1)};return e.createElement(B,{onClose:m,open:k,status:n?"error":q,width:"50%"},e.createElement(E,null,o?"Pull Request Created Successfully":"Save Changes"),e.createElement(L,null,(r||n)&&!o&&e.createElement(D,{isRaising:r,error:n}),e.createElement(G,{isRaising:r,prHref:o,error:n}),!r&&o&&e.createElement(H,{href:o,target:"_blank"},"A Pull Request for your changes has been created")),e.createElement(F,null,e.createElement(w,{disabled:r,onClick:m},"Cancel"),e.createElement(w,{disabled:r||o!==null,onClick:()=>{s(!0),t(null),l(null);try{y.update(async()=>{let f=x(h);if(f&&p){let{sid:I,displayName:v,email:A}=p,c=await S({sid:I,name:v,email:A},i.route,f);if(c.ok){let g=await c.json();g.error?(l(g.error),t(null),s(!1)):(t(g?.links?.self[0]?.href),s(!1))}c.status===500&&(l("An unexpected error has occurred."),t(null),s(!1))}})}catch{l("Sorry"),t(null),s(!1)}},variant:"cta"},"Raise Pull Request")))};export{Q 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
|
+
var d={root:"u64up60",icon:"u64up61",bold:"u64up62",italic:"u64up63",code:"_1lf47lk0 byd2vlk byd2vlp byd2vl2 byd2vl9 u64up64"};export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as s}from"react";import i from"zustand";var r={pageState:"VIEW",user:void 0,previewContent:void 0,errorMessage:void 0,isInsertingLink:!1},n=i(e=>({...r,setPageState:t=>e({pageState:t}),startEditing:()=>e({...r,pageState:"EDIT"}),stopEditing:()=>e({pageState:r.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})})),g=()=>n(s(e=>e.previewContent,[])),p=()=>n(s(e=>e.setPreviewContent,[])),d=()=>n(s(e=>({pageState:e.pageState,setPageState:e.setPageState,errorMessage:e.errorMessage,setErrorMessage:e.setErrorMessage}),[])),S=()=>n(s(e=>({user:e.user,setUser:e.setUser}),[])),I=()=>n(s(e=>({isInsertingLink:e.isInsertingLink,setIsInsertingLink:e.setIsInsertingLink}),[])),E=n;export{g as a,p as b,d as c,S as d,I as e,E as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d={root:"_1q5lqdi0"};export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={fullWidth:"jmottr0"};export{r 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"@salt-ds/lab";var i=({onSave:n})=>o.createElement(m,null,o.createElement(t,{onClick:n},o.createElement(r,{name:"save"})));export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-QWW5D4V7.js";import{a as f,b as u,c as b,d as y}from"./chunk-ENTOKO6G.js";import{a as d}from"./chunk-4QQTGYY3.js";import{c as S}from"./chunk-7FEXXQT5.js";import o,{useCallback as L,useEffect as N,useState as T}from"react";import{useLexicalComposerContext as A}from"@lexical/react/LexicalComposerContext";import{mergeRegister as M}from"@lexical/utils";import{$getSelection as R,$isRangeSelection as _,COMMAND_PRIORITY_LOW as k,SELECTION_CHANGE_COMMAND as w}from"lexical";import{Toolbar as D,Tooltray as B}from"@salt-ds/lab";import{useFloatingUI as W}from"@salt-ds/lab";function V(){let[e]=A(),[t,i]=T(null),[s,r]=T(!1),P=t?{middleware:[u(t),f({fallbackPlacements:["bottom-start","top-start"]})]}:{placement:"bottom-start",strategy:"absolute"},{context:x,floating:C,reference:m,strategy:F}=W({placement:"bottom-start",open:s,onOpenChange:r,strategy:"absolute",...P}),{getFloatingProps:I}=b([y(x,{ancestorScroll:!0})]),n=L(()=>{let a=R(),p=window.getSelection(),g=p?.anchorNode?.parentElement;if(_(a)&&g){m(g);let E=p.getRangeAt(0),{x:O,y:h,height:U}=E.getBoundingClientRect();i({x:O,y:h+U}),r(!0)}else i(null),r(!1)},[m]);N(()=>M(e.registerUpdateListener(({editorState:a})=>{a.read(()=>{n()})}),e.registerCommand(w,()=>(n(),!1),k)),[e,n]);let l={position:F};return t&&(l={...l,top:t.y,left:t.x}),o.createElement(d,{ref:C,open:s,style:l,...I({})},o.createElement(D,{"aria-label":"page editing toolbar",style:{minWidth:"100px"}},o.createElement(c,{floating:!0}),o.createElement(B,{"aria-label":"text format tooltray"},o.createElement(S,null))))}export{V 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};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={focused:["m7cgune","m7cgun6","m7cgun8","m7cgun0","m7cgun3"]},i={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{o as a,i as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-WTMALWJU.js";import{f as a}from"./chunk-KE4TEFFN.js";import t from"react";import{Icon as b}from"@jpmorganchase/mosaic-components";import{Toolbar as c,Tooltray as g,ToolbarButton as m}from"@salt-ds/lab";var y=({isLoggedIn:l=!1})=>{let{pageState:e,startEditing:i,stopEditing:n}=a(),o=e==="EDIT",s=()=>o?n():i(),d=l?o?"Cancel Editing":"Edit Page":"Login Required to Edit";return t.createElement(c,{"aria-label":"editor-controls",className:r.root},t.createElement(g,{"aria-label":"page editor controls tooltray"},t.createElement(m,{"aria-label":o?"cancel editing":"start editing",onClick:s,disabled:!l,label:d},t.createElement(b,{name:o?"delete":"edit"}))))};export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-KQ2ZCDYD.js";import c,{forwardRef as l}from"react";import n from"classnames";var S=l(function({className:o,children:r},t){return c.createElement("section",{ref:t,className:n(e.root,o)},r)});export{S as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-JYGEHLYM.js";import{a as C}from"./chunk-U7COOUR6.js";import{a as m}from"./chunk-7N3YX6NW.js";import o,{useCallback as O,useEffect as g,useState as n}from"react";import d from"classnames";import{FORMAT_TEXT_COMMAND as E,SELECTION_CHANGE_COMMAND as M,COMMAND_PRIORITY_CRITICAL as k,$getSelection as A,$isRangeSelection as _}from"lexical";import{useLexicalComposerContext as D}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 H}from"@lexical/code";import{Icon as N}from"@jpmorganchase/mosaic-components";import{Tooltray as G}from"@salt-ds/lab";function to({floating:T=!1}){let[c]=D(),[r,u]=n(c),[I,b]=n(!1),[h,F]=n(!1),[L,f]=n(!1),[B,y]=n("paragraph"),p=e=>{r.dispatchCommand(E,e)},l=O(()=>{let e=A();if(_(e)){b(e.hasFormat("bold")),F(e.hasFormat("italic")),f(e.hasFormat("code"));let a=e.anchor.getNode(),t=a.getKey()==="root"?a:a.getTopLevelElementOrThrow(),v=t.getKey();if(r.getElementByKey(v)!==null)if($(t)){let i=S(a,K),x=i?i.getListType():t.getListType();y(x)}else{let i=w(t)?t.getTag():t.getType();i&&y(i),H(t)&&f(!0)}}},[r]);return g(()=>r.registerUpdateListener(({editorState:e})=>{e.read(()=>{l()})}),[r,l]),g(()=>c.registerCommand(M,(e,a)=>(l(),u(a),!1),k),[c,l]),o.createElement("div",{className:s.root},T?null:o.createElement("span",null),o.createElement(G,{"data-collapsible":"instant"},!T&&o.createElement(C,{editor:r,type:B}),o.createElement(m,{active:I,onClick:()=>p("bold"),label:"Bold"},o.createElement("span",{className:d(s.icon,s.bold)},"B")),o.createElement(m,{active:h,onClick:()=>p("italic"),label:"Italic"},o.createElement("span",{className:d(s.icon,s.italic)},"I")),o.createElement(m,{active:L,onClick:()=>p("code"),label:"Inline Code"},o.createElement("span",{className:d(s.code)},o.createElement(N,{name:"chevronLeft"}),o.createElement(N,{name:"chevronRight"})))))}export{to as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HeadingNode as o,QuoteNode as e}from"@lexical/rich-text";import{ListNode as d,ListItemNode as t}from"@lexical/list";import{AutoLinkNode as i,LinkNode as r}from"@lexical/link";import{TableCellNode as m,TableNode as N,TableRowNode as l}from"@lexical/table";import{CodeHighlightNode as p,CodeNode as f}from"@lexical/code";import{HorizontalRuleNode as n}from"@lexical/react/LexicalHorizontalRuleNode";var C=[i,p,f,o,n,r,t,d,e,m,N,l];export{C as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{LINK as o}from"@lexical/markdown";var t=o;export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as C}from"./chunk-G4LBXKDE.js";import{a as S}from"./chunk-HB6ONQSD.js";import{a as L}from"./chunk-5YCBSSDA.js";import{a as y}from"./chunk-MJUOPD42.js";import{c as g,d}from"./chunk-ENTOKO6G.js";import{a as E}from"./chunk-4QQTGYY3.js";import{mergeRegister as x}from"@lexical/utils";import{$getSelection as P,$isRangeSelection as v,COMMAND_PRIORITY_LOW as T,SELECTION_CHANGE_COMMAND as B}from"lexical";import l,{useCallback as G,useEffect as k,useRef as $,useState as f}from"react";import{$isLinkNode as I,TOGGLE_LINK_COMMAND as b}from"@lexical/link";import{useLexicalComposerContext as F}from"@lexical/react/LexicalComposerContext";import{Input as H,useFloatingUI as w}from"@salt-ds/lab";function ne(){let[t]=F(),N=$(null),[o,r]=f(""),[h,s]=f(!1),[O,a]=f(null),c=()=>{r(""),s(!1),a(null)},{context:D,floating:M,reference:m,strategy:R,x:A,y:K}=w({placement:"right",strategy:"absolute",open:o.length>0,onOpenChange:c}),{getFloatingProps:U}=g([d(D,{ancestorScroll:!0})]),n=G(()=>{let e=P();if(v(e)){let i=C(e),p=i.getParent();I(p)?(m(t.getElementByKey(p.getKey())),r(p.getURL()),a(e)):I(i)?(m(t.getElementByKey(i.getKey())),r(i.getURL()),a(e)):c()}return s(!1),!0},[t,m]);k(()=>x(t.registerUpdateListener(({editorState:e})=>{e.read(()=>{n()})}),t.registerCommand(B,()=>(n(),!0),T)),[t,n]),k(()=>{t.getEditorState().read(()=>{n()})},[t,n]);let u=()=>{O!==null&&o!==""&&(t.dispatchCommand(b,o),s(!1))},_=()=>s(!0);return l.createElement(E,{className:L.popper,ref:M,open:o.length>0,style:{top:K??"",left:A??"",position:R},...U({})},h?l.createElement(H,{endAdornment:l.createElement(y,{onSave:u}),ref:N,value:o,onChange:e=>{r(e.target.value)},onKeyDown:e=>{e.key==="Enter"?(e.preventDefault(),u()):e.key==="Escape"&&e.preventDefault()}}):l.createElement(S,{onClick:_}))}export{ne as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import B from"react";import{Dropdown as N}from"@salt-ds/lab";import{$createCodeNode as p}from"@lexical/code";import{INSERT_ORDERED_LIST_COMMAND as C,INSERT_UNORDERED_LIST_COMMAND as k}from"@lexical/list";import{$createHeadingNode as H,$createQuoteNode as x}from"@lexical/rich-text";import{$wrapNodes as n}from"@lexical/selection";import{$createParagraphNode as E,$getSelection as a,$isRangeSelection as r}from"lexical";var L=o=>o?o.name:"",i=[{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"}],c=[{name:"Bulleted List",type:"bullet"},{name:"Code Block",type:"code"},...i,{name:"Numbered List",type:"number"},{name:"Paragraph",type:"paragraph"},{name:"Quote",type:"quote"}];function Q({editor:o,type:d}){let s=t=>{t.type==="paragraph"&&o.update(()=>{let e=a();r(e)&&n(e,()=>E())})},l=t=>{i.findIndex(e=>e.type===t.type)>=0&&o.update(()=>{let e=a();r(e)&&n(e,()=>H(t.type))})},m=t=>{t.type==="bullet"&&o.dispatchCommand(k,void 0)},u=t=>{t.type==="number"&&o.dispatchCommand(C,void 0)},y=t=>{t.type==="quote"&&o.update(()=>{let e=a();r(e)&&n(e,()=>x())})},f=t=>{t.type==="code"&&o.update(()=>{let e=a();if(r(e))if(e.isCollapsed())n(e,()=>p());else{let T=e.getTextContent(),h=p();e.removeText(),e.insertNodes([h]),e.insertRawText(T)}})},g=(t,e)=>{!e||(s(e),l(e),m(e),u(e),y(e),f(e))},S=c.findIndex(t=>t.type===d);return B.createElement(N,{ListProps:{width:200},defaultSelected:c[S],itemToString:L,onSelectionChange:g,source:c,width:132})}export{Q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-ZUGL4RMA.js";import{a as d}from"./chunk-GGJCFLQH.js";import{a as m}from"./chunk-Y4VRZBBA.js";import{a as i}from"./chunk-FW7CHFWO.js";import{a as e}from"./chunk-QWW5D4V7.js";import{c as b}from"./chunk-7FEXXQT5.js";import{a as n}from"./chunk-2N4TKE2M.js";import{c as a}from"./chunk-KE4TEFFN.js";import o from"react";import{Toolbar as g,ToolbarButton as t,Tooltray as r}from"@salt-ds/lab";import{Icon as l}from"@jpmorganchase/mosaic-components";var I=()=>{let{canRedo:p,canUndo:T,redoEdit:y,undoEdit:f}=i(),{setPageState:u}=a();return o.createElement(g,{"aria-label":"page editing toolbar",style:{minWidth:"100px"}},o.createElement(r,{"aria-label":"history tooltray"},o.createElement(t,{label:"Undo",disabled:!T,onClick:f},o.createElement(l,{name:"undo"})),o.createElement(t,{label:"Redo",disabled:!p,onClick:y},o.createElement(l,{name:"redo"}))),o.createElement(e,null),o.createElement(r,{"aria-label":"text format tooltray"},o.createElement(b,null),o.createElement(m,null),o.createElement(d,null),o.createElement(s,null)),o.createElement(r,{"aria-label":"stop editing tooltray",alignEnd:!0},o.createElement(t,{label:"Cancel Editing",onClick:()=>u("VIEW")},o.createElement(l,{name:"delete"}))),o.createElement(r,{"aria-label":"copy tooltray","data-pad-start":!0},o.createElement(n,null)))},v=I;export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"react";import{RichTextPlugin as e}from"@lexical/react/LexicalRichTextPlugin";import{ContentEditable as o}from"@lexical/react/LexicalContentEditable";var i=()=>t.createElement(e,{contentEditable:t.createElement(o,null),placeholder:t.createElement("div",null,"Enter some text...")}),d=i;export{d as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as d}from"./chunk-RT5CJ7T5.js";import{$createTableCellNode as N,$createTableNode as C,$createTableRowNode as E,$isTableNode as u,$isTableRowNode as g,TableCellHeaderStates as x,TableCellNode as R,TableNode as S,TableRowNode as $}from"@lexical/table";import{$createParagraphNode as _,$createTextNode as v,$isElementNode as w,$isParagraphNode as A,$isTextNode as L}from"lexical";var m=/^(?:\|)(.+)(?:\|)\s?$/,b=/(---)/,z={dependencies:[S,$,R],export:(e,l)=>{if(!u(e))return null;let t=[],o=null;for(let n of e.getChildren()){let r=[];if(g(n)){for(let i of n.getChildren())w(i)&&r.push(l(i));o===null&&(o=r.length)}t.push(`| ${r.join(" | ")} |`)}return P(t,o),t.join(`
|
|
2
|
+
`)},regExp:m,replace:(e,l,t)=>{let o=f(t[0]);if(o==null)return;let n=k(o),r=e.getPreviousSibling(),i=o.length;for(;r&&!(!A(r)||r.getChildrenSize()!==1);){let h=r.getFirstChild();if(!L(h))break;let c=f(h.getTextContent());if(c==null)break;i=Math.max(i,c.length),n.unshift(c);let T=r.getPreviousSibling();r.remove(),r=T}let a=O(n,i),s=e.getPreviousSibling();u(s)&&M(s)===i?(s.append(...a.getChildren()),e.remove()):e.replace(a),a.selectEnd()},type:"element"};function M(e){let l=e.getFirstChild();return g(l)?l.getChildrenSize():0}var p=e=>{let l=N(x.NO_STATUS),t=_();if(e!=null){let o=v(e.trim());t.append(o);let n=e.trim().match(d.regExp);n&&d.replace(o,n)}return l.append(t),l},f=e=>{let l=e.match(m);return!l||!l[1]?null:l[1].split("|").map(t=>p(t))},P=(e,l)=>{let t="";if(!l)return e;for(let n=0;n<l+1;n++)t=t.concat("|"),n<l&&(t=t.concat("----"));return e[1]?.match(b)?e:e.splice(1,0,t)},k=e=>e[0].getFirstChild()?.getTextContent()?.match(b)===null?[e]:[],O=(e,l)=>{let t=C();for(let o of e){let n=E();t.append(n);for(let r=0;r<l;r++)n.append(r<o.length?o[r]:p(null))}return t};export{z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={root:"esx0bg0"};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d={fullWidth:"_1cwa3bz0"};export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-WNTJMWYJ.js";import{a as o}from"./chunk-ESJNOEFD.js";import{TRANSFORMERS as m}from"@lexical/markdown";var p=[o,r,...m];export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=10,o={root:"fdaqer0 byd2vlk byd2vlp _16h9hyp6 _16h9hypf"};export{r as a,o as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-GWUYDDYS.js";import{c as M,d as N}from"./chunk-ENTOKO6G.js";import{a as F}from"./chunk-4QQTGYY3.js";import{a as E}from"./chunk-7N3YX6NW.js";import e,{useRef as P,useState as y}from"react";import{Icon as H}from"@jpmorganchase/mosaic-components";import{useLexicalComposerContext as j}from"@lexical/react/LexicalComposerContext";import{INSERT_TABLE_COMMAND as q}from"@lexical/table";import{useFloatingUI as G}from"@salt-ds/lab";var J=({index:n,...r})=>e.createElement("td",{className:o.cell,"data-column":n,...r}),K=({children:n,index:r})=>e.createElement("tr",{className:r===1?o.headerRow:o.row,"data-row":r},n),Q=({rowCount:n,columnCount:r})=>{let a=[],s=[];for(let t=1;t<=r;t++)a.push(e.createElement(J,{key:t,index:t}));for(let t=1;t<=n;t++)s.push(e.createElement(K,{key:t,index:t},a));return e.createElement("tbody",null,s)};function V(n){let r=parseInt(n?.dataset?.column||"0",10),a=n.parentNode,s=parseInt(a?.dataset?.row||"0",10);return{columnIndex:r,rowIndex:s}}var me=({minRows:n=2,minColumns:r=2,maxColumns:a=10,initialRowCount:s=4,initialColumnCount:t=4})=>{let[O]=j(),g=P(null),u=P(!1),[m,d]=y(t),[i,p]=y(s),[f,v]=y(!1),x=()=>{h(),v(l=>!l)},{context:L,floating:S,reference:B,strategy:k,x:A,y:D}=G({placement:"bottom",strategy:"absolute",open:f,onOpenChange:x}),{getFloatingProps:_}=M([N(L,{ancestorScroll:!0})]),$=l=>{let I=l.nativeEvent.target;if(!g.current?.contains(I)||!u.current)return;let{columnIndex:w,rowIndex:T}=V(I);w<m&&w>=r&&d(w),T<i&&T>=n&&p(T)};function h(){d(t),p(s),u.current=!1}let z=()=>{u.current=!0,m+1<=a&&d(l=>l+1)},U=()=>{u.current=!0,p(l=>l+1)},W=()=>{O.dispatchCommand(q,{columns:m.toString(),rows:i.toString()}),h(),v(!1)},c=25,b=i*c,C=m*c;return e.createElement(e.Fragment,null,e.createElement(E,{ref:B,onClick:x,active:f},e.createElement(H,{name:"grid"}),e.createElement("div",{className:o.spacer}),e.createElement(H,{name:"chevronDown"})),e.createElement(F,{className:o.popper,ref:S,open:f,style:{top:D??"",left:A??"",position:k},..._({})},e.createElement("div",{className:o.tableContainer,onMouseOver:$,onClick:W},e.createElement("table",{className:o.table,style:{width:C,height:b},ref:g},e.createElement(Q,{rowCount:i,columnCount:m})),e.createElement("div",{className:o.dimensions},`${m} x ${i}`),e.createElement("div",{className:o.addColumnArea,style:{left:C,height:b+c},onMouseOver:z}),e.createElement("div",{className:o.addRowArea,style:{top:b,width:C+c},onMouseOver:U}))))};export{me as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useLexicalComposerContext as i}from"@lexical/react/LexicalComposerContext";import{$createParagraphNode as m,$createTextNode as s,$getSelection as c,$isRangeSelection as d,COMMAND_PRIORITY_EDITOR as l,createCommand as u}from"lexical";import{useCallback as g,useEffect as I}from"react";var f=u();function p(){let[e]=i(),a=g(({url:t,alt:o})=>{e.update(()=>{let n=c();if(d(n)&&t!==void 0&&o!==void 0){let r=m().append(s(``));n.focus.getNode().canInsertTextAfter()&&n.insertNodes([r])}})},[e]);I(()=>e.registerCommand(f,t=>(a(t),!0),l),[e,a])}function P(){return p(),null}export{f as a,P as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"react";import{ToolbarButton as t}from"@salt-ds/lab";import{Icon as n}from"@jpmorganchase/mosaic-components";import{useLexicalComposerContext as i}from"@lexical/react/LexicalComposerContext";import{INSERT_HORIZONTAL_RULE_COMMAND as m}from"@lexical/react/LexicalHorizontalRuleNode";var s=()=>{let[r]=i();return o.createElement(t,{onClick:()=>{r.dispatchCommand(m,void 0)}},o.createElement(n,{name:"minimize"}))};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fdaqer0{z-index:10}.ndicdo0{z-index:11}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../chunk-P5OBPOC4.js";var i={menu:"ndicdo0"};export{i as default};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MenuDescriptor } from '@salt-ds/lab';
|
|
3
|
+
import type { CascadingMenuProps } from '@salt-ds/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-ESKW4XF6.js";export{a as ActionMenu};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-WCG3U3X2.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 @@
|
|
|
1
|
+
import{a}from"../chunk-NXV7KCC5.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, Partial<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-GDXWHJOU.js";import"../chunk-VC2SMAQF.js";import"../chunk-ZUGL4RMA.js";import"../chunk-GGJCFLQH.js";import"../chunk-KZXCNQER.js";import"../chunk-Y4VRZBBA.js";import"../chunk-GWUYDDYS.js";import"../chunk-I7LEOMRH.js";import"../chunk-3ODP7WU3.js";import"../chunk-6TM3EYFS.js";import"../chunk-PZQ26XWS.js";import"../chunk-KQ2ZCDYD.js";import"../chunk-U22HX567.js";import"../chunk-G4LBXKDE.js";import"../chunk-HB6ONQSD.js";import"../chunk-5YCBSSDA.js";import"../chunk-MJUOPD42.js";import"../chunk-4EAOB7YQ.js";import"../chunk-ESKW4XF6.js";import"../chunk-PHAO5PCV.js";import"../chunk-3FJGHVH5.js";import"../chunk-JQUDHJIQ.js";import"../chunk-XGBC7YGO.js";import"../chunk-WNTJMWYJ.js";import"../chunk-ESJNOEFD.js";import"../chunk-RT5CJ7T5.js";import"../chunk-BXNO7GED.js";import"../chunk-FW7CHFWO.js";import"../chunk-RO6ARCLZ.js";import"../chunk-NLBFMDUH.js";import"../chunk-QWW5D4V7.js";import"../chunk-JYGEHLYM.js";import"../chunk-U7COOUR6.js";import"../chunk-ENTOKO6G.js";import"../chunk-4QQTGYY3.js";import"../chunk-XP37MJCS.js";import"../chunk-P5OBPOC4.js";import"../chunk-FKL4ZGDB.js";import"../chunk-YBFKG74H.js";import"../chunk-7FEXXQT5.js";import"../chunk-WZYDYWT3.js";import"../chunk-7N3YX6NW.js";import"../chunk-FFJYM47T.js";import"../chunk-FI57IKHZ.js";import"../chunk-WCG3U3X2.js";import"../chunk-NXV7KCC5.js";import"../chunk-PVPRWTXB.js";import"../chunk-WTMALWJU.js";import"../chunk-2N4TKE2M.js";import"../chunk-KE4TEFFN.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 @@
|
|
|
1
|
+
import{a}from"../chunk-WTMALWJU.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-PVPRWTXB.js";import"../chunk-WTMALWJU.js";import"../chunk-KE4TEFFN.js";export{a as EditorControls};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-HB6ONQSD.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 @@
|
|
|
1
|
+
import{a}from"../../chunk-5YCBSSDA.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-U22HX567.js";import"../../chunk-G4LBXKDE.js";import"../../chunk-HB6ONQSD.js";import"../../chunk-5YCBSSDA.js";import"../../chunk-MJUOPD42.js";import"../../chunk-ENTOKO6G.js";import"../../chunk-4QQTGYY3.js";import"../../chunk-XP37MJCS.js";import"../../chunk-P5OBPOC4.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-MJUOPD42.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 @@
|
|
|
1
|
+
import{a}from"../../chunk-6TM3EYFS.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-3ODP7WU3.js";import"../../chunk-6TM3EYFS.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 @@
|
|
|
1
|
+
import{a}from"../../chunk-I7LEOMRH.js";import"../../chunk-3ODP7WU3.js";import"../../chunk-6TM3EYFS.js";import"../../chunk-XGBC7YGO.js";import"../../chunk-WNTJMWYJ.js";import"../../chunk-ESJNOEFD.js";import"../../chunk-RT5CJ7T5.js";import"../../chunk-FI57IKHZ.js";import"../../chunk-KE4TEFFN.js";export{a as PersistDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fdaqer0{z-index:10}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fdaqer0{z-index:10}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../../chunk-XP37MJCS.js";import"../../chunk-P5OBPOC4.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-4QQTGYY3.js";import"../../chunk-XP37MJCS.js";import"../../chunk-P5OBPOC4.js";export{a as Popper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-2N4TKE2M.js";import"../chunk-KE4TEFFN.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}
|