@lystech/core 3.0.113 → 3.0.115
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 +22 -2
- package/dist/lystech-core-provider.es.js +8881 -8633
- package/dist/lystech-core-provider.umd.js +283 -176
- package/dist/lystech-core-styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ export declare function LoadingCircle(): JSX.Element;
|
|
|
509
509
|
|
|
510
510
|
export declare const LYSTECH_CORE_VERSION: any;
|
|
511
511
|
|
|
512
|
-
declare function LystechCoreProvider({ children, organization, shouldRedirectAfterLogin, loginRedirectRoute, queryClient, usePushNotifications, useProgressiveWebAppFeatures, useThemeProvider, quickGoogleLoginButtonStyle, enableGoogleQuickLoginButton, showGoogleQuickLoginButton, useGoogleAutoSelect, debugMode, showAskPermissionsButtons, hideSupportButton, onPackageUpdated, triggerOnFirstInstallPackageCallback, packageVersionStorageKey, }: Props): JSX.Element;
|
|
512
|
+
declare function LystechCoreProvider({ children, organization, shouldRedirectAfterLogin, loginRedirectRoute, queryClient, usePushNotifications, useProgressiveWebAppFeatures, useThemeProvider, quickGoogleLoginButtonStyle, enableGoogleQuickLoginButton, showGoogleQuickLoginButton, useGoogleAutoSelect, debugMode, showAskPermissionsButtons, hideSupportButton, supportButtonVariant, onPackageUpdated, triggerOnFirstInstallPackageCallback, packageVersionStorageKey, }: Props): JSX.Element;
|
|
513
513
|
export default LystechCoreProvider;
|
|
514
514
|
|
|
515
515
|
declare type MessageParams = {
|
|
@@ -808,6 +808,12 @@ declare type Props = {
|
|
|
808
808
|
pushNotifications?: boolean;
|
|
809
809
|
};
|
|
810
810
|
hideSupportButton?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Forme du bouton de support quand il est ferme : `tab` (defaut, un
|
|
813
|
+
* onglet colle au bord droit) ou `bubble` (la bulle ronde en bas a
|
|
814
|
+
* droite). Meme paquet, meme rendu partout — sauf choix explicite.
|
|
815
|
+
*/
|
|
816
|
+
supportButtonVariant?: SupportButtonVariant;
|
|
811
817
|
onPackageUpdated?: (event: PackageUpdateEvent) => void;
|
|
812
818
|
triggerOnFirstInstallPackageCallback?: boolean;
|
|
813
819
|
packageVersionStorageKey?: string;
|
|
@@ -1188,7 +1194,21 @@ export declare type SubscriptionSubscriber = {
|
|
|
1188
1194
|
isGifted: boolean;
|
|
1189
1195
|
};
|
|
1190
1196
|
|
|
1191
|
-
export declare function SupportButton(
|
|
1197
|
+
export declare function SupportButton({ variant, }?: {
|
|
1198
|
+
variant?: SupportButtonVariant;
|
|
1199
|
+
}): JSX.Element | null;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Comment le declencheur se presente quand le panneau est ferme.
|
|
1203
|
+
*
|
|
1204
|
+
* `tab` — un onglet colle au bord droit, a mi-hauteur. C'est le defaut :
|
|
1205
|
+
* le coin en bas a droite n'est jamais libre (barre d'etapes, bouton
|
|
1206
|
+
* d'achat, actions de page), alors qu'une bande de 36 px dans la marge
|
|
1207
|
+
* droite ne recouvre rien.
|
|
1208
|
+
* `bubble` — la bulle ronde d'origine, pour une application dont la marge
|
|
1209
|
+
* droite sert a autre chose.
|
|
1210
|
+
*/
|
|
1211
|
+
declare type SupportButtonVariant = "tab" | "bubble";
|
|
1192
1212
|
|
|
1193
1213
|
declare interface ThemeContextType {
|
|
1194
1214
|
theme: "light" | "dark" | null;
|