croco-html 3.3.0 → 3.3.1
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.
- package/esm2022/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.mjs +2 -2
- package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +2 -2
- package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +4 -4
- package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +2 -2
- package/esm2022/lib/services/CrocoHtmlFileOptionsService.mjs +32 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/fesm2022/croco-html.mjs +3 -3
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts +1 -1
- package/lib/components/editor/main-editor/main-editor.component.d.ts +1 -1
- package/lib/components/file-id-select/file-id-select.component.d.ts +1 -1
- package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/services/croco-html-file-options.service.mjs +0 -32
- /package/lib/services/{croco-html-file-options.service.d.ts → CrocoHtmlFileOptionsService.d.ts} +0 -0
package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
3
3
|
import { MatDialogRef } from "@angular/material/dialog";
|
|
4
|
-
import { CrocoHtmlFileOptionsService } from "../../../services/
|
|
4
|
+
import { CrocoHtmlFileOptionsService } from "../../../services/CrocoHtmlFileOptionsService";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class HtmlEditorSettingsModalComponent implements OnInit {
|
|
7
7
|
private readonly fb;
|
|
@@ -4,7 +4,7 @@ import { ClipboardService } from 'ngx-clipboard';
|
|
|
4
4
|
import { VisualEditorComponent } from '../visual-editor/visual-editor.component';
|
|
5
5
|
import { MatDialog } from "@angular/material/dialog";
|
|
6
6
|
import { CrocoHtmlOptions } from "../../../options";
|
|
7
|
-
import { CrocoHtmlFileOptionsService } from "../../../services/
|
|
7
|
+
import { CrocoHtmlFileOptionsService } from "../../../services/CrocoHtmlFileOptionsService";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
10
10
|
private readonly _clipboardService;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { PublicFilesQueryService } from '../../services/PublicFilesQueryService';
|
|
3
3
|
import { CrocoHtmlEditorFileOptions, CrocoHtmlOptions } from '../../options';
|
|
4
4
|
import { PrivateFilesQueryService } from "../../services/PrivateFilesQueryService";
|
|
5
|
-
import { CrocoHtmlFileOptionsService } from "../../services/
|
|
5
|
+
import { CrocoHtmlFileOptionsService } from "../../services/CrocoHtmlFileOptionsService";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export interface SearchQuestionsFormData {
|
|
8
8
|
q: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { PublicFilesUploadResponse, PublicFileUploadService } from '../../services/PublicFileUploadService';
|
|
3
3
|
import { PrivateFilesCreatedResult, PrivateFileUploadService } from "../../services/PrivateFileUploadService";
|
|
4
|
-
import { CrocoHtmlFileOptionsService } from "../../services/
|
|
4
|
+
import { CrocoHtmlFileOptionsService } from "../../services/CrocoHtmlFileOptionsService";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface FilePostingStarted {
|
|
7
7
|
filesCount: number;
|
package/lib/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components
|
|
|
18
18
|
import { HtmlRawViewComponent } from "./components";
|
|
19
19
|
import { HtmlViewComponent } from "./components";
|
|
20
20
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
21
|
-
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof
|
|
22
|
-
export declare const XmlComponents: (typeof HtmlViewComponent | typeof
|
|
23
|
-
export declare const CrocoPipes: (typeof
|
|
24
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
21
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof HtmlRawEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent)[];
|
|
22
|
+
export declare const XmlComponents: (typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent)[];
|
|
23
|
+
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
24
|
+
export declare const CrocoHtmlDeclarations: (typeof VisualEditorComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
25
25
|
export declare const MaterialModules: (typeof MatTabsModule)[];
|
package/lib/services/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class CrocoHtmlFileOptionsService {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.localStorageToken = 'crocoHtmlEditorFileOptions';
|
|
6
|
-
this.defaultOptions = {
|
|
7
|
-
applicationId: null,
|
|
8
|
-
usePrivateFiles: false,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
set(data) {
|
|
12
|
-
localStorage.setItem(this.localStorageToken, JSON.stringify(data));
|
|
13
|
-
}
|
|
14
|
-
get() {
|
|
15
|
-
try {
|
|
16
|
-
const data = localStorage.getItem(this.localStorageToken);
|
|
17
|
-
return data ? JSON.parse(data) : this.defaultOptions;
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
return this.defaultOptions;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CrocoHtmlFileOptionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CrocoHtmlFileOptionsService, providedIn: 'root' }); }
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CrocoHtmlFileOptionsService, decorators: [{
|
|
27
|
-
type: Injectable,
|
|
28
|
-
args: [{
|
|
29
|
-
providedIn: 'root'
|
|
30
|
-
}]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY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VxuIl19
|
/package/lib/services/{croco-html-file-options.service.d.ts → CrocoHtmlFileOptionsService.d.ts}
RENAMED
|
File without changes
|