@pushwoosh/dumb-components 1.1.203 → 1.1.205
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.
|
@@ -5,7 +5,7 @@ import { getCappingChipText } from './getCappingChipText';
|
|
|
5
5
|
import { Tooltip } from '../../Tooltip';
|
|
6
6
|
import { ChipFrequencyCapping } from '../components/Condition';
|
|
7
7
|
import { IconWrapper } from '../styles';
|
|
8
|
-
import { CappingTypes } from '../types';
|
|
8
|
+
import { CappingCountingMode, CappingTypes } from '../types';
|
|
9
9
|
export function getReadonlyCappingLabel(cappingOption, isGlobalCappingDisabled, capping, globalCapping, isInJourney, lang) {
|
|
10
10
|
const tooltip = getReadonlyTooltip(cappingOption, isInJourney, lang);
|
|
11
11
|
if (cappingOption === CappingTypes.CUSTOM) {
|
|
@@ -15,6 +15,13 @@ export function getReadonlyCappingLabel(cappingOption, isGlobalCappingDisabled,
|
|
|
15
15
|
}), _jsx(ChipFrequencyCapping, {
|
|
16
16
|
text: getCappingChipText(lang, capping.messages, capping.days),
|
|
17
17
|
tooltip: tooltip
|
|
18
|
+
}), capping.countingMode === CappingCountingMode.CALENDAR_DAY && _jsx(ChipFrequencyCapping, {
|
|
19
|
+
text: `${lang({
|
|
20
|
+
message: 'DUMB.FREQUENCY_CAPPING.COUNTING_MODE.CALENDAR_DAY'
|
|
21
|
+
})} · ${capping.timezone || 'UTC'}`,
|
|
22
|
+
tooltip: lang({
|
|
23
|
+
message: 'DUMB.FREQUENCY_CAPPING.COUNTING_MODE.CALENDAR_DAY_TOOLTIP'
|
|
24
|
+
})
|
|
18
25
|
})]
|
|
19
26
|
});
|
|
20
27
|
}
|
|
@@ -286,7 +286,7 @@ export declare const NATIVE_RICH_MEDIA_DISPLAY_TYPES: NativeRichMediaDisplayType
|
|
|
286
286
|
/**
|
|
287
287
|
* The subset of {@link NATIVE_RICH_MEDIA_DISPLAY_TYPES} the native rich media
|
|
288
288
|
* editor can author. The preview renders every display type, but only these
|
|
289
|
-
*
|
|
289
|
+
* have an editing UI, so pickers must offer this list and not the full one.
|
|
290
290
|
*/
|
|
291
291
|
export declare const EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES: NativeRichMediaDisplayType[];
|
|
292
292
|
/**
|
|
@@ -3,6 +3,6 @@ export const NATIVE_RICH_MEDIA_DISPLAY_TYPES = ['modal', 'sheet', 'carousel', 's
|
|
|
3
3
|
/**
|
|
4
4
|
* The subset of {@link NATIVE_RICH_MEDIA_DISPLAY_TYPES} the native rich media
|
|
5
5
|
* editor can author. The preview renders every display type, but only these
|
|
6
|
-
*
|
|
6
|
+
* have an editing UI, so pickers must offer this list and not the full one.
|
|
7
7
|
*/
|
|
8
|
-
export const EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES = ['modal', 'stories', 'fullscreen', 'sheet', 'carousel', 'banner'];
|
|
8
|
+
export const EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES = ['modal', 'stories', 'fullscreen', 'sheet', 'carousel', 'banner', 'video'];
|