@morfira-dev/wysiwyg-angular 0.0.0-stage → 0.1.0-bootstrap.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/LICENSE +21 -0
- package/dist/LICENSE +21 -0
- package/dist/editor.d.ts +34 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +7 -0
- package/dist/types.d.ts +6 -0
- package/package.json +45 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Morfira contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Morfira contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/editor.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import type { Editor, EditorChange, EditorPlugin } from '@morfira-dev/wysiwyg-core';
|
|
3
|
+
import type { AngularTouched, AngularValueChange, MorfiraEditorHandle } from './types.js';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MorfiraEditor implements ControlValueAccessor, MorfiraEditorHandle {
|
|
6
|
+
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
readonly readOnly: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
readonly locale: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly translations: import("@angular/core").InputSignal<Readonly<Record<string, string>>>;
|
|
10
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
11
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
12
|
+
readonly plugins: import("@angular/core").InputSignal<EditorPlugin[]>;
|
|
13
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
14
|
+
readonly change: import("@angular/core").OutputEmitterRef<EditorChange>;
|
|
15
|
+
readonly ready: import("@angular/core").OutputEmitterRef<Editor>;
|
|
16
|
+
private readonly host;
|
|
17
|
+
private readonly destroyRef;
|
|
18
|
+
private readonly disabled;
|
|
19
|
+
private instance;
|
|
20
|
+
private formValue;
|
|
21
|
+
private applying;
|
|
22
|
+
private onValue;
|
|
23
|
+
private onTouched;
|
|
24
|
+
private removeBlur;
|
|
25
|
+
constructor();
|
|
26
|
+
readonly getEditor: () => Editor | undefined;
|
|
27
|
+
readonly writeValue: (value: unknown) => void;
|
|
28
|
+
readonly registerOnChange: (callback: AngularValueChange) => void;
|
|
29
|
+
readonly registerOnTouched: (callback: AngularTouched) => void;
|
|
30
|
+
readonly setDisabledState: (disabled: boolean) => void;
|
|
31
|
+
private readonly replace;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MorfiraEditor, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MorfiraEditor, "morfira-editor", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "change": "change"; "ready": "ready"; }, never, never, true, never>;
|
|
34
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{afterNextRender as p,Component as h,DestroyRef as g,effect as m,ElementRef as f,forwardRef as u,inject as o,input as s,output as r,signal as y,untracked as v}from"@angular/core";import{NG_VALUE_ACCESSOR as d}from"@angular/forms";import{createEditor as b}from"@morfira-dev/wysiwyg-core";import*as e from"@angular/core";var n=class l{value=s(...ngDevMode?[void 0,{debugName:"value"}]:[]);readOnly=s(!1,...ngDevMode?[{debugName:"readOnly"}]:[]);locale=s("ru",...ngDevMode?[{debugName:"locale"}]:[]);translations=s({},...ngDevMode?[{debugName:"translations"}]:[]);placeholder=s(...ngDevMode?[void 0,{debugName:"placeholder"}]:[]);label=s(...ngDevMode?[void 0,{debugName:"label"}]:[]);plugins=s([],...ngDevMode?[{debugName:"plugins"}]:[]);valueChange=r();change=r();ready=r();host=o(f);destroyRef=o(g);disabled=y(!1,...ngDevMode?[{debugName:"disabled"}]:[]);instance;formValue;applying=!1;onValue=()=>{};onTouched=()=>{};removeBlur;constructor(){m(()=>{let t=this.value(),i=this.readOnly()||this.disabled(),a=this.locale(),c=this.translations();v(()=>{this.instance?.setReadOnly(i),this.instance?.setLocale(a,c),this.formValue===void 0&&t!==void 0&&this.replace(t)})}),p(()=>{if(this.destroyRef.destroyed)return;let t=this.host.nativeElement.querySelector(".mw-host");this.instance=b(t,{value:this.formValue??this.value()??"",readOnly:this.readOnly()||this.disabled(),locale:this.locale(),translations:this.translations(),placeholder:this.placeholder(),label:this.label(),plugins:this.plugins(),onChange:a=>{this.applying||(this.onValue(a.html),this.valueChange.emit(a.html),this.change.emit(a))}});let i=a=>{(!(a.relatedTarget instanceof Node)||!this.host.nativeElement.contains(a.relatedTarget))&&this.onTouched()};this.host.nativeElement.addEventListener("focusout",i),this.removeBlur=()=>this.host.nativeElement.removeEventListener("focusout",i),this.ready.emit(this.instance)}),this.destroyRef.onDestroy(()=>{let t=this.instance,i=this.removeBlur;this.instance=void 0,this.removeBlur=void 0;try{i?.()}finally{t?.destroy()}})}getEditor=()=>this.instance;writeValue=t=>{if(t!=null&&typeof t!="string")throw new TypeError("The Angular editor value must be a string or null.");this.formValue=t??"",this.replace(this.formValue)};registerOnChange=t=>{this.onValue=t};registerOnTouched=t=>{this.onTouched=t};setDisabledState=t=>{this.disabled.set(t),this.instance?.setReadOnly(t||this.readOnly())};replace=t=>{if(!(!this.instance||t===this.instance.getHTML())){this.applying=!0;try{this.instance.setHTML(t)}finally{this.applying=!1}}};static \u0275fac=e.\u0275\u0275ngDeclareFactory({minVersion:"12.0.0",version:"21.2.26",ngImport:e,type:l,deps:[],target:e.\u0275\u0275FactoryTarget.Component});static \u0275cmp=e.\u0275\u0275ngDeclareComponent({minVersion:"17.1.0",version:"21.2.26",type:l,isStandalone:!0,selector:"morfira-editor",inputs:{value:{classPropertyName:"value",publicName:"value",isSignal:!0,isRequired:!1,transformFunction:null},readOnly:{classPropertyName:"readOnly",publicName:"readOnly",isSignal:!0,isRequired:!1,transformFunction:null},locale:{classPropertyName:"locale",publicName:"locale",isSignal:!0,isRequired:!1,transformFunction:null},translations:{classPropertyName:"translations",publicName:"translations",isSignal:!0,isRequired:!1,transformFunction:null},placeholder:{classPropertyName:"placeholder",publicName:"placeholder",isSignal:!0,isRequired:!1,transformFunction:null},label:{classPropertyName:"label",publicName:"label",isSignal:!0,isRequired:!1,transformFunction:null},plugins:{classPropertyName:"plugins",publicName:"plugins",isSignal:!0,isRequired:!1,transformFunction:null}},outputs:{valueChange:"valueChange",change:"change",ready:"ready"},providers:[{provide:d,useExisting:u(()=>l),multi:!0}],ngImport:e,template:'<div class="mw-host"></div>',isInline:!0})};e.\u0275\u0275ngDeclareClassMetadata({minVersion:"12.0.0",version:"21.2.26",ngImport:e,type:n,decorators:[{type:h,args:[{selector:"morfira-editor",standalone:!0,template:'<div class="mw-host"></div>',providers:[{provide:d,useExisting:u(()=>n),multi:!0}]}]}],ctorParameters:()=>[],propDecorators:{value:[{type:e.Input,args:[{isSignal:!0,alias:"value",required:!1}]}],readOnly:[{type:e.Input,args:[{isSignal:!0,alias:"readOnly",required:!1}]}],locale:[{type:e.Input,args:[{isSignal:!0,alias:"locale",required:!1}]}],translations:[{type:e.Input,args:[{isSignal:!0,alias:"translations",required:!1}]}],placeholder:[{type:e.Input,args:[{isSignal:!0,alias:"placeholder",required:!1}]}],label:[{type:e.Input,args:[{isSignal:!0,alias:"label",required:!1}]}],plugins:[{type:e.Input,args:[{isSignal:!0,alias:"plugins",required:!1}]}],valueChange:[{type:e.Output,args:["valueChange"]}],change:[{type:e.Output,args:["change"]}],ready:[{type:e.Output,args:["ready"]}]}});export{n as MorfiraEditor};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../artifacts/angular/library/editor.js"],
|
|
4
|
+
"sourcesContent": ["import { afterNextRender, Component, DestroyRef, effect, ElementRef, forwardRef, inject, input, output, signal, untracked } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { createEditor } from '@morfira-dev/wysiwyg-core';\nimport * as i0 from \"@angular/core\";\nexport class MorfiraEditor {\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n readOnly = input(false, ...(ngDevMode ? [{ debugName: \"readOnly\" }] : /* istanbul ignore next */ []));\n locale = input('ru', ...(ngDevMode ? [{ debugName: \"locale\" }] : /* istanbul ignore next */ []));\n translations = input({}, ...(ngDevMode ? [{ debugName: \"translations\" }] : /* istanbul ignore next */ []));\n placeholder = input(...(ngDevMode ? [undefined, { debugName: \"placeholder\" }] : /* istanbul ignore next */ []));\n label = input(...(ngDevMode ? [undefined, { debugName: \"label\" }] : /* istanbul ignore next */ []));\n plugins = input([], ...(ngDevMode ? [{ debugName: \"plugins\" }] : /* istanbul ignore next */ []));\n valueChange = output();\n change = output();\n ready = output();\n host = inject(ElementRef);\n destroyRef = inject(DestroyRef);\n disabled = signal(false, ...(ngDevMode ? [{ debugName: \"disabled\" }] : /* istanbul ignore next */ []));\n instance;\n formValue;\n applying = false;\n onValue = () => { };\n onTouched = () => { };\n removeBlur;\n constructor() {\n effect(() => {\n const value = this.value();\n const readOnly = this.readOnly() || this.disabled();\n const locale = this.locale();\n const translations = this.translations();\n untracked(() => {\n this.instance?.setReadOnly(readOnly);\n this.instance?.setLocale(locale, translations);\n if (this.formValue === undefined && value !== undefined)\n this.replace(value);\n });\n });\n afterNextRender(() => {\n if (this.destroyRef.destroyed)\n return;\n const target = this.host.nativeElement.querySelector('.mw-host');\n this.instance = createEditor(target, {\n value: this.formValue ?? this.value() ?? '',\n readOnly: this.readOnly() || this.disabled(),\n locale: this.locale(), translations: this.translations(),\n placeholder: this.placeholder(), label: this.label(), plugins: this.plugins(),\n onChange: (change) => {\n if (this.applying)\n return;\n this.onValue(change.html);\n this.valueChange.emit(change.html);\n this.change.emit(change);\n },\n });\n const blur = (event) => {\n if (!(event.relatedTarget instanceof Node) || !this.host.nativeElement.contains(event.relatedTarget))\n this.onTouched();\n };\n this.host.nativeElement.addEventListener('focusout', blur);\n this.removeBlur = () => this.host.nativeElement.removeEventListener('focusout', blur);\n this.ready.emit(this.instance);\n });\n this.destroyRef.onDestroy(() => {\n const previous = this.instance;\n const removeBlur = this.removeBlur;\n this.instance = undefined;\n this.removeBlur = undefined;\n try {\n removeBlur?.();\n }\n finally {\n previous?.destroy();\n }\n });\n }\n getEditor = () => this.instance;\n writeValue = (value) => {\n if (value !== null && value !== undefined && typeof value !== 'string')\n throw new TypeError('The Angular editor value must be a string or null.');\n this.formValue = value ?? '';\n this.replace(this.formValue);\n };\n registerOnChange = (callback) => {\n this.onValue = callback;\n };\n registerOnTouched = (callback) => {\n this.onTouched = callback;\n };\n setDisabledState = (disabled) => {\n this.disabled.set(disabled);\n this.instance?.setReadOnly(disabled || this.readOnly());\n };\n replace = (value) => {\n if (!this.instance || value === this.instance.getHTML())\n return;\n this.applying = true;\n try {\n this.instance.setHTML(value);\n }\n finally {\n this.applying = false;\n }\n };\n static \u0275fac = i0.\u0275\u0275ngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.26\", ngImport: i0, type: MorfiraEditor, deps: [], target: i0.\u0275\u0275FactoryTarget.Component });\n static \u0275cmp = i0.\u0275\u0275ngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.26\", type: MorfiraEditor, isStandalone: true, selector: \"morfira-editor\", inputs: { value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: \"readOnly\", publicName: \"readOnly\", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: \"locale\", publicName: \"locale\", isSignal: true, isRequired: false, transformFunction: null }, translations: { classPropertyName: \"translations\", publicName: \"translations\", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: \"placeholder\", publicName: \"placeholder\", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: \"label\", publicName: \"label\", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: \"plugins\", publicName: \"plugins\", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: \"valueChange\", change: \"change\", ready: \"ready\" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MorfiraEditor), multi: true }], ngImport: i0, template: '<div class=\"mw-host\"></div>', isInline: true });\n}\ni0.\u0275\u0275ngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.26\", ngImport: i0, type: MorfiraEditor, decorators: [{\n type: Component,\n args: [{\n selector: 'morfira-editor',\n standalone: true,\n template: '<div class=\"mw-host\"></div>',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MorfiraEditor), multi: true }],\n }]\n }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: \"readOnly\", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: \"locale\", required: false }] }], translations: [{ type: i0.Input, args: [{ isSignal: true, alias: \"translations\", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: \"placeholder\", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: \"label\", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: \"plugins\", required: false }] }], valueChange: [{ type: i0.Output, args: [\"valueChange\"] }], change: [{ type: i0.Output, args: [\"change\"] }], ready: [{ type: i0.Output, args: [\"ready\"] }] } });\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,mBAAAA,EAAiB,aAAAC,EAAW,cAAAC,EAAY,UAAAC,EAAQ,cAAAC,EAAY,cAAAC,EAAY,UAAAC,EAAQ,SAAAC,EAAO,UAAAC,EAAQ,UAAAC,EAAQ,aAAAC,MAAiB,gBACjI,OAAS,qBAAAC,MAAyB,iBAClC,OAAS,gBAAAC,MAAoB,4BAC7B,UAAYC,MAAQ,gBACb,IAAMC,EAAN,MAAMC,CAAc,CACvB,MAAQR,EAAM,GAAI,UAAY,CAAC,OAAW,CAAE,UAAW,OAAQ,CAAC,EAA+B,CAAC,CAAE,EAClG,SAAWA,EAAM,GAAO,GAAI,UAAY,CAAC,CAAE,UAAW,UAAW,CAAC,EAA+B,CAAC,CAAE,EACpG,OAASA,EAAM,KAAM,GAAI,UAAY,CAAC,CAAE,UAAW,QAAS,CAAC,EAA+B,CAAC,CAAE,EAC/F,aAAeA,EAAM,CAAC,EAAG,GAAI,UAAY,CAAC,CAAE,UAAW,cAAe,CAAC,EAA+B,CAAC,CAAE,EACzG,YAAcA,EAAM,GAAI,UAAY,CAAC,OAAW,CAAE,UAAW,aAAc,CAAC,EAA+B,CAAC,CAAE,EAC9G,MAAQA,EAAM,GAAI,UAAY,CAAC,OAAW,CAA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,SAAU,CAAC,CAAE,KAAS,QAAO,KAAM,CAAC,CAAE,SAAU,GAAM,MAAO,WAAY,SAAU,EAAM,CAAC,CAAE,CAAC,EAAG,OAAQ,CAAC,CAAE,KAAS,QAAO,KAAM,CAAC,CAAE,SAAU,GAAM,MAAO,SAAU,SAAU,EAAM,CAAC,CAAE,CAAC,EAAG,aAAc,CAAC,CAAE,KAAS,QAAO,KAAM,CAAC,CAAE,SAAU,GAAM,MAAO,eAAgB,SAAU,EAAM,CAAC,CAAE,CAAC,EAAG,YAAa,CAAC,CAAE,KAAS,QAAO,KAAM,CAAC,CAAE,SAAU,GAAM,MAAO,cAAe,SAAU,EAAM,CAAC,CAAE,CAAC,EAAG,MAAO,CAAC,CAAE,KAAS,QAAO,KAAM,CAAC,CAAE,SAAU,GAAM,MAAO,QAAS,SAAU,EAAM,CAAC,CAAE,CAAC,EAAG,QAAS,CAAC,CAAE,KAAS,QAAO,KAAM,CAAC,CAAE,SAAU,GAAM,MAAO,UAAW,SAAU,EAAM,CAAC,CAAE,CAAC,EAAG,YAAa,CAAC,CAAE,KAAS,SAAQ,KAAM,CAAC,aAAa,CAAE,CAAC,EAAG,OAAQ,CAAC,CAAE,KAAS,SAAQ,KAAM,CAAC,QAAQ,CAAE,CAAC,EAAG,MAAO,CAAC,CAAE,KAAS,SAAQ,KAAM,CAAC,OAAO,CAAE,CAAC,CAAE,CAAE,CAAC",
|
|
6
|
+
"names": ["afterNextRender", "Component", "DestroyRef", "effect", "ElementRef", "forwardRef", "inject", "input", "output", "signal", "untracked", "NG_VALUE_ACCESSOR", "createEditor", "i0", "MorfiraEditor", "_MorfiraEditor", "value", "readOnly", "locale", "translations", "target", "change", "blur", "event", "previous", "removeBlur", "callback", "disabled"]
|
|
7
|
+
}
|
package/dist/types.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morfira-dev/wysiwyg-angular",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-bootstrap.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"tag": "bootstrap"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@morfira-dev/wysiwyg-core": "^1.6.0",
|
|
24
|
+
"@angular/core": "^21.0.0 || ^22.0.0",
|
|
25
|
+
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
26
|
+
"@angular/forms": "^21.0.0 || ^22.0.0"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/morfira-dev/morfira-wysiwyg.git",
|
|
31
|
+
"directory": "packages/angular"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/morfira-dev/morfira-wysiwyg#readme",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/morfira-dev/morfira-wysiwyg/issues"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"@angular/core": {
|
|
39
|
+
"optional": true
|
|
40
|
+
},
|
|
41
|
+
"@angular/common": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
"@angular/forms": {
|
|
45
|
+
"optional": true
|
|
46
|
+
}
|
|
47
|
+
}
|
|
6
48
|
}
|
package/README.md
DELETED