jamespot-react-components 1.0.165 → 1.0.166

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.
@@ -3,6 +3,7 @@ import { Editor } from '@tinymce/tinymce-react';
3
3
  import { LegacyRef } from 'react';
4
4
  import { TinyMCECommonOptions } from 'jamespot-user-api';
5
5
  import { DataCy } from '../../../../types/dataAttributes';
6
+ import { TinyMCEExtension } from './extensions/JTinyMCEExtensions';
6
7
  declare global {
7
8
  const tinymce: any;
8
9
  }
@@ -16,6 +17,7 @@ export type MentionQuery = (query: string) => Promise<TinyMention[]>;
16
17
  export type JRCInputTinyMCEProps = DataCy & {
17
18
  token?: string;
18
19
  commonOptions: TinyMCECommonOptions;
20
+ additionalExtensions?: Array<TinyMCEExtension>;
19
21
  value: string;
20
22
  onBlur?: () => void;
21
23
  onChange: (v: string) => void;
@@ -27,4 +29,4 @@ export type JRCInputTinyMCEProps = DataCy & {
27
29
  contents: MentionQuery;
28
30
  };
29
31
  };
30
- export declare const JRCInputTinyMCE: ({ dataCy, token, value, onBlur, onChange, mentionsQueries, tinymceScriptSrc, ref, ...props }: JRCInputTinyMCEProps) => React.JSX.Element;
32
+ export declare const JRCInputTinyMCE: ({ dataCy, token, value, onBlur, onChange, mentionsQueries, tinymceScriptSrc, additionalExtensions, ref, ...props }: JRCInputTinyMCEProps) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Editor } from 'tinymce';
2
+ export type TinyMCEExtension = {
3
+ setup: (editor: Editor) => void;
4
+ };
5
+ export interface TinyMCEExtensionBuilder<T extends Array<any>> {
6
+ (...args: T): TinyMCEExtension;
7
+ }
8
+ export declare const JTinyMCEExtensionsBuilders: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.165",
3
+ "version": "1.0.166",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -92,7 +92,7 @@
92
92
  "chroma-js": "^2.1.1",
93
93
  "classnames": "^2.3.1",
94
94
  "dompurify": "^3.0.5",
95
- "jamespot-user-api": "^1.0.137",
95
+ "jamespot-user-api": "^1.0.138",
96
96
  "moment": "2.29.4",
97
97
  "react": "^17.x",
98
98
  "react-beautiful-dnd": "^13.1.1",