@wix/patterns 1.143.0 → 1.145.0

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 (219) hide show
  1. package/dist/cjs/components/Collapse/Collapse.st.css.js +3 -3
  2. package/dist/cjs/components/Collapse/Collapse.st.css.js.map +1 -1
  3. package/dist/cjs/components/CollectionPageNew/CollectionPage.js +5 -5
  4. package/dist/cjs/components/CollectionPageNew/CollectionPage.js.map +1 -1
  5. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js +5 -5
  6. package/dist/cjs/components/CollectionToolbar/CollectionToolbar.st.css.js.map +1 -1
  7. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +3 -3
  8. package/dist/cjs/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
  9. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  10. package/dist/cjs/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  11. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  12. package/dist/cjs/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  13. package/dist/cjs/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.js +19 -14
  14. package/dist/cjs/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.js.map +1 -1
  15. package/dist/cjs/components/DragHandle/DragHandle.st.css.js +2 -2
  16. package/dist/cjs/components/DragHandle/DragHandle.st.css.js.map +1 -1
  17. package/dist/cjs/components/ExportButton/ExportModal.uni.driver.js +1 -0
  18. package/dist/cjs/components/ExportButton/ExportModal.uni.driver.js.map +1 -1
  19. package/dist/cjs/components/ExportButton/getExportModalErrorProps.js +97 -62
  20. package/dist/cjs/components/ExportButton/getExportModalErrorProps.js.map +1 -1
  21. package/dist/cjs/components/ExportButton/getExportModalStepProps.js +29 -14
  22. package/dist/cjs/components/ExportButton/getExportModalStepProps.js.map +1 -1
  23. package/dist/cjs/components/ExtendedColumn/ExtendedColumn.js +14 -2
  24. package/dist/cjs/components/ExtendedColumn/ExtendedColumn.js.map +1 -1
  25. package/dist/cjs/components/Fade/Fade.st.css.js +2 -2
  26. package/dist/cjs/components/Fade/Fade.st.css.js.map +1 -1
  27. package/dist/cjs/components/FormFieldInput/FormFieldInput.js +4 -2
  28. package/dist/cjs/components/FormFieldInput/FormFieldInput.js.map +1 -1
  29. package/dist/cjs/components/Heading/Heading.st.css.js +2 -2
  30. package/dist/cjs/components/Heading/Heading.st.css.js.map +1 -1
  31. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js +2 -2
  32. package/dist/cjs/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
  33. package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js +3 -3
  34. package/dist/cjs/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
  35. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  36. package/dist/cjs/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
  37. package/dist/cjs/components/MaxLines/MaxLines.st.css.js +2 -2
  38. package/dist/cjs/components/MaxLines/MaxLines.st.css.js.map +1 -1
  39. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
  40. package/dist/cjs/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js.map +1 -1
  41. package/dist/cjs/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.js +4 -3
  42. package/dist/cjs/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.js.map +1 -1
  43. package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
  44. package/dist/cjs/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
  45. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js +5 -5
  46. package/dist/cjs/components/NestedTable/NestedTableRow.st.css.js.map +1 -1
  47. package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
  48. package/dist/cjs/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
  49. package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
  50. package/dist/cjs/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
  51. package/dist/cjs/components/PageSubTitle/PageSubTitle.js +74 -0
  52. package/dist/cjs/components/PageSubTitle/PageSubTitle.js.map +1 -0
  53. package/dist/cjs/components/PageSubTitle/index.js +6 -58
  54. package/dist/cjs/components/PageSubTitle/index.js.map +1 -1
  55. package/dist/cjs/components/PickerContent/PickerContent.st.css.js +2 -2
  56. package/dist/cjs/components/PickerContent/PickerContent.st.css.js.map +1 -1
  57. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js +4 -4
  58. package/dist/cjs/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  59. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  60. package/dist/cjs/components/PickerTableListItem/PickerTableListItem.st.css.js.map +1 -1
  61. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  62. package/dist/cjs/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  63. package/dist/cjs/components/SingleSelectFilter/SingleSelectFilter.js +3 -2
  64. package/dist/cjs/components/SingleSelectFilter/SingleSelectFilter.js.map +1 -1
  65. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js +3 -3
  66. package/dist/cjs/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
  67. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js +2 -2
  68. package/dist/cjs/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
  69. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js +3 -3
  70. package/dist/cjs/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
  71. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  72. package/dist/cjs/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
  73. package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
  74. package/dist/cjs/components/ToolbarItem/ToolbarItem.st.css.js.map +1 -1
  75. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  76. package/dist/cjs/components/ToolbarItemBox/ToolbarItemBox.st.css.js.map +1 -1
  77. package/dist/cjs/components/common.st.css.js +4 -4
  78. package/dist/cjs/components/common.st.css.js.map +1 -1
  79. package/dist/cjs/state/simplifyExtendedColumns.js +5 -1
  80. package/dist/cjs/state/simplifyExtendedColumns.js.map +1 -1
  81. package/dist/cjs/styles.global.css +1 -1
  82. package/dist/cjs/test-utils/WixPatternsEssentialsTestProvider.js +15 -3
  83. package/dist/cjs/test-utils/WixPatternsEssentialsTestProvider.js.map +1 -1
  84. package/dist/cjs/version.js +1 -1
  85. package/dist/cjs/version.js.map +1 -1
  86. package/dist/esm/components/Collapse/Collapse.st.css.js +2 -2
  87. package/dist/esm/components/Collapse/Collapse.st.css.js.map +1 -1
  88. package/dist/esm/components/CollectionPageNew/CollectionPage.js +3 -3
  89. package/dist/esm/components/CollectionPageNew/CollectionPage.js.map +1 -1
  90. package/dist/esm/components/CollectionToolbar/CollectionToolbar.st.css.js +2 -2
  91. package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js +2 -2
  92. package/dist/esm/components/CollectionToolbar/SearchOrCustomFilter.st.css.js.map +1 -1
  93. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js +2 -2
  94. package/dist/esm/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.js.map +1 -1
  95. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js +2 -2
  96. package/dist/esm/components/CollectionViewsDropdown/ViewsDropdown.st.css.js.map +1 -1
  97. package/dist/esm/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.js +5 -1
  98. package/dist/esm/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.js.map +1 -1
  99. package/dist/esm/components/DragHandle/DragHandle.st.css.js +2 -2
  100. package/dist/esm/components/ExportButton/ExportModal.uni.driver.js +1 -0
  101. package/dist/esm/components/ExportButton/ExportModal.uni.driver.js.map +1 -1
  102. package/dist/esm/components/ExportButton/getExportModalErrorProps.js +15 -42
  103. package/dist/esm/components/ExportButton/getExportModalErrorProps.js.map +1 -1
  104. package/dist/esm/components/ExportButton/getExportModalStepProps.js +6 -6
  105. package/dist/esm/components/ExportButton/getExportModalStepProps.js.map +1 -1
  106. package/dist/esm/components/ExtendedColumn/ExtendedColumn.js +3 -1
  107. package/dist/esm/components/ExtendedColumn/ExtendedColumn.js.map +1 -1
  108. package/dist/esm/components/Fade/Fade.st.css.js +2 -2
  109. package/dist/esm/components/FormFieldInput/FormFieldInput.js +2 -1
  110. package/dist/esm/components/FormFieldInput/FormFieldInput.js.map +1 -1
  111. package/dist/esm/components/Heading/Heading.st.css.js +2 -2
  112. package/dist/esm/components/InputOverflow/InputOverflow.st.css.js +2 -2
  113. package/dist/esm/components/InputOverflow/InputOverflow.st.css.js.map +1 -1
  114. package/dist/esm/components/LoadingRow/LoadingRow.st.css.js +3 -3
  115. package/dist/esm/components/LoadingRow/LoadingRow.st.css.js.map +1 -1
  116. package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js +2 -2
  117. package/dist/esm/components/MaxHeightText/MaxHeightText.st.css.js.map +1 -1
  118. package/dist/esm/components/MaxLines/MaxLines.st.css.js +2 -2
  119. package/dist/esm/components/MultiBulkActionToolbar/MultiBulkActionToolbar.st.css.js +2 -2
  120. package/dist/esm/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.js +1 -0
  121. package/dist/esm/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.js.map +1 -1
  122. package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js +2 -2
  123. package/dist/esm/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.js.map +1 -1
  124. package/dist/esm/components/NestedTable/NestedTableRow.st.css.js +2 -2
  125. package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js +2 -2
  126. package/dist/esm/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.js.map +1 -1
  127. package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js +2 -2
  128. package/dist/esm/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.js.map +1 -1
  129. package/dist/esm/components/PageSubTitle/PageSubTitle.js +30 -0
  130. package/dist/esm/components/PageSubTitle/PageSubTitle.js.map +1 -0
  131. package/dist/esm/components/PageSubTitle/index.js +1 -20
  132. package/dist/esm/components/PageSubTitle/index.js.map +1 -1
  133. package/dist/esm/components/PickerContent/PickerContent.st.css.js +2 -2
  134. package/dist/esm/components/PickerContent/PickerContent.st.css.js.map +1 -1
  135. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js +2 -2
  136. package/dist/esm/components/PickerContent/PickerContentAdditionalStep.st.css.js.map +1 -1
  137. package/dist/esm/components/PickerTableListItem/PickerTableListItem.st.css.js +2 -2
  138. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js +2 -2
  139. package/dist/esm/components/ScrollableContent/ScrollableContent.st.css.js.map +1 -1
  140. package/dist/esm/components/SingleSelectFilter/SingleSelectFilter.js +1 -0
  141. package/dist/esm/components/SingleSelectFilter/SingleSelectFilter.js.map +1 -1
  142. package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js +2 -2
  143. package/dist/esm/components/SkeletonCard/SkeletonCard.st.css.js.map +1 -1
  144. package/dist/esm/components/SlidingModal/SlidingModal.st.css.js +2 -2
  145. package/dist/esm/components/SlidingModal/SlidingModal.st.css.js.map +1 -1
  146. package/dist/esm/components/TabsFilter/TabsFilter.st.css.js +2 -2
  147. package/dist/esm/components/TabsFilter/TabsFilter.st.css.js.map +1 -1
  148. package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js +2 -2
  149. package/dist/esm/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.js.map +1 -1
  150. package/dist/esm/components/ToolbarItem/ToolbarItem.st.css.js +2 -2
  151. package/dist/esm/components/ToolbarItemBox/ToolbarItemBox.st.css.js +2 -2
  152. package/dist/esm/components/common.st.css.js +2 -2
  153. package/dist/esm/state/simplifyExtendedColumns.js +4 -0
  154. package/dist/esm/state/simplifyExtendedColumns.js.map +1 -1
  155. package/dist/esm/styles.global.css +1 -1
  156. package/dist/esm/test-utils/WixPatternsEssentialsTestProvider.js +8 -1
  157. package/dist/esm/test-utils/WixPatternsEssentialsTestProvider.js.map +1 -1
  158. package/dist/esm/version.js +1 -1
  159. package/dist/types/components/Collapse/Collapse.st.css.d.ts.map +1 -1
  160. package/dist/types/components/CollectionPageNew/CollectionPage.d.ts.map +1 -1
  161. package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts +2 -0
  162. package/dist/types/components/CollectionTable/CollectionTable.uni.driver.d.ts.map +1 -1
  163. package/dist/types/components/CollectionToolbar/SearchOrCustomFilter.st.css.d.ts.map +1 -1
  164. package/dist/types/components/CollectionViewsDropdown/AutoCompleteReadonly.st.css.d.ts.map +1 -1
  165. package/dist/types/components/CollectionViewsDropdown/ViewsDropdown.st.css.d.ts.map +1 -1
  166. package/dist/types/components/CustomFieldsWidget/CustomFieldsViewWidgetSection.d.ts.map +1 -1
  167. package/dist/types/components/ExportButton/ExportButton.uni.driver.d.ts +1 -0
  168. package/dist/types/components/ExportButton/ExportButton.uni.driver.d.ts.map +1 -1
  169. package/dist/types/components/ExportButton/ExportModal.uni.driver.d.ts +1 -0
  170. package/dist/types/components/ExportButton/ExportModal.uni.driver.d.ts.map +1 -1
  171. package/dist/types/components/ExportButton/getExportModalErrorProps.d.ts.map +1 -1
  172. package/dist/types/components/ExportButton/getExportModalStepProps.d.ts.map +1 -1
  173. package/dist/types/components/ExtendedColumn/ExtendedColumn.d.ts.map +1 -1
  174. package/dist/types/components/FormFieldInput/FormFieldInput.d.ts.map +1 -1
  175. package/dist/types/components/Grid/Grid.uni.driver.d.ts +2 -0
  176. package/dist/types/components/Grid/Grid.uni.driver.d.ts.map +1 -1
  177. package/dist/types/components/Grid/GridFolders.uni.driver.d.ts +4 -0
  178. package/dist/types/components/Grid/GridFolders.uni.driver.d.ts.map +1 -1
  179. package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts +2 -0
  180. package/dist/types/components/Grid/GridFoldersSection.uni.driver.d.ts.map +1 -1
  181. package/dist/types/components/InputOverflow/InputOverflow.st.css.d.ts.map +1 -1
  182. package/dist/types/components/LoadingRow/LoadingRow.st.css.d.ts.map +1 -1
  183. package/dist/types/components/MaxHeightText/MaxHeightText.st.css.d.ts.map +1 -1
  184. package/dist/types/components/MultiSelectCheckboxFilter/MultiSelectCheckboxFilter.d.ts.map +1 -1
  185. package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts +2 -0
  186. package/dist/types/components/NestedTable/NestedTable.uni.driver.d.ts.map +1 -1
  187. package/dist/types/components/NestedTable/NestedTablePlaceholderStatesRow.st.css.d.ts.map +1 -1
  188. package/dist/types/components/NestedTableDragAndDrop/MultipleDragOverlayEffect.st.css.d.ts.map +1 -1
  189. package/dist/types/components/NestedTableDragAndDrop/NestedTableDragAndDropRow.st.css.d.ts.map +1 -1
  190. package/dist/types/components/PageSubTitle/PageSubTitle.d.ts +26 -0
  191. package/dist/types/components/PageSubTitle/PageSubTitle.d.ts.map +1 -0
  192. package/dist/types/components/PageSubTitle/index.d.ts +1 -25
  193. package/dist/types/components/PageSubTitle/index.d.ts.map +1 -1
  194. package/dist/types/components/PickerContent/PickerContent.st.css.d.ts.map +1 -1
  195. package/dist/types/components/PickerContent/PickerContentAdditionalStep.st.css.d.ts.map +1 -1
  196. package/dist/types/components/ScrollableContent/ScrollableContent.st.css.d.ts.map +1 -1
  197. package/dist/types/components/SingleSelectFilter/SingleSelectFilter.d.ts.map +1 -1
  198. package/dist/types/components/SkeletonCard/SkeletonCard.st.css.d.ts.map +1 -1
  199. package/dist/types/components/SlidingModal/SlidingModal.st.css.d.ts.map +1 -1
  200. package/dist/types/components/Table/Table.uni.driver.d.ts +2 -0
  201. package/dist/types/components/Table/Table.uni.driver.d.ts.map +1 -1
  202. package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts +2 -0
  203. package/dist/types/components/TableFolders/TableFolders.uni.driver.d.ts.map +1 -1
  204. package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts +4 -0
  205. package/dist/types/components/TableGridSwitch/TableGridSwitch.uni.driver.d.ts.map +1 -1
  206. package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.d.ts +6 -0
  207. package/dist/types/components/TableGridSwitchFolders/TableGridSwitchFolders.uni.driver.d.ts.map +1 -1
  208. package/dist/types/components/TabsFilter/TabsFilter.st.css.d.ts.map +1 -1
  209. package/dist/types/components/Tags/ManageTags/ManageTagsModal/ManageTagsModal.st.css.d.ts.map +1 -1
  210. package/dist/types/state/simplifyExtendedColumns.d.ts.map +1 -1
  211. package/dist/types/test-utils/WixPatternsEssentialsTestProvider.d.ts.map +1 -1
  212. package/dist/types/testkit/enzyme.d.ts +22 -0
  213. package/dist/types/testkit/enzyme.d.ts.map +1 -1
  214. package/dist/types/testkit/jsdom.d.ts +22 -0
  215. package/dist/types/testkit/jsdom.d.ts.map +1 -1
  216. package/dist/types/testkit/puppeteer.d.ts +22 -0
  217. package/dist/types/testkit/puppeteer.d.ts.map +1 -1
  218. package/dist/types/version.d.ts +1 -1
  219. package/package.json +4 -4
@@ -12,7 +12,7 @@ function getExportModalErrorProps({
12
12
  renderError,
13
13
  state
14
14
  }) {
15
- var _details$applicationE, _details$applicationE2, _error$response, _resolvedError$action, _resolvedError$action2;
15
+ var _details$applicationE, _details$applicationE2, _resolvedError$action, _resolvedError$action2;
16
16
  const {
17
17
  exportStatus: {
18
18
  error: _error
@@ -27,35 +27,14 @@ function getExportModalErrorProps({
27
27
  if (!(0, _util.isHttpError)(error)) {
28
28
  return {};
29
29
  }
30
- const resolvedError = errorHandler.getResolvedError == null ? void 0 : errorHandler.getResolvedError(error);
31
- const statusCode = (_error$response = error.response) == null ? void 0 : _error$response.status;
32
- if (statusCode === 401) {
30
+ if (applicationErrorCode === 'method_endpoint_permission_denied') {
33
31
  return {
34
- primaryButtonText: t('Refresh'),
35
- primaryButtonOnClick: () => {
36
- window.location.reload();
37
- },
38
- children: /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
39
- widows: true,
40
- __self: this,
41
- __source: {
42
- fileName: _jsxFileName,
43
- lineNumber: 57,
44
- columnNumber: 17
45
- }
46
- }, t('cairo.export.sessionExpiredMessage'))
47
- };
48
- }
49
- if (statusCode === 403 || applicationErrorCode === 'method_endpoint_permission_denied') {
50
- return {
51
- primaryButtonText: t('Got It'),
52
- primaryButtonOnClick: state.onFailedClose,
53
32
  children: /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
54
33
  direction: "vertical",
55
34
  __self: this,
56
35
  __source: {
57
36
  fileName: _jsxFileName,
58
- lineNumber: 69,
37
+ lineNumber: 49,
59
38
  columnNumber: 9
60
39
  }
61
40
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
@@ -63,17 +42,18 @@ function getExportModalErrorProps({
63
42
  __self: this,
64
43
  __source: {
65
44
  fileName: _jsxFileName,
66
- lineNumber: 70,
45
+ lineNumber: 50,
67
46
  columnNumber: 11
68
47
  }
69
48
  }, t('cairo.export.noPermissionsMessage')), /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
49
+ dataHook: "export-error-message-action",
70
50
  as: "a",
71
51
  href: "https://support.wix.com/en/article/roles-permissions-overview",
72
52
  target: "_blank",
73
53
  __self: this,
74
54
  __source: {
75
55
  fileName: _jsxFileName,
76
- lineNumber: 71,
56
+ lineNumber: 51,
77
57
  columnNumber: 11
78
58
  }
79
59
  }, t('cairo.export.noPermissionsCTA')))
@@ -81,49 +61,76 @@ function getExportModalErrorProps({
81
61
  }
82
62
  if (applicationErrorCode === 'media_generate_signed_url' || applicationErrorCode === 'media_appender_completion' || applicationErrorCode === 'async_job_infra') {
83
63
  return {
84
- primaryButtonText: t('cairo.error.contactSupport.cta'),
85
- primaryButtonProps: {
86
- as: 'a',
87
- href: 'https://www.wix.com/contact',
88
- target: '_blank'
89
- },
90
- children: /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
64
+ children: /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
65
+ direction: "vertical",
66
+ __self: this,
67
+ __source: {
68
+ fileName: _jsxFileName,
69
+ lineNumber: 71,
70
+ columnNumber: 9
71
+ }
72
+ }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
91
73
  widows: true,
92
74
  __self: this,
93
75
  __source: {
94
76
  fileName: _jsxFileName,
95
- lineNumber: 95,
96
- columnNumber: 17
77
+ lineNumber: 72,
78
+ columnNumber: 11
97
79
  }
98
- }, t('cairo.export.databaseIssueMessage'))
80
+ }, t('cairo.export.databaseIssueMessage')), /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
81
+ dataHook: "export-error-message-action",
82
+ as: "a",
83
+ href: "https://www.wix.com/contact",
84
+ target: "_blank",
85
+ __self: this,
86
+ __source: {
87
+ fileName: _jsxFileName,
88
+ lineNumber: 73,
89
+ columnNumber: 11
90
+ }
91
+ }, t('cairo.error.contactSupport.cta')))
99
92
  };
100
93
  }
101
94
  if (applicationErrorCode === 'max_polling_stale_job') {
102
95
  return {
103
- primaryButtonText: t('cairo.export.tryAgain'),
104
- primaryButtonOnClick: state.onRetryExportToClick,
105
- children: /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
96
+ children: /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
97
+ direction: "vertical",
98
+ __self: this,
99
+ __source: {
100
+ fileName: _jsxFileName,
101
+ lineNumber: 89,
102
+ columnNumber: 9
103
+ }
104
+ }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
106
105
  widows: true,
107
106
  __self: this,
108
107
  __source: {
109
108
  fileName: _jsxFileName,
110
- lineNumber: 103,
111
- columnNumber: 17
109
+ lineNumber: 90,
110
+ columnNumber: 11
111
+ }
112
+ }, t('cairo.export.overloadErrorMessage')), /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
113
+ dataHook: "export-error-message-action",
114
+ as: "a",
115
+ onClick: state.onRetryExportToClick,
116
+ __self: this,
117
+ __source: {
118
+ fileName: _jsxFileName,
119
+ lineNumber: 91,
120
+ columnNumber: 11
112
121
  }
113
- }, t('cairo.export.overloadErrorMessage'))
122
+ }, t('cairo.export.tryAgain')))
114
123
  };
115
124
  }
116
125
  if (applicationErrorCode === 'offline') {
117
126
  return {
118
127
  title: t('cairo.connection.error.title'),
119
- primaryButtonText: null,
120
- primaryButtonOnClick: undefined,
121
128
  children: /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
122
129
  widows: true,
123
130
  __self: this,
124
131
  __source: {
125
132
  fileName: _jsxFileName,
126
- lineNumber: 112,
133
+ lineNumber: 106,
127
134
  columnNumber: 17
128
135
  }
129
136
  }, t('cairo.export.offlineMessage'))
@@ -131,38 +138,66 @@ function getExportModalErrorProps({
131
138
  }
132
139
  if (applicationErrorCode === 'grpc_query_target_internal') {
133
140
  return {
134
- primaryButtonText: t('cairo.error.contactSupport.cta'),
135
- primaryButtonProps: {
136
- as: 'a',
137
- href: 'https://www.wix.com/contact',
138
- target: '_blank'
139
- },
140
- children: /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
141
+ children: /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
142
+ direction: "vertical",
143
+ __self: this,
144
+ __source: {
145
+ fileName: _jsxFileName,
146
+ lineNumber: 113,
147
+ columnNumber: 9
148
+ }
149
+ }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
141
150
  widows: true,
142
151
  __self: this,
143
152
  __source: {
144
153
  fileName: _jsxFileName,
145
- lineNumber: 124,
146
- columnNumber: 17
154
+ lineNumber: 114,
155
+ columnNumber: 11
156
+ }
157
+ }, t('cairo.export.serverErrorMessage')), /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
158
+ dataHook: "export-error-message-action",
159
+ as: "a",
160
+ href: "https://www.wix.com/contact",
161
+ target: "_blank",
162
+ __self: this,
163
+ __source: {
164
+ fileName: _jsxFileName,
165
+ lineNumber: 115,
166
+ columnNumber: 11
147
167
  }
148
- }, t('cairo.export.serverErrorMessage')),
168
+ }, t('cairo.error.contactSupport.cta'))),
149
169
  ...(renderError == null ? void 0 : renderError(applicationErrorData))
150
170
  };
151
171
  }
172
+ const resolvedError = errorHandler.getResolvedError == null ? void 0 : errorHandler.getResolvedError(error);
152
173
  return {
153
- ...(resolvedError != null && resolvedError.action ? {
154
- primaryButtonText: resolvedError == null || (_resolvedError$action = resolvedError.action) == null ? void 0 : _resolvedError$action.text,
155
- primaryButtonOnClick: resolvedError == null || (_resolvedError$action2 = resolvedError.action) == null ? void 0 : _resolvedError$action2.onClick
156
- } : {}),
157
- children: /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
174
+ children: /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
175
+ direction: "vertical",
176
+ __self: this,
177
+ __source: {
178
+ fileName: _jsxFileName,
179
+ lineNumber: 133,
180
+ columnNumber: 7
181
+ }
182
+ }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
158
183
  widows: true,
159
184
  __self: this,
185
+ __source: {
186
+ fileName: _jsxFileName,
187
+ lineNumber: 134,
188
+ columnNumber: 9
189
+ }
190
+ }, resolvedError == null ? void 0 : resolvedError.message), (resolvedError == null ? void 0 : resolvedError.action) && /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
191
+ dataHook: "export-error-message-action",
192
+ as: "a",
193
+ onClick: resolvedError == null || (_resolvedError$action = resolvedError.action) == null ? void 0 : _resolvedError$action.onClick,
194
+ __self: this,
160
195
  __source: {
161
196
  fileName: _jsxFileName,
162
197
  lineNumber: 136,
163
- columnNumber: 15
198
+ columnNumber: 11
164
199
  }
165
- }, resolvedError == null ? void 0 : resolvedError.message)
200
+ }, resolvedError == null || (_resolvedError$action2 = resolvedError.action) == null ? void 0 : _resolvedError$action2.text))
166
201
  };
167
202
  }
168
203
  //# sourceMappingURL=getExportModalErrorProps.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_designSystem","require","_bexCore","_react","_interopRequireDefault","_util","_jsxFileName","getExportModalErrorProps","renderError","state","_details$applicationE","_details$applicationE2","_error$response","_resolvedError$action","_resolvedError$action2","exportStatus","error","_error","translate","t","errorHandler","isWixPatternsError","originalException","details","isErrorDetailsHttpError","response","data","applicationErrorCode","applicationError","code","applicationErrorData","isHttpError","resolvedError","getResolvedError","statusCode","status","primaryButtonText","primaryButtonOnClick","window","location","reload","children","default","createElement","Text","widows","__self","__source","fileName","lineNumber","columnNumber","onFailedClose","Box","direction","TextButton","as","href","target","primaryButtonProps","onRetryExportToClick","title","undefined","action","text","onClick","message"],"sources":["../../../../src/components/ExportButton/getExportModalErrorProps.tsx"],"sourcesContent":["import {\n Box,\n ButtonProps,\n CustomModalLayoutProps,\n TextButton,\n Text,\n} from '@wix/design-system';\nimport {\n ExportState,\n FiltersMap,\n isWixPatternsError,\n WixPatternsError,\n} from '@wix/bex-core';\nimport React, { ReactElement } from 'react';\nimport { isErrorDetailsHttpError, isHttpError } from '@wix/bex-core/util';\nimport { ApplicationError } from '@wix/bex-utils/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/types';\n\nexport type RenderModalError = (\n data: ApplicationError['data'],\n) => undefined | Partial<CustomModalLayoutProps & { children?: ReactElement }>;\n\nexport function getExportModalErrorProps<T, F extends FiltersMap>({\n renderError,\n state,\n}: {\n state: ExportState<T, F>;\n renderError?: RenderModalError;\n}): Partial<CustomModalLayoutProps & { children?: ReactElement }> {\n const {\n exportStatus: { error: _error },\n translate: t,\n errorHandler,\n } = state;\n\n const error = isWixPatternsError(_error)\n ? (_error as WixPatternsError).originalException\n : _error;\n\n const details = isErrorDetailsHttpError(error) ? error.response.data : null;\n const applicationErrorCode = details?.applicationError?.code;\n const applicationErrorData = details?.applicationError?.data;\n\n if (!isHttpError(error)) {\n return {};\n }\n\n const resolvedError = errorHandler.getResolvedError?.(error);\n\n const statusCode = error.response?.status;\n\n if (statusCode === 401) {\n return {\n primaryButtonText: t('Refresh' as any),\n primaryButtonOnClick: () => {\n window.location.reload();\n },\n children: <Text widows>{t('cairo.export.sessionExpiredMessage')}</Text>,\n };\n }\n\n if (\n statusCode === 403 ||\n applicationErrorCode === 'method_endpoint_permission_denied'\n ) {\n return {\n primaryButtonText: t('Got It' as any),\n primaryButtonOnClick: state.onFailedClose,\n children: (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.noPermissionsMessage')}</Text>\n <TextButton\n as=\"a\"\n href=\"https://support.wix.com/en/article/roles-permissions-overview\"\n target=\"_blank\"\n >\n {t('cairo.export.noPermissionsCTA')}\n </TextButton>\n </Box>\n ),\n };\n }\n\n if (\n applicationErrorCode === 'media_generate_signed_url' ||\n applicationErrorCode === 'media_appender_completion' ||\n applicationErrorCode === 'async_job_infra'\n ) {\n return {\n primaryButtonText: t('cairo.error.contactSupport.cta'),\n primaryButtonProps: {\n as: 'a',\n href: 'https://www.wix.com/contact',\n target: '_blank',\n } as ButtonProps,\n children: <Text widows>{t('cairo.export.databaseIssueMessage')}</Text>,\n };\n }\n\n if (applicationErrorCode === 'max_polling_stale_job') {\n return {\n primaryButtonText: t('cairo.export.tryAgain'),\n primaryButtonOnClick: state.onRetryExportToClick,\n children: <Text widows>{t('cairo.export.overloadErrorMessage')}</Text>,\n };\n }\n\n if (applicationErrorCode === 'offline') {\n return {\n title: t('cairo.connection.error.title'),\n primaryButtonText: null,\n primaryButtonOnClick: undefined,\n children: <Text widows>{t('cairo.export.offlineMessage')}</Text>,\n };\n }\n\n if (applicationErrorCode === 'grpc_query_target_internal') {\n return {\n primaryButtonText: t('cairo.error.contactSupport.cta'),\n primaryButtonProps: {\n as: 'a',\n href: 'https://www.wix.com/contact',\n target: '_blank',\n } as ButtonProps,\n children: <Text widows>{t('cairo.export.serverErrorMessage')}</Text>,\n ...renderError?.(applicationErrorData),\n };\n }\n\n return {\n ...(resolvedError?.action\n ? {\n primaryButtonText: resolvedError?.action?.text,\n primaryButtonOnClick: resolvedError?.action?.onClick,\n }\n : {}),\n children: <Text widows>{resolvedError?.message}</Text>,\n };\n}\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAOA,IAAAC,QAAA,GAAAD,OAAA;AAMA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAA0E,IAAAK,YAAA;AAOnE,SAASC,wBAAwBA,CAA0B;EAChEC,WAAW;EACXC;AAIF,CAAC,EAAiE;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,eAAA,EAAAC,qBAAA,EAAAC,sBAAA;EAChE,MAAM;IACJC,YAAY,EAAE;MAAEC,KAAK,EAAEC;IAAO,CAAC;IAC/BC,SAAS,EAAEC,CAAC;IACZC;EACF,CAAC,GAAGX,KAAK;EAET,MAAMO,KAAK,GAAG,IAAAK,2BAAkB,EAACJ,MAAM,CAAC,GACnCA,MAAM,CAAsBK,iBAAiB,GAC9CL,MAAM;EAEV,MAAMM,OAAO,GAAG,IAAAC,6BAAuB,EAACR,KAAK,CAAC,GAAGA,KAAK,CAACS,QAAQ,CAACC,IAAI,GAAG,IAAI;EAC3E,MAAMC,oBAAoB,GAAGJ,OAAO,aAAAb,qBAAA,GAAPa,OAAO,CAAEK,gBAAgB,qBAAzBlB,qBAAA,CAA2BmB,IAAI;EAC5D,MAAMC,oBAAoB,GAAGP,OAAO,aAAAZ,sBAAA,GAAPY,OAAO,CAAEK,gBAAgB,qBAAzBjB,sBAAA,CAA2Be,IAAI;EAE5D,IAAI,CAAC,IA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AuBkD;IAC/C,CAAC,GACD,CAAC,CAAC,CAAC;IACPvB,QAAQ,eAAEtC,MAAA,CAAAuC,OAAA,CAAAC,aAAA,CAAC3C,aAAA,CAAA4C,IAAI;MAACC,MAAM;MAAAC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA1C,YAAA;QAAA2C,UAAA;QAAAC,YAAA;MAAA;IAAA,GAAElB,aAAa,oBAAbA,aAAa,CAAEiC,OAAc;EACvD,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_designSystem","require","_bexCore","_react","_interopRequireDefault","_util","_jsxFileName","getExportModalErrorProps","renderError","state","_details$applicationE","_details$applicationE2","_resolvedError$action","_resolvedError$action2","exportStatus","error","_error","translate","t","errorHandler","isWixPatternsError","originalException","details","isErrorDetailsHttpError","response","data","applicationErrorCode","applicationError","code","applicationErrorData","isHttpError","children","default","createElement","Box","direction","__self","__source","fileName","lineNumber","columnNumber","Text","widows","TextButton","dataHook","as","href","target","onClick","onRetryExportToClick","title","resolvedError","getResolvedError","message","action","text"],"sources":["../../../../src/components/ExportButton/getExportModalErrorProps.tsx"],"sourcesContent":["import {\n Box,\n CustomModalLayoutProps,\n TextButton,\n Text,\n} from '@wix/design-system';\nimport {\n ExportState,\n FiltersMap,\n isWixPatternsError,\n WixPatternsError,\n} from '@wix/bex-core';\nimport React, { ReactElement } from 'react';\nimport { isErrorDetailsHttpError, isHttpError } from '@wix/bex-core/util';\nimport { ApplicationError } from '@wix/bex-utils/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/types';\n\nexport type RenderModalError = (\n data: ApplicationError['data'],\n) => undefined | Partial<CustomModalLayoutProps & { children?: ReactElement }>;\n\nexport function getExportModalErrorProps<T, F extends FiltersMap>({\n renderError,\n state,\n}: {\n state: ExportState<T, F>;\n renderError?: RenderModalError;\n}): Partial<CustomModalLayoutProps & { children?: ReactElement }> {\n const {\n exportStatus: { error: _error },\n translate: t,\n errorHandler,\n } = state;\n\n const error = isWixPatternsError(_error)\n ? (_error as WixPatternsError).originalException\n : _error;\n\n const details = isErrorDetailsHttpError(error) ? error.response.data : null;\n const applicationErrorCode = details?.applicationError?.code;\n const applicationErrorData = details?.applicationError?.data;\n\n if (!isHttpError(error)) {\n return {};\n }\n\n if (applicationErrorCode === 'method_endpoint_permission_denied') {\n return {\n children: (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.noPermissionsMessage')}</Text>\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n href=\"https://support.wix.com/en/article/roles-permissions-overview\"\n target=\"_blank\"\n >\n {t('cairo.export.noPermissionsCTA')}\n </TextButton>\n </Box>\n ),\n };\n }\n\n if (\n applicationErrorCode === 'media_generate_signed_url' ||\n applicationErrorCode === 'media_appender_completion' ||\n applicationErrorCode === 'async_job_infra'\n ) {\n return {\n children: (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.databaseIssueMessage')}</Text>\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n href=\"https://www.wix.com/contact\"\n target=\"_blank\"\n >\n {t('cairo.error.contactSupport.cta')}\n </TextButton>\n </Box>\n ),\n };\n }\n\n if (applicationErrorCode === 'max_polling_stale_job') {\n return {\n children: (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.overloadErrorMessage')}</Text>\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n onClick={state.onRetryExportToClick}\n >\n {t('cairo.export.tryAgain')}\n </TextButton>\n </Box>\n ),\n };\n }\n\n if (applicationErrorCode === 'offline') {\n return {\n title: t('cairo.connection.error.title'),\n children: <Text widows>{t('cairo.export.offlineMessage')}</Text>,\n };\n }\n\n if (applicationErrorCode === 'grpc_query_target_internal') {\n return {\n children: (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.serverErrorMessage')}</Text>\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n href=\"https://www.wix.com/contact\"\n target=\"_blank\"\n >\n {t('cairo.error.contactSupport.cta')}\n </TextButton>\n </Box>\n ),\n ...renderError?.(applicationErrorData),\n };\n }\n\n const resolvedError = errorHandler.getResolvedError?.(error);\n\n return {\n children: (\n <Box direction=\"vertical\">\n <Text widows>{resolvedError?.message}</Text>\n {resolvedError?.action && (\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n onClick={resolvedError?.action?.onClick}\n >\n {resolvedError?.action?.text}\n </TextButton>\n )}\n </Box>\n ),\n };\n}\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AAMA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAA0E,IAAAK,YAAA;AAOnE,SAASC,wBAAwBA,CAA0B;EAChEC,WAAW;EACXC;AAIF,CAAC,EAAiE;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,qBAAA,EAAAC,sBAAA;EAChE,MAAM;IACJC,YAAY,EAAE;MAAEC,KAAK,EAAEC;IAAO,CAAC;IAC/BC,SAAS,EAAEC,CAAC;IACZC;EACF,CAAC,GAAGV,KAAK;EAET,MAAMM,KAAK,GAAG,IAAAK,2BAAkB,EAACJ,MAAM,CAAC,GACnCA,MAAM,CAAsBK,iBAAiB,GAC9CL,MAAM;EAEV,MAAMM,OAAO,GAAG,IAAAC,6BAAuB,EAACR,KAAK,CAAC,GAAGA,KAAK,CAACS,QAAQ,CAACC,IAAI,GAAG,IAAI;EAC3E,MAAMC,oBAAoB,GAAGJ,OAAO,aAAAZ,qBAAA,GAAPY,OAAO,CAAEK,gBAAgB,qBAAzBjB,qBAAA,CAA2BkB,IAAI;EAC5D,MAAMC,oBAAoB,GAAGP,OAAO,aAAAX,sBAAA,GAAPW,OAAO,CAAEK,gBAAgB,qBAAzBhB,sBAAA,CAA2Bc,IAAI;EAE5D,IAAI,CAAC,IAAAK,iBAAW,EAACf,KAAK,CAAC,EAAE;IACvB,OAAO,CAAC,CAAC;EACX;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gB,oBAA7BjC,YAAY,CAACiC,gBAAgB,CAAGrC,KAAK,CAAC;EAE5D,OAAO;IACLgB,QAAQ,eACN5B,MAAA,CAAA6B,OAAA,CAAAC,aAAA,CAACjC,aAAA,CAAAkC,GAAG;MAACC,SAAS,EAAC,UAAU;MAAAC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAhC,YAAA;QAAAiC,UAAA;QAAAC,YAAA;MAAA;IAAA,gBACvBrC,MAAA,CAAA6B,OAAA,CAAAC,aAAA,CAACjC,aAAA,CAAAyC,IAAI;MAACC,MAAM;MAAAN,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAhC,YAAA;QAAAiC,UAAA;QAAAC,YAAA;MAAA;IAAA,GAAEW,aAAa,oBAAbA,aAAa,CAAEE,OAAc,CAAC,EAC3C,CAAAF,aAAa,oBAAbA,aAAa,CAAEG,MAAM,kBACpBnD,MAAA,CAAA6B,OAAA,CAAAC,aAAA,CAACjC,aAAA,CAAA2C,UAAU;MACTC,QAAQ,EAAC,6BAA6B;MACtCC,EAAE,EAAC,GAAG;MACNG,OAAO,EAAEG,aAAa,aAAAvC,qBAAA,GAAbuC,aAAa,CAAEG,MAAM,qBAArB1C,qBAAA,CAAuBoC,OAAQ;MAAAZ,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAhC,YAAA;QAAAiC,UAAA;QAAAC,YAAA;MAAA;IAAA,GAEvCW,aAAa,aAAAtC,sBAAA,GAAbsC,aAAa,CAAEG,MAAM,qBAArBzC,sBAAA,CAAuB0C,IACd,CAEX;EAET,CAAC;AACH","ignoreList":[]}
@@ -31,7 +31,7 @@ function getExportModalStepProps({
31
31
  __self: this,
32
32
  __source: {
33
33
  fileName: _jsxFileName,
34
- lineNumber: 37,
34
+ lineNumber: 42,
35
35
  columnNumber: 17
36
36
  }
37
37
  }),
@@ -59,7 +59,7 @@ function getExportModalStepProps({
59
59
  __self: this,
60
60
  __source: {
61
61
  fileName: _jsxFileName,
62
- lineNumber: 53,
62
+ lineNumber: 58,
63
63
  columnNumber: 9
64
64
  }
65
65
  }),
@@ -75,14 +75,13 @@ function getExportModalStepProps({
75
75
  __self: this,
76
76
  __source: {
77
77
  fileName: _jsxFileName,
78
- lineNumber: 65,
78
+ lineNumber: 70,
79
79
  columnNumber: 9
80
80
  }
81
81
  }, exportModalFooter == null ? void 0 : exportModalFooter.text) : null
82
82
  };
83
83
  }
84
84
  if (currentStep === 'error') {
85
- var _modalProps$primaryBu;
86
85
  const modalProps = (0, _getExportModalErrorProps.getExportModalErrorProps)({
87
86
  state,
88
87
  renderError
@@ -93,28 +92,44 @@ function getExportModalStepProps({
93
92
  secondaryButtonOnClick: state.onFailedCancel,
94
93
  onCloseButtonClick: state.onFailedClose,
95
94
  onRequestClose: state.onFailedClose,
96
- primaryButtonText: t('cairo.export.tryAgain'),
97
- ...((modalProps == null || (_modalProps$primaryBu = modalProps.primaryButtonProps) == null ? void 0 : _modalProps$primaryBu.as) !== 'a' && {
98
- primaryButtonOnClick: state.onRetryExportToClick
99
- }),
95
+ primaryButtonText: t('Got It'),
96
+ primaryButtonOnClick: state.onFailedClose,
100
97
  ...modalProps,
101
98
  children: /*#__PURE__*/_react.default.createElement(_ExportStepError.ExportStepError, {
102
99
  state: state,
103
100
  __self: this,
104
101
  __source: {
105
102
  fileName: _jsxFileName,
106
- lineNumber: 86,
103
+ lineNumber: 89,
107
104
  columnNumber: 9
108
105
  }
109
- }, modalProps.children ?? /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
110
- widows: true,
106
+ }, modalProps.children ?? /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
107
+ direction: "vertical",
111
108
  __self: this,
112
109
  __source: {
113
110
  fileName: _jsxFileName,
114
- lineNumber: 88,
111
+ lineNumber: 91,
115
112
  columnNumber: 13
116
113
  }
117
- }, t('cairo.export.serverErrorMessage')))
114
+ }, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
115
+ widows: true,
116
+ __self: this,
117
+ __source: {
118
+ fileName: _jsxFileName,
119
+ lineNumber: 92,
120
+ columnNumber: 15
121
+ }
122
+ }, t('cairo.export.serverErrorMessage')), /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
123
+ dataHook: "export-error-message-action",
124
+ as: "a",
125
+ onClick: state.onRetryExportToClick,
126
+ __self: this,
127
+ __source: {
128
+ fileName: _jsxFileName,
129
+ lineNumber: 93,
130
+ columnNumber: 15
131
+ }
132
+ }, t('cairo.export.tryAgain'))))
118
133
  };
119
134
  }
120
135
 
@@ -126,7 +141,7 @@ function getExportModalStepProps({
126
141
  __self: this,
127
142
  __source: {
128
143
  fileName: _jsxFileName,
129
- lineNumber: 98,
144
+ lineNumber: 110,
130
145
  columnNumber: 15
131
146
  }
132
147
  }),
@@ -1 +1 @@
1
- {"version":3,"names":["_designSystem","require","_react","_interopRequireDefault","_ExportStepConfig","_ExportStepProgress","_ExportStepError","_ExportStepCancel","_getExportModalErrorProps","_jsxFileName","getExportModalStepProps","state","renderError","exportModalFooter","exportModalTitle","exportToCSVMessage","onProgressModalTitle","currentStep","translate","t","title","children","default","createElement","ExportStepCancel","__self","__source","fileName","lineNumber","columnNumber","primaryButtonText","secondaryButtonText","secondaryButtonProps","skin","primaryButtonProps","disabled","primaryButtonOnClick","onCancelExportVerifyButtonClick","secondaryButtonOnClick","onCancelExportGoBackButtonClick","onCloseButtonClick","onCancelExportCloseButtonClick","onRequestClose","ExportStepConfig","onExportToClick","onCancelClick","onCloseClick","footnote","Text","dataHook","size","text","_modalProps$primaryBu","modalProps","getExportModalErrorProps","onFailedCancel","onFailedClose","as","onRetryExportToClick","ExportStepError","widows","ExportStepProgress","onExportCloseAttemptClick","onExportSecondaryActionAttempt"],"sources":["../../../../src/components/ExportButton/getExportModalStepProps.tsx"],"sourcesContent":["import { CustomModalLayoutProps, Text } from '@wix/design-system';\nimport { ExportState, FiltersMap } from '@wix/bex-core';\nimport React, { ReactNode } from 'react';\nimport { ExportStepConfig } from './ExportStepConfig';\nimport { ExportStepProgress } from './ExportStepProgress';\nimport { ExportStepError } from './ExportStepError';\nimport { ExportStepCancel } from './ExportStepCancel';\nimport {\n getExportModalErrorProps,\n RenderModalError,\n} from './getExportModalErrorProps';\n\nexport interface GetExportModalStepProps<T, F extends FiltersMap> {\n state: ExportState<T, F>;\n renderError?: RenderModalError;\n exportModalFooter?: { text: string };\n exportModalTitle?: string;\n onProgressModalTitle?: string;\n exportToCSVMessage?: string;\n}\n\nexport function getExportModalStepProps<T, F extends FiltersMap>({\n state,\n renderError,\n exportModalFooter,\n exportModalTitle,\n exportToCSVMessage,\n onProgressModalTitle,\n}: GetExportModalStepProps<T, F>): Partial<\n CustomModalLayoutProps & { children?: ReactNode; onRequestClose?: () => void }\n> {\n const { currentStep, translate: t } = state;\n\n if (currentStep === 'cancel') {\n return {\n title: t('cairo.export.cancelTheExport'),\n children: <ExportStepCancel state={state} />,\n primaryButtonText: t('cairo.export.cancelTheExportConfirm'),\n secondaryButtonText: t('cairo.export.cancelTheExportGoBack'),\n secondaryButtonProps: { skin: 'destructive' },\n primaryButtonProps: { skin: 'destructive', disabled: false },\n primaryButtonOnClick: () => state.onCancelExportVerifyButtonClick(),\n secondaryButtonOnClick: state.onCancelExportGoBackButtonClick,\n onCloseButtonClick: state.onCancelExportCloseButtonClick,\n onRequestClose: state.onCancelExportCloseButtonClick,\n };\n }\n\n if (currentStep === 'config') {\n return {\n title: exportModalTitle || t('cairo.export.exportTypeQuestionTitle'),\n children: (\n <ExportStepConfig\n state={state}\n exportToCSVMessage={exportToCSVMessage}\n />\n ),\n primaryButtonText: t('cairo.export.export'),\n primaryButtonOnClick: state.onExportToClick,\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onCancelClick,\n onCloseButtonClick: state.onCloseClick,\n onRequestClose: state.onCloseClick,\n footnote: exportModalFooter ? (\n <Text dataHook=\"export-modal-footer-text\" size=\"small\">\n {exportModalFooter?.text}\n </Text>\n ) : null,\n };\n }\n\n if (currentStep === 'error') {\n const modalProps = getExportModalErrorProps({ state, renderError });\n return {\n title: t('cairo.export.exportFailed'),\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onFailedCancel,\n onCloseButtonClick: state.onFailedClose,\n onRequestClose: state.onFailedClose,\n primaryButtonText: t('cairo.export.tryAgain'),\n ...(modalProps?.primaryButtonProps?.as !== 'a' && {\n primaryButtonOnClick: state.onRetryExportToClick,\n }),\n ...modalProps,\n children: (\n <ExportStepError state={state}>\n {modalProps.children ?? (\n <Text widows>{t('cairo.export.serverErrorMessage')}</Text>\n )}\n </ExportStepError>\n ),\n };\n }\n\n // exporting\n return {\n title: onProgressModalTitle || t('cairo.export.exportingTitle'),\n children: <ExportStepProgress state={state} />,\n primaryButtonText: t('cairo.export.exporting'),\n primaryButtonProps: {\n disabled: true,\n },\n onCloseButtonClick: state.onExportCloseAttemptClick,\n onRequestClose: state.onExportCloseAttemptClick,\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onExportSecondaryActionAttempt,\n };\n}\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,yBAAA,GAAAP,OAAA;AAGoC,IAAAQ,YAAA;AAW7B,SAASC,uBAAuBA,CAA0B;EAC/DC,KAAK;EACLC,WAAW;EACXC,iBAAiB;EACjBC,gBAAgB;EAChBC,kBAAkB;EAClBC;AAC6B,CAAC,EAE9B;EACA,MAAM;IAAEC,WAAW;IAAEC,SAAS,EAAEC;EAAE,CAAC,GAAGR,KAAK;EAE3C,IAAIM,WAAW,KAAK,QAAQ,EAAE;IAC5B,OAAO;MACLG,KAAK,EAAED,CAAC,CAAC,8BAA8B,CAAC;MACxCE,Q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QAAA;MAAA,GAC3BwB,UAAU,CAAChC,QAAQ,iBAClBnB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACvB,aAAA,CAAAgD,IAAI;QAACY,MAAM;QAAAnC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAlB,YAAA;UAAAmB,UAAA;UAAAC,YAAA;QAAA;MAAA,GAAEV,CAAC,CAAC,iCAAiC,CAAQ,CAE5C;IAErB,CAAC;EACH;;EAEA;EACA,OAAO;IACLC,KAAK,EAAEJ,oBAAoB,IAAIG,CAAC,CAAC,6BAA6B,CAAC;IAC/DE,QAAQ,eAAEnB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAAClB,mBAAA,CAAAwD,kBAAkB;MAAClD,KAAK,EAAEA,KAAM;MAAAc,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAlB,YAAA;QAAAmB,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC9CC,iBAAiB,EAAEX,CAAC,CAAC,wBAAwB,CAAC;IAC9Ce,kBAAkB,EAAE;MAClBC,QAAQ,EAAE;IACZ,CAAC;IACDK,kBAAkB,EAAE7B,KAAK,CAACmD,yBAAyB;IACnDpB,cAAc,EAAE/B,KAAK,CAACmD,yBAAyB;IAC/C/B,mBAAmB,EAAEZ,CAAC,CAAC,2BAA2B,CAAC;IACnDmB,sBAAsB,EAAE3B,KAAK,CAACoD;EAChC,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_designSystem","require","_react","_interopRequireDefault","_ExportStepConfig","_ExportStepProgress","_ExportStepError","_ExportStepCancel","_getExportModalErrorProps","_jsxFileName","getExportModalStepProps","state","renderError","exportModalFooter","exportModalTitle","exportToCSVMessage","onProgressModalTitle","currentStep","translate","t","title","children","default","createElement","ExportStepCancel","__self","__source","fileName","lineNumber","columnNumber","primaryButtonText","secondaryButtonText","secondaryButtonProps","skin","primaryButtonProps","disabled","primaryButtonOnClick","onCancelExportVerifyButtonClick","secondaryButtonOnClick","onCancelExportGoBackButtonClick","onCloseButtonClick","onCancelExportCloseButtonClick","onRequestClose","ExportStepConfig","onExportToClick","onCancelClick","onCloseClick","footnote","Text","dataHook","size","text","modalProps","getExportModalErrorProps","onFailedCancel","onFailedClose","ExportStepError","Box","direction","widows","TextButton","as","onClick","onRetryExportToClick","ExportStepProgress","onExportCloseAttemptClick","onExportSecondaryActionAttempt"],"sources":["../../../../src/components/ExportButton/getExportModalStepProps.tsx"],"sourcesContent":["import {\n Box,\n CustomModalLayoutProps,\n Text,\n TextButton,\n} from '@wix/design-system';\nimport { ExportState, FiltersMap } from '@wix/bex-core';\nimport React, { ReactNode } from 'react';\nimport { ExportStepConfig } from './ExportStepConfig';\nimport { ExportStepProgress } from './ExportStepProgress';\nimport { ExportStepError } from './ExportStepError';\nimport { ExportStepCancel } from './ExportStepCancel';\nimport {\n getExportModalErrorProps,\n RenderModalError,\n} from './getExportModalErrorProps';\n\nexport interface GetExportModalStepProps<T, F extends FiltersMap> {\n state: ExportState<T, F>;\n renderError?: RenderModalError;\n exportModalFooter?: { text: string };\n exportModalTitle?: string;\n onProgressModalTitle?: string;\n exportToCSVMessage?: string;\n}\n\nexport function getExportModalStepProps<T, F extends FiltersMap>({\n state,\n renderError,\n exportModalFooter,\n exportModalTitle,\n exportToCSVMessage,\n onProgressModalTitle,\n}: GetExportModalStepProps<T, F>): Partial<\n CustomModalLayoutProps & { children?: ReactNode; onRequestClose?: () => void }\n> {\n const { currentStep, translate: t } = state;\n\n if (currentStep === 'cancel') {\n return {\n title: t('cairo.export.cancelTheExport'),\n children: <ExportStepCancel state={state} />,\n primaryButtonText: t('cairo.export.cancelTheExportConfirm'),\n secondaryButtonText: t('cairo.export.cancelTheExportGoBack'),\n secondaryButtonProps: { skin: 'destructive' },\n primaryButtonProps: { skin: 'destructive', disabled: false },\n primaryButtonOnClick: () => state.onCancelExportVerifyButtonClick(),\n secondaryButtonOnClick: state.onCancelExportGoBackButtonClick,\n onCloseButtonClick: state.onCancelExportCloseButtonClick,\n onRequestClose: state.onCancelExportCloseButtonClick,\n };\n }\n\n if (currentStep === 'config') {\n return {\n title: exportModalTitle || t('cairo.export.exportTypeQuestionTitle'),\n children: (\n <ExportStepConfig\n state={state}\n exportToCSVMessage={exportToCSVMessage}\n />\n ),\n primaryButtonText: t('cairo.export.export'),\n primaryButtonOnClick: state.onExportToClick,\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onCancelClick,\n onCloseButtonClick: state.onCloseClick,\n onRequestClose: state.onCloseClick,\n footnote: exportModalFooter ? (\n <Text dataHook=\"export-modal-footer-text\" size=\"small\">\n {exportModalFooter?.text}\n </Text>\n ) : null,\n };\n }\n\n if (currentStep === 'error') {\n const modalProps = getExportModalErrorProps({ state, renderError });\n return {\n title: t('cairo.export.exportFailed'),\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onFailedCancel,\n onCloseButtonClick: state.onFailedClose,\n onRequestClose: state.onFailedClose,\n primaryButtonText: t('Got It' as any),\n primaryButtonOnClick: state.onFailedClose,\n ...modalProps,\n children: (\n <ExportStepError state={state}>\n {modalProps.children ?? (\n <Box direction=\"vertical\">\n <Text widows>{t('cairo.export.serverErrorMessage')}</Text>\n <TextButton\n dataHook=\"export-error-message-action\"\n as=\"a\"\n onClick={state.onRetryExportToClick}\n >\n {t('cairo.export.tryAgain')}\n </TextButton>\n </Box>\n )}\n </ExportStepError>\n ),\n };\n }\n\n // exporting\n return {\n title: onProgressModalTitle || t('cairo.export.exportingTitle'),\n children: <ExportStepProgress state={state} />,\n primaryButtonText: t('cairo.export.exporting'),\n primaryButtonProps: {\n disabled: true,\n },\n onCloseButtonClick: state.onExportCloseAttemptClick,\n onRequestClose: state.onExportCloseAttemptClick,\n secondaryButtonText: t('cairo.export.cancelButton'),\n secondaryButtonOnClick: state.onExportSecondaryActionAttempt,\n };\n}\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA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AQ,eAAEnB,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAAClB,mBAAA,CAAA2D,kBAAkB;MAACrD,KAAK,EAAEA,KAAM;MAAAc,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAlB,YAAA;QAAAmB,UAAA;QAAAC,YAAA;MAAA;IAAA,CAAE,CAAC;IAC9CC,iBAAiB,EAAEX,CAAC,CAAC,wBAAwB,CAAC;IAC9Ce,kBAAkB,EAAE;MAClBC,QAAQ,EAAE;IACZ,CAAC;IACDK,kBAAkB,EAAE7B,KAAK,CAACsD,yBAAyB;IACnDvB,cAAc,EAAE/B,KAAK,CAACsD,yBAAyB;IAC/ClC,mBAAmB,EAAEZ,CAAC,CAAC,2BAA2B,CAAC;IACnDmB,sBAAsB,EAAE3B,KAAK,CAACuD;EAChC,CAAC;AACH","ignoreList":[]}
@@ -134,7 +134,19 @@ function _ExtendedColumn(props) {
134
134
  lineNumber: 76,
135
135
  columnNumber: 9
136
136
  }
137
- }, Array.isArray(props.value) ? (_props$value = props.value) == null ? void 0 : _props$value.join(', ') : props.value);
137
+ }, props.value);
138
+ case 'multiSelect':
139
+ return /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
140
+ size: "small",
141
+ ellipsis: true,
142
+ maxLines: 1,
143
+ __self: this,
144
+ __source: {
145
+ fileName: _jsxFileName,
146
+ lineNumber: 82,
147
+ columnNumber: 9
148
+ }
149
+ }, (_props$value = props.value) == null ? void 0 : _props$value.join(', '));
138
150
  case 'integer':
139
151
  case 'decimal':
140
152
  default:
@@ -145,7 +157,7 @@ function _ExtendedColumn(props) {
145
157
  __self: this,
146
158
  __source: {
147
159
  fileName: _jsxFileName,
148
- lineNumber: 84,
160
+ lineNumber: 90,
149
161
  columnNumber: 9
150
162
  }
151
163
  }, props.value);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_wixUiIconsCommon","_react2","_mobxReactLite","_ToolbarCollectionContext","_jsxFileName","_ExtendedColumn","props","_props$value","dateFormatters","useWixPatternsContainer","collectionDataExtension","useToolbarCollectionContext","type","default","createElement","Text","size","ellipsis","maxLines","__self","__source","fileName","lineNumber","columnNumber","value","medium","format","Date","mediumTime","Box","align","verticalAlign","color","Confirm","Minus","TextButton","as","rel","target","href","files","Array","isArray","DataExtension","FileCardList","join","ExtendedColumn","exports","observer"],"sources":["../../../../src/components/ExtendedColumn/ExtendedColumn.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Text, TextButton } from '@wix/design-system';\nimport { Confirm, Minus } from '@wix/wix-ui-icons-common';\nimport { CustomFieldType } from '@wix/bex-core';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { observer } from 'mobx-react-lite';\nimport { useToolbarCollectionContext } from '../ToolbarCollectionContext';\n\nexport interface ExtendedColumnProps {\n value?: any;\n type: CustomFieldType;\n}\n\nfunction _ExtendedColumn(props: ExtendedColumnProps) {\n const { dateFormatters } = useWixPatternsContainer();\n const { collectionDataExtension } = useToolbarCollectionContext();\n switch (props.type) {\n case 'shortText':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value}\n </Text>\n );\n case 'date':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value && dateFormatters.medium.format(new Date(props.value))}\n </Text>\n );\n case 'dateTime':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value &&\n dateFormatters.mediumTime.format(new Date(props.value))}\n </Text>\n );\n case 'checkbox':\n return (\n <Box\n align=\"center\"\n verticalAlign=\"middle\"\n color={props.value ? 'G10' : 'D10'}\n >\n {props.value ? <Confirm /> : <Minus />}\n </Box>\n );\n case 'longText':\n return (\n <Text size=\"small\" ellipsis maxLines={3}>\n {props.value}\n </Text>\n );\n case 'url':\n return (\n <TextButton\n as=\"a\"\n rel=\"noopener\"\n target=\"_blank\"\n href={props.value}\n ellipsis\n >\n {props.value}\n </TextButton>\n );\n case 'files': {\n if (!props.value || !collectionDataExtension) {\n return null;\n }\n const files = Array.isArray(props.value) ? props.value : [props.value];\n return (\n <collectionDataExtension.DataExtension.FileCardList files={files} />\n );\n }\n case 'dropdown':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {Array.isArray(props.value) ? props.value?.join(', ') : props.value}\n </Text>\n );\n case 'integer':\n case 'decimal':\n default:\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value}\n </Text>\n );\n }\n}\n\nexport const ExtendedColumn = observer(_ExtendedColumn);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAL,OAAA;AAA0E,IAAAM,YAAA;AAO1E,SAASC,eAAeA,CAACC,KAA0B,EAAE;EAAA,IAAAC,YAAA;EACnD,MAAM;IAAEC;EAAe,CAAC,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EACpD,MAAM;IAAEC;EAAwB,CAAC,GAAG,IAAAC,qDAA2B,EAAC,CAAC;EACjE,QAAQL,KAAK,CAACM,IAAI;IAChB,KAAK,WAAW;MACd,oBACEhB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACf,aAAA,CAAAgB,IAAI;QAACC,IAAI,EAAC,OAAO;QAACC,QAAQ;QAACC,QAAQ,EAAE,CAAE;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAjB,YAAA;UAAAkB,UAAA;UAAAC,YAAA;QAAA;MAAA,GACrCjB,KAAK,CAACkB,KACH,CAAC;IAEX,KAAK,MAAM;MACT,oBACE5B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACf,aAAA,CAAAgB,IAAI;QAACC,IAAI,EAAC,OAAO;QAACC,QAAQ;QAACC,QAAQ,EAAE,CAAE;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAjB,YAA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;QAACC,QAAQ;QAACC,QAAQ,EAAE,CAAE;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAjB,YAAA;UAAAkB,UAAA;UAAAC,YAAA;QAAA;MAAA,GACrCkB,KAAK,CAACC,OAAO,CAACpC,KAAK,CAACkB,KAAK,CAAC,IAAAjB,YAAA,GAAGD,KAAK,CAACkB,KAAK,qBAAXjB,YAAA,CAAasC,IAAI,CAAC,IAAI,CAAC,GAAGvC,KAAK,CAACkB,KAC1D,CAAC;IAEX,KAAK,SAAS;IACd,KAAK,SAAS;IACd;MACE,oBACE5B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACf,aAAA,CAAAgB,IAAI;QAACC,IAAI,EAAC,OAAO;QAACC,QAAQ;QAACC,QAAQ,EAAE,CAAE;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAjB,YAAA;UAAAkB,UAAA;UAAAC,YAAA;QAAA;MAAA,GACrCjB,KAAK,CAACkB,KACH,CAAC;EAEb;AACF;AAEO,MAAMsB,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,uBAAQ,EAAC3C,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_wixUiIconsCommon","_react2","_mobxReactLite","_ToolbarCollectionContext","_jsxFileName","_ExtendedColumn","props","_props$value","dateFormatters","useWixPatternsContainer","collectionDataExtension","useToolbarCollectionContext","type","default","createElement","Text","size","ellipsis","maxLines","__self","__source","fileName","lineNumber","columnNumber","value","medium","format","Date","mediumTime","Box","align","verticalAlign","color","Confirm","Minus","TextButton","as","rel","target","href","files","Array","isArray","DataExtension","FileCardList","join","ExtendedColumn","exports","observer"],"sources":["../../../../src/components/ExtendedColumn/ExtendedColumn.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Text, TextButton } from '@wix/design-system';\nimport { Confirm, Minus } from '@wix/wix-ui-icons-common';\nimport { CustomFieldType } from '@wix/bex-core';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { observer } from 'mobx-react-lite';\nimport { useToolbarCollectionContext } from '../ToolbarCollectionContext';\n\nexport interface ExtendedColumnProps {\n value?: any;\n type: CustomFieldType;\n}\n\nfunction _ExtendedColumn(props: ExtendedColumnProps) {\n const { dateFormatters } = useWixPatternsContainer();\n const { collectionDataExtension } = useToolbarCollectionContext();\n switch (props.type) {\n case 'shortText':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value}\n </Text>\n );\n case 'date':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value && dateFormatters.medium.format(new Date(props.value))}\n </Text>\n );\n case 'dateTime':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value &&\n dateFormatters.mediumTime.format(new Date(props.value))}\n </Text>\n );\n case 'checkbox':\n return (\n <Box\n align=\"center\"\n verticalAlign=\"middle\"\n color={props.value ? 'G10' : 'D10'}\n >\n {props.value ? <Confirm /> : <Minus />}\n </Box>\n );\n case 'longText':\n return (\n <Text size=\"small\" ellipsis maxLines={3}>\n {props.value}\n </Text>\n );\n case 'url':\n return (\n <TextButton\n as=\"a\"\n rel=\"noopener\"\n target=\"_blank\"\n href={props.value}\n ellipsis\n >\n {props.value}\n </TextButton>\n );\n case 'files': {\n if (!props.value || !collectionDataExtension) {\n return null;\n }\n const files = Array.isArray(props.value) ? props.value : [props.value];\n return (\n <collectionDataExtension.DataExtension.FileCardList files={files} />\n );\n }\n case 'dropdown':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value}\n </Text>\n );\n case 'multiSelect':\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value?.join(', ')}\n </Text>\n );\n case 'integer':\n case 'decimal':\n default:\n return (\n <Text size=\"small\" ellipsis maxLines={1}>\n {props.value}\n </Text>\n );\n }\n}\n\nexport const ExtendedColumn = observer(_ExtendedColumn);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA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;UAAAC,QAAA,EAAAjB,YAAA;UAAAkB,UAAA;UAAAC,YAAA;QAAA;MAAA,IAAAhB,YAAA,GACrCD,KAAK,CAACkB,KAAK,qBAAXjB,YAAA,CAAasC,IAAI,CAAC,IAAI,CACnB,CAAC;IAEX,KAAK,SAAS;IACd,KAAK,SAAS;IACd;MACE,oBACEjD,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACf,aAAA,CAAAgB,IAAI;QAACC,IAAI,EAAC,OAAO;QAACC,QAAQ;QAACC,QAAQ,EAAE,CAAE;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAjB,YAAA;UAAAkB,UAAA;UAAAC,YAAA;QAAA;MAAA,GACrCjB,KAAK,CAACkB,KACH,CAAC;EAEb;AACF;AAEO,MAAMsB,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,uBAAQ,EAAC3C,eAAe,CAAC","ignoreList":[]}
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "Fade1630059710";
8
+ var _namespace_ = "Fade1921067464";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "Fade1630059710__root"
15
+ "root": "Fade1921067464__root"
16
16
  };
17
17
  var keyframes = exports.keyframes = {};
18
18
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/Fade/Fade.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"Fade1630059710\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"Fade1630059710__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,gBAAgB;AAClC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAsB,CAAC;AAC7C,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/Fade/Fade.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"Fade1921067464\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"Fade1921067464__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,gBAAgB;AAClC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AACnB,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAsB,CAAC;AAC7C,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -20,7 +20,9 @@ const EDITABLE_INPUT_ELEMENTS = exports.EDITABLE_INPUT_ELEMENTS = {
20
20
  };
21
21
  const INPUT_ELEMENTS = {
22
22
  ...EDITABLE_INPUT_ELEMENTS,
23
- files: () => null // not supported
23
+ files: () => null,
24
+ // not supported
25
+ multiSelect: () => null // not supported
24
26
  };
25
27
  const FormFieldInput = ({
26
28
  dataHook,
@@ -42,7 +44,7 @@ const FormFieldInput = ({
42
44
  __self: void 0,
43
45
  __source: {
44
46
  fileName: _jsxFileName,
45
- lineNumber: 58,
47
+ lineNumber: 59,
46
48
  columnNumber: 7
47
49
  }
48
50
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_fields","_Url","_jsxFileName","EDITABLE_INPUT_ELEMENTS","exports","dropdown","Dropdown","checkbox","Checkbox","shortText","ShortText","longText","LongText","date","DateInput","dateTime","DateTime","integer","Number","decimal","url","Url","INPUT_ELEMENTS","files","FormFieldInput","dataHook","state","schema","initialValue","onChange","inputRef","hasOwnProperty","type","FieldInput","default","createElement","newValue","__self","__source","fileName","lineNumber","columnNumber"],"sources":["../../../../src/components/FormFieldInput/FormFieldInput.tsx"],"sourcesContent":["import React, { ComponentType } from 'react';\nimport {\n BaseInputProps,\n Checkbox,\n DateInput,\n DateTime,\n Dropdown,\n LongText,\n Number,\n ShortText,\n} from '../../fields';\nimport { CustomField, CustomFieldType } from '@wix/bex-core';\nimport { CustomFieldsFormState } from '../../state';\nimport { Url } from '../../fields/Url';\n\ntype InputElements = {\n [fieldType in CustomFieldType]: ComponentType<BaseInputProps<any>>;\n};\n\nexport const EDITABLE_INPUT_ELEMENTS = {\n dropdown: Dropdown,\n checkbox: Checkbox,\n shortText: ShortText,\n longText: LongText,\n date: DateInput,\n dateTime: DateTime,\n integer: Number,\n decimal: Number,\n url: Url,\n};\n\nconst INPUT_ELEMENTS: InputElements = {\n ...EDITABLE_INPUT_ELEMENTS,\n files: () => null, // not supported\n};\n\nexport interface FormFieldInputProps {\n dataHook?: string;\n state: CustomFieldsFormState;\n initialValue?: any;\n schema: CustomField;\n onChange: (newValue: any) => void;\n inputRef?: BaseInputProps<any>['inputRef'];\n}\n\nexport const FormFieldInput = ({\n dataHook,\n state,\n schema,\n initialValue,\n onChange,\n inputRef,\n}: FormFieldInputProps) => {\n if (INPUT_ELEMENTS.hasOwnProperty(schema.type)) {\n const FieldInput = INPUT_ELEMENTS[schema.type];\n\n return (\n <FieldInput\n dataHook={dataHook}\n state={state}\n initialValue={initialValue}\n schema={schema}\n onChange={(newValue) => onChange(newValue)}\n inputRef={inputRef}\n />\n );\n }\n\n return null;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAYA,IAAAE,IAAA,GAAAF,OAAA;AAAuC,IAAAG,YAAA;AAMhC,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG;EACrCE,QAAQ,EAAEC,gBAAQ;EAClBC,QAAQ,EAAEC,gBAAQ;EAClBC,SAAS,EAAEC,iBAAS;EACpBC,QAAQ,EAAEC,gBAAQ;EAClBC,IAAI,EAAEC,iBAAS;EACfC,QAAQ,EAAEC,gBAAQ;EAClBC,OAAO,EAAEC,cAAM;EACfC,OAAO,EAAED,cAAM;EACfE,GAAG,EAAEC;AACP,CAAC;AAED,MAAMC,cAA6B,GAAG;EACpC,GAAGnB,uBAAuB;EAC1BoB,KAAK,EAAEA,CAAA,KAAM,IAAI,CAAE;AACrB,CAAC;AAWM,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,QAAQ;EACRC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,QAAQ;EACRC;AACmB,CAAC,KAAK;EACzB,IAAIR,cAAc,CAACS,cAAc,CAACJ,MAAM,CAACK,IAAI,CAAC,EAAE;IAC9C,MAAMC,UAAU,GAAGX,cAAc,CAACK,MAAM,CAACK,IAAI,CAAC;IAE9C,oBACEnC,MAAA,CAAAqC,OAAA,CAAAC,aAAA,CAACF,UAAU;MACTR,QAAQ,EAAEA,QAAS;MACnBC,KAAK,EAAEA,KAAM;MACbE,YAAY,EAAEA,YAAa;MAC3BD,MAAM,EAAEA,MAAO;MACfE,QAAQ,EAAGO,QAAQ,IAAKP,QAAQ,CAACO,QAAQ,CAAE;MAC3CN,QAAQ,EAAEA,QAAS;MAAAO,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAArC,YAAA;QAAAsC,UAAA;QAAAC,YAAA;MAAA;IAAA,CACpB,CAAC;EAEN;EAEA,OAAO,IAAI;AACb,CAAC;AAACrC,OAAA,CAAAoB,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_fields","_Url","_jsxFileName","EDITABLE_INPUT_ELEMENTS","exports","dropdown","Dropdown","checkbox","Checkbox","shortText","ShortText","longText","LongText","date","DateInput","dateTime","DateTime","integer","Number","decimal","url","Url","INPUT_ELEMENTS","files","multiSelect","FormFieldInput","dataHook","state","schema","initialValue","onChange","inputRef","hasOwnProperty","type","FieldInput","default","createElement","newValue","__self","__source","fileName","lineNumber","columnNumber"],"sources":["../../../../src/components/FormFieldInput/FormFieldInput.tsx"],"sourcesContent":["import React, { ComponentType } from 'react';\nimport {\n BaseInputProps,\n Checkbox,\n DateInput,\n DateTime,\n Dropdown,\n LongText,\n Number,\n ShortText,\n} from '../../fields';\nimport { CustomField, CustomFieldType } from '@wix/bex-core';\nimport { CustomFieldsFormState } from '../../state';\nimport { Url } from '../../fields/Url';\n\ntype InputElements = {\n [fieldType in CustomFieldType]: ComponentType<BaseInputProps<any>>;\n};\n\nexport const EDITABLE_INPUT_ELEMENTS = {\n dropdown: Dropdown,\n checkbox: Checkbox,\n shortText: ShortText,\n longText: LongText,\n date: DateInput,\n dateTime: DateTime,\n integer: Number,\n decimal: Number,\n url: Url,\n};\n\nconst INPUT_ELEMENTS: InputElements = {\n ...EDITABLE_INPUT_ELEMENTS,\n files: () => null, // not supported\n multiSelect: () => null, // not supported\n};\n\nexport interface FormFieldInputProps {\n dataHook?: string;\n state: CustomFieldsFormState;\n initialValue?: any;\n schema: CustomField;\n onChange: (newValue: any) => void;\n inputRef?: BaseInputProps<any>['inputRef'];\n}\n\nexport const FormFieldInput = ({\n dataHook,\n state,\n schema,\n initialValue,\n onChange,\n inputRef,\n}: FormFieldInputProps) => {\n if (INPUT_ELEMENTS.hasOwnProperty(schema.type)) {\n const FieldInput = INPUT_ELEMENTS[schema.type];\n\n return (\n <FieldInput\n dataHook={dataHook}\n state={state}\n initialValue={initialValue}\n schema={schema}\n onChange={(newValue) => onChange(newValue)}\n inputRef={inputRef}\n />\n );\n }\n\n return null;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAYA,IAAAE,IAAA,GAAAF,OAAA;AAAuC,IAAAG,YAAA;AAMhC,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG;EACrCE,QAAQ,EAAEC,gBAAQ;EAClBC,QAAQ,EAAEC,gBAAQ;EAClBC,SAAS,EAAEC,iBAAS;EACpBC,QAAQ,EAAEC,gBAAQ;EAClBC,IAAI,EAAEC,iBAAS;EACfC,QAAQ,EAAEC,gBAAQ;EAClBC,OAAO,EAAEC,cAAM;EACfC,OAAO,EAAED,cAAM;EACfE,GAAG,EAAEC;AACP,CAAC;AAED,MAAMC,cAA6B,GAAG;EACpC,GAAGnB,uBAAuB;EAC1BoB,KAAK,EAAEA,CAAA,KAAM,IAAI;EAAE;EACnBC,WAAW,EAAEA,CAAA,KAAM,IAAI,CAAE;AAC3B,CAAC;AAWM,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,QAAQ;EACRC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,QAAQ;EACRC;AACmB,CAAC,KAAK;EACzB,IAAIT,cAAc,CAACU,cAAc,CAACJ,MAAM,CAACK,IAAI,CAAC,EAAE;IAC9C,MAAMC,UAAU,GAAGZ,cAAc,CAACM,MAAM,CAACK,IAAI,CAAC;IAE9C,oBACEpC,MAAA,CAAAsC,OAAA,CAAAC,aAAA,CAACF,UAAU;MACTR,QAAQ,EAAEA,QAAS;MACnBC,KAAK,EAAEA,KAAM;MACbE,YAAY,EAAEA,YAAa;MAC3BD,MAAM,EAAEA,MAAO;MACfE,QAAQ,EAAGO,QAAQ,IAAKP,QAAQ,CAACO,QAAQ,CAAE;MAC3CN,QAAQ,EAAEA,QAAS;MAAAO,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAtC,YAAA;QAAAuC,UAAA;QAAAC,YAAA;MAAA;IAAA,CACpB,CAAC;EAEN;EAEA,OAAO,IAAI;AACb,CAAC;AAACtC,OAAA,CAAAqB,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "Heading3412005621";
8
+ var _namespace_ = "Heading1187167250";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "Heading3412005621__root"
15
+ "root": "Heading1187167250__root"
16
16
  };
17
17
  var keyframes = exports.keyframes = {};
18
18
  var layers = exports.layers = {};