@infrab4a/connect-angular 4.17.0-beta.10 → 4.17.0-beta.12
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/esm2020/angular-connect.module.mjs +9 -3
- package/esm2020/angular-firebase-auth.module.mjs +26 -4
- package/fesm2015/infrab4a-connect-angular.mjs +33 -5
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +33 -5
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
|
|
|
9
9
|
import * as i1$2 from '@infrab4a/connect';
|
|
10
10
|
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewsHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, isEmpty, Category, PersonTypes, WishlistLogType, Wishlist, CheckoutSubscription, Product, RequiredArgumentError, add, Order, UpdateUserImage, FirebaseFileUploaderService } from '@infrab4a/connect';
|
|
11
11
|
import * as i1 from '@angular/fire/auth';
|
|
12
|
-
import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
12
|
+
import { Auth, provideAuth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
13
13
|
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
|
|
14
14
|
import * as i1$1 from '@angular/fire/firestore';
|
|
15
15
|
import { Firestore, provideFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
@@ -124,11 +124,33 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
124
124
|
},
|
|
125
125
|
deps: ['AuthenticationService'],
|
|
126
126
|
},
|
|
127
|
-
], imports: [provideAuth((injector) =>
|
|
127
|
+
], imports: [provideAuth((injector) => {
|
|
128
|
+
const app = injector.get(FirebaseApp);
|
|
129
|
+
try {
|
|
130
|
+
return initializeAuth(app, {
|
|
131
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence],
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
return getAuth(app);
|
|
136
|
+
}
|
|
137
|
+
})] });
|
|
128
138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
129
139
|
type: NgModule,
|
|
130
140
|
args: [{
|
|
131
|
-
imports: [
|
|
141
|
+
imports: [
|
|
142
|
+
provideAuth((injector) => {
|
|
143
|
+
const app = injector.get(FirebaseApp);
|
|
144
|
+
try {
|
|
145
|
+
return initializeAuth(app, {
|
|
146
|
+
persistence: [indexedDBLocalPersistence, browserLocalPersistence],
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
return getAuth(app);
|
|
151
|
+
}
|
|
152
|
+
}),
|
|
153
|
+
],
|
|
132
154
|
providers: [
|
|
133
155
|
{
|
|
134
156
|
provide: 'Authentication',
|
|
@@ -2676,7 +2698,9 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2676
2698
|
], imports: [provideFirebaseApp((injector) => {
|
|
2677
2699
|
const appName = injector.get(FIREBASE_APP_NAME);
|
|
2678
2700
|
try {
|
|
2679
|
-
|
|
2701
|
+
const app = appName ? getApp(appName) : getApp();
|
|
2702
|
+
console.log('Connect initializeApp', app.name);
|
|
2703
|
+
return app;
|
|
2680
2704
|
}
|
|
2681
2705
|
catch (error) {
|
|
2682
2706
|
console.warn('Firebase app not found, initializing new app');
|
|
@@ -2689,6 +2713,7 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2689
2713
|
provideAppCheck((injector) => {
|
|
2690
2714
|
const app = injector.get(FirebaseApp);
|
|
2691
2715
|
console.log('Connect APP', app.name);
|
|
2716
|
+
console.log('Connect APP', JSON.stringify(app.options));
|
|
2692
2717
|
try {
|
|
2693
2718
|
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
2694
2719
|
console.log('APP_CHECK_PROVIDER', provider);
|
|
@@ -2716,7 +2741,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2716
2741
|
provideFirebaseApp((injector) => {
|
|
2717
2742
|
const appName = injector.get(FIREBASE_APP_NAME);
|
|
2718
2743
|
try {
|
|
2719
|
-
|
|
2744
|
+
const app = appName ? getApp(appName) : getApp();
|
|
2745
|
+
console.log('Connect initializeApp', app.name);
|
|
2746
|
+
return app;
|
|
2720
2747
|
}
|
|
2721
2748
|
catch (error) {
|
|
2722
2749
|
console.warn('Firebase app not found, initializing new app');
|
|
@@ -2729,6 +2756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2729
2756
|
provideAppCheck((injector) => {
|
|
2730
2757
|
const app = injector.get(FirebaseApp);
|
|
2731
2758
|
console.log('Connect APP', app.name);
|
|
2759
|
+
console.log('Connect APP', JSON.stringify(app.options));
|
|
2732
2760
|
try {
|
|
2733
2761
|
const provider = injector.get(APP_CHECK_PROVIDER);
|
|
2734
2762
|
console.log('APP_CHECK_PROVIDER', provider);
|