@exmg/exm-wysiwyg-editor 1.2.8 → 1.2.9
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/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/actions/anchor/dialog/exm-wysiwyg-toolbar-link-dialog.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor-toolbar-base.d.ts +2 -2
- package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor.stories.d.ts +38 -0
- package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor.stories.js +68 -0
- package/dist/actions/anchor/dialog/exm-wysiwyg-toolbar-link-dialog.d.ts +1 -1
- package/dist/actions/anchor/dialog/exm-wysiwyg-toolbar-link-dialog.js +1 -1
- package/dist/exm-wysiwyg-editor-base.d.ts +1 -1
- package/dist/exm-wysiwyg-editor-base.js +1 -1
- package/dist/exm-wysiwyg-editor-toolbar-base.d.ts +2 -2
- package/dist/exm-wysiwyg-editor-toolbar-base.js +1 -1
- package/dist/exm-wysiwyg-editor-toolbar.js +1 -1
- package/dist/exm-wysiwyg-editor.js +1 -1
- package/dist/exm-wysiwyg-editor.stories.d.ts +38 -0
- package/dist/node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js +31 -0
- package/package.json +2 -2
package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor-base.d.ts
CHANGED
|
@@ -62,6 +62,6 @@ export declare class WysiwygEditorElementBase extends WysiwygBaseClass {
|
|
|
62
62
|
private handleEditorTransaction;
|
|
63
63
|
private handleBlur;
|
|
64
64
|
private handleFocus;
|
|
65
|
-
protected render(): import("lit
|
|
65
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
66
66
|
}
|
|
67
67
|
export {};
|
|
@@ -13,6 +13,6 @@ export declare class WysiwygEditorToolbarBase extends ExmgElement {
|
|
|
13
13
|
private handleSelectionUpdate;
|
|
14
14
|
protected firstUpdated(): void;
|
|
15
15
|
disconnectedCallback(): void;
|
|
16
|
-
renderActionButtons(): typeof nothing | import("lit
|
|
17
|
-
protected render(): import("lit
|
|
16
|
+
renderActionButtons(): typeof nothing | import("lit").TemplateResult<1>[];
|
|
17
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
18
18
|
}
|
package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor.stories.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { WysiwygEditorElement } from './exm-wysiwyg-editor.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import './exm-wysiwyg-editor.js';
|
|
5
|
+
export declare class WysiwygDemo extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
constructor();
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare const meta: {
|
|
11
|
+
title: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
render: (args: WysiwygEditorElement) => import("lit").TemplateResult<1>;
|
|
14
|
+
argTypes: {
|
|
15
|
+
label: {
|
|
16
|
+
control: "text";
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
control: "text";
|
|
20
|
+
};
|
|
21
|
+
supportingText: {
|
|
22
|
+
control: "text";
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
control: "text";
|
|
26
|
+
};
|
|
27
|
+
mode: {
|
|
28
|
+
control: "select";
|
|
29
|
+
options: string[];
|
|
30
|
+
};
|
|
31
|
+
disabled: {
|
|
32
|
+
control: "boolean";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<WysiwygEditorElement>;
|
|
38
|
+
export declare const Default: Story;
|
package/.rollup.cache/root/repo/packages/exm-wysiwyg-editor/dist/exm-wysiwyg-editor.stories.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { customElement } from 'lit/decorators.js';
|
|
4
|
+
import { faker } from '@faker-js/faker';
|
|
5
|
+
import './exm-wysiwyg-editor.js';
|
|
6
|
+
let WysiwygDemo = class WysiwygDemo extends LitElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return html `
|
|
12
|
+
<div class="frame">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</div>
|
|
15
|
+
`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
WysiwygDemo.styles = [
|
|
19
|
+
css `
|
|
20
|
+
.frame {
|
|
21
|
+
display: grid;
|
|
22
|
+
height: 550px;
|
|
23
|
+
}
|
|
24
|
+
`,
|
|
25
|
+
];
|
|
26
|
+
WysiwygDemo = __decorate([
|
|
27
|
+
customElement('demo-wysiwyg')
|
|
28
|
+
], WysiwygDemo);
|
|
29
|
+
export { WysiwygDemo };
|
|
30
|
+
const buildExamples = () => {
|
|
31
|
+
const exampleTags = ['h1', 'h2', 'h3', 'b', 'i', 's', 'u'];
|
|
32
|
+
return exampleTags.reduce((acc, cc) => cc && acc + `<${cc}>${faker.lorem.word()}</${cc}> `, '');
|
|
33
|
+
};
|
|
34
|
+
const meta = {
|
|
35
|
+
title: 'Packages/Wysiwyg Editor',
|
|
36
|
+
tags: ['autodocs'],
|
|
37
|
+
render: (args) => html `
|
|
38
|
+
<demo-wysiwyg>
|
|
39
|
+
<exm-wysiwyg-editor
|
|
40
|
+
label=${args.label}
|
|
41
|
+
name=${args.name}
|
|
42
|
+
supporting-text=${args.supportingText}
|
|
43
|
+
value=${args.value}
|
|
44
|
+
mode=${args.mode}
|
|
45
|
+
?disabled=${args.disabled}
|
|
46
|
+
></exm-wysiwyg-editor>
|
|
47
|
+
</demo-wysiwyg>
|
|
48
|
+
`,
|
|
49
|
+
argTypes: {
|
|
50
|
+
label: { control: 'text' },
|
|
51
|
+
name: { control: 'text' },
|
|
52
|
+
supportingText: { control: 'text' },
|
|
53
|
+
value: { control: 'text' },
|
|
54
|
+
mode: {
|
|
55
|
+
control: 'select',
|
|
56
|
+
options: ['md', 'html'],
|
|
57
|
+
},
|
|
58
|
+
disabled: { control: 'boolean' },
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
export default meta;
|
|
62
|
+
export const Default = {
|
|
63
|
+
args: {
|
|
64
|
+
value: buildExamples(),
|
|
65
|
+
mode: 'html',
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=exm-wysiwyg-editor.stories.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from '../../../node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators/custom-element.js';
|
|
3
3
|
import { styles } from './exm-wysiwyg-toolbar-dialog-css.js';
|
|
4
4
|
import { html } from 'lit';
|
|
@@ -62,6 +62,6 @@ export declare class WysiwygEditorElementBase extends WysiwygBaseClass {
|
|
|
62
62
|
private handleEditorTransaction;
|
|
63
63
|
private handleBlur;
|
|
64
64
|
private handleFocus;
|
|
65
|
-
protected render(): import("lit
|
|
65
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
66
66
|
}
|
|
67
67
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { nothing, html } from 'lit';
|
|
3
3
|
import { Editor } from '@tiptap/core';
|
|
4
4
|
import Document from '@tiptap/extension-document';
|
|
@@ -13,6 +13,6 @@ export declare class WysiwygEditorToolbarBase extends ExmgElement {
|
|
|
13
13
|
private handleSelectionUpdate;
|
|
14
14
|
protected firstUpdated(): void;
|
|
15
15
|
disconnectedCallback(): void;
|
|
16
|
-
renderActionButtons(): typeof nothing | import("lit
|
|
17
|
-
protected render(): import("lit
|
|
16
|
+
renderActionButtons(): typeof nothing | import("lit").TemplateResult<1>[];
|
|
17
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { nothing, html } from 'lit';
|
|
3
3
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { WysiwygEditorToolbarBase } from './exm-wysiwyg-editor-toolbar-base.js';
|
|
4
4
|
import { style } from './styles/exm-wysiwyg-editor-toolbar-css.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { WysiwygEditorElementBase } from './exm-wysiwyg-editor-base.js';
|
|
4
4
|
import { style } from './styles/exm-wysiwyg-editor-css.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { WysiwygEditorElement } from './exm-wysiwyg-editor.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import './exm-wysiwyg-editor.js';
|
|
5
|
+
export declare class WysiwygDemo extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
constructor();
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare const meta: {
|
|
11
|
+
title: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
render: (args: WysiwygEditorElement) => import("lit").TemplateResult<1>;
|
|
14
|
+
argTypes: {
|
|
15
|
+
label: {
|
|
16
|
+
control: "text";
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
control: "text";
|
|
20
|
+
};
|
|
21
|
+
supportingText: {
|
|
22
|
+
control: "text";
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
control: "text";
|
|
26
|
+
};
|
|
27
|
+
mode: {
|
|
28
|
+
control: "select";
|
|
29
|
+
options: string[];
|
|
30
|
+
};
|
|
31
|
+
disabled: {
|
|
32
|
+
control: "boolean";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<WysiwygEditorElement>;
|
|
38
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function __decorate(decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
26
|
+
var e = new Error(message);
|
|
27
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { __decorate };
|
|
31
|
+
//# sourceMappingURL=tslib.es6.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-wysiwyg-editor",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "c27c4ffabda0c6a509df58537017af65719d1e57"
|
|
71
71
|
}
|