@lystech/core 3.0.151 → 3.2.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/dist/index.d.ts +16 -8
- package/dist/lystech-core-provider.es.js +14247 -13839
- package/dist/lystech-core-provider.umd.js +275 -185
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,8 +62,6 @@ declare type AuthContextType = {
|
|
|
62
62
|
auth: any;
|
|
63
63
|
isLoggedIn: boolean;
|
|
64
64
|
isCheckingSession: boolean;
|
|
65
|
-
/** @deprecated Égal à isOwner depuis la phase 0 ; sera retiré. Lire isOwner / aLePouvoir. */
|
|
66
|
-
isSuperAdmin: boolean;
|
|
67
65
|
/** Propriétaire de l'organisation où l'on se trouve. */
|
|
68
66
|
isOwner: boolean;
|
|
69
67
|
/** Pouvoirs de plateforme de la personne (équipe Lystech) ; vide pour tous les autres. */
|
|
@@ -74,7 +72,6 @@ declare type AuthContextType = {
|
|
|
74
72
|
estEquipeLystech: boolean;
|
|
75
73
|
isAdmin: boolean;
|
|
76
74
|
isUser: boolean;
|
|
77
|
-
isSuperAdminInAnyOrganization: boolean;
|
|
78
75
|
isAdminInAnyOrganization: boolean;
|
|
79
76
|
areRoleDetailsLoading: boolean;
|
|
80
77
|
homeRoute: string;
|
|
@@ -231,6 +228,15 @@ export declare const axiosInstance: AxiosInstance;
|
|
|
231
228
|
/** Les campagnes à annoncer en bannière, pour cette collection (ou toute la boutique). */
|
|
232
229
|
export declare function bannersFor(data: ActivePromotions | null | undefined, collectionUID?: string | null): ActivePromotion[];
|
|
233
230
|
|
|
231
|
+
export declare function BarreGestion({ onModifierLeSite, consoleUrl }: BarreGestionOptions): JSX.Element | null;
|
|
232
|
+
|
|
233
|
+
export declare type BarreGestionOptions = {
|
|
234
|
+
/** Affiche « Modifier le site » (ex. ouvrir l'éditeur de contenu). Absent = bouton caché. */
|
|
235
|
+
onModifierLeSite?: () => void;
|
|
236
|
+
/** Adresse de la console (défaut : https://lystech.ca). */
|
|
237
|
+
consoleUrl?: string;
|
|
238
|
+
};
|
|
239
|
+
|
|
234
240
|
export declare function BecomeMember({ title, intro, successUrl, cancelUrl, renderAction, onChoosePlan, onLoginRequired, }: BecomeMemberProps): JSX.Element | null;
|
|
235
241
|
|
|
236
242
|
export declare type BecomeMemberProps = {
|
|
@@ -769,7 +775,7 @@ export declare const LYSTECH_CORE_VERSION: any;
|
|
|
769
775
|
|
|
770
776
|
export declare function lystechAuthRoutes(): JSX.Element[];
|
|
771
777
|
|
|
772
|
-
declare function LystechCoreProvider({ children, organization, shouldRedirectAfterLogin, loginRedirectRoute, queryClient, usePushNotifications, useProgressiveWebAppFeatures, useThemeProvider, quickGoogleLoginButtonStyle, enableGoogleQuickLoginButton, showGoogleQuickLoginButton, useGoogleAutoSelect, debugMode, showAskPermissionsButtons, hideSupportButton, supportButtonVariant, supportButtonPaths, onPackageUpdated, triggerOnFirstInstallPackageCallback, packageVersionStorageKey, }: Props): JSX.Element;
|
|
778
|
+
declare function LystechCoreProvider({ children, organization, shouldRedirectAfterLogin, loginRedirectRoute, queryClient, usePushNotifications, useProgressiveWebAppFeatures, useThemeProvider, quickGoogleLoginButtonStyle, enableGoogleQuickLoginButton, showGoogleQuickLoginButton, useGoogleAutoSelect, debugMode, showAskPermissionsButtons, hideSupportButton, supportButtonVariant, supportButtonPaths, barreGestion, onPackageUpdated, triggerOnFirstInstallPackageCallback, packageVersionStorageKey, }: Props): JSX.Element;
|
|
773
779
|
export default LystechCoreProvider;
|
|
774
780
|
|
|
775
781
|
export declare function LystechNotFoundPage({ homePath, homeLabel, }?: {
|
|
@@ -1312,6 +1318,12 @@ declare type Props = {
|
|
|
1312
1318
|
* Ailleurs, `openSupport()` ouvre quand meme le formulaire.
|
|
1313
1319
|
*/
|
|
1314
1320
|
supportButtonPaths?: string[];
|
|
1321
|
+
/**
|
|
1322
|
+
* La barre « Gérer » (propriétaire / administrateurs de la boutique) : les
|
|
1323
|
+
* commandes en cours, l'étape en un geste, payé, Modifier le site, console.
|
|
1324
|
+
* Absent = rien (les apps qui ne sont pas des boutiques ne changent pas).
|
|
1325
|
+
*/
|
|
1326
|
+
barreGestion?: boolean | BarreGestionOptions;
|
|
1315
1327
|
onPackageUpdated?: (event: PackageUpdateEvent) => void;
|
|
1316
1328
|
triggerOnFirstInstallPackageCallback?: boolean;
|
|
1317
1329
|
packageVersionStorageKey?: string;
|
|
@@ -2061,12 +2073,8 @@ export declare const useQueryClient: () => QueryClient;
|
|
|
2061
2073
|
export declare type UserRoleDetails = {
|
|
2062
2074
|
role: string;
|
|
2063
2075
|
isOwner: boolean;
|
|
2064
|
-
/** @deprecated Égal à isOwner depuis la phase 0 ; sera retiré. Lire isOwner / pouvoirs. */
|
|
2065
|
-
isSuperAdmin: boolean;
|
|
2066
2076
|
isAdmin: boolean;
|
|
2067
2077
|
isUser: boolean;
|
|
2068
|
-
/** @deprecated Égal à isOwner depuis la phase 0 ; sera retiré. */
|
|
2069
|
-
isSuperAdminOrMore: boolean;
|
|
2070
2078
|
isAdminOrMore: boolean;
|
|
2071
2079
|
isUserOrMore: boolean;
|
|
2072
2080
|
isAdminInAnyOrganization: boolean;
|