@lystech/core 3.1.0 → 3.3.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 CHANGED
@@ -228,6 +228,15 @@ export declare const axiosInstance: AxiosInstance;
228
228
  /** Les campagnes à annoncer en bannière, pour cette collection (ou toute la boutique). */
229
229
  export declare function bannersFor(data: ActivePromotions | null | undefined, collectionUID?: string | null): ActivePromotion[];
230
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
+
231
240
  export declare function BecomeMember({ title, intro, successUrl, cancelUrl, renderAction, onChoosePlan, onLoginRequired, }: BecomeMemberProps): JSX.Element | null;
232
241
 
233
242
  export declare type BecomeMemberProps = {
@@ -766,7 +775,7 @@ export declare const LYSTECH_CORE_VERSION: any;
766
775
 
767
776
  export declare function lystechAuthRoutes(): JSX.Element[];
768
777
 
769
- 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;
770
779
  export default LystechCoreProvider;
771
780
 
772
781
  export declare function LystechNotFoundPage({ homePath, homeLabel, }?: {
@@ -1309,6 +1318,12 @@ declare type Props = {
1309
1318
  * Ailleurs, `openSupport()` ouvre quand meme le formulaire.
1310
1319
  */
1311
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;
1312
1327
  onPackageUpdated?: (event: PackageUpdateEvent) => void;
1313
1328
  triggerOnFirstInstallPackageCallback?: boolean;
1314
1329
  packageVersionStorageKey?: string;