@candy-kingdom/bonnie-cms 0.12.0 → 0.14.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.
@@ -1,11 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { OpenGraphData } from '@candy-kingdom/bonnie';
2
+ import { FileMeta, FileSrc, OpenGraphData } from '@candy-kingdom/bonnie';
3
3
  import { FormBaseComponent } from '../../core-components';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "../../core-components/editable.directive";
6
6
  export declare class SeoFormComponent extends FormBaseComponent<OpenGraphData> implements OnInit {
7
- readonly imageWidth = 1200;
8
- readonly imageHeight = 630;
7
+ readonly uploadMap: Map<string, string>;
9
8
  private _pageId;
10
9
  ogImageUploadUrl: string;
11
10
  label: string;
@@ -15,6 +14,7 @@ export declare class SeoFormComponent extends FormBaseComponent<OpenGraphData> i
15
14
  ResToSrc(res: {
16
15
  url: string;
17
16
  }): string;
17
+ replaceImage($event: FileSrc<FileMeta>): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SeoFormComponent, never>;
19
19
  static ɵcmp: i0.ɵɵComponentDeclaration<SeoFormComponent, "bonc-seo-form", never, { "label": { "alias": "label"; "required": false; }; "pageId": { "alias": "pageId"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.EditableDirective; inputs: {}; outputs: {}; }]>;
20
20
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
2
  import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { MediaObjectFit, PixMediaUnion } from '@candy-kingdom/bonnie';
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare class MediaUploaderComponent {
8
8
  private sanitizer;
9
9
  private http;
10
+ private cd;
10
11
  readonly MediaObjectFit: typeof MediaObjectFit;
11
12
  fileInput: ElementRef<HTMLInputElement>;
12
13
  srcChange: EventEmitter<PixMediaUnion>;
@@ -19,7 +20,7 @@ export declare class MediaUploaderComponent {
19
20
  fileTypeMask: string;
20
21
  private _uploadType?;
21
22
  private _src?;
22
- constructor(sanitizer: DomSanitizer, http: HttpClient);
23
+ constructor(sanitizer: DomSanitizer, http: HttpClient, cd: ChangeDetectorRef);
23
24
  set src(newSrc: PixMediaUnion | undefined);
24
25
  get src(): PixMediaUnion | undefined;
25
26
  set uploadType(newUploadType: MediaType | undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candy-kingdom/bonnie-cms",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0"