@scbt-ecom/ui 0.29.0 → 0.30.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.
@@ -0,0 +1,9 @@
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ export {
6
+ o as c,
7
+ l as g
8
+ };
9
+ //# sourceMappingURL=_commonjsHelpers-DaMA6jEr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_commonjsHelpers-DaMA6jEr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import { g } from "./_commonjsHelpers-C6fGbg64.js";
1
+ import { g } from "./_commonjsHelpers-DaMA6jEr.js";
2
2
  var b = {}, m = {};
3
3
  (function(t) {
4
4
  Object.defineProperty(t, "__esModule", {
@@ -1 +1 @@
1
- export declare const editorConfig: (import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-underline').UnderlineOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-color').ColorOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-heading').HeadingOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-hard-break').HardBreakOptions, any>)[];
1
+ export declare const editorConfig: (import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-underline').UnderlineOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-color').ColorOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-heading').HeadingOptions, any>)[];
@@ -1,10 +1,15 @@
1
1
  import { FieldError } from 'react-hook-form';
2
+ import { EditorEvents, UseEditorOptions } from '@tiptap/react';
2
3
  import { ICommonEditorProps, TEditorControlClasses } from '../EditorControl';
3
- interface IEditorProps extends ICommonEditorProps {
4
+ type ExternalHandlers = {
5
+ onUpdate?: (editor: EditorEvents['update']) => void;
6
+ };
7
+ interface EditorProps extends ICommonEditorProps, Partial<UseEditorOptions> {
4
8
  onChange: (value: string) => void;
5
9
  value: string;
6
10
  error?: FieldError;
7
11
  classes?: TEditorControlClasses;
12
+ externalHandlers?: ExternalHandlers;
8
13
  }
9
- export declare const Editor: ({ onChange, value, label, error, classes, editable, helperText, ...props }: IEditorProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<HTMLDivElement>>;
10
15
  export {};