sykpcomposer 0.0.26 → 0.0.27
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/dist/index.es.js +2079 -2841
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Editor.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/vite.svg +1 -0
- package/package.json +2 -2
- package/README.md +0 -15
- package/dist/assets/icons/3-columns.svg +0 -3
- package/dist/assets/icons/LICENSE.md +0 -5
- package/dist/assets/icons/add-sign.svg +0 -3
- package/dist/assets/icons/arrow-clockwise.svg +0 -1
- package/dist/assets/icons/arrow-counterclockwise.svg +0 -1
- package/dist/assets/icons/bg-color.svg +0 -1
- package/dist/assets/icons/camera.svg +0 -1
- package/dist/assets/icons/card-checklist.svg +0 -1
- package/dist/assets/icons/caret-right-fill.svg +0 -1
- package/dist/assets/icons/chat-left-text.svg +0 -1
- package/dist/assets/icons/chat-right-dots.svg +0 -1
- package/dist/assets/icons/chat-right-text.svg +0 -1
- package/dist/assets/icons/chat-right.svg +0 -1
- package/dist/assets/icons/chat-square-quote.svg +0 -1
- package/dist/assets/icons/chevron-down.svg +0 -1
- package/dist/assets/icons/clipboard.svg +0 -1
- package/dist/assets/icons/close.svg +0 -1
- package/dist/assets/icons/code.svg +0 -1
- package/dist/assets/icons/comments.svg +0 -1
- package/dist/assets/icons/copy.svg +0 -1
- package/dist/assets/icons/diagram-2.svg +0 -1
- package/dist/assets/icons/download.svg +0 -1
- package/dist/assets/icons/draggable-block-menu.svg +0 -1
- package/dist/assets/icons/dropdown-more.svg +0 -1
- package/dist/assets/icons/figma.svg +0 -1
- package/dist/assets/icons/file-earmark-text.svg +0 -4
- package/dist/assets/icons/file-image.svg +0 -1
- package/dist/assets/icons/filetype-gif.svg +0 -1
- package/dist/assets/icons/font-color.svg +0 -1
- package/dist/assets/icons/font-family.svg +0 -1
- package/dist/assets/icons/gear.svg +0 -1
- package/dist/assets/icons/horizontal-rule.svg +0 -1
- package/dist/assets/icons/indent.svg +0 -1
- package/dist/assets/icons/journal-code.svg +0 -1
- package/dist/assets/icons/journal-text.svg +0 -1
- package/dist/assets/icons/justify.svg +0 -1
- package/dist/assets/icons/link.svg +0 -1
- package/dist/assets/icons/list-ol.svg +0 -1
- package/dist/assets/icons/list-ul.svg +0 -1
- package/dist/assets/icons/lock-fill.svg +0 -1
- package/dist/assets/icons/lock.svg +0 -1
- package/dist/assets/icons/markdown.svg +0 -1
- package/dist/assets/icons/mic.svg +0 -1
- package/dist/assets/icons/minus-sign.svg +0 -3
- package/dist/assets/icons/outdent.svg +0 -1
- package/dist/assets/icons/paint-bucket.svg +0 -1
- package/dist/assets/icons/palette.svg +0 -1
- package/dist/assets/icons/pencil-fill.svg +0 -1
- package/dist/assets/icons/plug-fill.svg +0 -1
- package/dist/assets/icons/plug.svg +0 -1
- package/dist/assets/icons/plus-slash-minus.svg +0 -1
- package/dist/assets/icons/plus.svg +0 -1
- package/dist/assets/icons/prettier-error.svg +0 -1
- package/dist/assets/icons/prettier.svg +0 -1
- package/dist/assets/icons/scissors.svg +0 -3
- package/dist/assets/icons/send.svg +0 -1
- package/dist/assets/icons/square-check.svg +0 -1
- package/dist/assets/icons/sticky.svg +0 -1
- package/dist/assets/icons/success-alt.svg +0 -1
- package/dist/assets/icons/success.svg +0 -1
- package/dist/assets/icons/table.svg +0 -1
- package/dist/assets/icons/text-center.svg +0 -1
- package/dist/assets/icons/text-left.svg +0 -1
- package/dist/assets/icons/text-paragraph.svg +0 -1
- package/dist/assets/icons/text-right.svg +0 -1
- package/dist/assets/icons/trash.svg +0 -1
- package/dist/assets/icons/trash3.svg +0 -1
- package/dist/assets/icons/tweet.svg +0 -1
- package/dist/assets/icons/type-bold.svg +0 -1
- package/dist/assets/icons/type-h1.svg +0 -1
- package/dist/assets/icons/type-h2.svg +0 -1
- package/dist/assets/icons/type-h3.svg +0 -1
- package/dist/assets/icons/type-h4.svg +0 -1
- package/dist/assets/icons/type-h5.svg +0 -1
- package/dist/assets/icons/type-h6.svg +0 -1
- package/dist/assets/icons/type-italic.svg +0 -1
- package/dist/assets/icons/type-strikethrough.svg +0 -1
- package/dist/assets/icons/type-subscript.svg +0 -1
- package/dist/assets/icons/type-superscript.svg +0 -1
- package/dist/assets/icons/type-underline.svg +0 -1
- package/dist/assets/icons/upload.svg +0 -1
- package/dist/assets/icons/user.svg +0 -1
- package/dist/assets/icons/youtube.svg +0 -1
- package/dist/src/components/hooks/useModal.d.ts +0 -12
- package/dist/src/components/plugins/PageMargin.d.ts +0 -14
- package/dist/src/components/plugins/PageMarginPlugin/CustomMarginDialog.d.ts +0 -13
- package/dist/src/components/plugins/PageMarginPlugin/index.d.ts +0 -46
- package/dist/src/components/plugins/ToolbarPlugin/TextAlignment.d.ts +0 -8
- package/dist/src/components/ui/Button.d.ts +0 -17
- package/dist/src/components/ui/ContentEditable.d.ts +0 -12
- package/dist/src/components/ui/Dialog.d.ts +0 -15
- package/dist/src/components/ui/Divider.d.ts +0 -2
- package/dist/src/components/ui/DropDown.d.ts +0 -24
- package/dist/src/components/ui/Modal.d.ts +0 -14
- package/dist/src/components/ui/TextInput.d.ts +0 -19
- package/dist/src/utils/getSelectedNode.d.ts +0 -2
- package/dist/src/utils/joinClasses.d.ts +0 -8
- /package/dist/src/components/plugins/{ToolbarPlugin/ToolbarPlugin.d.ts → ToolbarPlugin.d.ts} +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,19 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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/components/plugins/{ToolbarPlugin/ToolbarPlugin.d.ts → ToolbarPlugin.d.ts}
RENAMED
|
File without changes
|