@posiwise/resource-module 0.0.139 → 0.0.141

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.
Files changed (33) hide show
  1. package/esm2022/lib/public/components/base/base-top-banner.component.mjs +30 -4
  2. package/esm2022/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.mjs +11 -9
  3. package/esm2022/lib/public/components/resource-blogs/resource-blog.component.mjs +4 -4
  4. package/esm2022/lib/public/components/resource-case-studies/resource-case-studies.component.mjs +53 -12
  5. package/esm2022/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.mjs +11 -9
  6. package/esm2022/lib/public/components/resource-post/resource-post-details/resource-post-details.component.mjs +28 -5
  7. package/esm2022/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.mjs +11 -9
  8. package/esm2022/lib/public/components/resource-top-banner-edit/resource-top-banner-edit.component.mjs +8 -4
  9. package/esm2022/lib/public/components/resource-vault/resource-vault.component.mjs +4 -4
  10. package/esm2022/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.mjs +11 -9
  11. package/esm2022/lib/public/components/resource-videos/resource-videos.component.mjs +4 -4
  12. package/esm2022/lib/public/components/resource-webinars/resource-webinars.component.mjs +36 -11
  13. package/esm2022/lib/public/components/resources/vault-section/vault-section.component.mjs +36 -10
  14. package/esm2022/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.mjs +11 -9
  15. package/esm2022/lib/public/components/white-papers/white-papers.component.mjs +4 -4
  16. package/esm2022/lib/public/resource-public.routing.module.mjs +31 -59
  17. package/fesm2022/posiwise-resource-module.mjs +258 -149
  18. package/fesm2022/posiwise-resource-module.mjs.map +1 -1
  19. package/lib/public/components/base/base-top-banner.component.d.ts +5 -1
  20. package/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.d.ts +2 -1
  21. package/lib/public/components/resource-blogs/resource-blog.component.d.ts +1 -1
  22. package/lib/public/components/resource-case-studies/resource-case-studies.component.d.ts +6 -1
  23. package/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.d.ts +2 -1
  24. package/lib/public/components/resource-post/resource-post-details/resource-post-details.component.d.ts +5 -2
  25. package/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.d.ts +2 -1
  26. package/lib/public/components/resource-vault/resource-vault.component.d.ts +1 -1
  27. package/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.d.ts +2 -1
  28. package/lib/public/components/resource-videos/resource-videos.component.d.ts +1 -1
  29. package/lib/public/components/resource-webinars/resource-webinars.component.d.ts +5 -1
  30. package/lib/public/components/resources/vault-section/vault-section.component.d.ts +5 -1
  31. package/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.d.ts +2 -1
  32. package/lib/public/components/white-papers/white-papers.component.d.ts +1 -1
  33. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
4
  import { AuthService, TagService } from '@posiwise/common-services';
4
5
  import { Resource, User } from '@posiwise/common-utilities';
@@ -8,6 +9,7 @@ export declare abstract class BaseTopBannerComponent extends AppBaseComponent im
8
9
  protected readonly resourceService: ResourceService;
9
10
  protected readonly tagService: TagService;
10
11
  private readonly authService;
12
+ private readonly titleService;
11
13
  subscriptionId: number;
12
14
  masterSubscriptionId: any;
13
15
  posts: Resource[];
@@ -18,12 +20,14 @@ export declare abstract class BaseTopBannerComponent extends AppBaseComponent im
18
20
  blogTestimonialsPostTag: any;
19
21
  isLoaded: boolean;
20
22
  user: User;
21
- constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, injector: Injector);
23
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
22
24
  ngOnInit(): void;
23
25
  protected getTags(): void;
24
26
  private getPostTags;
25
27
  /** Helper method to get effective subscription ID */
26
28
  protected getEffectiveSubscriptionId(): number;
29
+ protected updateSEOMetadata(): void;
30
+ private updateMetaDescription;
27
31
  protected abstract getSearchTerm(): string;
28
32
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseTopBannerComponent, never>;
29
33
  static ɵcmp: i0.ɵɵComponentDeclaration<BaseTopBannerComponent, "ng-component", never, {}, {}, never, never, false, never>;
@@ -1,10 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AuthService, TagService } from '@posiwise/common-services';
3
4
  import { ResourceService } from '../../../../resource.service';
4
5
  import { BaseTopBannerComponent } from '../../base/base-top-banner.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ResourceBlogTopBannerComponent extends BaseTopBannerComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
8
9
  protected getSearchTerm(): string;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceBlogTopBannerComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceBlogTopBannerComponent, "pw-resource-blog-top-banner", never, {}, {}, never, never, false, never>;
@@ -4,7 +4,7 @@ import { ResourceService } from '../../../resource.service';
4
4
  import { BaseResourceComponent } from '../base/base-resource.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ResourceBlogComponent extends BaseResourceComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
7
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, injector: Injector);
8
8
  protected getResourceType(): string;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceBlogComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceBlogComponent, "pw-resource-blog", never, {}, {}, never, never, false, never>;
@@ -1,14 +1,19 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AuthService, TagService } from '@posiwise/common-services';
3
4
  import { ResourceService } from '../../../resource.service';
4
5
  import { BaseResourceComponent } from '../base/base-resource.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ResourceCaseStudiesComponent extends BaseResourceComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ private readonly titleService;
9
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
8
10
  protected getResourceType(): string;
9
11
  protected getSearchTerm(): string;
10
12
  protected shouldUseTagCategories(): boolean;
11
13
  protected shouldLoadTestimonials(): boolean;
14
+ protected getPostTags(): void;
15
+ private updateSEOMetadata;
16
+ private updateMetaDescription;
12
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceCaseStudiesComponent, never>;
13
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceCaseStudiesComponent, "pw-resource-case-studies", never, {}, {}, never, never, false, never>;
14
19
  }
@@ -1,10 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AuthService, TagService } from '@posiwise/common-services';
3
4
  import { ResourceService } from '../../../../resource.service';
4
5
  import { BaseTopBannerComponent } from '../../base/base-top-banner.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class IntegrationTopBannerComponent extends BaseTopBannerComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
8
9
  protected getSearchTerm(): string;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationTopBannerComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<IntegrationTopBannerComponent, "pw-integration-top-banner", never, {}, {}, never, never, false, never>;
@@ -1,5 +1,5 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
- import { DomSanitizer } from '@angular/platform-browser';
2
+ import { DomSanitizer, Title } from '@angular/platform-browser';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
4
  import { AuthService, TagService } from '@posiwise/common-services';
5
5
  import { User } from '@posiwise/common-utilities';
@@ -9,6 +9,7 @@ export declare class ResourcePostDetailsComponent extends AppBaseComponent imple
9
9
  private readonly resourceService;
10
10
  private readonly tagService;
11
11
  private readonly authService;
12
+ private readonly titleService;
12
13
  private readonly sanitizer;
13
14
  post: any;
14
15
  masterSubscriptionId: any;
@@ -58,10 +59,12 @@ export declare class ResourcePostDetailsComponent extends AppBaseComponent imple
58
59
  subscriptionId: number;
59
60
  blogPostTag: any;
60
61
  isLoaded: boolean;
61
- constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, injector: Injector, sanitizer: DomSanitizer);
62
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector, sanitizer: DomSanitizer);
62
63
  ngOnInit(): void;
63
64
  private getPostTags;
64
65
  private getBlogItem;
66
+ private updateSEOMetadata;
67
+ private updateMetaDescription;
65
68
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourcePostDetailsComponent, never>;
66
69
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourcePostDetailsComponent, "pw-resource-post-details", never, {}, {}, never, never, false, never>;
67
70
  }
@@ -1,10 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AuthService, TagService } from '@posiwise/common-services';
3
4
  import { ResourceService } from '../../../../resource.service';
4
5
  import { BaseTopBannerComponent } from '../../base/base-top-banner.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ReleaseTopBannerComponent extends BaseTopBannerComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
8
9
  protected getSearchTerm(): string;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ReleaseTopBannerComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<ReleaseTopBannerComponent, "pw-resource-release-notes-top-banner", never, {}, {}, never, never, false, never>;
@@ -11,7 +11,7 @@ export declare class ResourceVaultComponent extends BaseResourceComponent implem
11
11
  tag: any;
12
12
  isEditingTitle: boolean;
13
13
  editedTitle: string;
14
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
14
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, injector: Injector);
15
15
  ngOnInit(): void;
16
16
  protected getResourceType(): string;
17
17
  protected getPosts(page: number, pageSize: number): void;
@@ -1,10 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AuthService, TagService } from '@posiwise/common-services';
3
4
  import { ResourceService } from '../../../../resource.service';
4
5
  import { BaseTopBannerComponent } from '../../base/base-top-banner.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class VideosTopBannerComponent extends BaseTopBannerComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
8
9
  protected getSearchTerm(): string;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<VideosTopBannerComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<VideosTopBannerComponent, "pw-resource-videos-top-banner", never, {}, {}, never, never, false, never>;
@@ -4,7 +4,7 @@ import { ResourceService } from '../../../resource.service';
4
4
  import { BaseResourceComponent } from '../base/base-resource.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ResourceVideoComponent extends BaseResourceComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
7
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, injector: Injector);
8
8
  protected getResourceType(): string;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceVideoComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceVideoComponent, "pw-resource-videos", never, {}, {}, never, never, false, never>;
@@ -1,4 +1,5 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
4
  import { AuthService, TagService } from '@posiwise/common-services';
4
5
  import { Resource, User } from '@posiwise/common-utilities';
@@ -8,6 +9,7 @@ export declare class ResourceWebinarComponent extends AppBaseComponent implement
8
9
  private readonly resourceService;
9
10
  private readonly authService;
10
11
  private readonly tagService;
12
+ private readonly titleService;
11
13
  subscriptionId: number;
12
14
  masterSubscriptionId: any;
13
15
  posts: Resource[];
@@ -17,10 +19,12 @@ export declare class ResourceWebinarComponent extends AppBaseComponent implement
17
19
  blogPostTag: any;
18
20
  isLoaded: boolean;
19
21
  user: User;
20
- constructor(resourceService: ResourceService, authService: AuthService, tagService: TagService, injector: Injector);
22
+ constructor(resourceService: ResourceService, authService: AuthService, tagService: TagService, titleService: Title, injector: Injector);
21
23
  ngOnInit(): void;
22
24
  private getTags;
23
25
  private getPostTags;
26
+ private updateSEOMetadata;
27
+ private updateMetaDescription;
24
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceWebinarComponent, never>;
25
29
  static ɵcmp: i0.ɵɵComponentDeclaration<ResourceWebinarComponent, "pw-resource-webinars", never, {}, {}, never, never, false, never>;
26
30
  }
@@ -1,4 +1,5 @@
1
1
  import { Injector, OnInit, TemplateRef } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AdminService } from '@posiwise/admin-module-utils';
3
4
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
5
  import { AuthService } from '@posiwise/common-services';
@@ -10,6 +11,7 @@ export declare class VaultSectionComponent extends AppBaseComponent implements O
10
11
  private readonly modalService;
11
12
  private readonly authService;
12
13
  private readonly adminService;
14
+ private readonly titleService;
13
15
  editResourceModalRef: TemplateRef<CustomUploaderComponent>;
14
16
  companyName: any;
15
17
  resourceTagLine: any;
@@ -28,8 +30,10 @@ export declare class VaultSectionComponent extends AppBaseComponent implements O
28
30
  url: string;
29
31
  name: string;
30
32
  };
31
- constructor(injector: Injector, modalService: NgbModal, authService: AuthService, adminService: AdminService);
33
+ constructor(injector: Injector, modalService: NgbModal, authService: AuthService, adminService: AdminService, titleService: Title);
32
34
  ngOnInit(): void;
35
+ private updateSEOMetadata;
36
+ private updateMetaDescription;
33
37
  openEditResourceModal(): void;
34
38
  saveResourceContent(modal: any): void;
35
39
  openImageModal(modalTemplate: any): void;
@@ -1,10 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
2
3
  import { AuthService, TagService } from '@posiwise/common-services';
3
4
  import { ResourceService } from '../../../../resource.service';
4
5
  import { BaseTopBannerComponent } from '../../base/base-top-banner.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class WhitePaperTopBannerComponent extends BaseTopBannerComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, titleService: Title, injector: Injector);
8
9
  protected getSearchTerm(): string;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<WhitePaperTopBannerComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<WhitePaperTopBannerComponent, "pw-white-paper-top-banner", never, {}, {}, never, never, false, never>;
@@ -4,7 +4,7 @@ import { ResourceService } from '../../../resource.service';
4
4
  import { BaseResourceComponent } from '../base/base-resource.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class WhitePaperComponent extends BaseResourceComponent {
7
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
7
+ constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, injector: Injector);
8
8
  protected getResourceType(): string;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<WhitePaperComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<WhitePaperComponent, "pw-resource-white-papers", never, {}, {}, never, never, false, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/resource-module",
3
- "version": "0.0.139",
3
+ "version": "0.0.141",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11",