@jariahh/angular 0.1.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.
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { HulyEmbedConfig } from '@jariahh/core';
3
+ export declare const HULY_EMBED_CONFIG: InjectionToken<HulyEmbedConfig>;
@@ -0,0 +1,3 @@
1
+ import { type EnvironmentProviders } from '@angular/core';
2
+ import type { HulyEmbedConfig } from '@jariahh/core';
3
+ export declare function provideHulyEmbed(config: HulyEmbedConfig): EnvironmentProviders;
@@ -0,0 +1,16 @@
1
+ import { type HulyEmbedConfig, type HulyEmbedComponent, type EmbedTokenResponse } from '@jariahh/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HulyEmbedService {
4
+ readonly config: HulyEmbedConfig;
5
+ readonly allowedOrigins: string[];
6
+ constructor(config: HulyEmbedConfig);
7
+ fetchToken(component: HulyEmbedComponent): Promise<EmbedTokenResponse>;
8
+ buildUrl(component: HulyEmbedComponent, token: string, options?: {
9
+ project?: string;
10
+ issue?: string;
11
+ externalUser?: string;
12
+ }): string;
13
+ createRefresher(component: HulyEmbedComponent, initialExpiresIn: number, onToken: (response: EmbedTokenResponse) => void, onError: (error: Error) => void): () => void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<HulyEmbedService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<HulyEmbedService>;
16
+ }
@@ -0,0 +1,16 @@
1
+ import { NgZone, OnDestroy } from '@angular/core';
2
+ import { type Observable } from 'rxjs';
3
+ import { type HulyEmbedMessage } from '@jariahh/core';
4
+ import { HulyEmbedService } from './huly-embed.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class HulyMessageService implements OnDestroy {
7
+ private readonly embedService;
8
+ private readonly ngZone;
9
+ private readonly subject;
10
+ private readonly listener;
11
+ readonly messages$: Observable<HulyEmbedMessage>;
12
+ constructor(embedService: HulyEmbedService, ngZone: NgZone);
13
+ ngOnDestroy(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<HulyMessageService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<HulyMessageService>;
16
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@jariahh/angular",
3
+ "version": "0.1.0",
4
+ "peerDependencies": {
5
+ "@angular/core": ">=17.0.0",
6
+ "@angular/common": ">=17.0.0",
7
+ "rxjs": ">=7.0.0",
8
+ "@jariahh/core": ">=0.1.0"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/jariahh/huly-embed",
13
+ "directory": "packages/angular"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "provenance": true
18
+ },
19
+ "license": "EPL-2.0",
20
+ "module": "fesm2022/jariahh-angular.mjs",
21
+ "typings": "index.d.ts",
22
+ "exports": {
23
+ "./package.json": {
24
+ "default": "./package.json"
25
+ },
26
+ ".": {
27
+ "types": "./index.d.ts",
28
+ "esm2022": "./esm2022/jariahh-angular.mjs",
29
+ "esm": "./esm2022/jariahh-angular.mjs",
30
+ "default": "./fesm2022/jariahh-angular.mjs"
31
+ }
32
+ },
33
+ "sideEffects": false,
34
+ "dependencies": {
35
+ "tslib": "^2.3.0"
36
+ }
37
+ }