@pushwoosh/smart-components-kit 1.0.90 → 1.1.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 (65) hide show
  1. package/CampaignsConfigurationDrawer/CampaignsConfigurationDrawer.d.ts +1 -2
  2. package/CampaignsConfigurationDrawer/CampaignsConfigurationDrawer.js +103 -88
  3. package/CampaignsConfigurationDrawer/components/Card/Card.d.ts +1 -2
  4. package/CampaignsConfigurationDrawer/components/Card/Card.js +19 -13
  5. package/DocsButton/DocsButton.d.ts +1 -2
  6. package/DocsButton/DocsButton.js +21 -18
  7. package/DynamicContentPicker/DynamicContentPicker.js +76 -63
  8. package/DynamicContentPicker/Line.js +24 -22
  9. package/DynamicContentPickerForm/DynamicContentCustomPickerForm.js +18 -17
  10. package/DynamicContentPickerForm/DynamicContentEventPickerForm.js +60 -57
  11. package/DynamicContentPickerForm/DynamicContentTagPickerForm.js +60 -57
  12. package/DynamicContentPickerForm/SimpleDynamicContentPickerFormSmart.js +72 -63
  13. package/DynamicContentPickerForm/VariedDynamicContentPickerFormSmart.js +86 -74
  14. package/EmailTemplatePreview/EmailTemplatePreview.js +8 -6
  15. package/ExportCSV/ExportCsvBanner/ExportCsvBanner.d.ts +1 -2
  16. package/ExportCSV/ExportCsvBanner/ExportCsvBanner.js +54 -49
  17. package/ExportCSV/useExportService/useExportService.js +1 -0
  18. package/LanguagesSelector/LanguagesModal.js +38 -24
  19. package/LanguagesSelector/LanguagesSelectForm.js +73 -62
  20. package/LanguagesSelector/LanguagesSelectFormLoader.js +8 -7
  21. package/LanguagesSelector/LanguagesSelector.js +92 -78
  22. package/MediaStore/CreateVariantDrawer.js +134 -85
  23. package/MediaStore/MediaStore.d.ts +6 -10
  24. package/MediaStore/MediaStore.js +201 -161
  25. package/MediaStore/MediaStorePaginated.d.ts +8 -0
  26. package/MediaStore/MediaStorePaginated.js +24 -0
  27. package/MediaStore/index.d.ts +3 -1
  28. package/MediaStore/index.js +2 -1
  29. package/MediaStore/types.d.ts +22 -0
  30. package/MediaStore/types.js +1 -0
  31. package/ModalCloningJourney/ModalCloningJourney.d.ts +1 -2
  32. package/ModalCloningJourney/ModalCloningJourney.js +113 -91
  33. package/OpenActions/components/OpenActionsSummary/OpenActionsSummary.d.ts +1 -2
  34. package/OpenActions/components/OpenActionsSummary/OpenActionsSummary.js +98 -78
  35. package/OpenActions/components/OpenActionsSummaryByPreset.d.ts +1 -2
  36. package/OpenActions/components/OpenActionsSummaryByPreset.js +2 -2
  37. package/PlatformsConfigurationDrawer/PlatformsConfigurationDrawer.js +21 -17
  38. package/PlatformsConfigurationDrawer/components/DesktopPage/DesktopPage.js +112 -75
  39. package/PlatformsConfigurationDrawer/components/MainPage/MainPage.js +155 -101
  40. package/PlatformsConfigurationDrawer/components/MobilePage/MobilePage.js +138 -91
  41. package/ResendModal/ResendModal.d.ts +1 -2
  42. package/ResendModal/ResendModal.js +92 -72
  43. package/RichMessageEditorSmart/NewDynamicContentForm.js +16 -12
  44. package/RichMessageEditorSmart/RichMessageEditorSmart.js +4 -4
  45. package/SystemParcel/SystemParcel.d.ts +3 -3
  46. package/SystemParcel/SystemParcel.js +3 -2
  47. package/Table/components/DataTable/DataTable.js +80 -61
  48. package/Table/components/DataTableGetContext/DataTableGetContext.d.ts +1 -2
  49. package/Table/components/DataTableGetContext/DataTableGetContext.js +5 -2
  50. package/Table/components/DataTableList/DataTableList.d.ts +1 -2
  51. package/Table/components/DataTableList/DataTableList.js +86 -68
  52. package/Table/components/DataTablePagination/DataTablePagination.js +6 -4
  53. package/Table/components/DataTableSearchInput/DataTableSearchInput.js +3 -2
  54. package/Table/components/DataTableSortableCell/DataTableSortableCell.js +6 -4
  55. package/Table/components/Loading/Loading.d.ts +1 -2
  56. package/Table/components/Loading/Loading.js +16 -14
  57. package/Table/components/TablePagination/TablePagination.js +31 -25
  58. package/_devel/index.js +36 -24
  59. package/_devel/lib/dynamic-content-picker.d.ts +1 -2
  60. package/_devel/lib/dynamic-content-picker.js +16 -10
  61. package/_devel/lib/index.d.ts +2 -2
  62. package/_devel/lib/index.js +38 -19
  63. package/_devel/test-place.d.ts +1 -2
  64. package/_devel/test-place.js +4 -2
  65. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import { type FC } from 'react';
2
2
  import { type RouteComponentProps } from 'react-router-dom';
3
3
  interface MatchParams {
4
4
  path: string;
5
5
  url: string;
6
6
  }
7
- export declare const Lib: React.FC<RouteComponentProps<MatchParams>>;
7
+ export declare const Lib: FC<RouteComponentProps<MatchParams>>;
8
8
  export {};
@@ -1,29 +1,48 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Route, Switch, Link } from 'react-router-dom';
3
3
  import { Columns } from '@pushwoosh/kit-helpers';
4
4
  import { DynamicContentPickerExample } from './dynamic-content-picker';
5
5
  function Example() {
6
- return React.createElement("div", null, React.createElement("h3", null, "component example"));
6
+ return _jsx("div", {
7
+ children: _jsx("h3", {
8
+ children: "component example"
9
+ })
10
+ });
7
11
  }
8
12
  export const Lib = ({
9
13
  match
10
14
  }) => {
11
- return React.createElement(Columns, {
15
+ return _jsxs(Columns, {
12
16
  "$gap": 12,
13
- "$sizes": "200px 780px"
14
- }, React.createElement("ul", null, React.createElement("li", null, React.createElement(Link, {
15
- to: `${match.url}/dynamic-content-picker`
16
- }, "Dynamic content picker")), React.createElement("li", null, React.createElement(Link, {
17
- to: `${match.url}/example`
18
- }, "Child 2"))), React.createElement("div", null, React.createElement(Switch, null, React.createElement(Route, {
19
- path: `${match.path}/dynamic-content-picker`,
20
- component: DynamicContentPickerExample
21
- }), React.createElement(Route, {
22
- path: `${match.path}/example`,
23
- component: Example
24
- }), React.createElement(Route, {
25
- path: match.path,
26
- exact: true,
27
- render: () => React.createElement("div", null, "Please select a child route.")
28
- }))));
17
+ "$sizes": "200px 780px",
18
+ children: [_jsxs("ul", {
19
+ children: [_jsx("li", {
20
+ children: _jsx(Link, {
21
+ to: `${match.url}/dynamic-content-picker`,
22
+ children: "Dynamic content picker"
23
+ })
24
+ }), _jsx("li", {
25
+ children: _jsx(Link, {
26
+ to: `${match.url}/example`,
27
+ children: "Child 2"
28
+ })
29
+ })]
30
+ }), _jsx("div", {
31
+ children: _jsxs(Switch, {
32
+ children: [_jsx(Route, {
33
+ path: `${match.path}/dynamic-content-picker`,
34
+ component: DynamicContentPickerExample
35
+ }), _jsx(Route, {
36
+ path: `${match.path}/example`,
37
+ component: Example
38
+ }), _jsx(Route, {
39
+ path: match.path,
40
+ exact: true,
41
+ render: () => _jsx("div", {
42
+ children: "Please select a child route."
43
+ })
44
+ })]
45
+ })
46
+ })]
47
+ });
29
48
  };
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare function TestPlace(): React.JSX.Element;
1
+ export declare function TestPlace(): import("react").JSX.Element;
@@ -1,6 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  // PLEASE, DON'T COMMIT THIS FILE
2
3
  // I is for testing components, you can add your component here to test it
3
- import React from 'react';
4
4
  export function TestPlace() {
5
- return React.createElement("div", null, "add your component to test please, don't commit this file");
5
+ return _jsx("div", {
6
+ children: "add your component to test please, don't commit this file"
7
+ });
6
8
  }
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "react-router-dom": "^5.3.4"
34
34
  },
35
35
  "devDependencies": {
36
- "@pushwoosh/frontend-builder-engine": "^1.0.21",
36
+ "@pushwoosh/frontend-builder-engine": "^2.1.0",
37
37
  "@svgr/webpack": "^8.1.0",
38
38
  "@types/react": "^18.3.5",
39
39
  "@types/react-dom": "^18.3.0",
@@ -49,5 +49,5 @@
49
49
  "react": "^16.14.0 || ^18.0.0",
50
50
  "react-dom": "^16.14.0 || ^18.0.0"
51
51
  },
52
- "version": "1.0.90"
52
+ "version": "1.1.1"
53
53
  }