jamespot-react-core 1.1.186 → 1.1.187

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.
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { CombinedWidgetType, WidgetDisplayMode, WidgetWrapperLevel } from 'jamespot-user-api';
3
3
  export declare const CSSWidgetWithTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
- export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpdate, cannotDisplayComponent, levelFallback, }: {
4
+ export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpdate, cannotDisplayComponent, levelFallback, dataCy, }: {
5
5
  widget: CombinedWidgetType;
6
6
  width?: number | undefined;
7
7
  inplace: boolean;
@@ -10,4 +10,5 @@ export declare const DisplayWidget: ({ widget, width, inplace, mode, onWidgetUpd
10
10
  onClick: () => void;
11
11
  cannotDisplayComponent?: ((widget: string) => ReactNode) | undefined;
12
12
  levelFallback?: ((level: WidgetWrapperLevel, url: string) => ReactNode | undefined) | undefined;
13
+ dataCy?: string | undefined;
13
14
  }) => React.JSX.Element;
@@ -9,6 +9,7 @@ type WidgetWrapperCoreProps = {
9
9
  width?: number | undefined;
10
10
  onWidgetUpdate?: () => void;
11
11
  cannotDisplayComponent?: (widget: string) => ReactNode;
12
+ dataCy?: string;
12
13
  };
13
- export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, onWidgetUpdate, cannotDisplayComponent, }: WidgetWrapperCoreProps) => React.JSX.Element;
14
+ export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, onWidgetUpdate, cannotDisplayComponent, dataCy, }: WidgetWrapperCoreProps) => React.JSX.Element;
14
15
  export default WidgetWrapperCore;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { WidgetArticleTitleType, WidgetDisplayMode } from 'jamespot-user-api';
3
- export declare const JRCWidgetArticleTitleWrapper: ({ widget, inplace, mode, }: {
3
+ export declare const JRCWidgetArticleTitleWrapper: ({ widget, inplace, mode, dataCy, }: {
4
4
  widget: WidgetArticleTitleType;
5
5
  inplace: boolean;
6
6
  mode?: "view" | "edit" | "preview" | undefined;
7
+ dataCy?: string | undefined;
7
8
  }) => React.JSX.Element;
8
9
  export declare const Toolbar: ({ heading, onClick }: {
9
10
  heading?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.186",
3
+ "version": "1.1.187",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -57,8 +57,8 @@
57
57
  "eslint-plugin-import": "^2.31.0",
58
58
  "history": "^5.3.0",
59
59
  "jamespot-front-business": "^1.1.85",
60
- "jamespot-react-components": "^1.0.235",
61
- "jamespot-user-api": "^1.0.211",
60
+ "jamespot-react-components": "^1.0.236",
61
+ "jamespot-user-api": "^1.0.212",
62
62
  "marked": "^15.0.3",
63
63
  "react": "^17.0.2",
64
64
  "react-dom": "17.0.2",