@rhc-shared-components/rich-text-editor 1.1.1 → 2.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/rich-text-editor",
3
- "version": "1.1.1",
3
+ "version": "2.0.1",
4
4
  "description": "WYSWYG Editor for Red Hat Certified Apps",
5
5
  "author": "gautamkrishnar",
6
6
  "license": "MIT",
@@ -35,13 +35,13 @@
35
35
  "devDependencies": {
36
36
  "@ckeditor/ckeditor5-react": "^5.1.0",
37
37
  "@eslint/js": "^9.19.0",
38
- "@patternfly/react-core": "^5.3.3",
38
+ "@patternfly/react-core": "^5.3.4",
39
39
  "@patternfly/react-icons": "^5.3.2",
40
40
  "@rhc-shared-components/rhc-ckeditor": "^1.0.2",
41
41
  "@types/ckeditor": "^4.9.10",
42
42
  "@types/node": "^22.13.4",
43
- "@types/react": "^18.3.18",
44
- "@types/react-dom": "^18.3.5",
43
+ "@types/react": "^19.2.0",
44
+ "@types/react-dom": "^19.2.0",
45
45
  "@vitejs/plugin-react": "^5.1.2",
46
46
  "eslint": "^9.19.0",
47
47
  "eslint-config-prettier": "^10.0.1",
@@ -51,8 +51,8 @@
51
51
  "formik": "^2.1.4",
52
52
  "globals": "^15.14.0",
53
53
  "prettier": "^3.5.1",
54
- "react": "^18.3.1",
55
- "react-dom": "^18.3.1",
54
+ "react": "^19.2.0",
55
+ "react-dom": "^19.2.0",
56
56
  "sass": "^1.57.1",
57
57
  "typescript": "~5.7.2",
58
58
  "typescript-eslint": "^8.22.0",
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- type RichTextEditorFunctionType = (value: string, event?: any, editor?: any) => void;
3
- export interface RichTextEditorProps {
4
- value: string;
5
- disabled?: boolean;
6
- onReady?: (editor: any) => void;
7
- onChange?: RichTextEditorFunctionType;
8
- onBlur?: RichTextEditorFunctionType;
9
- onFocus?: RichTextEditorFunctionType;
10
- onError?: (error: any, details?: any) => void;
11
- id?: string;
12
- name?: string;
13
- showCodeBlock?: boolean;
14
- ariaLabel?: string;
15
- placeholder?: string;
16
- }
17
- declare const RichTextEditor: React.FC<RichTextEditorProps>;
18
- export default RichTextEditor;
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- declare global {
3
- interface Window {
4
- ckeditorObj: any[];
5
- }
6
- }
7
- export interface RichTextEditorFormComponentProps {
8
- name: string;
9
- label: string;
10
- disabled?: boolean;
11
- isRequired?: boolean;
12
- placeholder?: string;
13
- ariaLabel?: string;
14
- helperText?: string;
15
- showMaxLengthText?: boolean;
16
- maxLength?: number;
17
- showCodeBlock?: boolean;
18
- }
19
- declare const RichTextEditorFormComponent: React.FC<RichTextEditorFormComponentProps>;
20
- export default RichTextEditorFormComponent;
@@ -1 +0,0 @@
1
- .rich-text-editor-custom{--rte-h1-internal-LineHeight: var(--pf-v5-global--LineHeight--sm, --pf-global--LineHeight--sm);--rte-h1-internal-FontSize: var(--pf-v5-global--FontSize--2xl, --pf-global--FontSize--2xl);--rte-h1-internal-FontWeight: var(--pf-v5-global--FontWeight--normal, --pf-global--FontWeight--normal);--rte-h2-internal-LineHeight: var(--pf-v5-global--LineHeight--md, -pf-global--LineHeight--mD);--rte-h2-internal-FontSize: var(--pf-v5-global--FontSize--xl, --pf-global--FontSize--xl);--rte-h2-internal-FontWeight: var(--pf-v5-global--FontWeight--normal, --pf-global--FontWeight--normal);--rte-h3-internal-LineHeight: var(--pf-v5-global--LineHeight--md, -pf-global--LineHeight--md);--rte-h3-internal-FontSize: var(--pf-v5-global--FontSize--lg, --pf-global--FontSize--lg);--rte-h3-internal-FontWeight: var(--pf-v5-global--FontWeight--normal, --pf-global--FontWeight--normal);--rte-h4-internal-LineHeight: var(--pf-v5-global--LineHeight--md, --pf-global--LineHeight--md);--rte-h4-internal-FontSize: var(--pf-v5-global--FontSize--md, --pf-global--FontSize--md);--rte-h4-internal-FontWeight: var( --pf-v5-global--FontWeight--normal, --pf-global--FontWeight--normal)}.rich-text-editor-custom .ck-editor__main{word-break:break-all}.rich-text-editor-custom .ck-code-block-dropdown .ck-splitbutton__arrow{display:none}.rich-text-editor-custom h1{font-size:var(--rte-h1-internal-FontSize);font-weight:var(--rte-h1-internal-FontWeight);line-height:var(--rte-h1-internal-LineHeight)}.rich-text-editor-custom h2{font-size:var(--rte-h2-internal-FontSize);font-weight:var(--rte-h2-internal-FontWeight);line-height:var(--rte-h2-internal-LineHeight)}.rich-text-editor-custom h3{font-size:var(--rte-h3-internal-FontSize);font-weight:var(--rte-h3-internal-FontWeight);line-height:var(--rte-h3-internal-LineHeight)}.rich-text-editor-custom h4{font-size:var(--rte-h4-internal-FontSize);font-weight:var(--rte-h4-internal-FontWeight);line-height:var(--rte-h4-internal-LineHeight)}.rich-text-editor-custom ul{display:block;list-style-type:disc;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0;margin-inline-end:0;padding-inline-start:40px}.rich-text-editor-custom ul li{display:list-item}.rich-text-editor-custom ul ul{list-style-type:circle;margin-block-start:0;margin-block-end:0}.rich-text-editor-custom ol{display:block;list-style-type:decimal;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0;margin-inline-end:0;padding-inline-start:40px}
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { default as RichTextEditor } from './RichTextEditor';
2
- import { default as RichTextEditorFormComponent } from './RichTextEditorFormComponent';
3
- export { RichTextEditor, RichTextEditorFormComponent };