@ethlete/core 0.2.0-next.7 → 0.2.0-next.8

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.
@@ -9,3 +9,4 @@ export * from './repeat/public-api';
9
9
  export * from './scroll-observer-first-element/public-api';
10
10
  export * from './scroll-observer-ignore-target/public-api';
11
11
  export * from './scroll-observer-last-element/public-api';
12
+ export * from './seo/public-api';
@@ -0,0 +1,4 @@
1
+ export * from './seo.directive';
2
+ export * from './seo.directive.constants';
3
+ export * from './seo.directive.types';
4
+ export * from './seo.directive.utils';
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { SeoDirective } from './seo.directive';
3
+ export declare const SEO_DIRECTIVE_TOKEN: InjectionToken<SeoDirective>;
@@ -0,0 +1,21 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { SeoConfig } from './seo.directive.types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SeoDirective implements OnInit, OnDestroy {
5
+ private readonly _metaService;
6
+ private readonly _titleService;
7
+ private readonly _onDeactivate$;
8
+ private _isDeactivated;
9
+ readonly parent: SeoDirective | null;
10
+ get config(): SeoConfig;
11
+ private _config;
12
+ ngOnInit(): void;
13
+ ngOnDestroy(): void;
14
+ updateConfig(config: SeoConfig): void;
15
+ _activate(): void;
16
+ _deactivate(): void;
17
+ private _update;
18
+ private _cleanUp;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SeoDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SeoDirective, never, never, {}, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,51 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare type MaybeObservable<T> = T | Observable<T>;
3
+ export interface SeoConfig {
4
+ title?: MaybeObservable<string>;
5
+ description?: MaybeObservable<string>;
6
+ keywords?: MaybeObservable<string[]>;
7
+ icon?: MaybeObservable<string>;
8
+ themeColor?: MaybeObservable<string>;
9
+ colorScheme?: MaybeObservable<'light' | 'dark'>;
10
+ robots?: MaybeObservable<string>;
11
+ canonical?: MaybeObservable<string>;
12
+ alternate?: MaybeObservable<AlternateLink>[];
13
+ og?: MaybeObservable<OpenGraph>;
14
+ twitter?: MaybeObservable<TwitterCard>;
15
+ facebook?: MaybeObservable<FacebookCard>;
16
+ [key: string]: MaybeObservable<unknown>;
17
+ }
18
+ export interface AlternateLink {
19
+ href: string;
20
+ hreflang: string;
21
+ }
22
+ export interface OpenGraph {
23
+ title?: MaybeObservable<string>;
24
+ description?: MaybeObservable<string>;
25
+ type?: MaybeObservable<string>;
26
+ url?: MaybeObservable<string>;
27
+ image?: MaybeObservable<string>;
28
+ siteName?: MaybeObservable<string>;
29
+ locale?: MaybeObservable<string>;
30
+ localeAlternate?: MaybeObservable<string[]>;
31
+ }
32
+ export interface TwitterCard {
33
+ card?: MaybeObservable<string>;
34
+ site?: MaybeObservable<string>;
35
+ creator?: MaybeObservable<string>;
36
+ title?: MaybeObservable<string>;
37
+ description?: MaybeObservable<string>;
38
+ image?: MaybeObservable<string>;
39
+ imageAlt?: MaybeObservable<string>;
40
+ }
41
+ export interface FacebookCard {
42
+ title?: MaybeObservable<string>;
43
+ description?: MaybeObservable<string>;
44
+ image?: MaybeObservable<string>;
45
+ imageAlt?: MaybeObservable<string>;
46
+ type?: MaybeObservable<string>;
47
+ url?: MaybeObservable<string>;
48
+ siteName?: MaybeObservable<string>;
49
+ locale?: MaybeObservable<string>;
50
+ localeAlternate?: MaybeObservable<string[]>;
51
+ }
@@ -0,0 +1,2 @@
1
+ import { SeoConfig } from './seo.directive.types';
2
+ export declare const mergeSeoConfig: (config: SeoConfig, parentConfig: SeoConfig) => SeoConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "0.2.0-next.7",
3
+ "version": "0.2.0-next.8",
4
4
  "dependencies": {
5
5
  "tslib": "2.4.1"
6
6
  },
@@ -8,7 +8,8 @@
8
8
  "@angular/common": "^14.0.0 || ^15.0.0",
9
9
  "@angular/core": "^14.0.0 || ^15.0.0",
10
10
  "rxjs": "7.5.7",
11
- "@angular/cdk": "15.0.0"
11
+ "@angular/cdk": "15.0.0",
12
+ "@angular/platform-browser": "15.0.0"
12
13
  },
13
14
  "module": "fesm2015/ethlete-core.mjs",
14
15
  "es2020": "fesm2020/ethlete-core.mjs",