@pushwoosh/dumb-components 1.1.184 → 1.1.186
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.
|
@@ -15,9 +15,14 @@ export type CappingOption = {
|
|
|
15
15
|
/**
|
|
16
16
|
* How the counting window is anchored: a window measured back from each send,
|
|
17
17
|
* or calendar days that reset at local midnight.
|
|
18
|
+
*
|
|
19
|
+
* The values are the wire values of `CappingMode` in `uds/objects`, so a form value
|
|
20
|
+
* can be sent as is. Rolling is empty there: a capping stored without a mode keeps
|
|
21
|
+
* its legacy rolling behaviour, and writing the word instead would store a value
|
|
22
|
+
* the backend only understands through its "anything else is rolling" fallback.
|
|
18
23
|
*/
|
|
19
24
|
export declare enum CappingCountingMode {
|
|
20
|
-
ROLLING = "
|
|
25
|
+
ROLLING = "",
|
|
21
26
|
CALENDAR_DAY = "calendar_day"
|
|
22
27
|
}
|
|
23
28
|
/** Per-message capping config (exported publicly as `LocalCapping`). */
|
|
@@ -8,9 +8,14 @@ export var CappingTypes;
|
|
|
8
8
|
/**
|
|
9
9
|
* How the counting window is anchored: a window measured back from each send,
|
|
10
10
|
* or calendar days that reset at local midnight.
|
|
11
|
+
*
|
|
12
|
+
* The values are the wire values of `CappingMode` in `uds/objects`, so a form value
|
|
13
|
+
* can be sent as is. Rolling is empty there: a capping stored without a mode keeps
|
|
14
|
+
* its legacy rolling behaviour, and writing the word instead would store a value
|
|
15
|
+
* the backend only understands through its "anything else is rolling" fallback.
|
|
11
16
|
*/
|
|
12
17
|
export var CappingCountingMode;
|
|
13
18
|
(function (CappingCountingMode) {
|
|
14
|
-
CappingCountingMode["ROLLING"] = "
|
|
19
|
+
CappingCountingMode["ROLLING"] = "";
|
|
15
20
|
CappingCountingMode["CALENDAR_DAY"] = "calendar_day";
|
|
16
21
|
})(CappingCountingMode || (CappingCountingMode = {}));
|
|
@@ -5,7 +5,7 @@ import { Text } from '@pushwoosh/kit-typography';
|
|
|
5
5
|
export const NotificationInboxContainer = styled(Vertical).withConfig({
|
|
6
6
|
displayName: "NotificationInboxContainer",
|
|
7
7
|
componentId: "sc-1nrene1-0"
|
|
8
|
-
})(["display:flex;flex-direction:column;width:100%;min-width:360px;max-width:360px;max-height:600px;background:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";overflow:
|
|
8
|
+
})(["display:flex;flex-direction:column;width:100%;min-width:360px;max-width:360px;max-height:600px;background:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";overflow:hidden;"], Color.CLEAR, Color.FORM, ShapeRadius.DIALOG, Shadow.REGULAR);
|
|
9
9
|
export const NotificationInboxHeader = styled(Horizontal).withConfig({
|
|
10
10
|
displayName: "NotificationInboxHeader",
|
|
11
11
|
componentId: "sc-1nrene1-1"
|
|
@@ -17,11 +17,11 @@ export const NotificationInboxTitle = styled(Text).withConfig({
|
|
|
17
17
|
export const NotificationInboxList = styled(Vertical).withConfig({
|
|
18
18
|
displayName: "NotificationInboxList",
|
|
19
19
|
componentId: "sc-1nrene1-3"
|
|
20
|
-
})(["flex:1;overflow-y:auto;overflow-x:hidden;width:100%;min-width:0;"]);
|
|
20
|
+
})(["flex:1;align-content:start;overflow-y:auto;overflow-x:hidden;width:100%;min-width:0;min-height:0;"]);
|
|
21
21
|
export const NotificationItem = styled(Horizontal).withConfig({
|
|
22
22
|
displayName: "NotificationItem",
|
|
23
23
|
componentId: "sc-1nrene1-4"
|
|
24
|
-
})(["width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin:0;padding:16px;border-bottom:1px solid ", ";cursor:pointer;transition:background-color 0.2s;align-items:flex-start;gap:8px;background-color:", ";&:hover{background-color:", ";}&:last-child{border-bottom:none;}"], Color.FORM, Color.CLEAR, Color.FROZEN);
|
|
24
|
+
})(["width:100%;min-width:0;max-width:100%;box-sizing:border-box;grid-template-columns:max-content minmax(0,1fr);overflow-wrap:anywhere;margin:0;padding:16px;border-bottom:1px solid ", ";cursor:pointer;transition:background-color 0.2s;align-items:flex-start;gap:8px;background-color:", ";&:hover{background-color:", ";}&:last-child{border-bottom:none;}"], Color.FORM, Color.CLEAR, Color.FROZEN);
|
|
25
25
|
export const NotificationIndicator = styled(Horizontal).withConfig({
|
|
26
26
|
displayName: "NotificationIndicator",
|
|
27
27
|
componentId: "sc-1nrene1-5"
|