jamespot-react-core 1.2.13 → 1.2.15

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,5 +1,5 @@
1
- import React from 'react';
2
1
  import { jCommentList, WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
2
+ import React from 'react';
3
3
  export declare const CommentsBlocCommentWidgetsWrapper: (props: {
4
4
  comment: jCommentList;
5
5
  widgets: WidgetWrapperProps[];
@@ -1,4 +1,4 @@
1
- import { jCommentList, WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
1
+ import { jCommentList, WidgetContext, WidgetDisplayMode, WidgetWrapperProps } from 'jamespot-user-api';
2
2
  import React, { ReactNode } from 'react';
3
3
  type WidgetWrapperCoreProps = {
4
4
  uniqid: string;
@@ -7,9 +7,10 @@ type WidgetWrapperCoreProps = {
7
7
  inplace?: boolean;
8
8
  mode: WidgetDisplayMode;
9
9
  width?: number | undefined;
10
+ context: WidgetContext;
10
11
  onWidgetUpdate?: () => void;
11
12
  cannotDisplayComponent?: (widget: string) => ReactNode;
12
13
  dataCy?: string;
13
14
  };
14
- export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, onWidgetUpdate, cannotDisplayComponent, dataCy, }: WidgetWrapperCoreProps) => React.JSX.Element;
15
+ export declare const WidgetWrapperCore: ({ uniqid, widgetObject, widget, inplace, mode, width, context, onWidgetUpdate, cannotDisplayComponent, dataCy, }: WidgetWrapperCoreProps) => React.JSX.Element;
15
16
  export default WidgetWrapperCore;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { DisplayInputComponentProps } from '../../types';
3
- import type { FieldValues } from 'react-hook-form';
3
+ import { FieldValues } from 'react-hook-form';
4
4
  export declare const InputAudience: <TFieldValues extends FieldValues>(props: DisplayInputComponentProps<TFieldValues>) => React.JSX.Element;
@@ -105,6 +105,7 @@ export declare const InputTaxonomy: <TFieldValues extends FieldValues>(widget: W
105
105
  type: "audience";
106
106
  options?: {
107
107
  disableEveryoneAudience?: boolean | undefined;
108
+ views?: ("user" | "folder" | "group" | "businessContact")[] | undefined;
108
109
  } | undefined;
109
110
  };
110
111
  mandatory: boolean;
@@ -18,6 +18,7 @@ export type ConfigurableField<N extends ConfigurableFieldName, T extends object>
18
18
  };
19
19
  export type ConfigurableAudience = ConfigurableField<'publishTo', {
20
20
  disableEveryoneAudience?: boolean;
21
+ views?: Array<'folder' | 'user' | 'group' | 'businessContact'>;
21
22
  }>;
22
23
  export type ConfigurableFields = ConfigurableAudience;
23
24
  export declare const ensureConfigurableField: (field: unknown) => field is ConfigurableAudience;
@@ -277,7 +277,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
277
277
  };
278
278
  name: string;
279
279
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
280
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
280
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
281
281
  or?: boolean | undefined;
282
282
  isNull?: boolean | undefined;
283
283
  isNotNull?: boolean | undefined;
@@ -316,7 +316,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
316
316
  };
317
317
  name: string;
318
318
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
319
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
319
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
320
320
  or?: boolean | undefined;
321
321
  isNull?: boolean | undefined;
322
322
  isNotNull?: boolean | undefined;
@@ -350,7 +350,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
350
350
  };
351
351
  name: string;
352
352
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
353
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
353
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
354
354
  or?: boolean | undefined;
355
355
  isNull?: boolean | undefined;
356
356
  isNotNull?: boolean | undefined;
@@ -1075,6 +1075,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
1075
1075
  uniqid: string;
1076
1076
  fn: "widget-presence-response" | "check-list-response" | "widget-update" | "widget-quick-survey-response";
1077
1077
  }[];
1078
+ widgetContext: Record<string, "article" | "comment">;
1078
1079
  token?: string | undefined;
1079
1080
  modal?: {
1080
1081
  title?: string | undefined;
@@ -1221,7 +1222,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
1221
1222
  };
1222
1223
  name: string;
1223
1224
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
1224
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
1225
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
1225
1226
  or?: boolean | undefined;
1226
1227
  isNull?: boolean | undefined;
1227
1228
  isNotNull?: boolean | undefined;
@@ -1260,7 +1261,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
1260
1261
  };
1261
1262
  name: string;
1262
1263
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
1263
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
1264
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
1264
1265
  or?: boolean | undefined;
1265
1266
  isNull?: boolean | undefined;
1266
1267
  isNotNull?: boolean | undefined;
@@ -1294,7 +1295,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
1294
1295
  };
1295
1296
  name: string;
1296
1297
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
1297
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
1298
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
1298
1299
  or?: boolean | undefined;
1299
1300
  isNull?: boolean | undefined;
1300
1301
  isNotNull?: boolean | undefined;
@@ -2019,6 +2020,7 @@ declare function createStore(initialAsyncReducers: AsyncReducers): import("@redu
2019
2020
  uniqid: string;
2020
2021
  fn: "widget-presence-response" | "check-list-response" | "widget-update" | "widget-quick-survey-response";
2021
2022
  }[];
2023
+ widgetContext: Record<string, "article" | "comment">;
2022
2024
  token?: string | undefined;
2023
2025
  modal?: {
2024
2026
  title?: string | undefined;
@@ -2170,7 +2172,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
2170
2172
  };
2171
2173
  name: string;
2172
2174
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
2173
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
2175
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
2174
2176
  or?: boolean | undefined;
2175
2177
  isNull?: boolean | undefined;
2176
2178
  isNotNull?: boolean | undefined;
@@ -2209,7 +2211,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
2209
2211
  };
2210
2212
  name: string;
2211
2213
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
2212
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
2214
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
2213
2215
  or?: boolean | undefined;
2214
2216
  isNull?: boolean | undefined;
2215
2217
  isNotNull?: boolean | undefined;
@@ -2243,7 +2245,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
2243
2245
  };
2244
2246
  name: string;
2245
2247
  operator?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | undefined;
2246
- method?: "match" | "link" | "is" | "-" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | undefined;
2248
+ method?: "match" | "link" | "is" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is not" | "in" | "equal" | "+" | "-" | undefined;
2247
2249
  or?: boolean | undefined;
2248
2250
  isNull?: boolean | undefined;
2249
2251
  isNotNull?: boolean | undefined;
@@ -2968,6 +2970,7 @@ export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispa
2968
2970
  uniqid: string;
2969
2971
  fn: "widget-presence-response" | "check-list-response" | "widget-update" | "widget-quick-survey-response";
2970
2972
  }[];
2973
+ widgetContext: Record<string, "article" | "comment">;
2971
2974
  token?: string | undefined;
2972
2975
  modal?: {
2973
2976
  title?: string | undefined;
@@ -11,6 +11,7 @@ declare const _default: {
11
11
  readonly ButtonDownload: "JRCButtonDownload";
12
12
  readonly ButtonDropdown: "JRCButtonDropdown";
13
13
  readonly ButtonFile: "JRCButtonFile";
14
+ readonly Calendar: "JRCCalendar";
14
15
  readonly Card: "JRCCard";
15
16
  readonly CardImg: "JRCCardImg";
16
17
  readonly Checkbox: "JRCCheckbox";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -56,9 +56,9 @@
56
56
  "eslint-import-resolver-typescript": "^3.6.3",
57
57
  "eslint-plugin-import": "^2.31.0",
58
58
  "history": "^5.3.0",
59
- "jamespot-front-business": "^1.2.13",
60
- "jamespot-react-components": "^1.2.13",
61
- "jamespot-user-api": "^1.2.13",
59
+ "jamespot-front-business": "^1.2.15",
60
+ "jamespot-react-components": "^1.2.15",
61
+ "jamespot-user-api": "^1.2.15",
62
62
  "marked": "^15.0.3",
63
63
  "react": "^17.0.2",
64
64
  "react-dom": "17.0.2",