sykpcomposer 0.0.24 → 0.0.26
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/README.md +4 -0
- package/dist/assets/icons/3-columns.svg +3 -3
- package/dist/assets/icons/LICENSE.md +5 -5
- package/dist/assets/icons/add-sign.svg +3 -3
- package/dist/assets/icons/file-earmark-text.svg +3 -3
- package/dist/assets/icons/minus-sign.svg +3 -3
- package/dist/assets/icons/scissors.svg +2 -2
- package/dist/index.es.js +3881 -8455
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -41
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Editor.d.ts +1 -1
- package/dist/src/components/ExampleTheme.d.ts +43 -0
- package/dist/src/components/hooks/useModal.d.ts +12 -0
- package/dist/src/components/plugins/PageMargin.d.ts +14 -0
- package/dist/src/components/plugins/PageMarginPlugin/CustomMarginDialog.d.ts +13 -0
- package/dist/src/components/plugins/PageMarginPlugin/index.d.ts +46 -0
- package/dist/src/components/plugins/ToolbarPlugin/TextAlignment.d.ts +8 -0
- package/dist/src/components/ui/Button.d.ts +17 -0
- package/dist/src/components/ui/ContentEditable.d.ts +12 -0
- package/dist/src/components/ui/Dialog.d.ts +15 -0
- package/dist/src/components/ui/Divider.d.ts +2 -0
- package/dist/src/components/ui/DropDown.d.ts +24 -0
- package/dist/src/components/ui/Modal.d.ts +14 -0
- package/dist/src/components/ui/TextInput.d.ts +19 -0
- package/dist/src/utils/getSelectedNode.d.ts +2 -0
- package/dist/src/utils/joinClasses.d.ts +8 -0
- package/dist/src/vite-env.d.ts +1 -1
- package/dist/style.css +1 -0
- package/package.json +46 -48
- package/dist/src/components/plugins/AutoLinkPlugin.d.ts +0 -1
- package/dist/src/components/plugins/CodeHighlightPlugin.d.ts +0 -1
- package/dist/src/components/plugins/ListMaxIndentLevelPlugin.d.ts +0 -3
- package/dist/src/components/plugins/TreeViewPlugin.d.ts +0 -1
- package/dist/src/components/themes/ExampleTheme.d.ts +0 -70
- /package/dist/src/components/plugins/{ToolbarPlugin.d.ts → ToolbarPlugin/ToolbarPlugin.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export function Editor(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function Editor({ isCollab, ckey }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: {
|
|
9
|
+
code: string;
|
|
10
|
+
heading: {
|
|
11
|
+
h1: string;
|
|
12
|
+
h2: string;
|
|
13
|
+
h3: string;
|
|
14
|
+
h4: string;
|
|
15
|
+
h5: string;
|
|
16
|
+
};
|
|
17
|
+
image: string;
|
|
18
|
+
link: string;
|
|
19
|
+
list: {
|
|
20
|
+
listitem: string;
|
|
21
|
+
nested: {
|
|
22
|
+
listitem: string;
|
|
23
|
+
};
|
|
24
|
+
ol: string;
|
|
25
|
+
ul: string;
|
|
26
|
+
};
|
|
27
|
+
ltr: string;
|
|
28
|
+
paragraph: string;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
quote: string;
|
|
31
|
+
rtl: string;
|
|
32
|
+
text: {
|
|
33
|
+
bold: string;
|
|
34
|
+
code: string;
|
|
35
|
+
hashtag: string;
|
|
36
|
+
italic: string;
|
|
37
|
+
overflowed: string;
|
|
38
|
+
strikethrough: string;
|
|
39
|
+
underline: string;
|
|
40
|
+
underlineStrikethrough: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
export default function useModal(): [
|
|
10
|
+
JSX.Element | null,
|
|
11
|
+
(title: string, showModal: (onClose: () => void) => JSX.Element) => void
|
|
12
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
interface IPageMargin {
|
|
10
|
+
isEditable: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const dropDownActiveClass: (active: boolean) => "" | "active dropdown-item-active";
|
|
13
|
+
declare const PageMargin: React.FC<IPageMargin>;
|
|
14
|
+
export default PageMargin;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
interface ICustomMargin {
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const CustomMarginDialog: React.FC<ICustomMargin>;
|
|
13
|
+
export default CustomMarginDialog;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
export type marginSizeType = {
|
|
11
|
+
normal: string;
|
|
12
|
+
narrow: string;
|
|
13
|
+
moderate: string;
|
|
14
|
+
wide: string;
|
|
15
|
+
};
|
|
16
|
+
export declare enum marginSize {
|
|
17
|
+
normal = "1px",
|
|
18
|
+
narrow = "48px",
|
|
19
|
+
moderate = "96px 72px",
|
|
20
|
+
wide = "96px 192px"
|
|
21
|
+
}
|
|
22
|
+
export declare const PageMarginContext: React.Context<{
|
|
23
|
+
margin: {
|
|
24
|
+
bottom: string;
|
|
25
|
+
left: string;
|
|
26
|
+
right: string;
|
|
27
|
+
top: string;
|
|
28
|
+
};
|
|
29
|
+
pageMarginValue: string | marginSizeType;
|
|
30
|
+
updateCustomMargin: (value: string, name: string) => void;
|
|
31
|
+
updatePageMarginValue: (value: marginSizeType | string) => void;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const PageMarginProvider: ({ children }: {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const usePageMarginContext: () => {
|
|
37
|
+
margin: {
|
|
38
|
+
bottom: string;
|
|
39
|
+
left: string;
|
|
40
|
+
right: string;
|
|
41
|
+
top: string;
|
|
42
|
+
};
|
|
43
|
+
pageMarginValue: string | marginSizeType;
|
|
44
|
+
updateCustomMargin: (value: string, name: string) => void;
|
|
45
|
+
updatePageMarginValue: (value: marginSizeType | string) => void;
|
|
46
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementFormatType, LexicalEditor } from "lexical";
|
|
2
|
+
declare const TextAlignment: ({ editor, value, isRTL, disabled, }: {
|
|
3
|
+
editor: LexicalEditor;
|
|
4
|
+
value: ElementFormatType;
|
|
5
|
+
isRTL: boolean;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TextAlignment;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
export default function Button({ 'data-test-id': dataTestId, children, className, onClick, disabled, small, title, }: {
|
|
10
|
+
'data-test-id'?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
small?: boolean;
|
|
16
|
+
title?: string;
|
|
17
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
export default function LexicalContentEditable({ className, style, }: {
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
type Props = Readonly<{
|
|
10
|
+
'data-test-id'?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function DialogButtonsList({ children }: Props): JSX.Element;
|
|
14
|
+
export declare function DialogActions({ 'data-test-id': dataTestId, children, }: Props): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
export declare function DropDownItem({ children, className, onClick, title, }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
className: string;
|
|
13
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
+
title?: string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function DropDown({ disabled, buttonLabel, buttonAriaLabel, buttonClassName, buttonIconClassName, children, stopCloseOnClickSelf, }: {
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
buttonAriaLabel?: string;
|
|
19
|
+
buttonClassName: string;
|
|
20
|
+
buttonIconClassName?: string;
|
|
21
|
+
buttonLabel?: string;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
stopCloseOnClickSelf?: boolean;
|
|
24
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
export default function Modal({ onClose, children, title, closeOnClickOutside, }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
closeOnClickOutside?: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
title: string;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { HTMLInputTypeAttribute } from 'react';
|
|
9
|
+
type Props = Readonly<{
|
|
10
|
+
'data-test-id'?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
onChange: (val: string, name: string) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
value: string;
|
|
15
|
+
type?: HTMLInputTypeAttribute;
|
|
16
|
+
name?: string;
|
|
17
|
+
}>;
|
|
18
|
+
export default function TextInput({ label, value, onChange, placeholder, 'data-test-id': dataTestId, type, name, }: Props): JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export default function joinClasses(...args: Array<string | boolean | null | undefined>): string;
|
package/dist/src/vite-env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
1
|
+
/// <reference types="vite/client" />
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{margin:0;background:#eee;font-family:system-ui,-apple-system,BlinkMacSystemFont,".SFNSText-Regular",sans-serif;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.other h2{font-size:18px;color:#444;margin-bottom:7px}.other a{color:#777;text-decoration:underline;font-size:14px}.other ul{padding:0;margin:0;list-style-type:none}.App{font-family:sans-serif;text-align:center}h1{font-size:24px;color:#333}.ltr{text-align:left}.rtl{text-align:right}.editor-container{margin:20px auto;background:#fff;border-radius:10px 10px 8px 8px;width:800px;color:#000;position:relative;line-height:20px;font-weight:400;text-align:left;border:1px solid gray}.editor-inner{background:#fff;position:relative;border-radius:0 0 10px 10px}.editor-input{min-height:150px;resize:none;font-size:14.666666666666666px;caret-color:#050505;font-family:Times New Roman;position:relative;-moz-tab-size:1;-o-tab-size:1;tab-size:1;outline:0;caret-color:#444}.editor-placeholder{color:#999;overflow:hidden;position:absolute;text-overflow:ellipsis;font-family:Times New Roman;top:.67px;font-size:14.666666666666666px;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:inline-block;pointer-events:none}.editor-text-bold{font-weight:700}.editor-text-italic{font-style:italic}.editor-text-underline{text-decoration:underline}.editor-text-strikethrough{text-decoration:line-through}.editor-text-underlineStrikethrough{text-decoration:underline line-through}.editor-text-code{background-color:#f0f2f5;padding:1px .25rem;font-family:Times New Roman;font-size:11}.editor-link{color:#216fdb;text-decoration:none}.tree-view-output{display:block;background:#222;color:#fff;padding:5px;font-size:12px;white-space:pre-wrap;margin:1px auto 10px;max-height:250px;position:relative;border-bottom-left-radius:10px;border-bottom-right-radius:10px;overflow:auto;line-height:14px}.editor-code{background-color:#f0f2f5;font-family:Times New Roman;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;-moz-tab-size:2;-o-tab-size:2;tab-size:2;overflow-x:auto;position:relative}.editor-code:before{content:attr(data-gutter);position:absolute;background-color:#eee;left:0;top:0;border-right:1px solid #ccc;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}.editor-code:after{content:attr(data-highlight-language);top:0;right:3px;padding:3px;font-size:11px;text-transform:uppercase;position:absolute;color:#00000080}.editor-tokenComment{color:#708090}.editor-tokenPunctuation{color:#999}.editor-tokenProperty{color:#905}.editor-tokenSelector{color:#690}.editor-tokenOperator{color:#9a6e3a}.editor-tokenAttr{color:#07a}.editor-tokenVariable{color:#e90}.editor-tokenFunction{color:#dd4a68}.editor-paragraph{position:relative}.editor-paragraph:last-child{margin-bottom:0}.editor-heading-h1{font-size:24px;color:#050505;font-weight:400;margin-bottom:12px;padding:0}.editor-heading-h2{font-size:15px;color:#65676b;font-weight:700;margin-top:10px;padding:0;text-transform:uppercase}.editor-quote{margin-left:20px;font-size:15px;color:#65676b;border-left-color:#ced0d4;border-left-width:4px;border-left-style:solid;padding-left:16px}.editor-list-ol,.editor-list-ul{padding:0;margin-left:16px}.editor-listitem{margin:8px 32px}.editor-nested-listitem{list-style-type:none}pre::-webkit-scrollbar{background:transparent;width:10px}pre::-webkit-scrollbar-thumb{background:#999}.debug-timetravel-panel{overflow:hidden;padding:0 0 10px;margin:auto;display:flex}.debug-timetravel-panel-slider{padding:0;flex:8}.debug-timetravel-panel-button{padding:0;border:0;background:none;flex:1;color:#fff;font-size:12px}.debug-timetravel-panel-button:hover{text-decoration:underline}.debug-timetravel-button{border:0;padding:0;font-size:12px;top:10px;right:15px;position:absolute;background:none;color:#fff}.debug-timetravel-button:hover{text-decoration:underline}.toolbar{display:flex;margin-bottom:1px;background:#fff;padding:4px;border-top-left-radius:10px;border-top-right-radius:10px;vertical-align:middle}.toolbar button.toolbar-item{border:0;display:flex;background:none;border-radius:10px;padding:8px;cursor:pointer;vertical-align:middle}.toolbar button.toolbar-item:disabled{cursor:not-allowed}.toolbar button.toolbar-item.spaced{margin-right:2px}.toolbar button.toolbar-item i.format{background-size:contain;display:inline-block;height:18px;width:18px;margin-top:2px;vertical-align:-.25em;display:flex;opacity:.6}.toolbar button.toolbar-item:disabled i.format{opacity:.2}.toolbar button.toolbar-item.active{background-color:#dfe8fa4d}.toolbar button.toolbar-item.active i{opacity:1}.toolbar .toolbar-item:hover:not([disabled]){background-color:#eee}.toolbar .divider{width:1px;background-color:#eee;margin:0 4px}.divider-horizontal{width:1px;background-color:#000;margin:0 4px}.toolbar .toolbar-item .text{display:flex;line-height:20px;vertical-align:middle;font-size:11px;color:#777;text-overflow:ellipsis;width:70px;overflow:hidden;height:20px;text-align:left}.toolbar .toolbar-item .icon{display:flex;width:20px;height:20px;-webkit-user-select:none;-moz-user-select:none;user-select:none;margin-right:8px;line-height:16px;background-size:contain}i.undo{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWx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A1LTIuODFoMS4yM2MuMTQ0IDEuMDYgMS4xMjkgMS43MDMgMi41NDQgMS43MDMgMS4zNCAwIDIuMzEtLjcwNSAyLjMxLTEuNjc1IDAtLjgyNy0uNTQ3LTEuMzc0LTEuOTE0LTEuNjc1TDguMDQ2IDguNUgxdi0xaDE0djFoLTMuNTA0Yy40NjguNDM3LjY3NS45OTQuNjc1IDEuNjk3IDAgMS44MjYtMS40MzYgMi45NjctMy42NDQgMi45Njd6Ii8+DQo8L3N2Zz4=)}i.left-align{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktdGV4dC1sZWZ0IiB2aWV3Qm94PSIwIDAgMTYgMTYiPg0KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yIDEyLjVhLjUuNSAwIDAgMSAuNS0uNWg3YS41LjUgMCAwIDEgMCAxaC03YS41LjUgMCAwIDEtLjUtLjV6bTAtM2EuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgMCAxaC0xMWEuNS41IDAgMCAxLS41LS41em0wLTNhLjUuNSAwIDAgMSAuNS0uNWg3YS41LjUgMCAwIDEgMCAxaC03YS41LjUgMCAwIDEtLjUtLjV6bTAtM2EuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgMCAxaC0xMWEuNS41IDAgMCAxLS41LS41eiIvPg0KPC9zdmc+)}i.center-align{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktdGV4dC1jZW50ZXIiIHZpZXdCb3g9IjAgMCAxNiAxNiI+DQogIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQgMTIuNWEuNS41IDAgMCAxIC41LS41aDdhLjUuNSAwIDAgMSAwIDFoLTdhLjUuNSAwIDAgMS0uNS0uNXptLTItM2EuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgMCAxaC0xMWEuNS41IDAgMCAxLS41LS41em0yLTNhLjUuNSAwIDAgMSAuNS0uNWg3YS41LjUgMCAwIDEgMCAxaC03YS41LjUgMCAwIDEtLjUtLjV6bS0yLTNhLjUuNSAwIDAgMSAuNS0uNWgxMWEuNS41IDAgMCAxIDAgMWgtMTFhLjUuNSAwIDAgMS0uNS0uNXoiLz4NCjwvc3ZnPg==)}i.right-align{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktdGV4dC1yaWdodCIgdmlld0JveD0iMCAwIDE2IDE2Ij4NCiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNiAxMi41YS41LjUgMCAwIDEgLjUtLjVoN2EuNS41IDAgMCAxIDAgMWgtN2EuNS41IDAgMCAxLS41LS41em0tNC0zYS41LjUgMCAwIDEgLjUtLjVoMTFhLjUuNSAwIDAgMSAwIDFoLTExYS41LjUgMCAwIDEtLjUtLjV6bTQtM2EuNS41IDAgMCAxIC41LS41aDdhLjUuNSAwIDAgMSAwIDFoLTdhLjUuNSAwIDAgMS0uNS0uNXptLTQtM2EuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgMCAxaC0xMWEuNS41IDAgMCAxLS41LS41eiIvPg0KPC9zdmc+)}i.justify-align{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktanVzdGlmeSIgdmlld0JveD0iMCAwIDE2IDE2Ij4NCiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMiAxMi41YS41LjUgMCAwIDEgLjUtLjVoMTFhLjUuNSAwIDAgMSAwIDFoLTExYS41LjUgMCAwIDEtLjUtLjV6bTAtM2EuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgMCAxaC0xMWEuNS41IDAgMCAxLS41LS41em0wLTNhLjUuNSAwIDAgMSAuNS0uNWgxMWEuNS41IDAgMCAxIDAgMWgtMTFhLjUuNSAwIDAgMS0uNS0uNXptMC0zYS41LjUgMCAwIDEgLjUtLjVoMTFhLjUuNSAwIDAgMSAwIDFoLTExYS41LjUgMCAwIDEtLjUtLjV6Ii8+DQo8L3N2Zz4=)}.dropdown{z-index:100;display:block;position:fixed;box-shadow:0 12px 28px #0003,0 2px 4px #0000001a,inset 0 0 0 1px #ffffff80;border-radius:8px;min-height:40px;background-color:#fff}.dropdown .item{margin:0 8px;padding:8px;color:#050505;cursor:pointer;line-height:16px;font-size:15px;display:flex;align-content:center;flex-direction:row;flex-shrink:0;justify-content:space-between;background-color:#fff;border-radius:8px;border:0;max-width:250px;min-width:100px}.dropdown .item.fontsize-item,.dropdown .item.fontsize-item .text{min-width:unset}.dropdown .item .active{display:flex;width:20px;height:20px;background-size:contain}.dropdown .item:first-child{margin-top:8px}.dropdown .item:last-child{margin-bottom:8px}.dropdown .item:hover{background-color:#eee}.dropdown .item .text{display:flex;line-height:20px;flex-grow:1;min-width:150px}.dropdown .item .icon{display:flex;width:20px;height:20px;-webkit-user-select:none;-moz-user-select:none;user-select:none;margin-right:12px;line-height:16px;background-size:contain;background-position:center;background-repeat:no-repeat}.dropdown .divider{width:auto;background-color:#eee;margin:4px 8px;height:1px}.Modal__overlay{display:flex;justify-content:center;align-items:center;position:fixed;flex-direction:column;top:0;bottom:0;left:0;right:0;background-color:#28282899;flex-grow:0px;flex-shrink:1px;z-index:100}.Modal__modal{padding:20px;min-height:100px;min-width:300px;display:flex;flex-grow:0px;background-color:#fff;flex-direction:column;position:relative;box-shadow:0 0 20px #444;border-radius:10px}.Modal__title{color:#444;margin:0;padding-bottom:10px;border-bottom:1px solid #ccc}.Modal__closeButton{border:0px;position:absolute;right:20px;border-radius:20px;justify-content:center;align-items:center;display:flex;width:30px;height:30px;text-align:center;cursor:pointer;background-color:#eee}.Modal__closeButton:hover{background-color:#ddd}.Modal__content{padding-top:20px}.Button__root{padding:10px 15px;border:0px;background-color:#eee;border-radius:5px;cursor:pointer;font-size:14px}.Button__root:hover{background-color:#ddd}.Button__small{padding:5px 10px;font-size:13px}.Button__disabled{cursor:not-allowed}.Button__disabled:hover{background-color:#eee}.DialogActions{display:flex;flex-direction:row;justify-content:right;margin-top:20px}.DialogButtonsList{display:flex;flex-direction:column;justify-content:right;margin-top:20px}.DialogButtonsList button{margin-bottom:20px}.Input__wrapper{display:flex;flex-direction:row;align-items:center;margin-bottom:10px}.Input__label{display:flex;flex:1;color:#666}.Input__input{display:flex;flex:2;border:1px solid #999;padding:7px 10px;font-size:16px;border-radius:5px;min-width:0}.ContentEditable__root{border:0;font-size:15px;display:block;position:relative;outline:0;min-height:150px}@media (max-width: 1025px){.ContentEditable__root{padding-left:8px;padding-right:8px}}
|
package/package.json
CHANGED
|
@@ -1,48 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sykpcomposer",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.umd.js",
|
|
7
|
-
"module": "dist/index.es.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./dist/index.es.js",
|
|
12
|
-
"require": "./dist/index.umd.js",
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"/dist"
|
|
18
|
-
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "vite",
|
|
24
|
-
"build": "vite build",
|
|
25
|
-
"prepare": "npm run build",
|
|
26
|
-
"preview": "vite preview"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"react": "^17.0.2",
|
|
33
|
-
"react-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@types/
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sykpcomposer",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.26",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.umd.js",
|
|
7
|
+
"module": "dist/index.es.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.es.js",
|
|
12
|
+
"require": "./dist/index.umd.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"/dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "tsc && vite build",
|
|
25
|
+
"prepare": "npm run build",
|
|
26
|
+
"preview": "vite preview"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@lexical/react": "^0.17.1",
|
|
30
|
+
"lexical": "^0.17.1",
|
|
31
|
+
"react": "^17.0.2",
|
|
32
|
+
"react-dom": "^17.0.2",
|
|
33
|
+
"react-helmet": "^6.1.0",
|
|
34
|
+
"tailwindcss": "^3.2.4"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/react": "^18.0.26",
|
|
38
|
+
"@types/react-dom": "^18.0.9",
|
|
39
|
+
"@vitejs/plugin-react-swc": "^3.0.0",
|
|
40
|
+
"autoprefixer": "^10.4.13",
|
|
41
|
+
"postcss": "^8.4.20",
|
|
42
|
+
"typescript": "^4.9.3",
|
|
43
|
+
"vite": "^4.0.0",
|
|
44
|
+
"vite-plugin-dts": "^1.7.1"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function PlaygroundAutoLinkPlugin(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function CodeHighlightPlugin(): null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function TreeViewPlugin(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export default exampleTheme;
|
|
2
|
-
declare namespace exampleTheme {
|
|
3
|
-
export const ltr: string;
|
|
4
|
-
export const rtl: string;
|
|
5
|
-
export const placeholder: string;
|
|
6
|
-
export const paragraph: string;
|
|
7
|
-
export const quote: string;
|
|
8
|
-
export namespace heading {
|
|
9
|
-
const h1: string;
|
|
10
|
-
const h2: string;
|
|
11
|
-
const h3: string;
|
|
12
|
-
const h4: string;
|
|
13
|
-
const h5: string;
|
|
14
|
-
}
|
|
15
|
-
export namespace list {
|
|
16
|
-
export namespace nested {
|
|
17
|
-
const listitem: string;
|
|
18
|
-
}
|
|
19
|
-
export const ol: string;
|
|
20
|
-
export const ul: string;
|
|
21
|
-
const listitem_1: string;
|
|
22
|
-
export { listitem_1 as listitem };
|
|
23
|
-
}
|
|
24
|
-
export const image: string;
|
|
25
|
-
export const link: string;
|
|
26
|
-
export namespace text {
|
|
27
|
-
const bold: string;
|
|
28
|
-
const italic: string;
|
|
29
|
-
const overflowed: string;
|
|
30
|
-
const hashtag: string;
|
|
31
|
-
const underline: string;
|
|
32
|
-
const strikethrough: string;
|
|
33
|
-
const underlineStrikethrough: string;
|
|
34
|
-
const code: string;
|
|
35
|
-
}
|
|
36
|
-
const code_1: string;
|
|
37
|
-
export { code_1 as code };
|
|
38
|
-
export const codeHighlight: {
|
|
39
|
-
atrule: string;
|
|
40
|
-
attr: string;
|
|
41
|
-
boolean: string;
|
|
42
|
-
builtin: string;
|
|
43
|
-
cdata: string;
|
|
44
|
-
char: string;
|
|
45
|
-
class: string;
|
|
46
|
-
"class-name": string;
|
|
47
|
-
comment: string;
|
|
48
|
-
constant: string;
|
|
49
|
-
deleted: string;
|
|
50
|
-
doctype: string;
|
|
51
|
-
entity: string;
|
|
52
|
-
function: string;
|
|
53
|
-
important: string;
|
|
54
|
-
inserted: string;
|
|
55
|
-
keyword: string;
|
|
56
|
-
namespace: string;
|
|
57
|
-
number: string;
|
|
58
|
-
operator: string;
|
|
59
|
-
prolog: string;
|
|
60
|
-
property: string;
|
|
61
|
-
punctuation: string;
|
|
62
|
-
regex: string;
|
|
63
|
-
selector: string;
|
|
64
|
-
string: string;
|
|
65
|
-
symbol: string;
|
|
66
|
-
tag: string;
|
|
67
|
-
url: string;
|
|
68
|
-
variable: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
/package/dist/src/components/plugins/{ToolbarPlugin.d.ts → ToolbarPlugin/ToolbarPlugin.d.ts}
RENAMED
|
File without changes
|