@pega/cosmos-react-build 4.0.0-dev.9.1 → 4.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  2. package/lib/components/AppShell/AppShell.js +2 -2
  3. package/lib/components/AppShell/AppShell.js.map +1 -1
  4. package/lib/components/AppShell/AppShell.styles.d.ts +4 -4
  5. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  6. package/lib/components/AppShell/AppShell.styles.js +55 -57
  7. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  8. package/lib/components/AppShell/AppShell.types.d.ts +3 -3
  9. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  10. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  11. package/lib/components/AppShell/Header/AppHeader.d.ts.map +1 -1
  12. package/lib/components/AppShell/Header/AppHeader.js +10 -14
  13. package/lib/components/AppShell/Header/AppHeader.js.map +1 -1
  14. package/lib/components/AppShell/Header/AppHeader.styles.d.ts +1 -2
  15. package/lib/components/AppShell/Header/AppHeader.styles.d.ts.map +1 -1
  16. package/lib/components/AppShell/Header/AppHeader.styles.js +1 -16
  17. package/lib/components/AppShell/Header/AppHeader.styles.js.map +1 -1
  18. package/lib/components/AppShell/Header/AppHeader.types.d.ts +6 -5
  19. package/lib/components/AppShell/Header/AppHeader.types.d.ts.map +1 -1
  20. package/lib/components/AppShell/Header/AppHeader.types.js.map +1 -1
  21. package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
  22. package/lib/components/AppShell/NavigationList.js +9 -4
  23. package/lib/components/AppShell/NavigationList.js.map +1 -1
  24. package/lib/components/AppShell/index.d.ts +3 -3
  25. package/lib/components/AppShell/index.d.ts.map +1 -1
  26. package/lib/components/AppShell/index.js.map +1 -1
  27. package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts +1 -0
  28. package/lib/components/DynamicContentEditor/DynamicContentEditor.d.ts.map +1 -1
  29. package/lib/components/DynamicContentEditor/DynamicContentEditor.js +26 -26
  30. package/lib/components/DynamicContentEditor/DynamicContentEditor.js.map +1 -1
  31. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts +1 -1
  32. package/lib/components/DynamicContentEditor/DynamicContentEditor.types.d.ts.map +1 -1
  33. package/lib/components/DynamicContentEditor/PegaCustomElement.d.ts +41 -27
  34. package/lib/components/DynamicContentEditor/PegaCustomElement.d.ts.map +1 -1
  35. package/lib/components/DynamicContentEditor/index.d.ts +1 -1
  36. package/lib/components/DynamicContentEditor/index.d.ts.map +1 -1
  37. package/lib/components/DynamicContentEditor/index.js.map +1 -1
  38. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.d.ts.map +1 -1
  39. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js +10 -11
  40. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.js.map +1 -1
  41. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js +6 -6
  42. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.styles.js.map +1 -1
  43. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts +3 -3
  44. package/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types.d.ts.map +1 -1
  45. package/lib/components/ExpressionBuilder/ExpressionBuilder.js +1 -1
  46. package/lib/components/ExpressionBuilder/ExpressionBuilder.js.map +1 -1
  47. package/lib/components/ExpressionBuilder/ExpressionDetails.d.ts.map +1 -1
  48. package/lib/components/ExpressionBuilder/ExpressionDetails.js +1 -1
  49. package/lib/components/ExpressionBuilder/ExpressionDetails.js.map +1 -1
  50. package/lib/components/ExpressionBuilder/ExpressionList.js +1 -1
  51. package/lib/components/ExpressionBuilder/ExpressionList.js.map +1 -1
  52. package/lib/components/ExpressionBuilder/index.d.ts +2 -2
  53. package/lib/components/ExpressionBuilder/index.d.ts.map +1 -1
  54. package/lib/components/ExpressionBuilder/index.js.map +1 -1
  55. package/lib/components/FlowModeller/AddNode.d.ts.map +1 -1
  56. package/lib/components/FlowModeller/AddNode.js +3 -4
  57. package/lib/components/FlowModeller/AddNode.js.map +1 -1
  58. package/lib/components/FlowModeller/Connector.d.ts +2 -2
  59. package/lib/components/FlowModeller/Connector.d.ts.map +1 -1
  60. package/lib/components/FlowModeller/Connector.js +2 -4
  61. package/lib/components/FlowModeller/Connector.js.map +1 -1
  62. package/lib/components/FlowModeller/DeletePopover.d.ts +3 -3
  63. package/lib/components/FlowModeller/DeletePopover.d.ts.map +1 -1
  64. package/lib/components/FlowModeller/DeletePopover.js +1 -1
  65. package/lib/components/FlowModeller/DeletePopover.js.map +1 -1
  66. package/lib/components/FlowModeller/FlowModeller.d.ts.map +1 -1
  67. package/lib/components/FlowModeller/FlowModeller.js +1 -3
  68. package/lib/components/FlowModeller/FlowModeller.js.map +1 -1
  69. package/lib/components/FlowModeller/Node/Node.types.d.ts +5 -0
  70. package/lib/components/FlowModeller/Node/Node.types.d.ts.map +1 -1
  71. package/lib/components/FlowModeller/Node/Node.types.js.map +1 -1
  72. package/lib/components/FlowModeller/Node/NodeTemplates.d.ts.map +1 -1
  73. package/lib/components/FlowModeller/Node/NodeTemplates.js +3 -3
  74. package/lib/components/FlowModeller/Node/NodeTemplates.js.map +1 -1
  75. package/lib/components/FlowModeller/Renderer/Utils/Graph.js.map +1 -1
  76. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js +3 -3
  77. package/lib/components/FlowModeller/Renderer/Utils/GraphLayout.js.map +1 -1
  78. package/lib/components/FlowModeller/index.d.ts +13 -8
  79. package/lib/components/FlowModeller/index.d.ts.map +1 -1
  80. package/lib/components/FlowModeller/index.js.map +1 -1
  81. package/lib/components/ItemLibrary/ItemLibrary.d.ts.map +1 -1
  82. package/lib/components/ItemLibrary/ItemLibrary.js +3 -3
  83. package/lib/components/ItemLibrary/ItemLibrary.js.map +1 -1
  84. package/lib/components/LifeCycle/Category.d.ts.map +1 -1
  85. package/lib/components/LifeCycle/Category.js +3 -3
  86. package/lib/components/LifeCycle/Category.js.map +1 -1
  87. package/lib/components/LifeCycle/LifeCycle.d.ts.map +1 -1
  88. package/lib/components/LifeCycle/LifeCycle.js +1 -1
  89. package/lib/components/LifeCycle/LifeCycle.js.map +1 -1
  90. package/lib/components/LifeCycle/LifeCycle.types.d.ts +22 -1
  91. package/lib/components/LifeCycle/LifeCycle.types.d.ts.map +1 -1
  92. package/lib/components/LifeCycle/LifeCycle.types.js.map +1 -1
  93. package/lib/components/LifeCycle/LifeCycleList.d.ts +11 -0
  94. package/lib/components/LifeCycle/LifeCycleList.d.ts.map +1 -1
  95. package/lib/components/LifeCycle/LifeCycleList.js +2 -2
  96. package/lib/components/LifeCycle/LifeCycleList.js.map +1 -1
  97. package/lib/components/LifeCycle/Stage.d.ts +2 -0
  98. package/lib/components/LifeCycle/Stage.d.ts.map +1 -1
  99. package/lib/components/LifeCycle/Stage.js +2 -2
  100. package/lib/components/LifeCycle/Stage.js.map +1 -1
  101. package/lib/components/LifeCycle/Step.d.ts +3 -0
  102. package/lib/components/LifeCycle/Step.d.ts.map +1 -1
  103. package/lib/components/LifeCycle/Step.js +6 -5
  104. package/lib/components/LifeCycle/Step.js.map +1 -1
  105. package/lib/components/LifeCycle/Task.d.ts +1 -0
  106. package/lib/components/LifeCycle/Task.d.ts.map +1 -1
  107. package/lib/components/LifeCycle/Task.js +1 -1
  108. package/lib/components/LifeCycle/Task.js.map +1 -1
  109. package/lib/components/LifeCycle/index.d.ts +1 -1
  110. package/lib/components/LifeCycle/index.d.ts.map +1 -1
  111. package/lib/components/LifeCycle/index.js.map +1 -1
  112. package/lib/components/MobileBuildSummary/MobileBuildSummary.js +1 -1
  113. package/lib/components/MobileBuildSummary/MobileBuildSummary.js.map +1 -1
  114. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.d.ts +2 -1
  115. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.d.ts.map +1 -1
  116. package/lib/components/MobileBuildSummary/MobileBuildSummary.types.js.map +1 -1
  117. package/lib/components/MobileBuildSummary/index.d.ts +1 -1
  118. package/lib/components/MobileBuildSummary/index.d.ts.map +1 -1
  119. package/lib/components/MobileBuildSummary/index.js.map +1 -1
  120. package/lib/components/ObjectPreview/ObjectPreview.d.ts +2 -2
  121. package/lib/components/ObjectPreview/ObjectPreview.d.ts.map +1 -1
  122. package/lib/components/ObjectPreview/ObjectPreview.js +2 -2
  123. package/lib/components/ObjectPreview/ObjectPreview.js.map +1 -1
  124. package/lib/components/ObjectSelect/ObjectPicker.d.ts.map +1 -1
  125. package/lib/components/ObjectSelect/ObjectPicker.js +1 -1
  126. package/lib/components/ObjectSelect/ObjectPicker.js.map +1 -1
  127. package/lib/components/ObjectSelect/ObjectSelect.d.ts.map +1 -1
  128. package/lib/components/ObjectSelect/ObjectSelect.js +1 -1
  129. package/lib/components/ObjectSelect/ObjectSelect.js.map +1 -1
  130. package/lib/components/ObjectSelect/ObjectSummary.d.ts +5 -4
  131. package/lib/components/ObjectSelect/ObjectSummary.d.ts.map +1 -1
  132. package/lib/components/ObjectSelect/ObjectSummary.js +15 -13
  133. package/lib/components/ObjectSelect/ObjectSummary.js.map +1 -1
  134. package/lib/components/ObjectSelect/index.d.ts +1 -1
  135. package/lib/components/ObjectSelect/index.d.ts.map +1 -1
  136. package/lib/components/ObjectSelect/index.js.map +1 -1
  137. package/lib/components/ObjectSelect/useCreateModal.d.ts +6 -13
  138. package/lib/components/ObjectSelect/useCreateModal.d.ts.map +1 -1
  139. package/lib/components/ObjectSelect/useCreateModal.js.map +1 -1
  140. package/lib/components/PageTemplates/GalleryPage.d.ts.map +1 -1
  141. package/lib/components/PageTemplates/GalleryPage.js +1 -1
  142. package/lib/components/PageTemplates/GalleryPage.js.map +1 -1
  143. package/lib/components/PageTemplates/PageTemplates.d.ts +1 -1
  144. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  145. package/lib/components/PageTemplates/PageTemplates.js +2 -2
  146. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  147. package/lib/components/PageTemplates/ShowcasePage.d.ts.map +1 -1
  148. package/lib/components/PageTemplates/ShowcasePage.js +1 -1
  149. package/lib/components/PageTemplates/ShowcasePage.js.map +1 -1
  150. package/lib/components/PageTemplates/index.d.ts +3 -4
  151. package/lib/components/PageTemplates/index.d.ts.map +1 -1
  152. package/lib/components/PageTemplates/index.js +1 -2
  153. package/lib/components/PageTemplates/index.js.map +1 -1
  154. package/lib/components/SummaryCard/SummaryCard.d.ts.map +1 -1
  155. package/lib/components/SummaryCard/SummaryCard.js +1 -5
  156. package/lib/components/SummaryCard/SummaryCard.js.map +1 -1
  157. package/lib/components/Workbench/Workbench.d.ts.map +1 -1
  158. package/lib/components/Workbench/Workbench.js +1 -1
  159. package/lib/components/Workbench/Workbench.js.map +1 -1
  160. package/lib/components/Workbench/Workbench.types.d.ts +2 -2
  161. package/lib/components/Workbench/Workbench.types.d.ts.map +1 -1
  162. package/lib/utils/utils.d.ts +1 -1
  163. package/lib/utils/utils.d.ts.map +1 -1
  164. package/package.json +17 -18
@@ -1 +1 @@
1
- {"version":3,"file":"Workbench.js","sourceRoot":"","sources":["../../../src/components/Workbench/Workbench.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,QAAQ,EAAE,UAAU,EAAmB,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAgB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,SAAS,GAAsC,UAAU,CAC7D,CACE,EACE,QAAQ,EACR,aAAa,GAAG,EAAE,EAClB,kBAAkB,EAClB,OAAO,EACP,uBAAuB,EACS,EAClC,GAA0B,EAC1B,EAAE;IACF,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAE9D,uBAAuB,CAAC,CAAC;IAE3B,MAAM,eAAe,GAAG,MAAM,CAC5B,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,uBAAuB,CAAC,CAClE,CAAC;IACF,MAAM,QAAQ,GAAG,CAAC,OAAiC,EAAE,EAAE;QACrD,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,OAAO;YAAE,eAAe,CAAC,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC;IAC3F,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,4CAA4C;YAClD,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,qDAAqD;SAC7D,EACD,EAAE,EAAE,eAAe,EACnB,GAAG,EAAE,GAAG,aAEP,CAAC,OAAO,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CACxC,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,YAC5B,KAAC,OAAO,OACF,OAAO,EACX,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,oBAAoB,GACpC,GACG,CACR,EACA,eAAe,CAAC,OAAO,IAAI,CAC1B,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAC7B,KAAC,YAAY,OAAK,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,oBAAoB,GAAI,GACtE,CACR,EACD,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,YAC1B,KAAC,IAAI,IAAC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,YACxC,QAAQ,GACJ,GACF,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,YACnC,KAAC,kBAAkB,OAAK,kBAAkB,GAAI,GACzC,IACF,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import { FC, useState, forwardRef, PropsWithoutRef, useRef } from 'react';\n\nimport { Flex, ForwardProps, Grid } from '@pega/cosmos-react-core';\n\nimport Toolbar from './Toolbar';\nimport { StyledMain, StyledWorkbench } from './Workbench.styles';\nimport { UtilityPanelProps, WorkbenchProps } from './Workbench.types';\nimport ConfigurationPanel from './ConfigurationPanel';\nimport UtilityPanel from './UtilityPanel';\n\nconst Workbench: FC<WorkbenchProps & ForwardProps> = forwardRef(\n (\n {\n children,\n utilityPanels = [],\n configurationPanel,\n toolbar,\n initiallyVisiblePanelId\n }: PropsWithoutRef<WorkbenchProps>,\n ref: WorkbenchProps['ref']\n ) => {\n const [currentlyOpenPanelId, setCurrentlyOpenPanelId] = useState<\n UtilityPanelProps['id'] | undefined\n >(initiallyVisiblePanelId);\n\n const panelContentRef = useRef<UtilityPanelProps | undefined>(\n utilityPanels.find(panel => panel.id === initiallyVisiblePanelId)\n );\n const onToggle = (panelId?: UtilityPanelProps['id']) => {\n setCurrentlyOpenPanelId(panelId);\n if (panelId) panelContentRef.current = utilityPanels.find(panel => panel.id === panelId);\n };\n\n return (\n <Grid\n container={{\n cols: 'min-content minmax(10rem, 1fr) min-content',\n rows: 'auto minmax(0, 1fr)',\n areas: '\"header header header\" \"utility main configuration\"'\n }}\n as={StyledWorkbench}\n ref={ref}\n >\n {(toolbar ?? utilityPanels.length > 0) && (\n <Grid item={{ area: 'header' }}>\n <Toolbar\n {...toolbar}\n options={utilityPanels}\n onToggle={onToggle}\n currentPanelId={currentlyOpenPanelId}\n />\n </Grid>\n )}\n {panelContentRef.current && (\n <Grid item={{ area: 'utility' }}>\n <UtilityPanel {...panelContentRef.current} open={!!currentlyOpenPanelId} />\n </Grid>\n )}\n <Grid item={{ area: 'main' }}>\n <Flex as={StyledMain} container={{ pad: 2 }}>\n {children}\n </Flex>\n </Grid>\n <Grid item={{ area: 'configuration' }}>\n <ConfigurationPanel {...configurationPanel} />\n </Grid>\n </Grid>\n );\n }\n);\n\nexport default Workbench;\n"]}
1
+ {"version":3,"file":"Workbench.js","sourceRoot":"","sources":["../../../src/components/Workbench/Workbench.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,QAAQ,EAAE,UAAU,EAAmB,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAgB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,SAAS,GAAsC,UAAU,CAAC,SAAS,SAAS,CAChF,EACE,QAAQ,EACR,aAAa,GAAG,EAAE,EAClB,kBAAkB,EAClB,OAAO,EACP,uBAAuB,EACS,EAClC,GAA0B;IAE1B,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAE9D,uBAAuB,CAAC,CAAC;IAE3B,MAAM,eAAe,GAAG,MAAM,CAC5B,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,uBAAuB,CAAC,CAClE,CAAC;IACF,MAAM,QAAQ,GAAG,CAAC,OAAiC,EAAE,EAAE;QACrD,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,OAAO;YAAE,eAAe,CAAC,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC;IAC3F,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,IACH,SAAS,EAAE;YACT,IAAI,EAAE,4CAA4C;YAClD,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,qDAAqD;SAC7D,EACD,EAAE,EAAE,eAAe,EACnB,GAAG,EAAE,GAAG,aAEP,CAAC,OAAO,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CACxC,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,YAC5B,KAAC,OAAO,OACF,OAAO,EACX,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,oBAAoB,GACpC,GACG,CACR,EACA,eAAe,CAAC,OAAO,IAAI,CAC1B,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAC7B,KAAC,YAAY,OAAK,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,oBAAoB,GAAI,GACtE,CACR,EACD,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,YAC1B,KAAC,IAAI,IAAC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,YACxC,QAAQ,GACJ,GACF,EACP,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,YACnC,KAAC,kBAAkB,OAAK,kBAAkB,GAAI,GACzC,IACF,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC","sourcesContent":["import { FC, useState, forwardRef, PropsWithoutRef, useRef } from 'react';\n\nimport { Flex, ForwardProps, Grid } from '@pega/cosmos-react-core';\n\nimport Toolbar from './Toolbar';\nimport { StyledMain, StyledWorkbench } from './Workbench.styles';\nimport { UtilityPanelProps, WorkbenchProps } from './Workbench.types';\nimport ConfigurationPanel from './ConfigurationPanel';\nimport UtilityPanel from './UtilityPanel';\n\nconst Workbench: FC<WorkbenchProps & ForwardProps> = forwardRef(function Workbench(\n {\n children,\n utilityPanels = [],\n configurationPanel,\n toolbar,\n initiallyVisiblePanelId\n }: PropsWithoutRef<WorkbenchProps>,\n ref: WorkbenchProps['ref']\n) {\n const [currentlyOpenPanelId, setCurrentlyOpenPanelId] = useState<\n UtilityPanelProps['id'] | undefined\n >(initiallyVisiblePanelId);\n\n const panelContentRef = useRef<UtilityPanelProps | undefined>(\n utilityPanels.find(panel => panel.id === initiallyVisiblePanelId)\n );\n const onToggle = (panelId?: UtilityPanelProps['id']) => {\n setCurrentlyOpenPanelId(panelId);\n if (panelId) panelContentRef.current = utilityPanels.find(panel => panel.id === panelId);\n };\n\n return (\n <Grid\n container={{\n cols: 'min-content minmax(10rem, 1fr) min-content',\n rows: 'auto minmax(0, 1fr)',\n areas: '\"header header header\" \"utility main configuration\"'\n }}\n as={StyledWorkbench}\n ref={ref}\n >\n {(toolbar ?? utilityPanels.length > 0) && (\n <Grid item={{ area: 'header' }}>\n <Toolbar\n {...toolbar}\n options={utilityPanels}\n onToggle={onToggle}\n currentPanelId={currentlyOpenPanelId}\n />\n </Grid>\n )}\n {panelContentRef.current && (\n <Grid item={{ area: 'utility' }}>\n <UtilityPanel {...panelContentRef.current} open={!!currentlyOpenPanelId} />\n </Grid>\n )}\n <Grid item={{ area: 'main' }}>\n <Flex as={StyledMain} container={{ pad: 2 }}>\n {children}\n </Flex>\n </Grid>\n <Grid item={{ area: 'configuration' }}>\n <ConfigurationPanel {...configurationPanel} />\n </Grid>\n </Grid>\n );\n});\n\nexport default Workbench;\n"]}
@@ -1,8 +1,8 @@
1
1
  import { ReactNode, Ref } from 'react';
2
2
  import type { Action } from '@pega/cosmos-react-core';
3
3
  import { IconName } from '@pega/cosmos-react-core/lib/components/Icon/iconNames';
4
- export declare type ActionName = 'undo' | 'redo';
5
- export declare type ToolbarAction = Pick<Action, 'id' | 'onClick' | 'disabled'>;
4
+ export type ActionName = 'undo' | 'redo';
5
+ export type ToolbarAction = Pick<Action, 'id' | 'onClick' | 'disabled'>;
6
6
  export interface UtilityPanelProps {
7
7
  /** Utility panel id. */
8
8
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Workbench.types.d.ts","sourceRoot":"","sources":["../../../src/components/Workbench/Workbench.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uDAAuD,CAAC;AAEjF,oBAAY,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,oBAAY,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,iCAAiC;IACjC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,OAAO,EAAE,SAAS,CAAC;IACnB,yDAAyD;IACzD,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACpC,sCAAsC;IACtC,uBAAuB,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAC7D,iCAAiC;IACjC,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
1
+ {"version":3,"file":"Workbench.types.d.ts","sourceRoot":"","sources":["../../../src/components/Workbench/Workbench.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uDAAuD,CAAC;AAEjF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,iCAAiC;IACjC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,OAAO,EAAE,SAAS,CAAC;IACnB,yDAAyD;IACzD,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACpC,sCAAsC;IACtC,uBAAuB,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAC7D,iCAAiC;IACjC,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
@@ -10,5 +10,5 @@ export declare const colorMap: {
10
10
  readonly green: "#21aa50";
11
11
  readonly red: "#d91c29";
12
12
  };
13
- export declare type ColorName = keyof typeof colorMap;
13
+ export type ColorName = keyof typeof colorMap;
14
14
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWX,CAAC;AAEX,oBAAY,SAAS,GAAG,MAAM,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWX,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-build",
3
- "version": "4.0.0-dev.9.1",
4
- "author": "Pegasystems",
5
- "license": "SEE LICENSE IN LICENSE",
3
+ "version": "4.0.0-rc.1",
6
4
  "repository": {
7
5
  "type": "git",
8
6
  "url": "https://github.com/pegasystems/cosmos-react.git",
9
7
  "directory": "packages/cosmos-build"
10
8
  },
9
+ "license": "SEE LICENSE IN LICENSE",
10
+ "author": "Pegasystems",
11
+ "sideEffects": false,
11
12
  "main": "lib/index.js",
12
13
  "types": "lib/index.d.ts",
13
14
  "files": [
@@ -15,14 +16,14 @@
15
16
  "README.md",
16
17
  "lib"
17
18
  ],
18
- "sideEffects": false,
19
19
  "scripts": {
20
20
  "build": "tsc -b"
21
21
  },
22
22
  "dependencies": {
23
- "@pega/cosmos-react-core": "4.0.0-dev.9.1",
24
- "@pega/cosmos-react-dnd": "4.0.0-dev.9.1",
25
- "@types/codemirror": "^5.60.5",
23
+ "@pega/cosmos-react-core": "4.0.0-rc.1",
24
+ "@pega/cosmos-react-dnd": "4.0.0-rc.1",
25
+ "@pega/cosmos-react-rte": "4.0.0-rc.1",
26
+ "@types/codemirror": "^5.60.7",
26
27
  "@types/dagre": "^0.7.46",
27
28
  "@types/react": "^16.14.24 || ^17.0.38",
28
29
  "@types/react-dom": "^16.9.14 || ^17.0.11",
@@ -34,21 +35,19 @@
34
35
  "react-codemirror2": "^7.2.1",
35
36
  "react-dom": "^16.14.0 || ^17.0.0",
36
37
  "styled-components": "^5.2.0",
37
- "tinymce": "^6.0.3"
38
+ "tinymce": "^6.3.1"
38
39
  },
39
40
  "devDependencies": {
40
- "@storybook/addon-a11y": "^6.4.19",
41
- "@storybook/addon-actions": "^6.4.19",
42
- "@storybook/addon-links": "^6.5.16",
43
- "@storybook/addon-storysource": "^6.4.19",
44
- "@storybook/addon-toolbars": "^6.4.19",
45
- "@storybook/addons": "^6.4.19",
46
- "@storybook/react": "^6.4.19",
47
- "@storybook/testing-react": "^1.2.4",
48
- "@storybook/theming": "^6.4.19",
41
+ "@storybook/addon-a11y": "^7.0.24",
42
+ "@storybook/addon-actions": "^7.0.24",
43
+ "@storybook/addon-links": "^7.0.24",
44
+ "@storybook/addon-storysource": "^7.0.24",
45
+ "@storybook/addon-toolbars": "^7.0.24",
46
+ "@storybook/react": "^7.0.24",
47
+ "@storybook/theming": "^7.0.24",
49
48
  "@testing-library/react": "^12.1.3",
50
49
  "@testing-library/user-event": "^13.5.0",
51
- "typescript": "~4.7.2"
50
+ "typescript": "~5.0.2"
52
51
  },
53
52
  "overrides": {
54
53
  "react-codemirror2": {