@semantic-components/editor 0.63.0 → 0.65.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.
- package/esm2022/index.js +2 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/components/editor/editor-align-center-button.js +38 -0
- package/esm2022/lib/components/editor/editor-align-center-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-align-justify-button.js +38 -0
- package/esm2022/lib/components/editor/editor-align-justify-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-align-left-button.js +37 -0
- package/esm2022/lib/components/editor/editor-align-left-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-align-right-button.js +37 -0
- package/esm2022/lib/components/editor/editor-align-right-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-blockquote-button.js +37 -0
- package/esm2022/lib/components/editor/editor-blockquote-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-bold-button.js +37 -0
- package/esm2022/lib/components/editor/editor-bold-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-bullet-list-button.js +37 -0
- package/esm2022/lib/components/editor/editor-bullet-list-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-char-count.js +40 -0
- package/esm2022/lib/components/editor/editor-char-count.js.map +1 -0
- package/esm2022/lib/components/editor/editor-clear-formatting-button.js +36 -0
- package/esm2022/lib/components/editor/editor-clear-formatting-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-code-button.js +46 -0
- package/esm2022/lib/components/editor/editor-code-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-content.js +78 -0
- package/esm2022/lib/components/editor/editor-content.js.map +1 -0
- package/esm2022/lib/components/editor/editor-count.js +27 -0
- package/esm2022/lib/components/editor/editor-count.js.map +1 -0
- package/esm2022/lib/components/editor/editor-footer.js +27 -0
- package/esm2022/lib/components/editor/editor-footer.js.map +1 -0
- package/esm2022/lib/components/editor/editor-header.js +27 -0
- package/esm2022/lib/components/editor/editor-header.js.map +1 -0
- package/esm2022/lib/components/editor/editor-heading-select.js +48 -0
- package/esm2022/lib/components/editor/editor-heading-select.js.map +1 -0
- package/esm2022/lib/components/editor/editor-horizontal-rule-button.js +36 -0
- package/esm2022/lib/components/editor/editor-horizontal-rule-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-italic-button.js +37 -0
- package/esm2022/lib/components/editor/editor-italic-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-link-button.js +52 -0
- package/esm2022/lib/components/editor/editor-link-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-numbered-list-button.js +37 -0
- package/esm2022/lib/components/editor/editor-numbered-list-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-redo-button.js +36 -0
- package/esm2022/lib/components/editor/editor-redo-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-separator.js +23 -0
- package/esm2022/lib/components/editor/editor-separator.js.map +1 -0
- package/esm2022/lib/components/editor/editor-strikethrough-button.js +37 -0
- package/esm2022/lib/components/editor/editor-strikethrough-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-toolbar-group.js +27 -0
- package/esm2022/lib/components/editor/editor-toolbar-group.js.map +1 -0
- package/esm2022/lib/components/editor/editor-toolbar.js +29 -0
- package/esm2022/lib/components/editor/editor-toolbar.js.map +1 -0
- package/esm2022/lib/components/editor/editor-underline-button.js +37 -0
- package/esm2022/lib/components/editor/editor-underline-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-undo-button.js +36 -0
- package/esm2022/lib/components/editor/editor-undo-button.js.map +1 -0
- package/esm2022/lib/components/editor/editor-word-count.js +42 -0
- package/esm2022/lib/components/editor/editor-word-count.js.map +1 -0
- package/esm2022/lib/components/editor/editor.js +197 -0
- package/esm2022/lib/components/editor/editor.js.map +1 -0
- package/{src/lib/components/editor/index.ts → esm2022/lib/components/editor/index.js} +1 -8
- package/esm2022/lib/components/editor/index.js.map +1 -0
- package/esm2022/lib/components/index.js +2 -0
- package/esm2022/lib/components/index.js.map +1 -0
- package/esm2022/semantic-components-editor.js +5 -0
- package/esm2022/semantic-components-editor.js.map +1 -0
- package/lib/components/editor/editor-align-center-button.d.ts +9 -0
- package/lib/components/editor/editor-align-justify-button.d.ts +9 -0
- package/lib/components/editor/editor-align-left-button.d.ts +9 -0
- package/lib/components/editor/editor-align-right-button.d.ts +9 -0
- package/lib/components/editor/editor-blockquote-button.d.ts +9 -0
- package/lib/components/editor/editor-bold-button.d.ts +9 -0
- package/lib/components/editor/editor-bullet-list-button.d.ts +9 -0
- package/lib/components/editor/editor-char-count.d.ts +10 -0
- package/lib/components/editor/editor-clear-formatting-button.d.ts +9 -0
- package/lib/components/editor/editor-code-button.d.ts +9 -0
- package/lib/components/editor/editor-content.d.ts +18 -0
- package/lib/components/editor/editor-count.d.ts +7 -0
- package/lib/components/editor/editor-footer.d.ts +7 -0
- package/lib/components/editor/editor-header.d.ts +7 -0
- package/lib/components/editor/editor-heading-select.d.ts +9 -0
- package/lib/components/editor/editor-horizontal-rule-button.d.ts +9 -0
- package/lib/components/editor/editor-italic-button.d.ts +9 -0
- package/lib/components/editor/editor-link-button.d.ts +9 -0
- package/lib/components/editor/editor-numbered-list-button.d.ts +9 -0
- package/lib/components/editor/editor-redo-button.d.ts +9 -0
- package/lib/components/editor/editor-separator.d.ts +7 -0
- package/lib/components/editor/editor-strikethrough-button.d.ts +9 -0
- package/lib/components/editor/editor-toolbar-group.d.ts +7 -0
- package/lib/components/editor/editor-toolbar.d.ts +7 -0
- package/lib/components/editor/editor-underline-button.d.ts +9 -0
- package/lib/components/editor/editor-undo-button.d.ts +9 -0
- package/lib/components/editor/editor-word-count.d.ts +10 -0
- package/lib/components/editor/editor.d.ts +29 -0
- package/lib/components/editor/index.d.ts +28 -0
- package/package.json +15 -3
- package/semantic-components-editor.d.ts +5 -0
- package/eslint.config.mjs +0 -48
- package/ng-package.json +0 -8
- package/project.json +0 -28
- package/src/lib/components/editor/README.md +0 -354
- package/src/lib/components/editor/editor-align-center-button.ts +0 -45
- package/src/lib/components/editor/editor-align-justify-button.ts +0 -45
- package/src/lib/components/editor/editor-align-left-button.ts +0 -44
- package/src/lib/components/editor/editor-align-right-button.ts +0 -44
- package/src/lib/components/editor/editor-blockquote-button.ts +0 -44
- package/src/lib/components/editor/editor-bold-button.ts +0 -44
- package/src/lib/components/editor/editor-bullet-list-button.ts +0 -44
- package/src/lib/components/editor/editor-char-count.ts +0 -42
- package/src/lib/components/editor/editor-clear-formatting-button.ts +0 -42
- package/src/lib/components/editor/editor-code-button.ts +0 -52
- package/src/lib/components/editor/editor-content.ts +0 -107
- package/src/lib/components/editor/editor-count.ts +0 -28
- package/src/lib/components/editor/editor-footer.ts +0 -30
- package/src/lib/components/editor/editor-header.ts +0 -27
- package/src/lib/components/editor/editor-heading-select.ts +0 -48
- package/src/lib/components/editor/editor-horizontal-rule-button.ts +0 -42
- package/src/lib/components/editor/editor-italic-button.ts +0 -44
- package/src/lib/components/editor/editor-link-button.ts +0 -58
- package/src/lib/components/editor/editor-numbered-list-button.ts +0 -44
- package/src/lib/components/editor/editor-redo-button.ts +0 -42
- package/src/lib/components/editor/editor-separator.ts +0 -25
- package/src/lib/components/editor/editor-strikethrough-button.ts +0 -44
- package/src/lib/components/editor/editor-toolbar-group.ts +0 -27
- package/src/lib/components/editor/editor-toolbar.ts +0 -32
- package/src/lib/components/editor/editor-underline-button.ts +0 -44
- package/src/lib/components/editor/editor-undo-button.ts +0 -42
- package/src/lib/components/editor/editor-word-count.ts +0 -43
- package/src/lib/components/editor/editor.ts +0 -211
- package/tsconfig.json +0 -28
- package/tsconfig.lib.json +0 -12
- package/tsconfig.lib.prod.json +0 -7
- /package/{src/index.ts → index.d.ts} +0 -0
- /package/{src/lib/components/index.ts → lib/components/index.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorHorizontalRuleButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorHorizontalRuleButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorHorizontalRuleButton, "button[sc-editor-horizontal-rule]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorItalicButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorItalicButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorItalicButton, "button[sc-editor-italic]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorLinkButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorLinkButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorLinkButton, "button[sc-editor-link]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorNumberedListButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorNumberedListButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorNumberedListButton, "button[sc-editor-numbered-list]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorRedoButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorRedoButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorRedoButton, "button[sc-editor-redo]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorSeparator {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorSeparator, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorSeparator, "div[sc-editor-separator]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorStrikethroughButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorStrikethroughButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorStrikethroughButton, "button[sc-editor-strikethrough]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorToolbarGroup {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorToolbarGroup, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorToolbarGroup, "div[sc-editor-toolbar-group]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorToolbar {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorToolbar, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorToolbar, "div[sc-editor-toolbar]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorUnderlineButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorUnderlineButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorUnderlineButton, "button[sc-editor-underline]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorUndoButton {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorUndoButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorUndoButton, "button[sc-editor-undo]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScEditorWordCount {
|
|
3
|
+
readonly editor: import("@semantic-components/editor").ScEditor;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
protected readonly wordCount: import("@angular/core").Signal<number>;
|
|
7
|
+
private getPlainText;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditorWordCount, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScEditorWordCount, "span[sc-editor-word-count]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type ScEditorAlignment = 'left' | 'center' | 'right' | 'justify';
|
|
5
|
+
export type ScEditorHeading = 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
6
|
+
export declare const SC_EDITOR: InjectionToken<ScEditor>;
|
|
7
|
+
export declare class ScEditor {
|
|
8
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
readonly isBold: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
readonly isItalic: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
readonly isUnderline: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
readonly isStrikethrough: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
readonly isOrderedList: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
readonly isUnorderedList: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
readonly isBlockquote: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
readonly alignment: import("@angular/core").WritableSignal<ScEditorAlignment>;
|
|
18
|
+
readonly currentHeading: import("@angular/core").WritableSignal<ScEditorHeading>;
|
|
19
|
+
readonly canUndo: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
readonly canRedo: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
readonly contentElement: import("@angular/core").WritableSignal<HTMLElement | null>;
|
|
22
|
+
readonly editorInstance: import("@angular/core").WritableSignal<Editor | null>;
|
|
23
|
+
initializeEditor(element: HTMLElement, initialContent: string, placeholder?: string): void;
|
|
24
|
+
execCommand(command: string, value?: string): void;
|
|
25
|
+
destroyEditor(): void;
|
|
26
|
+
updateToolbarState(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScEditor, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScEditor, "[sc-editor]", ["scEditor"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './editor';
|
|
2
|
+
export * from './editor-content';
|
|
3
|
+
export * from './editor-toolbar';
|
|
4
|
+
export * from './editor-toolbar-group';
|
|
5
|
+
export * from './editor-header';
|
|
6
|
+
export * from './editor-footer';
|
|
7
|
+
export * from './editor-separator';
|
|
8
|
+
export * from './editor-bold-button';
|
|
9
|
+
export * from './editor-italic-button';
|
|
10
|
+
export * from './editor-underline-button';
|
|
11
|
+
export * from './editor-strikethrough-button';
|
|
12
|
+
export * from './editor-undo-button';
|
|
13
|
+
export * from './editor-redo-button';
|
|
14
|
+
export * from './editor-align-left-button';
|
|
15
|
+
export * from './editor-align-center-button';
|
|
16
|
+
export * from './editor-align-right-button';
|
|
17
|
+
export * from './editor-align-justify-button';
|
|
18
|
+
export * from './editor-bullet-list-button';
|
|
19
|
+
export * from './editor-numbered-list-button';
|
|
20
|
+
export * from './editor-link-button';
|
|
21
|
+
export * from './editor-blockquote-button';
|
|
22
|
+
export * from './editor-code-button';
|
|
23
|
+
export * from './editor-horizontal-rule-button';
|
|
24
|
+
export * from './editor-clear-formatting-button';
|
|
25
|
+
export * from './editor-heading-select';
|
|
26
|
+
export * from './editor-count';
|
|
27
|
+
export * from './editor-word-count';
|
|
28
|
+
export * from './editor-char-count';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-components/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@angular/core": ">=21.1.0",
|
|
17
|
-
"@semantic-components/ui": "0.
|
|
17
|
+
"@semantic-components/ui": "0.65.0",
|
|
18
18
|
"@tiptap/core": ">=3.18.0",
|
|
19
19
|
"@tiptap/extension-placeholder": ">=3.18.0",
|
|
20
20
|
"@tiptap/extension-text-align": ">=3.18.0",
|
|
@@ -23,7 +23,19 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
"./styles": {
|
|
25
25
|
"default": "./src/lib/styles/index.css"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": {
|
|
28
|
+
"default": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./semantic-components-editor.d.ts",
|
|
32
|
+
"default": "./esm2022/semantic-components-editor.js"
|
|
26
33
|
}
|
|
27
34
|
},
|
|
28
|
-
"sideEffects": false
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"module": "esm2022/semantic-components-editor.js",
|
|
37
|
+
"typings": "semantic-components-editor.d.ts",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"tslib": "^2.3.0"
|
|
40
|
+
}
|
|
29
41
|
}
|
package/eslint.config.mjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import nx from '@nx/eslint-plugin';
|
|
2
|
-
import baseConfig from '../../eslint.config.mjs';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
...baseConfig,
|
|
6
|
-
{
|
|
7
|
-
files: ['**/*.json'],
|
|
8
|
-
rules: {
|
|
9
|
-
'@nx/dependency-checks': [
|
|
10
|
-
'error',
|
|
11
|
-
{
|
|
12
|
-
ignoredFiles: ['{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}'],
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
languageOptions: {
|
|
17
|
-
parser: await import('jsonc-eslint-parser'),
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
...nx.configs['flat/angular'],
|
|
21
|
-
...nx.configs['flat/angular-template'],
|
|
22
|
-
{
|
|
23
|
-
files: ['**/*.ts'],
|
|
24
|
-
rules: {
|
|
25
|
-
'@angular-eslint/directive-selector': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
type: 'attribute',
|
|
29
|
-
prefix: 'sc',
|
|
30
|
-
style: 'camelCase',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
'@angular-eslint/component-selector': [
|
|
34
|
-
'error',
|
|
35
|
-
{
|
|
36
|
-
type: 'element',
|
|
37
|
-
prefix: 'sc',
|
|
38
|
-
style: 'kebab-case',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
files: ['**/*.html'],
|
|
45
|
-
// Override or add rules here
|
|
46
|
-
rules: {},
|
|
47
|
-
},
|
|
48
|
-
];
|
package/ng-package.json
DELETED
package/project.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "editor",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "libs/editor/src",
|
|
5
|
-
"prefix": "sc",
|
|
6
|
-
"projectType": "library",
|
|
7
|
-
"tags": [],
|
|
8
|
-
"targets": {
|
|
9
|
-
"build": {
|
|
10
|
-
"executor": "@nx/angular:ng-packagr-lite",
|
|
11
|
-
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
|
|
12
|
-
"options": {
|
|
13
|
-
"project": "libs/editor/ng-package.json",
|
|
14
|
-
"tsConfig": "libs/editor/tsconfig.lib.json"
|
|
15
|
-
},
|
|
16
|
-
"configurations": {
|
|
17
|
-
"production": {
|
|
18
|
-
"tsConfig": "libs/editor/tsconfig.lib.prod.json"
|
|
19
|
-
},
|
|
20
|
-
"development": {}
|
|
21
|
-
},
|
|
22
|
-
"defaultConfiguration": "production"
|
|
23
|
-
},
|
|
24
|
-
"lint": {
|
|
25
|
-
"executor": "@nx/eslint:lint"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|