@pushwoosh/dumb-components 4.12.2 → 4.13.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/AccessForbidden/polyglot/index.d.ts +1 -1
- package/Calendar/CalendarDropdown/index.d.ts +1 -1
- package/Calendar/CalendarDropdown/index.js +1 -1
- package/Calendar/index.d.ts +2 -2
- package/Calendar/index.js +2 -2
- package/Calendar/polyglot/index.d.ts +1 -1
- package/ChatPreview/polyglot/index.d.ts +1 -1
- package/Chip/polyglot/index.d.ts +1 -1
- package/CrashScreen/polyglot/index.d.ts +1 -1
- package/Drawer/polyglot/index.d.ts +1 -1
- package/EditableField/polyglot/index.d.ts +1 -1
- package/EmailTemplatePreview/polyglot/index.d.ts +1 -1
- package/InboxPreview/polyglot/index.d.ts +1 -1
- package/Modal/polyglot/index.d.ts +1 -1
- package/NativeRichMediaPreview/polyglot/index.d.ts +1 -1
- package/NotificationInbox/polyglot/index.d.ts +1 -1
- package/PushPreview/index.d.ts +2 -0
- package/PushPreview/index.js +2 -1
- package/PushPreview/polyglot/index.d.ts +1 -1
- package/PushStoriesPreview/polyglot/index.d.ts +1 -1
- package/RichMessageEditor/index.d.ts +2 -0
- package/RichMessageEditor/index.js +2 -1
- package/RichMessageEditor/slate/DynamicContentElement.js +4 -3
- package/RichMessageEditor/slate/helpers.d.ts +0 -8
- package/RichMessageEditor/slate/helpers.js +0 -22
- package/SortButton/index.d.ts +1 -1
- package/StatisticCard/index.d.ts +1 -0
- package/WhatsAppPreview/polyglot/index.d.ts +1 -1
- package/index.d.ts +11 -9
- package/index.js +6 -4
- package/package.json +3 -3
- package/polyglot/liquid/render.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type AccessForbiddenMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<AccessForbiddenMessages>>, useLang: () => (props: import("../..").LangProps<AccessForbiddenMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { CalendarDropdown } from './CalendarDropdown';
|
|
2
|
-
export { stringifyValue } from './helpers';
|
|
2
|
+
export { stringifyValue, formatDate } from './helpers';
|
package/Calendar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { CalendarSuperForm, type CalendarSuperFormProps } from './CalendarSuperForm';
|
|
2
|
-
export { CalendarDropdown, stringifyValue, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, } from './CalendarDropdown';
|
|
3
|
-
export { dateToStruct, structToDate, dateToStructTz, structToDateTz, getTimezoneOffset, addPeriod, compareStructs, getPeriodEnd, getPeriodStart, pickDateStruct, } from './helpers';
|
|
2
|
+
export { CalendarDropdown, stringifyValue, formatDate, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, } from './CalendarDropdown';
|
|
3
|
+
export { dateToStruct, structToDate, dateToStructTz, structToDateTz, getTimezoneOffset, addPeriod, compareStructs, getPeriodEnd, getPeriodStart, pickDateStruct, setPeriodStruct, formatStruct, } from './helpers';
|
|
4
4
|
export type { DateStruct, RangeValue } from './types';
|
package/Calendar/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { CalendarSuperForm } from './CalendarSuperForm';
|
|
2
|
-
export { CalendarDropdown, stringifyValue } from './CalendarDropdown';
|
|
3
|
-
export { dateToStruct, structToDate, dateToStructTz, structToDateTz, getTimezoneOffset, addPeriod, compareStructs, getPeriodEnd, getPeriodStart, pickDateStruct } from './helpers';
|
|
2
|
+
export { CalendarDropdown, stringifyValue, formatDate } from './CalendarDropdown';
|
|
3
|
+
export { dateToStruct, structToDate, dateToStructTz, structToDateTz, getTimezoneOffset, addPeriod, compareStructs, getPeriodEnd, getPeriodStart, pickDateStruct, setPeriodStruct, formatStruct } from './helpers';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type CalendarMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<CalendarMessages>>, useLang: () => (props: import("../..").LangProps<CalendarMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ChatPreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<ChatPreviewMessages>>, useLang: () => (props: import("../..").LangProps<ChatPreviewMessages>) => string;
|
package/Chip/polyglot/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type CrashScreenMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<CrashScreenMessages>>, useLang: () => (props: import("../..").LangProps<CrashScreenMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type DrawerMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<DrawerMessages>>, useLang: () => (props: import("../..").LangProps<DrawerMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type EditableFieldMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<EditableFieldMessages>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type EmailTemplatePreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<EmailTemplatePreviewMessages>>, useLang: () => (props: import("../..").LangProps<EmailTemplatePreviewMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type InboxPreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<InboxPreviewMessages>>, useLang: () => (props: import("../..").LangProps<InboxPreviewMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ModalMessages } from './types';
|
|
2
|
-
export declare const useLang: () => (props: import("
|
|
2
|
+
export declare const useLang: () => (props: import("../..").LangProps<ModalMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type NativeRichMediaPreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<NativeRichMediaPreviewMessages>>, useLang: () => (props: import("../..").LangProps<NativeRichMediaPreviewMessages>) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type NotificationInboxMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<NotificationInboxMessages>>, useLang: () => (props: import("../..").LangProps<NotificationInboxMessages>) => string;
|
package/PushPreview/index.d.ts
CHANGED
package/PushPreview/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { PushPreview } from './PushPreview';
|
|
1
|
+
export { PushPreview } from './PushPreview';
|
|
2
|
+
export { getDefaultLanguage } from './helpers';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type PushPreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<PushPreviewMessages>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type PushStoriesPreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<PushStoriesPreviewMessages>>, useLang: () => (props: import("../..").LangProps<PushStoriesPreviewMessages>) => string;
|
|
@@ -2,3 +2,5 @@ export { type RichMessageEditorContent } from './types';
|
|
|
2
2
|
export { RichMessageEditor } from './RichMessageEditor';
|
|
3
3
|
export { RichMessageViewer } from './RichMessageViewer';
|
|
4
4
|
export { type DynamicContent } from './slate/types';
|
|
5
|
+
export { validateContentSting } from './slate/helpers';
|
|
6
|
+
export type { RichMessageEditorProps } from './RichMessageEditor.types';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Transforms } from 'slate';
|
|
2
|
+
import { Node as SlateNode, Transforms } from 'slate';
|
|
3
3
|
import { useSelected, useSlateStatic } from 'slate-react';
|
|
4
|
-
import { findPath } from './helpers';
|
|
5
4
|
import { Chip } from '../../Chip';
|
|
6
5
|
import { isResolvableDc } from '../../shared/dynamicContent';
|
|
7
6
|
const DynamicContentElementComponent = ({
|
|
@@ -25,7 +24,9 @@ const DynamicContentElementComponent = ({
|
|
|
25
24
|
"$onClose": event => {
|
|
26
25
|
event.preventDefault();
|
|
27
26
|
event.stopPropagation();
|
|
28
|
-
const
|
|
27
|
+
const path = SlateNode.findPath(editor, element);
|
|
28
|
+
if (!path) return;
|
|
29
|
+
const [paragraphIndex, elementIndex] = path;
|
|
29
30
|
Transforms.delete(editor, {
|
|
30
31
|
at: [paragraphIndex, elementIndex]
|
|
31
32
|
});
|
|
@@ -20,14 +20,6 @@ export declare function getDcByPath(value: SlateEditorContent, path: number[]):
|
|
|
20
20
|
* @returns Array of all dynamic content elements
|
|
21
21
|
*/
|
|
22
22
|
export declare function findAllDc(value: SlateEditorContent): DynamicContentElement[];
|
|
23
|
-
/**
|
|
24
|
-
* Finds the path to a specific element in the Slate document
|
|
25
|
-
* @param value - The Slate editor content
|
|
26
|
-
* @param elToFind - The element to find
|
|
27
|
-
* @returns Array of indices representing the path to the element, empty if not found
|
|
28
|
-
* TODO: slate 0.146+ ships `Node.findPath(root, node)` (returns `undefined` when absent) — replace this walk with it.
|
|
29
|
-
*/
|
|
30
|
-
export declare function findPath(value: SlateEditorContent, elToFind: Descendant): number[];
|
|
31
23
|
export { parseDc, stringifyDc };
|
|
32
24
|
/**
|
|
33
25
|
* Converts a string to Slate editor content, parsing dynamic content tags
|
|
@@ -48,28 +48,6 @@ export function findAllDc(value) {
|
|
|
48
48
|
walkDeep(value);
|
|
49
49
|
return dces;
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Finds the path to a specific element in the Slate document
|
|
53
|
-
* @param value - The Slate editor content
|
|
54
|
-
* @param elToFind - The element to find
|
|
55
|
-
* @returns Array of indices representing the path to the element, empty if not found
|
|
56
|
-
* TODO: slate 0.146+ ships `Node.findPath(root, node)` (returns `undefined` when absent) — replace this walk with it.
|
|
57
|
-
*/
|
|
58
|
-
export function findPath(value, elToFind) {
|
|
59
|
-
for (let i = 0; i < value.length; i++) {
|
|
60
|
-
const el = value[i];
|
|
61
|
-
if (el === elToFind) {
|
|
62
|
-
return [i];
|
|
63
|
-
}
|
|
64
|
-
if (isElement(el)) {
|
|
65
|
-
const path = findPath(el.children, elToFind);
|
|
66
|
-
if (path.length > 0) {
|
|
67
|
-
return [i, ...path];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return [];
|
|
72
|
-
}
|
|
73
51
|
// Re-exported so existing import paths keep working; the token format itself
|
|
74
52
|
// now lives in shared/dynamicContent, shared with the read-only renderers.
|
|
75
53
|
export { parseDc, stringifyDc };
|
package/SortButton/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SortButton } from './SortButton';
|
|
2
|
-
export type { SortButtonParams } from './types';
|
|
2
|
+
export type { SortButtonParams, SortButtonOrder } from './types';
|
package/StatisticCard/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type WhatsAppPreviewMessages } from './types';
|
|
2
|
-
export declare const Lang: import("react").FC<import("
|
|
2
|
+
export declare const Lang: import("react").FC<import("../..").LangProps<WhatsAppPreviewMessages>>, useLang: () => (props: import("../..").LangProps<WhatsAppPreviewMessages>) => string;
|
package/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { AccessForbidden } from './AccessForbidden';
|
|
2
2
|
export { Badge, type BadgeColor } from './Badge';
|
|
3
3
|
export { Banner, type BannerType } from './Banner';
|
|
4
|
-
export { Button, GhostButton, RemoveButton } from './Button';
|
|
4
|
+
export { Button, GhostButton, RemoveButton, type RequiredButtonProps, } from './Button';
|
|
5
5
|
export { CardMetric } from './CardMetric';
|
|
6
6
|
export { Checkbox } from './Checkbox';
|
|
7
7
|
export { CrashScreen } from './CrashScreen';
|
|
8
8
|
export { Divider } from './Divider';
|
|
9
9
|
export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs, } from './Drawer';
|
|
10
|
-
export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, type CalendarSuperFormProps, type DateStruct, type RangeValue, } from './Calendar';
|
|
10
|
+
export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct, setPeriodStruct, formatStruct, formatDate, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, type CalendarSuperFormProps, type DateStruct, type RangeValue, } from './Calendar';
|
|
11
11
|
export { DropdownMenu, DropdownMenuButton, DropdownMenuSection, DropdownMenuItem, DropdownMenuSubmenu, } from './DropdownMenu';
|
|
12
12
|
export { GetStartedPage, type GetStartedPageCheckListView, type GetStartedPageProps } from './GetStartedPage';
|
|
13
13
|
export { EditableField } from './EditableField';
|
|
@@ -20,7 +20,7 @@ export { Popover } from './Popover';
|
|
|
20
20
|
export { Radio } from './Radio';
|
|
21
21
|
export { RadioCard } from './RadioCard';
|
|
22
22
|
export { Spinner } from './Spinner';
|
|
23
|
-
export { SortButton, type SortButtonParams } from './SortButton';
|
|
23
|
+
export { SortButton, type SortButtonParams, type SortButtonOrder } from './SortButton';
|
|
24
24
|
export { SplitButton, type SplitButtonProps } from './SplitButton';
|
|
25
25
|
export { Select, SelectAsync, SelectComponents, CLASS_NAME_PREFIX, type SelectBase, type SelectOption, type MultiSelectOptions, type SingleValue, type MultiValue, } from './Select';
|
|
26
26
|
export { Combobox, type ComboboxProps, type ComboboxChangeSource, type ComboboxChangeMeta, type FreeComboboxProps, type SelectComboboxProps, } from './Combobox';
|
|
@@ -30,15 +30,15 @@ export { TextSkeleton, RectangularSkeleton, CircularSkeleton } from './Skeleton'
|
|
|
30
30
|
export { Tooltip, type TooltipPosition, type TooltipColor, TooltipTrigger } from './Tooltip';
|
|
31
31
|
export { Tab, TabBar, TabPanel, Tabs, type TabCode, type TabBarLayout } from './Tabs';
|
|
32
32
|
export { Link, type LinkPropsWithoutAs, type LinkPropsWithAsTag, type LinkPropsWithAsComponent, } from './Link';
|
|
33
|
-
export { StatisticCard } from './StatisticCard';
|
|
34
|
-
export { EmailTemplatePreview, NoEmailTemplatePreview, replaceLocalization, replacePlaceholders, matchClickMapItems, decorateClickMap, CLICK_MAP_BADGE_ATTRIBUTE, type EmailClickMapItem, type EmailClickMapPlacement, type EmailClickMapProps, type PreviewIframeProps, } from './EmailTemplatePreview';
|
|
35
|
-
export { PushPreview } from './PushPreview';
|
|
33
|
+
export { StatisticCard, type StatisticCardProps } from './StatisticCard';
|
|
34
|
+
export { EmailTemplatePreview, NoEmailTemplatePreview, replaceLocalization, replacePlaceholders, matchClickMapItems, decorateClickMap, CLICK_MAP_BADGE_ATTRIBUTE, type EmailClickMapItem, type EmailClickMapMode, type EmailClickMapPlacement, type EmailClickMapProps, type PreviewIframeProps, } from './EmailTemplatePreview';
|
|
35
|
+
export { PushPreview, getDefaultLanguage, type PushPreviewView, type PushBasicData, } from './PushPreview';
|
|
36
36
|
export { PushStoriesPreview, hasStoryButton, normalizeStoryDuration, PUSH_STORIES_ASPECT_RATIO, PUSH_STORIES_DEFAULT_DURATION, PUSH_STORIES_MAX_DURATION, type PushStoriesPreviewPage, type PushStoriesPreviewProps, } from './PushStoriesPreview';
|
|
37
37
|
export { InboxPreview, resolveInboxLayout, MAX_CAROUSEL_SLIDES, type InboxLayoutType, type InboxPreviewPlatform, type InboxPreviewContent, type InboxPreviewProps, type InboxPreviewSlide, } from './InboxPreview';
|
|
38
38
|
export { WhatsAppPreview } from './WhatsAppPreview';
|
|
39
39
|
export type { WhatsAppAttachment, WhatsAppAttachmentKind, WhatsAppMessage, WhatsAppPreviewProps, } from './WhatsAppPreview';
|
|
40
40
|
export { ChatPreview } from './ChatPreview';
|
|
41
|
-
export type { ChatButton, ChatButtonKind, ChatCard, ChatChannel, ChatCompatibility, ChatContent, ChatContentType, ChatHeader, ChatList, ChatListItem, ChatMedia, ChatMediaKind, ChatPreviewProps, ChatRcsLayout, } from './ChatPreview';
|
|
41
|
+
export type { ChatButton, ChatButtonKind, ChatCard, ChatChannel, ChatCompatibility, ChatContent, ChatContentType, ChatHeader, ChatIssue, ChatIssueSeverity, ChatList, ChatListItem, ChatMedia, ChatMediaKind, ChatPreviewProps, ChatRcsHeight, ChatRcsLayout, ChatRcsOrientation, ChatRcsThumbnailAlignment, } from './ChatPreview';
|
|
42
42
|
export { Toast, ToastProvider, useToast } from './Toast';
|
|
43
43
|
export { AutosizeInput, PageHeader, PageHeaderEditable, Rename, } from './PageHeader';
|
|
44
44
|
export { Steps, useSteps } from './Steps';
|
|
@@ -48,19 +48,21 @@ export { ExternalImagePreview } from './ExternalImagePreview';
|
|
|
48
48
|
export { NativeInput, NativeTextarea, NativeSelect, NativeTimeInput, } from './native';
|
|
49
49
|
export { FieldBox } from './FieldBox';
|
|
50
50
|
export { NumberPicker } from './NumberPicker';
|
|
51
|
-
export { CodeEditor } from './CodeEditor';
|
|
51
|
+
export { CodeEditor, json as jsonLanguage, html as htmlLanguage } from './CodeEditor';
|
|
52
52
|
export { EnhancedInput, SearchInput } from './EnhancedInput';
|
|
53
53
|
export { Chip, type ChipProps, type ChipVariant } from './Chip';
|
|
54
54
|
export { RichmediaPreview, useRichmediaHtml } from './RichmediaPreview';
|
|
55
55
|
export { SandboxedHtmlFrame, type SandboxedHtmlFrameProps, type IsolatedSandboxedHtmlFrameProps, type InspectableSandboxedHtmlFrameProps, } from './SandboxedHtmlFrame';
|
|
56
56
|
export { NativeRichMediaPreview, parseNativeRichMediaConfig, parseLocalizationParams, NATIVE_RICH_MEDIA_DISPLAY_TYPES, EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES, } from './NativeRichMediaPreview';
|
|
57
57
|
export type { NativeRichMediaConfig, NativeRichMediaDisplayType, NativeRichMediaText, NativeRichMediaBorder, NativeRichMediaCover, NativeRichMediaAction, NativeRichMediaButton, NativeRichMediaReward, NativeRichMediaDarkOverlay, NativeRichMediaModalBlock, NativeRichMediaSheetBlock, NativeRichMediaCarouselBlock, NativeRichMediaStoriesBlock, NativeRichMediaBannerBlock, NativeRichMediaFullscreenBlock, NativeRichMediaVideoBlock, NativeRichMediaPipBlock, NativeRichMediaScratchcardBlock, NativeRichMediaSpinwheelBlock, NativeRichMediaPreviewProps, NativeRichMediaLocalization, NativeRichMediaTheme, } from './NativeRichMediaPreview';
|
|
58
|
-
export { RichMessageEditor, RichMessageViewer, type DynamicContent, } from './RichMessageEditor';
|
|
58
|
+
export { RichMessageEditor, RichMessageViewer, validateContentSting, type DynamicContent, type RichMessageEditorProps, } from './RichMessageEditor';
|
|
59
59
|
export { FrequencyCappingEdit, FrequencyCappingReadonly, FrequencyCappingInApps, CappingCountingMode, CountingMode, type CountingModeProps, type LocalCapping, type CappingInAppBase, } from './FrequencyCapping';
|
|
60
60
|
export { SendRateEdit, SendRateReadonly, type SendRateBase, type SendRateEditProps, type SendRateReadonlyProps, } from './SendRate';
|
|
61
61
|
export { Alert } from './Alert';
|
|
62
62
|
export { ApplicationPreloader, type ApplicationPreloaderProps, } from './ApplicationPreloader';
|
|
63
63
|
export { NotificationInbox, NotificationBar, NotificationBell, type Notification, type NotificationInboxProps, type NotificationSeverity, type NotificationBarType, type NotificationBarProps, type NotificationBellProps, } from './NotificationInbox';
|
|
64
64
|
export { LeafletTheme } from './LeafletTheme';
|
|
65
|
+
export { useOnClickOutside } from './hooks';
|
|
66
|
+
export { LangProvider, LangBase, useLangBase, useLanguage, LangLib, useLangLib, createLang, type LangMessages, type LangProps, type UseLangHook, type NoParams, } from './polyglot';
|
|
65
67
|
export { buildBarcodeUrl, barcodePlaceholderSafeEscape, isBarcodePlaceholder, type BarcodeSymbology, type BarcodeUrlParams, } from './helpers/barcodeUrl';
|
|
66
68
|
export { canonicalizeTimezone, findTimezoneOption, formatTimezoneAbbreviation, formatTimezoneBadge, formatTimezoneLabel, formatTimezoneOffset, formatTimezoneShort, getBrowserTimezone, getTimezoneOffsetSafe, listTimezones, resolveTimezoneOption, type TimezoneOption, } from './helpers/timezones';
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { Checkbox } from './Checkbox';
|
|
|
7
7
|
export { CrashScreen } from './CrashScreen';
|
|
8
8
|
export { Divider } from './Divider';
|
|
9
9
|
export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs } from './Drawer';
|
|
10
|
-
export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct } from './Calendar';
|
|
10
|
+
export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct, setPeriodStruct, formatStruct, formatDate } from './Calendar';
|
|
11
11
|
export { DropdownMenu, DropdownMenuButton, DropdownMenuSection, DropdownMenuItem, DropdownMenuSubmenu } from './DropdownMenu';
|
|
12
12
|
export { GetStartedPage } from './GetStartedPage';
|
|
13
13
|
export { EditableField } from './EditableField';
|
|
@@ -32,7 +32,7 @@ export { Tab, TabBar, TabPanel, Tabs } from './Tabs';
|
|
|
32
32
|
export { Link } from './Link';
|
|
33
33
|
export { StatisticCard } from './StatisticCard';
|
|
34
34
|
export { EmailTemplatePreview, NoEmailTemplatePreview, replaceLocalization, replacePlaceholders, matchClickMapItems, decorateClickMap, CLICK_MAP_BADGE_ATTRIBUTE } from './EmailTemplatePreview';
|
|
35
|
-
export { PushPreview } from './PushPreview';
|
|
35
|
+
export { PushPreview, getDefaultLanguage } from './PushPreview';
|
|
36
36
|
export { PushStoriesPreview, hasStoryButton, normalizeStoryDuration, PUSH_STORIES_ASPECT_RATIO, PUSH_STORIES_DEFAULT_DURATION, PUSH_STORIES_MAX_DURATION } from './PushStoriesPreview';
|
|
37
37
|
export { InboxPreview, resolveInboxLayout, MAX_CAROUSEL_SLIDES } from './InboxPreview';
|
|
38
38
|
export { WhatsAppPreview } from './WhatsAppPreview';
|
|
@@ -45,18 +45,20 @@ export { ExternalImagePreview } from './ExternalImagePreview';
|
|
|
45
45
|
export { NativeInput, NativeTextarea, NativeSelect, NativeTimeInput } from './native';
|
|
46
46
|
export { FieldBox } from './FieldBox';
|
|
47
47
|
export { NumberPicker } from './NumberPicker';
|
|
48
|
-
export { CodeEditor } from './CodeEditor';
|
|
48
|
+
export { CodeEditor, json as jsonLanguage, html as htmlLanguage } from './CodeEditor';
|
|
49
49
|
export { EnhancedInput, SearchInput } from './EnhancedInput';
|
|
50
50
|
export { Chip } from './Chip';
|
|
51
51
|
export { RichmediaPreview, useRichmediaHtml } from './RichmediaPreview';
|
|
52
52
|
export { SandboxedHtmlFrame } from './SandboxedHtmlFrame';
|
|
53
53
|
export { NativeRichMediaPreview, parseNativeRichMediaConfig, parseLocalizationParams, NATIVE_RICH_MEDIA_DISPLAY_TYPES, EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES } from './NativeRichMediaPreview';
|
|
54
|
-
export { RichMessageEditor, RichMessageViewer } from './RichMessageEditor';
|
|
54
|
+
export { RichMessageEditor, RichMessageViewer, validateContentSting } from './RichMessageEditor';
|
|
55
55
|
export { FrequencyCappingEdit, FrequencyCappingReadonly, FrequencyCappingInApps, CappingCountingMode, CountingMode } from './FrequencyCapping';
|
|
56
56
|
export { SendRateEdit, SendRateReadonly } from './SendRate';
|
|
57
57
|
export { Alert } from './Alert';
|
|
58
58
|
export { ApplicationPreloader } from './ApplicationPreloader';
|
|
59
59
|
export { NotificationInbox, NotificationBar, NotificationBell } from './NotificationInbox';
|
|
60
60
|
export { LeafletTheme } from './LeafletTheme';
|
|
61
|
+
export { useOnClickOutside } from './hooks';
|
|
62
|
+
export { LangProvider, LangBase, useLangBase, useLanguage, LangLib, useLangLib, createLang } from './polyglot';
|
|
61
63
|
export { buildBarcodeUrl, barcodePlaceholderSafeEscape, isBarcodePlaceholder } from './helpers/barcodeUrl';
|
|
62
64
|
export { canonicalizeTimezone, findTimezoneOption, formatTimezoneAbbreviation, formatTimezoneBadge, formatTimezoneLabel, formatTimezoneOffset, formatTimezoneShort, getBrowserTimezone, getTimezoneOffsetSafe, listTimezones, resolveTimezoneOption } from './helpers/timezones';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/dumb-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "React components to build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@floating-ui/react-dom": "^2.1.2",
|
|
38
38
|
"@lezer/highlight": "^1.2.1",
|
|
39
39
|
"@pushwoosh/kit-constants": "^3.1.0",
|
|
40
|
-
"@pushwoosh/kit-helpers": "^4.
|
|
40
|
+
"@pushwoosh/kit-helpers": "^4.17.0",
|
|
41
41
|
"@pushwoosh/kit-icons": "^2.3.15",
|
|
42
|
-
"@pushwoosh/kit-typography": "^2.
|
|
42
|
+
"@pushwoosh/kit-typography": "^2.1.0",
|
|
43
43
|
"@tippyjs/react": "^4.2.6",
|
|
44
44
|
"@uiw/codemirror-themes": "^4.23.8",
|
|
45
45
|
"@uiw/react-codemirror": "^4.23.8",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { Color } from '@pushwoosh/kit-constants';
|
|
4
|
-
import { variants } from '@pushwoosh/kit-typography
|
|
4
|
+
import { variants } from '@pushwoosh/kit-typography';
|
|
5
5
|
import { filters } from './filters';
|
|
6
6
|
import { decodeHtmlEntities, stringifyScalarOrVariable, unpackScalarOrValue } from './helpers';
|
|
7
7
|
import { ifOperatorFns, voidTags } from './parser';
|