jamespot-react-core 1.1.123 → 1.1.124

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.
@@ -14,4 +14,5 @@ export { ReactRouterHistory };
14
14
  export * from './components';
15
15
  export * from './hooks';
16
16
  export * from './types';
17
+ export { getTinyMCEMentionsQueries } from './utils/tinymce';
17
18
  export default App;
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import { useDisplay, useDisplayList } from './displayer/useDisplay';
6
6
  import { ReactRouter } from './utils/router';
7
7
  import { JInjectStore } from './redux/store';
8
+ import { TinyMCECommonOptions } from 'jamespot-user-api';
8
9
  declare class App implements ReactCore {
9
10
  extensions: ReactExtensions;
10
11
  loadedExtensions: ReactLoadedExtensions;
@@ -18,6 +19,7 @@ declare class App implements ReactCore {
18
19
  theme: any;
19
20
  socket: ReactSocket;
20
21
  router: ReactRouter;
22
+ tinymceCommonOptions?: TinyMCECommonOptions;
21
23
  constructor(store: JInjectStore, ActionCreators: object, registry: ReactRegistry, locale: SupportedLanguages, translation: ReactTranslation, socket: ReactSocket);
22
24
  require: (extensionName: string, args?: any) => void;
23
25
  unmountExtension: (extensionName: string) => void;
@@ -88,6 +88,8 @@ declare const _default: {
88
88
  readonly InputTextIconButton: "JRCInputTextIconButton";
89
89
  readonly InputTextarea: "JRCInputTextarea";
90
90
  readonly InputTime: "JRCInputTime";
91
+ readonly InputTinyMCE: "JRCInputTinyMCE";
92
+ readonly InputTinyMCEForm: "JRCFormTinyMCE";
91
93
  readonly InputUrl: "JRCInputUrl";
92
94
  readonly List: "JRCList";
93
95
  readonly Loader: "JRCLoader";
@@ -118,6 +120,8 @@ declare const _default: {
118
120
  readonly Text: "JRCText";
119
121
  readonly Theme: "Theme";
120
122
  readonly ThemeProvider: "JRCThemeProvider";
123
+ readonly TinyMCEImageUploadModal: "JRCTinyMCEImageUploadModal";
124
+ readonly TinyMCEVideoUploadModal: "JRCTinyMCEVideoUploadModal";
121
125
  readonly Tooltip: "JRCTooltip";
122
126
  readonly Typography: "JRCTypography";
123
127
  readonly ValidationButton: "JRCValidationButton";
@@ -0,0 +1,9 @@
1
+ import { Model, TinyMCECommonOptions, TinyMCEDynamicOptions } from 'jamespot-user-api';
2
+ import { MentionQuery } from 'jamespot-react-components';
3
+ import { DefaultTheme } from 'styled-components';
4
+ export declare const initTinyMCEOptions: (dynamicOptions: TinyMCEDynamicOptions) => TinyMCECommonOptions;
5
+ export declare const getTinyMCEMentionsQueries: (models: Model<string>[], theme: DefaultTheme) => {
6
+ users: MentionQuery;
7
+ tags: MentionQuery;
8
+ contents: MentionQuery;
9
+ };
@@ -1,4 +1,4 @@
1
- import { ApplicationType, jUserList, Model, Namespaces, Readable, RTMessageWsPresence } from 'jamespot-user-api';
1
+ import { ApplicationType, jUserList, Model, Namespaces, Readable, RTMessageWsPresence, TinyMCECommonOptions, TinyMCEDynamicOptions } from 'jamespot-user-api';
2
2
  import * as React from 'react';
3
3
  import { useDisplay, useDisplayList } from '../displayer/useDisplay';
4
4
  import { ReactRegistry } from '../registry/Registry';
@@ -32,6 +32,7 @@ export interface ReactCore {
32
32
  changeWindowLocation: (targetUrl: string, event: React.MouseEvent<HTMLElement>, enableWindowOpen: boolean) => void;
33
33
  useDisplay: typeof useDisplay;
34
34
  useDisplayList: typeof useDisplayList;
35
+ tinymceCommonOptions?: TinyMCECommonOptions;
35
36
  }
36
37
  export interface ReactExtensions {
37
38
  [key: string]: any;
@@ -147,6 +148,7 @@ export interface WindowJ {
147
148
  logo: string | null;
148
149
  };
149
150
  networks: Networks;
151
+ tinymceDynamicOptions: TinyMCEDynamicOptions;
150
152
  }
151
153
  export type IsAppActivateProps = {
152
154
  dependency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.123",
3
+ "version": "1.1.124",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -50,9 +50,9 @@
50
50
  "dependencies": {
51
51
  "@reduxjs/toolkit": "^1.9.0",
52
52
  "history": "^5.3.0",
53
- "jamespot-front-business": "^1.1.26",
54
- "jamespot-react-components": "^1.0.153",
55
- "jamespot-user-api": "^1.0.125",
53
+ "jamespot-front-business": "^1.1.27",
54
+ "jamespot-react-components": "^1.0.159",
55
+ "jamespot-user-api": "^1.0.128",
56
56
  "react": "^17.0.2",
57
57
  "react-dom": "^17.0.2",
58
58
  "react-hook-form": "^7.25.0",