@road-labs/map-sdk 0.0.28-rc.3 → 0.0.28-rc.6
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/dist/i18n.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1653 -1534
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/utils/openingTimes.d.ts +5 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export type OpeningTimes = {
|
|
|
16
16
|
};
|
|
17
17
|
type Translate = (key: keyof LabelsType, args?: Record<string, string>) => string;
|
|
18
18
|
export declare function getWeekdayLabel(t: Translate, weekday: number): string;
|
|
19
|
+
export declare function getWeekdayFullLabel(language: string, weekday: number): string;
|
|
20
|
+
export declare function getTodayWeekday(now?: Date): number;
|
|
19
21
|
export declare function groupRegularHoursByWeekday(regularHours: RegularHours[] | undefined): Record<number, RegularHours[]>;
|
|
20
22
|
export declare function formatPeriod(begin: string, end: string): string;
|
|
21
23
|
export type OpenStatus = {
|
|
@@ -23,9 +25,11 @@ export type OpenStatus = {
|
|
|
23
25
|
nextChange?: {
|
|
24
26
|
time: string;
|
|
25
27
|
label: "opens" | "closes";
|
|
28
|
+
day?: number;
|
|
26
29
|
};
|
|
27
30
|
};
|
|
28
31
|
export declare function isOpenNow(openingTimes: OpeningTimes | undefined, now?: Date): OpenStatus;
|
|
29
32
|
export declare function getFutureExceptionalPeriods(periods: ExceptionalPeriod[] | undefined, now?: Date): ExceptionalPeriod[];
|
|
30
|
-
export declare function
|
|
33
|
+
export declare function formatExceptionalDate(language: string, dateStr: string): string;
|
|
34
|
+
export declare function formatExceptionalTime(p: ExceptionalPeriod): string;
|
|
31
35
|
export {};
|