@dotcms/angular 26.8.3-1 → 26.8.3-1-next.2490

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 (71) hide show
  1. package/fesm2022/dotcms-angular.mjs +195 -157
  2. package/fesm2022/dotcms-angular.mjs.map +1 -1
  3. package/package.json +7 -6
  4. package/types/dotcms-angular.d.ts +484 -0
  5. package/types/dotcms-angular.d.ts.map +1 -0
  6. package/dotcms-angular.d.ts.map +0 -1
  7. package/index.d.ts +0 -6
  8. package/lib/components/dotcms-block-editor-renderer/blocks/audio.component.d.ts +0 -12
  9. package/lib/components/dotcms-block-editor-renderer/blocks/audio.component.d.ts.map +0 -1
  10. package/lib/components/dotcms-block-editor-renderer/blocks/code.component.d.ts +0 -10
  11. package/lib/components/dotcms-block-editor-renderer/blocks/code.component.d.ts.map +0 -1
  12. package/lib/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.d.ts +0 -34
  13. package/lib/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.d.ts.map +0 -1
  14. package/lib/components/dotcms-block-editor-renderer/blocks/grid-block.component.d.ts +0 -13
  15. package/lib/components/dotcms-block-editor-renderer/blocks/grid-block.component.d.ts.map +0 -1
  16. package/lib/components/dotcms-block-editor-renderer/blocks/image.component.d.ts +0 -25
  17. package/lib/components/dotcms-block-editor-renderer/blocks/image.component.d.ts.map +0 -1
  18. package/lib/components/dotcms-block-editor-renderer/blocks/list.component.d.ts +0 -14
  19. package/lib/components/dotcms-block-editor-renderer/blocks/list.component.d.ts.map +0 -1
  20. package/lib/components/dotcms-block-editor-renderer/blocks/table.component.d.ts +0 -15
  21. package/lib/components/dotcms-block-editor-renderer/blocks/table.component.d.ts.map +0 -1
  22. package/lib/components/dotcms-block-editor-renderer/blocks/text.component.d.ts +0 -28
  23. package/lib/components/dotcms-block-editor-renderer/blocks/text.component.d.ts.map +0 -1
  24. package/lib/components/dotcms-block-editor-renderer/blocks/unknown.component.d.ts +0 -18
  25. package/lib/components/dotcms-block-editor-renderer/blocks/unknown.component.d.ts.map +0 -1
  26. package/lib/components/dotcms-block-editor-renderer/blocks/video.component.d.ts +0 -10
  27. package/lib/components/dotcms-block-editor-renderer/blocks/video.component.d.ts.map +0 -1
  28. package/lib/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts +0 -48
  29. package/lib/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts.map +0 -1
  30. package/lib/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts +0 -12
  31. package/lib/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts.map +0 -1
  32. package/lib/components/dotcms-block-editor-renderer-semantic/blocks/semantic-blocks.component.d.ts +0 -40
  33. package/lib/components/dotcms-block-editor-renderer-semantic/blocks/semantic-blocks.component.d.ts.map +0 -1
  34. package/lib/components/dotcms-block-editor-renderer-semantic/dotcms-block-editor-renderer-native.component.d.ts +0 -73
  35. package/lib/components/dotcms-block-editor-renderer-semantic/dotcms-block-editor-renderer-native.component.d.ts.map +0 -1
  36. package/lib/components/dotcms-editable-text/dotcms-editable-text.component.d.ts +0 -143
  37. package/lib/components/dotcms-editable-text/dotcms-editable-text.component.d.ts.map +0 -1
  38. package/lib/components/dotcms-editable-text/utils.d.ts +0 -7
  39. package/lib/components/dotcms-editable-text/utils.d.ts.map +0 -1
  40. package/lib/components/dotcms-layout-body/components/column/column.component.d.ts +0 -21
  41. package/lib/components/dotcms-layout-body/components/column/column.component.d.ts.map +0 -1
  42. package/lib/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.d.ts +0 -27
  43. package/lib/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.d.ts.map +0 -1
  44. package/lib/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.d.ts +0 -23
  45. package/lib/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.d.ts.map +0 -1
  46. package/lib/components/dotcms-layout-body/components/container/container.component.d.ts +0 -28
  47. package/lib/components/dotcms-layout-body/components/container/container.component.d.ts.map +0 -1
  48. package/lib/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts +0 -43
  49. package/lib/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts.map +0 -1
  50. package/lib/components/dotcms-layout-body/components/fallback-component/fallback-component.component.d.ts +0 -16
  51. package/lib/components/dotcms-layout-body/components/fallback-component/fallback-component.component.d.ts.map +0 -1
  52. package/lib/components/dotcms-layout-body/components/page-error-message/page-error-message.component.d.ts +0 -13
  53. package/lib/components/dotcms-layout-body/components/page-error-message/page-error-message.component.d.ts.map +0 -1
  54. package/lib/components/dotcms-layout-body/components/row/row.component.d.ts +0 -24
  55. package/lib/components/dotcms-layout-body/components/row/row.component.d.ts.map +0 -1
  56. package/lib/components/dotcms-layout-body/dotcms-layout-body.component.d.ts +0 -30
  57. package/lib/components/dotcms-layout-body/dotcms-layout-body.component.d.ts.map +0 -1
  58. package/lib/directives/dotcms-show-when/dotcms-show-when.directive.d.ts +0 -21
  59. package/lib/directives/dotcms-show-when/dotcms-show-when.directive.d.ts.map +0 -1
  60. package/lib/models/index.d.ts +0 -39
  61. package/lib/models/index.d.ts.map +0 -1
  62. package/lib/providers/dotcms-client/dotcms-client.provider.d.ts +0 -109
  63. package/lib/providers/dotcms-client/dotcms-client.provider.d.ts.map +0 -1
  64. package/lib/providers/dotcms-image-loader/dotcms-image_loader.d.ts +0 -21
  65. package/lib/providers/dotcms-image-loader/dotcms-image_loader.d.ts.map +0 -1
  66. package/lib/services/dotcms-editable-page.service.d.ts +0 -40
  67. package/lib/services/dotcms-editable-page.service.d.ts.map +0 -1
  68. package/lib/store/dotcms.store.d.ts +0 -51
  69. package/lib/store/dotcms.store.d.ts.map +0 -1
  70. package/public_api.d.ts +0 -10
  71. package/public_api.d.ts.map +0 -1
@@ -1,43 +0,0 @@
1
- import { ElementRef, OnChanges } from '@angular/core';
2
- import { DotCMSBasicContentlet, EditableContainerData } from '@dotcms/types';
3
- import { DotContentletAttributes } from '@dotcms/types/internal';
4
- import { DynamicComponentEntity } from '../../../../models';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @description Contentlet component that renders DotCMS content with development mode support
8
- *
9
- * @component
10
- * @param {DotCMSContentlet} contentlet - The contentlet to be rendered
11
- * @param {string} container - The container identifier
12
- * @class ContentletComponent
13
- */
14
- export declare class ContentletComponent implements OnChanges {
15
- #private;
16
- contentlet: DotCMSBasicContentlet;
17
- containerData: EditableContainerData;
18
- contentletRef: ElementRef;
19
- $contentlet: import("@angular/core").WritableSignal<DotCMSBasicContentlet | null>;
20
- $UserComponent: import("@angular/core").WritableSignal<DynamicComponentEntity | null>;
21
- $UserNoComponent: import("@angular/core").WritableSignal<DynamicComponentEntity | null>;
22
- $isDevMode: import("@angular/core").Signal<boolean>;
23
- $isAnalyticsActive: import("@angular/core").Signal<boolean>;
24
- $haveContent: import("@angular/core").WritableSignal<boolean>;
25
- $style: import("@angular/core").Signal<{
26
- minHeight: string;
27
- } | {
28
- minHeight?: undefined;
29
- }>;
30
- $dotAttributes: import("@angular/core").Signal<DotContentletAttributes>;
31
- ngOnChanges(): void;
32
- /**
33
- * Serializes the container data for the `data-dot-container` editor attribute.
34
- * Only consumed by the host binding while in edit mode.
35
- */
36
- getContainerAttribute(): string;
37
- ngAfterViewInit(): void;
38
- private setupComponents;
39
- private checkContent;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentletComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<ContentletComponent, "dotcms-contentlet", never, { "contentlet": { "alias": "contentlet"; "required": true; }; "containerData": { "alias": "containerData"; "required": true; }; }, {}, never, never, true, never>;
42
- }
43
- //# sourceMappingURL=contentlet.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentlet.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/src/lib/components/dotcms-layout-body/components/contentlet/contentlet.component.ts"],"names":[],"mappings":"AACA,OAAO,EAIH,UAAU,EAGV,SAAS,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAOjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;;AAI5D;;;;;;;GAOG;AACH,qBAkCa,mBAAoB,YAAW,SAAS;;IACtB,UAAU,EAAG,qBAAqB,CAAC;IACnC,aAAa,EAAG,qBAAqB,CAAC;IACrC,aAAa,EAAG,UAAU,CAAC;IAIvD,WAAW,uEAA8C;IACzD,cAAc,wEAA+C;IAC7D,gBAAgB,wEAA+C;IAC/D,UAAU,0CAAgC;IAC1C,kBAAkB,0CAAwC;IAC1D,YAAY,kDAAiB;IAC7B,MAAM;;;;OAEJ;IACF,cAAc,0DAaX;IAEH,WAAW;IAKX;;;OAGG;IACH,qBAAqB,IAAI,MAAM;IAI/B,eAAe;IAIf,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,YAAY;yCA1DX,mBAAmB;2CAAnB,mBAAmB;CAiE/B"}
@@ -1,16 +0,0 @@
1
- import { DotCMSBasicContentlet } from '@dotcms/types';
2
- import { DynamicComponentEntity } from '../../../../models';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @description Fallback component that renders when no custom component is found for a contentlet
6
- * @category Components
7
- * @internal
8
- * @class FallbackComponent
9
- */
10
- export declare class FallbackComponent {
11
- UserNoComponent: DynamicComponentEntity | null;
12
- contentlet: DotCMSBasicContentlet;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<FallbackComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<FallbackComponent, "dotcms-fallback-component", never, { "UserNoComponent": { "alias": "UserNoComponent"; "required": false; }; "contentlet": { "alias": "contentlet"; "required": false; }; }, {}, never, never, true, never>;
15
- }
16
- //# sourceMappingURL=fallback-component.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fallback-component.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/src/lib/components/dotcms-layout-body/components/fallback-component/fallback-component.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;;AAE5D;;;;;GAKG;AACH,qBAca,iBAAiB;IACjB,eAAe,EAAE,sBAAsB,GAAG,IAAI,CAAQ;IACtD,UAAU,EAAG,qBAAqB,CAAC;yCAFnC,iBAAiB;2CAAjB,iBAAiB;CAG7B"}
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @description This component is used to display a message when a page is missing the required `layout.body` property.
5
- * @internal
6
- * @class PageErrorMessageComponent
7
- */
8
- export declare class PageErrorMessageComponent implements OnInit {
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<PageErrorMessageComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<PageErrorMessageComponent, "dotcms-page-error-message", never, {}, {}, never, never, true, never>;
12
- }
13
- //# sourceMappingURL=page-error-message.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"page-error-message.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/src/lib/components/dotcms-layout-body/components/page-error-message/page-error-message.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,MAAM,EAAE,MAAM,eAAe,CAAC;;AAE3E;;;;GAIG;AACH,qBAqBa,yBAA0B,YAAW,MAAM;IACpD,QAAQ;yCADC,yBAAyB;2CAAzB,yBAAyB;CAIrC"}
@@ -1,24 +0,0 @@
1
- import { OnChanges } from '@angular/core';
2
- import { DotPageAssetLayoutRow } from '@dotcms/types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @description This component renders a row with all its content using the layout provided by dotCMS Page API.
6
- *
7
- * @see {@link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas}
8
- * @category Components
9
- * @internal
10
- * @class RowComponent
11
- */
12
- export declare class RowComponent implements OnChanges {
13
- /**
14
- * The row data to be rendered
15
- */
16
- row: DotPageAssetLayoutRow;
17
- sectionIndex: number;
18
- customClasses: import("@angular/core").WritableSignal<string>;
19
- sectionId: import("@angular/core").WritableSignal<string>;
20
- ngOnChanges(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<RowComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<RowComponent, "dotcms-row", never, { "row": { "alias": "row"; "required": true; }; "sectionIndex": { "alias": "sectionIndex"; "required": true; }; }, {}, never, never, true, never>;
23
- }
24
- //# sourceMappingURL=row.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"row.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/src/lib/components/dotcms-layout-body/components/row/row.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,SAAS,EAAU,MAAM,eAAe,CAAC;AAE7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;;AAKtD;;;;;;;GAOG;AACH,qBAea,YAAa,YAAW,SAAS;IAC1C;;OAEG;IACwB,GAAG,EAAG,qBAAqB,CAAC;IAC5B,YAAY,EAAG,MAAM,CAAC;IAEjD,aAAa,iDAAc;IAC3B,SAAS,iDAAc;IAEvB,WAAW;yCAVF,YAAY;2CAAZ,YAAY;CAcxB"}
@@ -1,30 +0,0 @@
1
- import { OnChanges } from '@angular/core';
2
- import { DotCMSPageAsset, DotCMSPageRendererMode, DotPageAssetLayoutRow } from '@dotcms/types';
3
- import { DotCMSPageComponent } from '../../models';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @description This component is used to render the layout for a DotCMS page.
7
- * @param {DotCMSPageAsset} page - The page to render the layout for
8
- * @param {DotCMSPageComponent} components - The components to render the layout for
9
- * @param {DotCMSPageRendererMode} mode - The mode to render the layout for
10
- *
11
- * @example
12
- * <dotcms-layout-body [page]="page" [components]="components" [mode]="'development'" />
13
- *
14
- * @export
15
- * @implements {OnChanges}
16
- * @class DotCMSLayoutBodyComponent
17
- */
18
- export declare class DotCMSLayoutBodyComponent implements OnChanges {
19
- #private;
20
- page: DotCMSPageAsset;
21
- components: DotCMSPageComponent;
22
- mode: DotCMSPageRendererMode;
23
- $isDevMode: import("@angular/core").Signal<boolean>;
24
- $rows: import("@angular/core").WritableSignal<DotPageAssetLayoutRow[]>;
25
- $isEmpty: import("@angular/core").WritableSignal<boolean>;
26
- ngOnChanges(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSLayoutBodyComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<DotCMSLayoutBodyComponent, "dotcms-layout-body", never, { "page": { "alias": "page"; "required": true; }; "components": { "alias": "components"; "required": true; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
29
- }
30
- //# sourceMappingURL=dotcms-layout-body.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotcms-layout-body.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/components/dotcms-layout-body/dotcms-layout-body.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,SAAS,EAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAK/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;;AAEnD;;;;;;;;;;;;GAYG;AACH,qBAgBa,yBAA0B,YAAW,SAAS;;IAC5B,IAAI,EAAG,eAAe,CAAC;IACvB,UAAU,EAAE,mBAAmB,CAAM;IACvD,IAAI,EAAE,sBAAsB,CAAgB;IAIrD,UAAU,0CAAgC;IAE1C,KAAK,kEAAuC;IAE5C,QAAQ,kDAAiB;IAEzB,WAAW;yCAbF,yBAAyB;2CAAzB,yBAAyB;CAwBrC"}
@@ -1,21 +0,0 @@
1
- import { UVE_MODE } from '@dotcms/types';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Directive to show a template when the UVE is in a specific mode.
5
- *
6
- * @example
7
- * <div *dotCMSShowWhen="UVE_MODE.EDIT">
8
- * This will be shown when the UVE is in edit mode.
9
- * </div>
10
- *
11
- * @export
12
- * @class DotCMSShowWhenDirective
13
- */
14
- export declare class DotCMSShowWhenDirective {
15
- #private;
16
- set dotCMSShowWhen(value: UVE_MODE);
17
- private updateViewContainer;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSShowWhenDirective, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<DotCMSShowWhenDirective, "[dotCMSShowWhen]", never, { "dotCMSShowWhen": { "alias": "dotCMSShowWhen"; "required": false; }; }, {}, never, never, true, never>;
20
- }
21
- //# sourceMappingURL=dotcms-show-when.directive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotcms-show-when.directive.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/directives/dotcms-show-when/dotcms-show-when.directive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAY,MAAM,eAAe,CAAC;;AAGnD;;;;;;;;;;GAUG;AACH,qBAGa,uBAAuB;;IAIhC,IAAa,cAAc,CAAC,KAAK,EAAE,QAAQ,EAG1C;IAKD,OAAO,CAAC,mBAAmB;yCAZlB,uBAAuB;2CAAvB,uBAAuB;CAyBnC"}
@@ -1,39 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { DotCMSPageAsset, DotCMSPageRendererMode } from '@dotcms/types';
3
- /**
4
- * Represents a dynamic component entity.
5
- * @typedef {Promise<Type<any>>} DynamicComponentEntity
6
- * @memberof @dotcms/angular
7
- */
8
- export type DynamicComponentEntity = Promise<Type<any>>;
9
- /**
10
- * Represents the context of a DotCMS page.
11
- */
12
- export interface DotCMSPageStore {
13
- /**
14
- * Represents the DotCMS page asset.
15
- * @type {DotCMSPageAsset}
16
- * @memberof DotCMSPageStore
17
- */
18
- page: DotCMSPageAsset;
19
- /**
20
- * Represents the dynamic components of the page for each Content Type.
21
- * @type {DotCMSPageComponent}
22
- * @memberof DotCMSPageStore
23
- */
24
- components: DotCMSPageComponent;
25
- /**
26
- * Indicates the renderer mode.
27
- * @type {DotCMSPageRendererMode}
28
- * @memberof DotCMSPageStore
29
- */
30
- mode: DotCMSPageRendererMode;
31
- }
32
- /**
33
- * Represents a DotCMS page component.
34
- * Used to store the dynamic components of a DotCMS page.
35
- * @typedef {Record<string, DynamicComponentEntity>} DotCMSPageComponent
36
- * @memberof @dotcms/angular
37
- */
38
- export type DotCMSPageComponent = Record<string, DynamicComponentEntity>;
39
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/models/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;;;OAIG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;;;OAIG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAChC;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC"}
@@ -1,109 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { EnvironmentProviders } from '@angular/core';
3
- import { createDotCMSClient } from '@dotcms/client';
4
- import { DotCMSClientConfig, DotHttpClient } from '@dotcms/types';
5
- /**
6
- * Type alias for the return type of createDotCMSClient function.
7
- * Used to ensure type consistency across the DotCMSClient interface and class.
8
- */
9
- type ClientType = ReturnType<typeof createDotCMSClient>;
10
- /**
11
- * Interface that extends the client type created by createDotCMSClient.
12
- * This interface provides type safety and IntelliSense support for the DotCMS client
13
- * when used as a dependency injection token in Angular applications.
14
- *
15
- * @example
16
- * ```typescript
17
- * dotcmsClient = inject(DotCMSClient);
18
- * ```
19
- */
20
- export interface DotCMSClient extends ClientType {
21
- }
22
- export declare class DotCMSClient {
23
- constructor(client: ClientType);
24
- }
25
- /**
26
- * Provides Angular environment providers for the DotCMS client.
27
- *
28
- * Registers a singleton DotCMS client instance in the Angular dependency injection system,
29
- * configured with the given options. This allows you to inject `DotCMSClient` anywhere
30
- * in your app using Angular's `inject()` function.
31
- *
32
- * Should be added to the application's providers (e.g., in `main.ts` or `app.config.ts`).
33
- *
34
- * @param options - Configuration for the DotCMS client.
35
- * @param options.dotcmsUrl - The base URL for the DotCMS instance (required).
36
- * @param options.authToken - Authentication token for API requests (required).
37
- * @param options.siteId - The site identifier (optional).
38
- * @param options.requestOptions - Additional fetch options (optional).
39
- * @param options.httpClient - Optional factory for a custom HTTP client, receives Angular's HttpClient.
40
- * @returns Angular environment providers for the DotCMS client.
41
- *
42
- * @example
43
- * import { provideDotCMSClient } from '@dotcms/angular';
44
- *
45
- * bootstrapApplication(AppComponent, {
46
- * providers: [
47
- * provideDotCMSClient({
48
- * dotcmsUrl: 'https://demo.dotcms.com',
49
- * authToken: 'your-auth-token',
50
- * siteId: 'your-site-id',
51
- * httpClient: (http) => new AngularHttpClient(http)
52
- * })
53
- * ]
54
- * });
55
- */
56
- export declare function provideDotCMSClient(options: DotCMSAngularProviderConfig): EnvironmentProviders;
57
- /**
58
- * Configuration interface for the DotCMS Angular provider.
59
- *
60
- * Extends the base `DotCMSClientConfig` but replaces the `httpClient` property
61
- * with an Angular-specific factory function that receives Angular's `HttpClient`
62
- * and returns a `DotHttpClient` implementation.
63
- *
64
- * This interface is designed to work seamlessly with Angular's dependency injection
65
- * system, allowing you to leverage Angular's built-in HTTP client while maintaining
66
- * compatibility with the DotCMS client's expected interface.
67
- *
68
- * @example
69
- * ```typescript
70
- * const config: DotCMSAngularProviderConfig = {
71
- * dotcmsUrl: 'https://demo.dotcms.com',
72
- * authToken: 'your-auth-token',
73
- * siteId: 'your-site-id',
74
- * httpClient: (http: HttpClient) => new AngularHttpClient(http)
75
- * };
76
- * ```
77
- *
78
- * @example
79
- * ```typescript
80
- * // Using with provideDotCMSClient
81
- * provideDotCMSClient({
82
- * dotcmsUrl: 'https://demo.dotcms.com',
83
- * authToken: 'your-auth-token',
84
- * httpClient: (http) => new AngularHttpClient(http)
85
- * })
86
- * ```
87
- */
88
- export interface DotCMSAngularProviderConfig extends Omit<DotCMSClientConfig, 'httpClient'> {
89
- /**
90
- * Optional factory function that creates a custom HTTP client implementation.
91
- *
92
- * This function receives Angular's `HttpClient` instance and should return
93
- * a `DotHttpClient` implementation. If not provided, the DotCMS client will
94
- * use its default HTTP client implementation.
95
- *
96
- * @param http - Angular's HttpClient instance from dependency injection
97
- * @returns A DotHttpClient implementation
98
- *
99
- * @example
100
- * ```typescript
101
- * httpClient: (http: HttpClient) => {
102
- * return new AngularHttpClient(http);
103
- * }
104
- * ```
105
- */
106
- httpClient?: (http: HttpClient) => DotHttpClient;
107
- }
108
- export {};
109
- //# sourceMappingURL=dotcms-client.provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotcms-client.provider.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/providers/dotcms-client/dotcms-client.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAoC,MAAM,eAAe,CAAC;AAEvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAElE;;;GAGG;AACH,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAIxD;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAa,SAAQ,UAAU;CAAG;AAGnD,qBAAa,YAAY;gBACT,MAAM,EAAE,UAAU;CAGjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,2BAA2B,GAAG,oBAAoB,CAoB9F;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC;IACvF;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,aAAa,CAAC;CACpD"}
@@ -1,21 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- /**
3
- * Provides a DotCMS image loader configuration for the Angular Image directive
4
- *
5
- * @param path - The base URL path to the DotCMS instance, or empty to use current site
6
- * @returns An array of providers for the IMAGE_LOADER token
7
- * @throws Error if the provided path is invalid
8
- * @example
9
- * ```typescript
10
- * // In your app.config.ts
11
- * export const appConfig: ApplicationConfig = {
12
- * providers: [
13
- * provideDotCMSImageLoader('https://demo.dotcms.com')
14
- * // Or use current site:
15
- * // provideDotCMSImageLoader()
16
- * ]
17
- * };
18
- * ```
19
- */
20
- export declare function provideDotCMSImageLoader(path?: string): Provider[];
21
- //# sourceMappingURL=dotcms-image_loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotcms-image_loader.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/providers/dotcms-image-loader/dotcms-image_loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAmCzC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CAelE"}
@@ -1,40 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DotCMSComposedPageResponse, DotCMSExtendedPageResponse } from '@dotcms/types';
3
- import * as i0 from "@angular/core";
4
- export declare class DotCMSEditablePageService {
5
- #private;
6
- /**
7
- * Listens for changes to an editable page and returns an Observable that emits the updated page data.
8
- * This method initializes the UVE (Universal Visual Editor) and sets up subscriptions to track content changes.
9
- *
10
- * @example
11
- * ```ts
12
- * // Import the service
13
- * import { DotCMSEditablePageService } from '@dotcms/angular';
14
- *
15
- * // Inject the service
16
- * constructor(private editablePageService: DotCMSEditablePageService) {}
17
- *
18
- * // Get the page data from your API call
19
- * const page = await client.page.get('/');
20
- *
21
- * // Listen for changes
22
- * const subscription = this.editablePageService.listen(page).subscribe(updatedPage => {
23
- * if (updatedPage) {
24
- * // Handle updated page data
25
- * console.log('Page updated:', updatedPage);
26
- * }
27
- * });
28
- *
29
- * // When done listening, unsubscribe
30
- * subscription.unsubscribe();
31
- * ```
32
- *
33
- * @param response Optional initial page data
34
- * @returns Observable that emits the updated page data or undefined
35
- */
36
- listen<T extends DotCMSExtendedPageResponse>(response?: DotCMSComposedPageResponse<T>): Observable<DotCMSComposedPageResponse<T> | undefined>;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSEditablePageService, never>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<DotCMSEditablePageService>;
39
- }
40
- //# sourceMappingURL=dotcms-editable-page.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotcms-editable-page.service.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/services/dotcms-editable-page.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAe,MAAM,MAAM,CAAC;AAM/C,OAAO,EAGH,0BAA0B,EAC1B,0BAA0B,EAC7B,MAAM,eAAe,CAAC;;AAIvB,qBAGa,yBAAyB;;IAmBlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,CAAC,SAAS,0BAA0B,EACvC,QAAQ,CAAC,EAAE,0BAA0B,CAAC,CAAC,CAAC,GACzC,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;yCAnD/C,yBAAyB;6CAAzB,yBAAyB;CA8FrC"}
@@ -1,51 +0,0 @@
1
- import { Signal } from '@angular/core';
2
- import { DotCMSPageStore } from '../models';
3
- import * as i0 from "@angular/core";
4
- export declare const EMPTY_DOTCMS_PAGE_STORE: DotCMSPageStore;
5
- /**
6
- * @description This service is responsible for managing the page context.
7
- * @internal
8
- * @author dotCMS
9
- * @export
10
- * @class DotCMSStore
11
- */
12
- export declare class DotCMSStore {
13
- private $store;
14
- /**
15
- * @description Get whether DotCMS Analytics is active on the page. Used in
16
- * live mode to decide if the minimal contentlet attributes Analytics needs
17
- * should be kept.
18
- *
19
- * Analytics may initialize after the page renders, so we track its `ready`
20
- * event as a stream and project it into a signal. `fromEvent` registers via
21
- * zone-patched `addEventListener`, so change detection is scheduled without
22
- * any manual `NgZone` handling.
23
- * @readonly
24
- * @type {Signal<boolean>}
25
- * @memberof DotCMSStore
26
- */
27
- $isAnalyticsActive: Signal<boolean>;
28
- /**
29
- * @description Get the store
30
- * @readonly
31
- * @type {DotCMSPageStore}
32
- * @memberof DotCMSStore
33
- */
34
- get store(): DotCMSPageStore;
35
- /**
36
- * @description Set the store
37
- * @param {DotCMSPageStore} value
38
- * @memberof DotCMSStore
39
- */
40
- setStore(store: DotCMSPageStore): void;
41
- /**
42
- * @description Get if the current context is in development mode
43
- * @readonly
44
- * @type {boolean}
45
- * @memberof DotCMSStore
46
- */
47
- $isDevMode: Signal<boolean>;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSStore, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<DotCMSStore>;
50
- }
51
- //# sourceMappingURL=dotcms.store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotcms.store.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/store/dotcms.store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,MAAM,EAAU,MAAM,eAAe,CAAC;AAYrE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;;AAE5C,eAAO,MAAM,uBAAuB,EAAE,eAIrC,CAAC;AAEF;;;;;;GAMG;AACH,qBAGa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAoD;IAElE;;;;;;;;;;;;OAYG;IACH,kBAAkB,EAAE,MAAM,CAAC,OAAO,CAAC,CAMvB;IAEZ;;;;;OAKG;IACH,IAAI,KAAK,IAAI,eAAe,CAE3B;IAED;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAItC;;;;;OAKG;IACH,UAAU,kBAQP;yCAzDM,WAAW;6CAAX,WAAW;CA0DvB"}
package/public_api.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export { DotCMSShowWhenDirective } from './lib/directives/dotcms-show-when/dotcms-show-when.directive';
2
- export { provideDotCMSImageLoader } from './lib/providers/dotcms-image-loader/dotcms-image_loader';
3
- export { provideDotCMSClient, DotCMSClient } from './lib/providers/dotcms-client/dotcms-client.provider';
4
- export { DotCMSEditableTextComponent } from './lib/components/dotcms-editable-text/dotcms-editable-text.component';
5
- export { DotCMSBlockEditorRendererComponent } from './lib/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component';
6
- export { DotCMSBlockEditorRendererNativeComponent } from './lib/components/dotcms-block-editor-renderer-semantic/dotcms-block-editor-renderer-native.component';
7
- export { DotCMSLayoutBodyComponent } from './lib/components/dotcms-layout-body/dotcms-layout-body.component';
8
- export { DotCMSEditablePageService } from './lib/services/dotcms-editable-page.service';
9
- export { DynamicComponentEntity } from './lib/models';
10
- //# sourceMappingURL=public_api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../../libs/sdk/angular/src/public_api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AAEvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,yDAAyD,CAAC;AAEnG,OAAO,EACH,mBAAmB,EACnB,YAAY,EACf,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sEAAsE,CAAC;AAEnH,OAAO,EAAE,kCAAkC,EAAE,MAAM,sFAAsF,CAAC;AAE1I,OAAO,EAAE,wCAAwC,EAAE,MAAM,sGAAsG,CAAC;AAEhK,OAAO,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAE7G,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAExF,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC"}