@sneat/app 0.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/environments/environment.base.d.ts +4 -0
- package/environments/environment.local.d.ts +2 -0
- package/environments/environment.prod.d.ts +3 -0
- package/environments/index.d.ts +1 -0
- package/esm2022/environments/environment.base.js +42 -0
- package/esm2022/environments/environment.base.js.map +1 -0
- package/esm2022/environments/environment.local.js +13 -0
- package/esm2022/environments/environment.local.js.map +1 -0
- package/esm2022/environments/environment.prod.js +16 -0
- package/esm2022/environments/environment.prod.js.map +1 -0
- package/esm2022/environments/index.js +2 -0
- package/esm2022/environments/index.js.map +1 -0
- package/esm2022/index.js +14 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/app-component.service.js +42 -0
- package/esm2022/lib/app-component.service.js.map +1 -0
- package/esm2022/lib/app-specific-providers.js +15 -0
- package/esm2022/lib/app-specific-providers.js.map +1 -0
- package/esm2022/lib/base-app.component.js +42 -0
- package/esm2022/lib/base-app.component.js.map +1 -0
- package/esm2022/lib/capacitator-http.service.js +47 -0
- package/esm2022/lib/capacitator-http.service.js.map +1 -0
- package/esm2022/lib/contact-extensions.js +3 -0
- package/esm2022/lib/contact-extensions.js.map +1 -0
- package/esm2022/lib/get-standard-sneat-imports.js +15 -0
- package/esm2022/lib/get-standard-sneat-imports.js.map +1 -0
- package/esm2022/lib/get-standard-sneat-providers.js +56 -0
- package/esm2022/lib/get-standard-sneat-providers.js.map +1 -0
- package/esm2022/lib/init-firebase.js +67 -0
- package/esm2022/lib/init-firebase.js.map +1 -0
- package/esm2022/lib/init-helpers.js +34 -0
- package/esm2022/lib/init-helpers.js.map +1 -0
- package/esm2022/lib/register-posthog.js +11 -0
- package/esm2022/lib/register-posthog.js.map +1 -0
- package/esm2022/lib/sneat-base-app.js +6 -0
- package/esm2022/lib/sneat-base-app.js.map +1 -0
- package/esm2022/sneat-app.js +5 -0
- package/esm2022/sneat-app.js.map +1 -0
- package/index.d.ts +13 -0
- package/lib/app-component.service.d.ts +14 -0
- package/lib/app-specific-providers.d.ts +5 -0
- package/lib/base-app.component.d.ts +10 -0
- package/lib/capacitator-http.service.d.ts +9 -0
- package/lib/contact-extensions.d.ts +16 -0
- package/lib/get-standard-sneat-imports.d.ts +2 -0
- package/lib/get-standard-sneat-providers.d.ts +3 -0
- package/lib/init-firebase.d.ts +4 -0
- package/lib/init-helpers.d.ts +3 -0
- package/lib/register-posthog.d.ts +2 -0
- package/lib/sneat-base-app.d.ts +5 -0
- package/package.json +26 -0
- package/sneat-app.d.ts +5 -0
- package/tsconfig.lib.prod.tsbuildinfo +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const SplashScreen: InjectionToken<unknown>;
|
|
4
|
+
export declare const StatusBar: InjectionToken<unknown>;
|
|
5
|
+
export declare class AppComponentService {
|
|
6
|
+
private readonly platform;
|
|
7
|
+
private readonly errorLogger;
|
|
8
|
+
private readonly splashScreen?;
|
|
9
|
+
private readonly statusBar?;
|
|
10
|
+
constructor();
|
|
11
|
+
initializeApp(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppComponentService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppComponentService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { ContactRolesByType } from './contact-extensions';
|
|
3
|
+
import { IAppInfo } from '@sneat/core';
|
|
4
|
+
export declare function provideAppInfo(appInfo: IAppInfo): Provider;
|
|
5
|
+
export declare function provideRolesByType(contactRolesByType: ContactRolesByType | undefined): Provider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TopMenuService } from '@sneat/core';
|
|
2
|
+
export declare class BaseAppComponent {
|
|
3
|
+
private readonly telegramAuthService;
|
|
4
|
+
private readonly router;
|
|
5
|
+
private readonly activatedRoute;
|
|
6
|
+
private readonly analyticsService;
|
|
7
|
+
private readonly titleService;
|
|
8
|
+
protected readonly topMenuService: TopMenuService;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CapacitorHttpInterceptor implements HttpInterceptor {
|
|
5
|
+
intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
6
|
+
private handleByCapacitorHttp;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CapacitorHttpInterceptor, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CapacitorHttpInterceptor>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ContactRole, ContactType } from '@sneat/contactus-core';
|
|
3
|
+
export interface IContactRole {
|
|
4
|
+
id: ContactRole;
|
|
5
|
+
title: string;
|
|
6
|
+
iconName?: string;
|
|
7
|
+
canBeImpersonatedByRoles?: ContactRole[];
|
|
8
|
+
childForRoles?: ContactRole[];
|
|
9
|
+
}
|
|
10
|
+
export interface IContactType {
|
|
11
|
+
id: ContactType;
|
|
12
|
+
title: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
}
|
|
15
|
+
export type ContactRolesByType = Partial<Record<ContactType, IContactRole[]>>;
|
|
16
|
+
export declare const CONTACT_ROLES_BY_TYPE: InjectionToken<Partial<Record<ContactType, IContactRole[]>>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { IFirebaseConfig } from '@sneat/core';
|
|
3
|
+
export declare function provideFireApp(firebaseConfig: IFirebaseConfig): EnvironmentProviders;
|
|
4
|
+
export declare function getAngularFireProviders(firebaseConfig: IFirebaseConfig): EnvironmentProviders[];
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sneat/app",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@angular/common": ">=21.0.0",
|
|
9
|
+
"@angular/core": ">=21.0.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "2.8.1"
|
|
13
|
+
},
|
|
14
|
+
"module": "esm2022/sneat-app.js",
|
|
15
|
+
"typings": "sneat-app.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": {
|
|
18
|
+
"default": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./sneat-app.d.ts",
|
|
22
|
+
"default": "./esm2022/sneat-app.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false
|
|
26
|
+
}
|