jamespot-react-core 1.2.62 → 1.3.3

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.
@@ -17,5 +17,6 @@ export * from './components';
17
17
  export * from './hooks';
18
18
  export * from './types';
19
19
  export { useAppDispatch, useAppSelector };
20
+ export { createBodyElement, createExtension, createSimpleExtension, mountRootExtension } from './utils/extensions';
20
21
  export { getTinyMCEMentionsQueries } from './utils/tinymce';
21
22
  export default App;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { CombinedWidgetType, WidgetDisplayMode, WidgetWrapperLevel } from 'jamespot-user-api';
2
+ import { ReactNode } from 'react';
3
3
  export declare const CSSWidgetWithTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpdate, cannotDisplayComponent, levelFallback, dataCy, }: {
5
5
  widget: CombinedWidgetType;
@@ -0,0 +1,5 @@
1
+ import { WidgetExtensionContent, WidgetKeys } from 'jamespot-user-api';
2
+ export declare const JRCWidgetExtensionWrapper: ({ uniqid, extensionName, }: {
3
+ uniqid: string;
4
+ name: WidgetKeys;
5
+ } & WidgetExtensionContent) => import("react/jsx-runtime").JSX.Element;
@@ -160,6 +160,7 @@ declare const mapping: {
160
160
  WidgetEmailsImapLevel2: "JRCWidgetEmailsImapLevel2";
161
161
  WidgetEmptyInplace: "JRCWidgetEmptyInplace";
162
162
  WidgetExcelDatasourceTableEditor: "JRCWidgetExcelDatasourceTableEditor";
163
+ WidgetExtensionEditor: "JRCWidgetExtensionEditor";
163
164
  WidgetIcon: "JRCWidgetIcon";
164
165
  WidgetImage: "JRCWidgetImage";
165
166
  WidgetImageEditor: "JRCWidgetImageEditor";
@@ -0,0 +1,6 @@
1
+ import { Root } from 'react-dom/client';
2
+ import { ReactExtension } from './types';
3
+ export declare const createExtension: (overrides: Partial<ReactExtension>) => ReactExtension;
4
+ export declare const createSimpleExtension: (anchorId: string, component: React.JSX.Element) => ReactExtension;
5
+ export declare const mountRootExtension: (App: ReactExtension, component: React.JSX.Element, nodeId?: string) => Root | undefined;
6
+ export declare const createBodyElement: (id: string, element?: string) => HTMLElement | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.2.62",
3
+ "version": "1.3.3",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -9,12 +9,12 @@
9
9
  "@testing-library/jest-dom": "^6.9.1",
10
10
  "@testing-library/react": "^14.3.1",
11
11
  "@types/jest": "^30.0.0",
12
- "@types/node": "^20.19.21",
12
+ "@types/node": "^20.19.24",
13
13
  "@types/react": "^18.3.26",
14
14
  "@types/react-dom": "^18.3.7",
15
15
  "@types/react-redux": "^7.1.34",
16
16
  "@types/react-router-dom": "^5.3.3",
17
- "@types/styled-components": "^5.1.34",
17
+ "@types/styled-components": "^5.1.35",
18
18
  "@types/uuid": "^10.0.0",
19
19
  "@typescript-eslint/eslint-plugin": "^5.62.0",
20
20
  "@typescript-eslint/parser": "^5.62.0",
@@ -30,19 +30,19 @@
30
30
  "fork-ts-checker-webpack-plugin": "^9.1.0",
31
31
  "history": "^5.3.0",
32
32
  "husky": "^7.0.4",
33
- "jamespot-front-business": "^1.2.62",
34
- "jamespot-react-components": "^1.2.62",
35
- "jamespot-user-api": "^1.2.62",
33
+ "jamespot-front-business": "^1.3.3",
34
+ "jamespot-react-components": "^1.3.3",
35
+ "jamespot-user-api": "^1.3.3",
36
36
  "jest": "^30.2.0",
37
37
  "jest-environment-jsdom": "^30.2.0",
38
- "knip": "^5.65.0",
38
+ "knip": "^5.67.1",
39
39
  "lint-staged": "^12.5.0",
40
- "marked": "^16.4.0",
40
+ "marked": "^16.4.1",
41
41
  "mini-css-extract-plugin": "^0.10.1",
42
42
  "prettier": "^3.6.2",
43
43
  "react": "^18.3.1",
44
44
  "react-dom": "^18.3.1",
45
- "react-hook-form": "^7.65.0",
45
+ "react-hook-form": "^7.66.0",
46
46
  "react-intl": "7.1.11",
47
47
  "react-redux": "^8.1.3",
48
48
  "react-router-dom": "^6.30.1",