@pushwoosh/smart-components-kit 1.0.90 → 1.1.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.
- package/CampaignsConfigurationDrawer/CampaignsConfigurationDrawer.d.ts +1 -2
- package/CampaignsConfigurationDrawer/CampaignsConfigurationDrawer.js +103 -88
- package/CampaignsConfigurationDrawer/components/Card/Card.d.ts +1 -2
- package/CampaignsConfigurationDrawer/components/Card/Card.js +19 -13
- package/DocsButton/DocsButton.d.ts +1 -2
- package/DocsButton/DocsButton.js +21 -18
- package/DynamicContentPicker/DynamicContentPicker.js +76 -63
- package/DynamicContentPicker/Line.js +24 -22
- package/DynamicContentPickerForm/DynamicContentCustomPickerForm.js +18 -17
- package/DynamicContentPickerForm/DynamicContentEventPickerForm.js +60 -57
- package/DynamicContentPickerForm/DynamicContentTagPickerForm.js +60 -57
- package/DynamicContentPickerForm/SimpleDynamicContentPickerFormSmart.js +72 -63
- package/DynamicContentPickerForm/VariedDynamicContentPickerFormSmart.js +86 -74
- package/EmailTemplatePreview/EmailTemplatePreview.js +8 -6
- package/ExportCSV/ExportCsvBanner/ExportCsvBanner.d.ts +1 -2
- package/ExportCSV/ExportCsvBanner/ExportCsvBanner.js +54 -49
- package/ExportCSV/useExportService/useExportService.js +1 -0
- package/LanguagesSelector/LanguagesModal.js +38 -24
- package/LanguagesSelector/LanguagesSelectForm.js +73 -62
- package/LanguagesSelector/LanguagesSelectFormLoader.js +8 -7
- package/LanguagesSelector/LanguagesSelector.js +92 -78
- package/MediaStore/CreateVariantDrawer.js +134 -85
- package/MediaStore/MediaStore.js +137 -112
- package/ModalCloningJourney/ModalCloningJourney.d.ts +1 -2
- package/ModalCloningJourney/ModalCloningJourney.js +113 -91
- package/OpenActions/components/OpenActionsSummary/OpenActionsSummary.d.ts +1 -2
- package/OpenActions/components/OpenActionsSummary/OpenActionsSummary.js +98 -78
- package/OpenActions/components/OpenActionsSummaryByPreset.d.ts +1 -2
- package/OpenActions/components/OpenActionsSummaryByPreset.js +2 -2
- package/PlatformsConfigurationDrawer/PlatformsConfigurationDrawer.js +21 -17
- package/PlatformsConfigurationDrawer/components/DesktopPage/DesktopPage.js +112 -75
- package/PlatformsConfigurationDrawer/components/MainPage/MainPage.js +155 -101
- package/PlatformsConfigurationDrawer/components/MobilePage/MobilePage.js +138 -91
- package/ResendModal/ResendModal.d.ts +1 -2
- package/ResendModal/ResendModal.js +92 -72
- package/RichMessageEditorSmart/NewDynamicContentForm.js +16 -12
- package/RichMessageEditorSmart/RichMessageEditorSmart.js +4 -4
- package/SystemParcel/SystemParcel.d.ts +3 -3
- package/SystemParcel/SystemParcel.js +3 -2
- package/Table/components/DataTable/DataTable.js +80 -61
- package/Table/components/DataTableGetContext/DataTableGetContext.d.ts +1 -2
- package/Table/components/DataTableGetContext/DataTableGetContext.js +5 -2
- package/Table/components/DataTableList/DataTableList.d.ts +1 -2
- package/Table/components/DataTableList/DataTableList.js +86 -68
- package/Table/components/DataTablePagination/DataTablePagination.js +6 -4
- package/Table/components/DataTableSearchInput/DataTableSearchInput.js +3 -2
- package/Table/components/DataTableSortableCell/DataTableSortableCell.js +6 -4
- package/Table/components/Loading/Loading.d.ts +1 -2
- package/Table/components/Loading/Loading.js +16 -14
- package/Table/components/TablePagination/TablePagination.js +31 -25
- package/_devel/index.js +36 -24
- package/_devel/lib/dynamic-content-picker.d.ts +1 -2
- package/_devel/lib/dynamic-content-picker.js +16 -10
- package/_devel/lib/index.d.ts +2 -2
- package/_devel/lib/index.js +38 -19
- package/_devel/test-place.d.ts +1 -2
- package/_devel/test-place.js +4 -2
- package/package.json +2 -2
package/_devel/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
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:
|
|
7
|
+
export declare const Lib: FC<RouteComponentProps<MatchParams>>;
|
|
8
8
|
export {};
|
package/_devel/lib/index.js
CHANGED
|
@@ -1,29 +1,48 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
|
15
|
+
return _jsxs(Columns, {
|
|
12
16
|
"$gap": 12,
|
|
13
|
-
"$sizes": "200px 780px"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
};
|
package/_devel/test-place.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function TestPlace(): React.JSX.Element;
|
|
1
|
+
export declare function TestPlace(): import("react").JSX.Element;
|
package/_devel/test-place.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
52
|
+
"version": "1.1.0"
|
|
53
53
|
}
|