@oliasoft-open-source/react-ui-library 5.13.1-beta-1 → 5.13.1-beta-2

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.d.ts CHANGED
@@ -8,12 +8,10 @@ import { ElementType as ElementType_2 } from 'react';
8
8
  import { FC } from 'react';
9
9
  import { FocusEvent as FocusEvent_2 } from 'react';
10
10
  import { FocusEventHandler } from 'react';
11
- import { ForwardRefExoticComponent } from 'react';
12
11
  import { Id } from 'react-toastify';
13
12
  import { JSX as JSX_2 } from 'react/jsx-runtime';
14
13
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
15
14
  import { KeyboardEventHandler } from 'react';
16
- import { MemoExoticComponent } from 'react';
17
15
  import { MouseEvent as MouseEvent_2 } from 'react';
18
16
  import { MouseEventHandler } from 'react';
19
17
  import { MutableRefObject } from 'react';
@@ -23,7 +21,6 @@ import { Property } from 'csstype';
23
21
  import { ReactElement } from 'react';
24
22
  import { ReactNode } from 'react';
25
23
  import { ReactPortal } from 'react';
26
- import { RefAttributes } from 'react';
27
24
  import { RefObject } from 'react';
28
25
  import { ToastContainer as Toaster } from 'react-toastify';
29
26
 
@@ -1959,7 +1956,7 @@ export declare const RadioButton: ({ name, label: rawLabel, options: rawOptions,
1959
1956
 
1960
1957
  export declare const readFile: (file?: Blob, method?: TFileReaderMethod) => Promise<string | ArrayBuffer | null>;
1961
1958
 
1962
- export declare const RichTextInput: MemoExoticComponent<ForwardRefExoticComponent<IRichTextInputProps & RefAttributes<any>>>;
1959
+ export declare const RichTextInput: default_2.ForwardRefExoticComponent<IRichTextInputProps & default_2.RefAttributes<any>>;
1963
1960
 
1964
1961
  export declare const Row: ({ alignItems, justifyContent, children, flex, height, marginBottom, marginTop, spacing: spacingProp, wrap, testId, }: IRowProps) => JSX_2.Element;
1965
1962
 
package/dist/index.js CHANGED
@@ -6061,9 +6061,9 @@ var rich_text_input_module_default = {
6061
6061
  hideScrollbars: "_hideScrollbars_1fb4l_67",
6062
6062
  richTextInput: "_richTextInput_1fb4l_77"
6063
6063
  };
6064
- const RichTextInput = memo(forwardRef(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6065
- let c = useContext(DisabledContext), u = r || c, { manager: d, state: f, setState: p, getContext: m } = useRemirror({
6066
- extensions: useCallback(() => [
6064
+ const RichTextInput = forwardRef(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6065
+ let o = useContext(DisabledContext), c = r || o, { manager: u, state: d, setState: f, getContext: p } = useRemirror({
6066
+ extensions: () => [
6067
6067
  new BoldExtension({}),
6068
6068
  new BulletListExtension({}),
6069
6069
  new CodeExtension(),
@@ -6071,29 +6071,29 @@ const RichTextInput = memo(forwardRef(({ placeholder: e, onChange: t, value: n,
6071
6071
  new MarkdownExtension({}),
6072
6072
  new OrderedListExtension(),
6073
6073
  new PlaceholderExtension({ placeholder: e })
6074
- ], [e]),
6074
+ ],
6075
6075
  content: n,
6076
6076
  selection: "start",
6077
6077
  stringHandler: "markdown"
6078
6078
  });
6079
- return useImperativeHandle(a, () => m(), [m]), /* @__PURE__ */ jsx("div", {
6079
+ return useImperativeHandle(a, () => p(), [p]), /* @__PURE__ */ jsx("div", {
6080
6080
  className: rich_text_input_module_default.richTextInput,
6081
6081
  children: /* @__PURE__ */ jsxs(Remirror, {
6082
- manager: d,
6083
- state: f,
6082
+ manager: u,
6083
+ state: d,
6084
6084
  placeholder: e,
6085
6085
  onChange: ({ helpers: e, state: n }) => {
6086
6086
  let r = e.getMarkdown(n);
6087
- t && t(r), p(n);
6087
+ t && t(r), f(n);
6088
6088
  },
6089
- editable: !u,
6089
+ editable: !c,
6090
6090
  children: [/* @__PURE__ */ jsx(RichTextToolbar, {
6091
- disabled: u,
6091
+ disabled: c,
6092
6092
  toolbarComponent: i
6093
6093
  }), /* @__PURE__ */ jsx(EditorComponent, {})]
6094
6094
  })
6095
6095
  });
6096
- }));
6096
+ });
6097
6097
  var row_module_default = { row: "_row_n16je_1" };
6098
6098
  const Row = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: a = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6099
6099
  let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => isValidElement(e)) : [r]).map((t, n) => /* @__PURE__ */ jsx(React.Fragment, { children: React.cloneElement(t, { spacing: f }) }, n));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.13.1-beta-1",
3
+ "version": "5.13.1-beta-2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {
@@ -29,7 +29,9 @@
29
29
  "dist/**/*"
30
30
  ],
31
31
  "lint-staged": {
32
- "*.{js,jsx,ts,tsx}": "eslint --cache --fix",
32
+ "*.{js,jsx,ts,tsx}": [
33
+ "oxlint --fix"
34
+ ],
33
35
  "*.{js,jsx,json,css,less,ts,tsx}": [
34
36
  "prettier --write"
35
37
  ]
@@ -72,10 +74,7 @@
72
74
  "@dnd-kit/core": "^6.3.1",
73
75
  "@dnd-kit/sortable": "^8.0.0",
74
76
  "@dnd-kit/utilities": "^3.2.2",
75
- "@eslint/eslintrc": "^3.3.0",
76
- "@eslint/js": "^9.21.0",
77
77
  "@mdx-js/react": "^3",
78
- "@oliasoft-open-source/eslint-config-oliasoft": "^1.3.1",
79
78
  "@oliasoft-open-source/units": "^4.5.3",
80
79
  "@storybook/addon-docs": "^10.2.8",
81
80
  "@storybook/addon-links": "^10.2.8",
@@ -92,8 +91,6 @@
92
91
  "@types/react-redux": "^7.1.34",
93
92
  "@types/react-transition-group": "^4.4.12",
94
93
  "@types/seamless-immutable": "^7.1.19",
95
- "@typescript-eslint/eslint-plugin": "^8.26.0",
96
- "@typescript-eslint/parser": "^8.26.0",
97
94
  "@vitejs/plugin-react": "^5.0.1",
98
95
  "@vitest/coverage-c8": "^0.33.0",
99
96
  "@vitest/coverage-istanbul": "^3.0.7",
@@ -101,18 +98,6 @@
101
98
  "ajv-errors": "^3.0.0",
102
99
  "ajv-keywords": "^5.1.0",
103
100
  "es-toolkit": "^1.43.0",
104
- "eslint": "^9.21.0",
105
- "eslint-config-airbnb": "^19.0.4",
106
- "eslint-config-prettier": "^10.0.2",
107
- "eslint-import-resolver-alias": "^1.1.2",
108
- "eslint-import-resolver-typescript": "^3.8.3",
109
- "eslint-plugin-import": "^2.31.0",
110
- "eslint-plugin-jsx-a11y": "^6.10.2",
111
- "eslint-plugin-react": "^7.37.4",
112
- "eslint-plugin-react-hooks": "^5.2.0",
113
- "eslint-plugin-storybook": "^10.2.8",
114
- "eslint-plugin-vitest": "^0.5.4",
115
- "eslint-plugin-vitest-globals": "^1.5.0",
116
101
  "http-server": "^14.1.1",
117
102
  "husky": "^9",
118
103
  "immer": "^10",
@@ -120,6 +105,7 @@
120
105
  "jsondiffpatch": "^0.7.3",
121
106
  "less": "^4.2.2",
122
107
  "lint-staged": "^15.4.3",
108
+ "oxlint": "^1.46.0",
123
109
  "playwright": "^1.58.2",
124
110
  "prettier": "3.5.3",
125
111
  "prop-types": "^15",
@@ -151,18 +137,14 @@
151
137
  },
152
138
  "scripts": {
153
139
  "build:package": "tsc && vite build",
154
- "build:docs": "vite build --config vite.config.docs.ts",
155
140
  "build:storybook": "pnpm run build:package && storybook build --quiet --output-dir ./public/storybook",
156
- "build:extras": "pnpm build:docs && pnpm build:storybook",
157
141
  "build:css": "lessc src/style/external.less dist/gui-library.css",
158
- "build": "pnpm build:package && pnpm build:extras",
159
- "dev:docs": "vite --config vite.config.docs.ts",
142
+ "build": "pnpm build:package && pnpm build:storybook",
160
143
  "dev:storybook": "storybook dev -p 6006",
161
- "lint:check": "eslint \"**/*.{js,jsx,ts,tsx}\"",
162
- "lint:fix": "eslint --fix \"**/*.{js,jsx,ts,tsx}\"",
144
+ "lint:check": "oxlint .",
145
+ "lint:fix": "oxlint --fix .",
163
146
  "prettier:check": "prettier --check \"**/*.{js,jsx,json,css,less,ts,tsx}\"",
164
147
  "prettier:fix": "prettier --write \"**/*.{js,jsx,json,css,less,ts,tsx}\"",
165
- "preview:docs": "pnpm build:docs && pnpm exec http-server ./public -o -p 9002 -c-1",
166
148
  "preview:storybook": "pnpm exec http-server ./public/storybook -o -p 9003 -c-1",
167
149
  "test": "pnpm run prettier:check && pnpm run lint:check && pnpm run test:unit",
168
150
  "test:unit": "vitest run",