@commercelayer/app-elements 4.4.0 → 4.5.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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { u as Ee, j as se, I as $e } from "./main-lGSvXvo4.js";
2
+ import { u as Ee, j as se, I as $e } from "./main-FRCq_zSn.js";
3
3
  import V, { memo as ce, useState as U, useRef as w, useCallback as ue, useEffect as I, forwardRef as Ce } from "react";
4
4
  function Ie(e, t, r) {
5
5
  return t in e ? Object.defineProperty(e, t, {
@@ -2,7 +2,7 @@
2
2
  var un = Object.defineProperty;
3
3
  var dn = (a, n, t) => n in a ? un(a, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[n] = t;
4
4
  var y = (a, n, t) => dn(a, typeof n != "symbol" ? n + "" : n, t);
5
- import { o as pn, f as fn, c as hn, a as er, g as mn, i as $e, b as vn, j as Ee, I as gn, d as Dn, e as wn, w as yn, R as bn } from "./main-lGSvXvo4.js";
5
+ import { o as pn, f as fn, c as hn, a as er, g as mn, i as $e, b as vn, j as Ee, I as gn, d as Dn, e as wn, w as yn, R as bn } from "./main-FRCq_zSn.js";
6
6
  import * as x from "react";
7
7
  import h, { useLayoutEffect as Or, useEffect as Vt, createElement as _n, cloneElement as Yr, Component as Z, createRef as Se, useRef as At, useCallback as kn, forwardRef as Mn } from "react";
8
8
  import * as Cn from "react-dom";
@@ -101,14 +101,15 @@ export declare function getEventDateInfo({ startsAt, expiresAt, timezone }: {
101
101
  * @returns a nice string representation. Example: '1-21 Jul, 2022' or 'Jul 21, 2022 - Jan 12, 2023'
102
102
  */
103
103
  export declare function formatDateRange({ rangeFrom, rangeTo, timezone, locale }: {
104
- /** JavaScript ISO date string. Example '2022-10-06T11:59:30.371Z' */
105
- rangeFrom: DateISOString;
106
- /** JavaScript ISO date string. Example '2022-11-06T11:59:30.371Z' */
107
- rangeTo: DateISOString;
104
+ /** JavaScript Date or ISO string. Example '2022-10-06T11:59:30.371Z' */
105
+ rangeFrom: DateISOString | Date;
106
+ /** JavaScript Date or ISO string. Example '2022-11-06T11:59:30.371Z' */
107
+ rangeTo: DateISOString | Date;
108
108
  /** Set a specific timezone, when not passed default value is 'UTC' */
109
109
  timezone?: string;
110
110
  /** Locale to use for formatting the date. */
111
111
  locale?: I18NLocale;
112
+ zonedAlready?: boolean;
112
113
  }): string;
113
114
  export interface Event {
114
115
  date: string;