@sneat/app 0.26.0 → 0.26.2
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/esm2022/lib/app-component.service.js +4 -4
- package/esm2022/lib/app-component.service.js.map +1 -1
- package/esm2022/lib/capacitator-http.service.js +3 -3
- package/esm2022/lib/get-standard-sneat-providers.js +2 -0
- package/esm2022/lib/get-standard-sneat-providers.js.map +1 -1
- package/package.json +10 -10
- package/tsconfig.lib.prod.tsbuildinfo +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injectable, inject, InjectionToken } from '@angular/core';
|
|
2
|
-
import { Platform } from '@ionic/angular
|
|
2
|
+
import { Platform } from '@ionic/angular';
|
|
3
3
|
// import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
|
4
4
|
// import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
5
5
|
import { ErrorLogger } from '@sneat/core';
|
|
@@ -33,10 +33,10 @@ export class AppComponentService {
|
|
|
33
33
|
})
|
|
34
34
|
.catch(this.errorLogger.logErrorHandler('Failed to initialize Platform@ionic/angular'));
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AppComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
37
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AppComponentService }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AppComponentService, decorators: [{
|
|
40
40
|
type: Injectable
|
|
41
41
|
}], ctorParameters: () => [] });
|
|
42
42
|
//# sourceMappingURL=app-component.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-component.service.js","sourceRoot":"","sources":["../../../../../libs/app/src/lib/app-component.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"app-component.service.js","sourceRoot":"","sources":["../../../../../libs/app/src/lib/app-component.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,kEAAkE;AAClE,4DAA4D;AAC5D,OAAO,EAAE,WAAW,EAAgB,MAAM,aAAa,CAAC;;AAExD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,cAAc,CAAU,cAAc,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,cAAc,CAAU,WAAW,CAAC,CAAC;AAGlE,+CAA+C;AAC/C,MAAM,OAAO,mBAAmB;IAM9B;QACE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAe,WAAW,CAAC,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7D,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACzD,CAAC;IAEM,aAAa;QAClB,IAAI,CAAC,QAAQ;aACV,KAAK,EAAE;aACP,IAAI,CAAC,GAAG,EAAE;YACT,IAAI,CAAC;gBACH,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;oBAClB,IAAI,CAAC,SAA0C,CAAC,YAAY,EAAE,CAAC;gBAClE,CAAC;gBACD,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;oBACrB,IAAI,CAAC,YAAqC,CAAC,IAAI,EAAE,CAAC;gBACrD,CAAC;gBACD,oDAAoD;YACtD,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,IAAI,CAAC,WAAW,CAAC,QAAQ,CACvB,CAAC,EACD,yCAAyC,CAC1C,CAAC;YACJ,CAAC;QACH,CAAC,CAAC;aACD,KAAK,CACJ,IAAI,CAAC,WAAW,CAAC,eAAe,CAC9B,6CAA6C,CAC9C,CACF,CAAC;IACN,CAAC;8GArCU,mBAAmB;kHAAnB,mBAAmB;;2FAAnB,mBAAmB;kBAF/B,UAAU","sourcesContent":["import { Injectable, inject, InjectionToken } from '@angular/core';\nimport { Platform } from '@ionic/angular';\n// import { SplashScreen } from '@ionic-native/splash-screen/ngx';\n// import { StatusBar } from '@ionic-native/status-bar/ngx';\nimport { ErrorLogger, IErrorLogger } from '@sneat/core';\n\nexport const SplashScreen = new InjectionToken<unknown>('SplashScreen');\nexport const StatusBar = new InjectionToken<unknown>('StatusBar');\n\n@Injectable()\n// TODO: check if it's used and probably remove\nexport class AppComponentService {\n private readonly platform: Platform;\n private readonly errorLogger: IErrorLogger;\n private readonly splashScreen?: unknown;\n private readonly statusBar?: unknown;\n\n constructor() {\n this.platform = inject(Platform);\n this.errorLogger = inject<IErrorLogger>(ErrorLogger);\n this.splashScreen = inject(SplashScreen, { optional: true });\n this.statusBar = inject(StatusBar, { optional: true });\n }\n\n public initializeApp() {\n this.platform\n .ready()\n .then(() => {\n try {\n if (this.statusBar) {\n (this.statusBar as { styleDefault: () => void }).styleDefault();\n }\n if (this.splashScreen) {\n (this.splashScreen as { hide: () => void }).hide();\n }\n // this.analyticsService.logEvent('platform_ready');\n } catch (e) {\n this.errorLogger.logError(\n e,\n 'failed to handle \"platform_ready\" event',\n );\n }\n })\n .catch(\n this.errorLogger.logErrorHandler(\n 'Failed to initialize Platform@ionic/angular',\n ),\n );\n }\n}\n"]}
|
|
@@ -38,10 +38,10 @@ export class CapacitorHttpInterceptor {
|
|
|
38
38
|
url: req.url,
|
|
39
39
|
}))));
|
|
40
40
|
}
|
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CapacitorHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
42
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CapacitorHttpInterceptor }); }
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: CapacitorHttpInterceptor, decorators: [{
|
|
45
45
|
type: Injectable
|
|
46
46
|
}] });
|
|
47
47
|
//# sourceMappingURL=capacitator-http.service.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { provideZonelessChangeDetection, } from '@angular/core';
|
|
1
2
|
import { provideSneatAuthenticatedProviders } from '@sneat/app-auth';
|
|
2
3
|
import { provideSneatIonicShell } from '@sneat/app-ionic';
|
|
3
4
|
import { provideSneatPublicBootstrap } from '@sneat/app-public';
|
|
@@ -8,6 +9,7 @@ import { AppComponentService } from './app-component.service';
|
|
|
8
9
|
* @sneat/app-public and add @sneat/app-auth only to their lazy private routes. */
|
|
9
10
|
export function getStandardSneatProviders(environmentConfig) {
|
|
10
11
|
return [
|
|
12
|
+
provideZonelessChangeDetection(),
|
|
11
13
|
provideSneatPublicBootstrap({
|
|
12
14
|
apiBaseUrl: environmentConfig.useNgrok
|
|
13
15
|
? `//${location.host}/v0/`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-standard-sneat-providers.js","sourceRoot":"","sources":["../../../../../libs/app/src/lib/get-standard-sneat-providers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-standard-sneat-providers.js","sourceRoot":"","sources":["../../../../../libs/app/src/lib/get-standard-sneat-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAsB,cAAc,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;kFACkF;AAClF,MAAM,UAAU,yBAAyB,CACvC,iBAAqC;IAErC,OAAO;QACL,8BAA8B,EAAE;QAChC,2BAA2B,CAAC;YAC1B,UAAU,EAAE,iBAAiB,CAAC,QAAQ;gBACpC,CAAC,CAAC,KAAK,QAAQ,CAAC,IAAI,MAAM;gBAC1B,CAAC,CAAC,iBAAiB,CAAC,cAAc,CAAC,QAAQ;oBACzC,CAAC,CAAC,gCAAgC;oBAClC,CAAC,CAAC,SAAS;SAChB,CAAC;QACF,kCAAkC,CAAC,iBAAiB,CAAC;QACrD,sBAAsB,EAAE;QACxB,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,EAAE;QACxD,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE;QACpD,mBAAmB;QACnB,cAAc;KACf,CAAC;AACJ,CAAC","sourcesContent":["import {\n EnvironmentProviders,\n Provider,\n provideZonelessChangeDetection,\n} from '@angular/core';\nimport { provideSneatAuthenticatedProviders } from '@sneat/app-auth';\nimport { provideSneatIonicShell } from '@sneat/app-ionic';\nimport { provideSneatPublicBootstrap } from '@sneat/app-public';\nimport { EnvConfigToken, IEnvironmentConfig, TopMenuService } from '@sneat/core';\nimport { RANDOM_ID_OPTIONS } from '@sneat/random';\nimport { AppComponentService } from './app-component.service';\n\n/** Legacy all-in-one bootstrap. New PrimeNG public/cockpit apps should import\n * @sneat/app-public and add @sneat/app-auth only to their lazy private routes. */\nexport function getStandardSneatProviders(\n environmentConfig: IEnvironmentConfig,\n): readonly (Provider | EnvironmentProviders)[] {\n return [\n provideZonelessChangeDetection(),\n provideSneatPublicBootstrap({\n apiBaseUrl: environmentConfig.useNgrok\n ? `//${location.host}/v0/`\n : environmentConfig.firebaseConfig.emulator\n ? 'https://local-api.sneat.ws/v0/'\n : undefined,\n }),\n provideSneatAuthenticatedProviders(environmentConfig),\n provideSneatIonicShell(),\n { provide: EnvConfigToken, useValue: environmentConfig },\n { provide: RANDOM_ID_OPTIONS, useValue: { len: 9 } },\n AppComponentService,\n TopMenuService,\n ];\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sneat/app",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": ">=
|
|
9
|
-
"@angular/core": ">=
|
|
8
|
+
"@angular/common": ">=22.0.0 <23.0.0",
|
|
9
|
+
"@angular/core": ">=22.0.0 <23.0.0",
|
|
10
10
|
"@angular/fire": ">=20",
|
|
11
|
-
"@angular/platform-browser": ">=
|
|
12
|
-
"@angular/router": ">=
|
|
13
|
-
"@capacitor/core": ">=
|
|
11
|
+
"@angular/platform-browser": ">=22.0.0 <23.0.0",
|
|
12
|
+
"@angular/router": ">=22.0.0 <23.0.0",
|
|
13
|
+
"@capacitor/core": ">=9.0.0 <10.0.0",
|
|
14
14
|
"@ionic-native/splash-screen": "^5.36.0",
|
|
15
15
|
"@ionic-native/status-bar": "^5.36.0",
|
|
16
|
-
"@ionic/angular": ">=
|
|
16
|
+
"@ionic/angular": ">=9.0.0 <10.0.0",
|
|
17
17
|
"@sneat/app-auth": "^0.26.0",
|
|
18
18
|
"@sneat/app-ionic": "^0.26.0",
|
|
19
19
|
"@sneat/app-public": "^0.26.0",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"@sneat/random": "*",
|
|
25
25
|
"@sneat/space-services": "^0.26.0",
|
|
26
26
|
"firebase": "*",
|
|
27
|
-
"rxjs": ">=7.8.0"
|
|
28
|
-
"zone.js": ">=0.16.0"
|
|
27
|
+
"rxjs": ">=7.8.0"
|
|
29
28
|
},
|
|
30
29
|
"dependencies": {
|
|
31
30
|
"tslib": "2.8.1"
|
|
@@ -41,5 +40,6 @@
|
|
|
41
40
|
"default": "./esm2022/sneat-app.js"
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
|
-
"sideEffects": false
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"type": "module"
|
|
45
45
|
}
|