@wasto/cms-components 1.5.16 → 1.5.19
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/index.d.mts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +1766 -1269
- package/dist/index.mjs +1497 -999
- package/package.json +2 -2
- package/src/components/announcement-modal/AnnouncementModal.tsx +46 -7
- package/src/components/collection-calendar/CollectionCalendar.tsx +32 -4
- package/src/components/collection-calendar/CollectionDayModal.tsx +286 -0
- package/src/components/header/Header.tsx +52 -12
- package/src/components/locations-map/LocationsMapShell.tsx +1 -1
- package/src/components/push/PushNotificationNavigator.tsx +133 -0
- package/src/components/push/PushTokenRegistrar.tsx +5 -3
- package/src/contexts/AnnouncementsContext.tsx +72 -8
- package/src/contexts/LocalContext.tsx +9 -5
- package/src/contexts/WastoContext.tsx +4 -2
- package/src/hooks/useCityAnnouncements.ts +4 -4
- package/src/hooks/useCollectionCalendar.ts +2 -0
package/dist/index.d.mts
CHANGED
|
@@ -95,9 +95,11 @@ type AppHeaderLogoElement = {
|
|
|
95
95
|
id: string;
|
|
96
96
|
type: "logo";
|
|
97
97
|
slot: AppHeaderSlot;
|
|
98
|
-
sourceType: "url" | "media";
|
|
98
|
+
sourceType: "url" | "media" | "bundled";
|
|
99
99
|
url?: string;
|
|
100
100
|
mediaId?: string;
|
|
101
|
+
/** `require(...)` d’un asset embarqué à l’export (ImageSource). */
|
|
102
|
+
module?: number;
|
|
101
103
|
};
|
|
102
104
|
type AppHeaderTitleElement = {
|
|
103
105
|
id: string;
|
|
@@ -141,12 +143,17 @@ type HeaderProps = {
|
|
|
141
143
|
*/
|
|
142
144
|
readonly headerConfig?: AppHeaderConfig | null;
|
|
143
145
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
+
* Padding safe-area top. Défaut `true` (header custom RN = edge-to-edge,
|
|
147
|
+
* il faut l’inset). Passer `false` seulement si le parent inset déjà.
|
|
146
148
|
*/
|
|
147
149
|
readonly safeTop?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Logo + titre de la collectivité. Défaut : masqué sur les écrans
|
|
152
|
+
* notifications et profil.
|
|
153
|
+
*/
|
|
154
|
+
readonly showCityIdentity?: boolean;
|
|
148
155
|
};
|
|
149
|
-
declare function Header({ options, route, navigation, overlay, headerConfig, safeTop, }: HeaderProps): ReactNode;
|
|
156
|
+
declare function Header({ options, route, navigation, overlay, headerConfig, safeTop, showCityIdentity, }: HeaderProps): ReactNode;
|
|
150
157
|
|
|
151
158
|
type LocationsMapProps = {
|
|
152
159
|
fullScreen?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -95,9 +95,11 @@ type AppHeaderLogoElement = {
|
|
|
95
95
|
id: string;
|
|
96
96
|
type: "logo";
|
|
97
97
|
slot: AppHeaderSlot;
|
|
98
|
-
sourceType: "url" | "media";
|
|
98
|
+
sourceType: "url" | "media" | "bundled";
|
|
99
99
|
url?: string;
|
|
100
100
|
mediaId?: string;
|
|
101
|
+
/** `require(...)` d’un asset embarqué à l’export (ImageSource). */
|
|
102
|
+
module?: number;
|
|
101
103
|
};
|
|
102
104
|
type AppHeaderTitleElement = {
|
|
103
105
|
id: string;
|
|
@@ -141,12 +143,17 @@ type HeaderProps = {
|
|
|
141
143
|
*/
|
|
142
144
|
readonly headerConfig?: AppHeaderConfig | null;
|
|
143
145
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
+
* Padding safe-area top. Défaut `true` (header custom RN = edge-to-edge,
|
|
147
|
+
* il faut l’inset). Passer `false` seulement si le parent inset déjà.
|
|
146
148
|
*/
|
|
147
149
|
readonly safeTop?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Logo + titre de la collectivité. Défaut : masqué sur les écrans
|
|
152
|
+
* notifications et profil.
|
|
153
|
+
*/
|
|
154
|
+
readonly showCityIdentity?: boolean;
|
|
148
155
|
};
|
|
149
|
-
declare function Header({ options, route, navigation, overlay, headerConfig, safeTop, }: HeaderProps): ReactNode;
|
|
156
|
+
declare function Header({ options, route, navigation, overlay, headerConfig, safeTop, showCityIdentity, }: HeaderProps): ReactNode;
|
|
150
157
|
|
|
151
158
|
type LocationsMapProps = {
|
|
152
159
|
fullScreen?: boolean;
|