@pushwoosh/dumb-components 1.1.187 → 1.1.189

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.
@@ -1,4 +1,5 @@
1
1
  export { CalendarSuperForm, type CalendarSuperFormProps } from './CalendarSuperForm';
2
+ export { getSortedTimezones, type TimezoneOption } from './helpers-tz';
2
3
  export { CalendarDropdown, stringifyValue, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, } from './CalendarDropdown';
3
4
  export { dateToStruct, structToDate, dateToStructTz, structToDateTz, getTimezoneOffset, addPeriod, compareStructs, getPeriodEnd, getPeriodStart, pickDateStruct, } from './helpers';
4
5
  export type { DateStruct, RangeValue } from './types';
package/Calendar/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export { CalendarSuperForm } from './CalendarSuperForm';
2
+ export { getSortedTimezones } from './helpers-tz';
2
3
  export { CalendarDropdown, stringifyValue } from './CalendarDropdown';
3
4
  export { dateToStruct, structToDate, dateToStructTz, structToDateTz, getTimezoneOffset, addPeriod, compareStructs, getPeriodEnd, getPeriodStart, pickDateStruct } from './helpers';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { autoPlacement, size, offset, useFloating } from '@floating-ui/react-dom';
2
+ import { autoPlacement, autoUpdate, size, offset, useFloating } from '@floating-ui/react-dom';
3
3
  import { useState, useEffect, useCallback } from 'react';
4
4
  import { createPortal, flushSync } from 'react-dom';
5
5
  import { Place } from './styles';
@@ -48,7 +48,9 @@ export const DropdownMenu = ({
48
48
  refs,
49
49
  floatingStyles
50
50
  } = useFloating({
51
+ open: isOpen,
51
52
  strategy: 'fixed',
53
+ whileElementsMounted: autoUpdate,
52
54
  middleware: [size({
53
55
  apply({
54
56
  rects
@@ -1,5 +1,7 @@
1
1
  export { FrequencyCappingEdit } from './FrequencyCappingEdit';
2
2
  export { FrequencyCappingReadonly } from './FrequencyCappingReadonly';
3
3
  export { FrequencyCappingInApps } from './FrequencyCappingInApps';
4
+ export { CountingMode } from './components/CountingMode';
5
+ export type { CountingModeProps } from './components/CountingMode/types';
4
6
  export { CappingCountingMode } from './types';
5
7
  export type { FrequencyCappingEditProps, FrequencyCappingReadonlyProps, FrequencyCappingInAppsProps, CappingBase as LocalCapping, CappingInAppBase, } from './types';
@@ -1,4 +1,5 @@
1
1
  export { FrequencyCappingEdit } from './FrequencyCappingEdit';
2
2
  export { FrequencyCappingReadonly } from './FrequencyCappingReadonly';
3
3
  export { FrequencyCappingInApps } from './FrequencyCappingInApps';
4
+ export { CountingMode } from './components/CountingMode';
4
5
  export { CappingCountingMode } from './types';
package/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { CardMetric } from './CardMetric';
6
6
  export { Checkbox } from './Checkbox';
7
7
  export { CrashScreen } from './CrashScreen';
8
8
  export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs, } from './Drawer';
9
- 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';
9
+ export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getSortedTimezones, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct, type CalendarDropdownProps, type CalendarDropdownRangeDateProps, type CalendarSuperFormProps, type DateStruct, type RangeValue, type TimezoneOption, } from './Calendar';
10
10
  export { DatePicker, DatePickerField, DateTimePicker, DateTimePickerField, } from './DateTimePicker';
11
11
  export { DropdownMenu, DropdownMenuButton, DropdownMenuSection, DropdownMenuItem, DropdownMenuSubmenu, } from './DropdownMenu';
12
12
  export { GetStartedPage } from './GetStartedPage';
@@ -47,7 +47,7 @@ export { SandboxedHtmlFrame, type SandboxedHtmlFrameProps, type IsolatedSandboxe
47
47
  export { NativeRichMediaPreview, parseNativeRichMediaConfig, parseLocalizationParams, NATIVE_RICH_MEDIA_DISPLAY_TYPES, EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES, } from './NativeRichMediaPreview';
48
48
  export type { NativeRichMediaConfig, NativeRichMediaDisplayType, NativeRichMediaText, NativeRichMediaBorder, NativeRichMediaCover, NativeRichMediaAction, NativeRichMediaButton, NativeRichMediaReward, NativeRichMediaModalBlock, NativeRichMediaSheetBlock, NativeRichMediaCarouselBlock, NativeRichMediaStoriesBlock, NativeRichMediaBannerBlock, NativeRichMediaFullscreenBlock, NativeRichMediaVideoBlock, NativeRichMediaPipBlock, NativeRichMediaScratchcardBlock, NativeRichMediaSpinwheelBlock, NativeRichMediaPreviewProps, NativeRichMediaLocalization, } from './NativeRichMediaPreview';
49
49
  export { RichMessageEditor, RichMessageViewer, type DynamicContent, } from './RichMessageEditor';
50
- export { FrequencyCappingEdit, FrequencyCappingReadonly, FrequencyCappingInApps, CappingCountingMode, type LocalCapping, type CappingInAppBase, } from './FrequencyCapping';
50
+ export { FrequencyCappingEdit, FrequencyCappingReadonly, FrequencyCappingInApps, CappingCountingMode, CountingMode, type CountingModeProps, type LocalCapping, type CappingInAppBase, } from './FrequencyCapping';
51
51
  export { SendRateEdit, SendRateReadonly, type SendRateBase, type SendRateEditProps, type SendRateReadonlyProps, } from './SendRate';
52
52
  export { Alert } from './Alert';
53
53
  export { ApplicationPreloader, type ApplicationPreloaderProps, } from './ApplicationPreloader';
package/index.js CHANGED
@@ -6,7 +6,7 @@ export { CardMetric } from './CardMetric';
6
6
  export { Checkbox } from './Checkbox';
7
7
  export { CrashScreen } from './CrashScreen';
8
8
  export { Drawer, DrawerHeader, DrawerTitle, DrawerBody, DrawerDocs, useDocs } from './Drawer';
9
- export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct } from './Calendar';
9
+ export { CalendarSuperForm, CalendarDropdown, addPeriod, compareStructs, dateToStruct, dateToStructTz, getSortedTimezones, getTimezoneOffset, getPeriodEnd, getPeriodStart, structToDate, structToDateTz, stringifyValue, pickDateStruct } from './Calendar';
10
10
  export { DatePicker, DatePickerField, DateTimePicker, DateTimePickerField } from './DateTimePicker';
11
11
  export { DropdownMenu, DropdownMenuButton, DropdownMenuSection, DropdownMenuItem, DropdownMenuSubmenu } from './DropdownMenu';
12
12
  export { GetStartedPage } from './GetStartedPage';
@@ -46,7 +46,7 @@ export { RichmediaPreview, useRichmediaHtml } from './RichmediaPreview';
46
46
  export { SandboxedHtmlFrame } from './SandboxedHtmlFrame';
47
47
  export { NativeRichMediaPreview, parseNativeRichMediaConfig, parseLocalizationParams, NATIVE_RICH_MEDIA_DISPLAY_TYPES, EDITABLE_NATIVE_RICH_MEDIA_DISPLAY_TYPES } from './NativeRichMediaPreview';
48
48
  export { RichMessageEditor, RichMessageViewer } from './RichMessageEditor';
49
- export { FrequencyCappingEdit, FrequencyCappingReadonly, FrequencyCappingInApps, CappingCountingMode } from './FrequencyCapping';
49
+ export { FrequencyCappingEdit, FrequencyCappingReadonly, FrequencyCappingInApps, CappingCountingMode, CountingMode } from './FrequencyCapping';
50
50
  export { SendRateEdit, SendRateReadonly } from './SendRate';
51
51
  export { Alert } from './Alert';
52
52
  export { ApplicationPreloader } from './ApplicationPreloader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.187",
3
+ "version": "1.1.189",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",