@mrshmllw/smores-react 7.0.0 → 8.0.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/dist/CurrencyInput/CurrencyInput.js +2 -2
- package/dist/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/dist/RichTextEditor/RichTextEditor.js +42 -28
- package/dist/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/hooks/useEventListener/index.d.ts +1 -1
- package/dist/hooks/useScript/index.d.ts +1 -1
- package/dist/utils/debounce.d.ts +1 -1
- package/dist/utils/focusOutline.d.ts +1 -1
- package/package.json +15 -15
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, { forwardRef } from 'react';
|
1
|
+
import React, { forwardRef, } from 'react';
|
2
2
|
import { Box } from '../Box';
|
3
3
|
import { Field } from '../fields/Field';
|
4
4
|
import { Input, StyledFrontIcon } from '../fields/components/CommonInput';
|
@@ -46,6 +46,6 @@ export const CurrencyInput = forwardRef(function CurrencyInput({ id: idProp, pla
|
|
46
46
|
React.createElement(Input, { ref: ref, "$error": error, disabled: disabled, type: "number", id: id, name: name, placeholder: placeholder, value: value, "$frontIcon": frontIcon, "$fallbackStyle": fallbackStyle, onChange: (e) => {
|
47
47
|
onChange && handleChange(e.currentTarget.value);
|
48
48
|
onInputChange && onInputChange(e);
|
49
|
-
}, onBlur: onBlur }))));
|
49
|
+
}, onWheel: (e) => e.currentTarget.blur(), onBlur: onBlur }))));
|
50
50
|
});
|
51
51
|
//# sourceMappingURL=CurrencyInput.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CurrencyInput.js","sourceRoot":"","sources":["../../src/CurrencyInput/CurrencyInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"CurrencyInput.js","sourceRoot":"","sources":["../../src/CurrencyInput/CurrencyInput.tsx"],"names":[],"mappings":"AA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AAE,KAAK,gBACA,SAAS,oBACL,aAAa,EAC7B,QAAQ,EAAE,CAAC,CAA8B,EAAE,EAAE;oBAC3C,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;oBAC/C,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,CAAA;gBACnC,CAAC,EACD,OAAO,EAAE,CAAC,CAA+B,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,EACpE,MAAM,EAAE,MAAM,GACd,CACE,CACA,CACT,CAAA;AACH,CAAC,CAAC,CAAA"}
|
@@ -1,44 +1,58 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { ContentEditable } from '@lexical/react/LexicalContentEditable';
|
1
|
+
import { CodeHighlightNode, CodeNode } from '@lexical/code';
|
2
|
+
import { $generateNodesFromDOM } from '@lexical/html';
|
3
|
+
import { AutoLinkNode, LinkNode } from '@lexical/link';
|
4
|
+
import { ListItemNode, ListNode } from '@lexical/list';
|
5
|
+
import { TRANSFORMERS } from '@lexical/markdown';
|
7
6
|
import { LexicalComposer } from '@lexical/react/LexicalComposer';
|
7
|
+
import { ContentEditable } from '@lexical/react/LexicalContentEditable';
|
8
8
|
import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary';
|
9
|
-
import CustomAutoLinkPlugin from './plugins/AutoLinkPlugin';
|
10
|
-
import { AutoLinkNode, LinkNode } from '@lexical/link';
|
11
|
-
import { ListNode, ListItemNode } from '@lexical/list';
|
12
|
-
import { LinkPlugin } from '@lexical/react/LexicalLinkPlugin';
|
13
|
-
import ToolbarPlugin from './plugins/ToolbarPlugin';
|
14
9
|
import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';
|
10
|
+
import { LinkPlugin } from '@lexical/react/LexicalLinkPlugin';
|
15
11
|
import { ListPlugin } from '@lexical/react/LexicalListPlugin';
|
16
12
|
import { MarkdownShortcutPlugin } from '@lexical/react/LexicalMarkdownShortcutPlugin';
|
17
|
-
import {
|
13
|
+
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
|
18
14
|
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
|
19
|
-
import { CodeHighlightNode, CodeNode } from '@lexical/code';
|
20
|
-
import { $generateNodesFromDOM } from '@lexical/html';
|
21
|
-
import { $createParagraphNode, $getRoot } from 'lexical';
|
22
15
|
import DOMPurify from 'dompurify';
|
16
|
+
import { $createParagraphNode, $getRoot, } from 'lexical';
|
17
|
+
import React, { useState } from 'react';
|
18
|
+
import styled from 'styled-components';
|
19
|
+
import { Box } from '../Box';
|
20
|
+
import { theme } from '../theme';
|
21
|
+
import CustomAutoLinkPlugin from './plugins/AutoLinkPlugin';
|
23
22
|
import { EditorUpdatePlugin } from './plugins/EditorUpdatePlugin';
|
24
|
-
|
23
|
+
import ToolbarPlugin from './plugins/ToolbarPlugin';
|
24
|
+
const appendNodes = (root, nodes) => {
|
25
|
+
nodes
|
26
|
+
.filter((node) => node.__type !== 'linebreak')
|
27
|
+
.map((node) => {
|
28
|
+
if (node.__type === 'text') {
|
29
|
+
const paragraphNode = $createParagraphNode();
|
30
|
+
paragraphNode.append(node);
|
31
|
+
return paragraphNode;
|
32
|
+
}
|
33
|
+
return node;
|
34
|
+
})
|
35
|
+
.forEach((node) => root.append(node));
|
36
|
+
};
|
37
|
+
export const RichTextEditor = ({ value, height, outline = false, maxHeight = '300px', onChange, ...props }) => {
|
38
|
+
const [editorState, setEditorState] = useState(null);
|
39
|
+
editorState &&
|
40
|
+
editorState.update(() => {
|
41
|
+
const parser = new DOMParser();
|
42
|
+
const dom = parser.parseFromString(value ? DOMPurify.sanitize(value) : '<p></p>', 'text/html');
|
43
|
+
const root = $getRoot();
|
44
|
+
root.clear();
|
45
|
+
const nodes = $generateNodesFromDOM(editorState, dom);
|
46
|
+
appendNodes(root, nodes);
|
47
|
+
});
|
25
48
|
const defaultEditorState = (editor) => {
|
49
|
+
setEditorState(editor);
|
26
50
|
const parser = new DOMParser();
|
27
|
-
const dom = parser.parseFromString(
|
51
|
+
const dom = parser.parseFromString(value ? DOMPurify.sanitize(value) : '<p></p>', 'text/html');
|
28
52
|
const nodes = $generateNodesFromDOM(editor, dom);
|
29
53
|
const root = $getRoot();
|
30
54
|
root.clear();
|
31
|
-
nodes
|
32
|
-
.filter((node) => node.__type !== 'linebreak')
|
33
|
-
.map((node) => {
|
34
|
-
if (node.__type === 'text') {
|
35
|
-
const paragraphNode = $createParagraphNode();
|
36
|
-
paragraphNode.append(node);
|
37
|
-
return paragraphNode;
|
38
|
-
}
|
39
|
-
return node;
|
40
|
-
})
|
41
|
-
.forEach((node) => root.append(node));
|
55
|
+
appendNodes(root, nodes);
|
42
56
|
};
|
43
57
|
const initialConfig = {
|
44
58
|
editorState: defaultEditorState,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,oBAAoB,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;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M,CAAC,GAAG,CAAC,CAAuB;sBAC9B,KAAK,CAAC,MAAM,CAAC,OAAO;;;IAGtC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,IAAI,qBAAqB,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;CAC5E,CAAA"}
|
@@ -4,5 +4,5 @@ export declare const useEventListener: ({ eventName, callback, ref, capture, }:
|
|
4
4
|
eventName: keyof HTMLElementEventMap | string;
|
5
5
|
callback: GenericEventCallback;
|
6
6
|
ref: RefObject<HTMLElement | Document>;
|
7
|
-
capture?: boolean
|
7
|
+
capture?: boolean;
|
8
8
|
}) => void;
|
package/dist/utils/debounce.d.ts
CHANGED
@@ -4,4 +4,4 @@
|
|
4
4
|
* @param delay - The debouncing delay.
|
5
5
|
* @returns A debounced version of the function.
|
6
6
|
*/
|
7
|
-
export declare const debounce: <Args extends unknown[], R>(fn: (...args: Args) => R, delay: number) => (...args: Args) => void;
|
7
|
+
export declare const debounce: <Args extends unknown[], R>(fn: (...args: Args) => R, delay: number) => ((...args: Args) => void);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mrshmllw/smores-react",
|
3
|
-
"version": "
|
3
|
+
"version": "8.0.0",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"description": "Collection of React components used by Marshmallow Technology",
|
6
6
|
"keywords": [
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"scripts": {
|
16
16
|
"clean": "rimraf ./dist",
|
17
17
|
"build": "npm run clean && tsc --p ./tsconfig.build.json",
|
18
|
-
"build-storybook": "storybook build -c .storybook
|
18
|
+
"build-storybook": "storybook build -c .storybook",
|
19
19
|
"check-types": "tsc --noEmit",
|
20
20
|
"deploy-storybook": "storybook-to-ghpages",
|
21
21
|
"prepublishOnly": "npm run build",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"test": "vitest --silent",
|
27
27
|
"updateSnaps": "vitest --u",
|
28
28
|
"snyk-protect": "snyk-protect",
|
29
|
-
"prepare": "npm run snyk-protect && husky
|
29
|
+
"prepare": "npm run snyk-protect && husky",
|
30
30
|
"pre-commit-lint": "npm run check-types && lint-staged",
|
31
31
|
"fix-package-lock-conflicts": "echo \"Make sure conflicts in package.json are resolved before running this script\" && npm i --package-lock-only"
|
32
32
|
},
|
@@ -39,13 +39,12 @@
|
|
39
39
|
"@babel/preset-typescript": "^7.18.6",
|
40
40
|
"@semantic-release/changelog": "^6.0.3",
|
41
41
|
"@semantic-release/git": "^10.0.1",
|
42
|
-
"@semantic-release/github": "^
|
43
|
-
"@semantic-release/npm": "^
|
42
|
+
"@semantic-release/github": "^10.0.2",
|
43
|
+
"@semantic-release/npm": "^12.0.0",
|
44
44
|
"@snyk/protect": "^1.881.0",
|
45
|
-
"@storybook/addon-essentials": "^
|
46
|
-
"@storybook/
|
47
|
-
"@storybook/react": "^
|
48
|
-
"@storybook/react-vite": "^7.0.6",
|
45
|
+
"@storybook/addon-essentials": "^8.0.4",
|
46
|
+
"@storybook/react": "^8.0.4",
|
47
|
+
"@storybook/react-vite": "^8.0.4",
|
49
48
|
"@storybook/storybook-deployer": "^2.8.16",
|
50
49
|
"@testing-library/react": "^14.0.0",
|
51
50
|
"@types/body-scroll-lock": "^3.1.0",
|
@@ -61,24 +60,25 @@
|
|
61
60
|
"eslint-config-prettier": "^9.0.0",
|
62
61
|
"eslint-plugin-react": "^7.29.2",
|
63
62
|
"eslint-plugin-react-hooks": "^4.1.2",
|
64
|
-
"husky": "^
|
63
|
+
"husky": "^9.0.11",
|
65
64
|
"lint-staged": "^15.1.0",
|
66
65
|
"prettier": "^3.0.0",
|
67
66
|
"react": "^18.2.0",
|
68
67
|
"react-dom": "^18.2.0",
|
69
68
|
"rimraf": "^5.0.5",
|
70
|
-
"semantic-release": "^
|
71
|
-
"storybook": "^
|
69
|
+
"semantic-release": "^23.0.7",
|
70
|
+
"storybook": "^8.0.4",
|
72
71
|
"styled-components": "^6.1.8",
|
73
72
|
"typescript": "^5.0.2",
|
74
|
-
"vitest": "^1.2.2"
|
73
|
+
"vitest": "^1.2.2",
|
74
|
+
"vite": "^5.2.6"
|
75
75
|
},
|
76
76
|
"dependencies": {
|
77
|
+
"@lexical/react": "^0.13.1",
|
77
78
|
"body-scroll-lock": "^4.0.0-beta.0",
|
78
|
-
"date-fns": "^
|
79
|
+
"date-fns": "^3.6.0",
|
79
80
|
"dompurify": "^3.0.9",
|
80
81
|
"lexical": "^0.13.1",
|
81
|
-
"@lexical/react": "^0.13.1",
|
82
82
|
"polished": "^4.1.3"
|
83
83
|
},
|
84
84
|
"peerDependencies": {
|