jamespot-front-business 1.1.50 → 1.1.51

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.
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as redux from 'redux';
2
2
  import { Dispatch as Dispatch$1 } from 'redux';
3
3
  import * as jamespot_user_api from 'jamespot-user-api';
4
- import { AnimationConfigurationType, ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, jTaxonomyLittle, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, JLandMap, AdminLicensesNotAssigned, jArticleView, Filters, Orders, PagingResults, MediaLibraryList, ApiPagingResults, ApiWrapper, Model as Model$1, NetworkType, WedocFileType, jUserLittle, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, CombinedWidgetContent, WidgetsState, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
4
+ import { AnimationConfigurationType, ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, jTaxonomyLittle, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, JLandMap, AdminLicensesNotAssigned, jArticleView, Filters, Orders, PagingResults, MediaLibraryList, ApiPagingResults, ApiWrapper, Model as Model$1, NetworkType, WedocFileType, jUserLittle, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetDefinitionProps, WidgetWrapperProps, WidgetTypeKeys, CombinedWidgetContent, WidgetsState, jObjectLittle, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
5
5
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
6
6
  import { EntityState, Dispatch, Action, PayloadAction } from '@reduxjs/toolkit';
7
7
  import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
@@ -2255,8 +2255,6 @@ declare const UserCurrent: {
2255
2255
  };
2256
2256
  };
2257
2257
 
2258
- declare function widgetFactory<T extends WidgetKeys>(name: T): WidgetWrapperProps<WidgetTypeKeys[T]>;
2259
-
2260
2258
  declare function uniqid(): string;
2261
2259
 
2262
2260
  declare const WIDGET_ARTICLE_TITLE = "widget-article-title";
@@ -2294,6 +2292,8 @@ declare namespace WIDGETS {
2294
2292
 
2295
2293
  declare function widgetDefinition(name: WidgetKeys | undefined): WidgetDefinitionProps;
2296
2294
 
2295
+ declare function widgetFactory<T extends WidgetKeys>(name: T): WidgetWrapperProps<WidgetTypeKeys[T]>;
2296
+
2297
2297
  declare const MODE_EDIT = "edit";
2298
2298
  declare const MODE_VIEW = "view";
2299
2299
  declare type WidgetModalProps = {
@@ -2320,6 +2320,10 @@ declare const Widget: {
2320
2320
  uniqid: string;
2321
2321
  widget: WidgetWrapperProps;
2322
2322
  }>) => void;
2323
+ registerWidgetObject: (state: Draft<S>, action: PayloadAction<{
2324
+ uniqid: string;
2325
+ object: Partial<jObjectLittle>;
2326
+ }>) => void;
2323
2327
  updateWidget: (state: Draft<S>, action: PayloadAction<{
2324
2328
  uniqid: string;
2325
2329
  content: Partial<CombinedWidgetContent>;
@@ -2383,6 +2387,16 @@ declare const Widget: {
2383
2387
  selectWidgetState: (state: WidgetsRootState, uniqid: string) => WidgetStateProps | undefined;
2384
2388
  selectWidgetContent: (state: WidgetsRootState, uniqid: string) => CombinedWidgetContent | undefined;
2385
2389
  selectModal: (state: WidgetsRootState) => jamespot_user_api.WidgetModalProps | undefined;
2390
+ selectWidgetObject: (state: WidgetsRootState, uniqid: string) => Partial<{
2391
+ type: string;
2392
+ id: number;
2393
+ mainType: string;
2394
+ uri: string;
2395
+ title: string;
2396
+ _url: string;
2397
+ dateCreation?: string | undefined;
2398
+ dateModified?: string | null | undefined;
2399
+ }> | undefined;
2386
2400
  };
2387
2401
  };
2388
2402
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-front-business",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "typescript utils",
5
5
  "main": "dist/cjs.js",
6
6
  "module": "dist/esm.js",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@reduxjs/toolkit": "1.9.0",
41
41
  "@types/uuid": "^9.0.8",
42
- "jamespot-user-api": "^1.0.163",
42
+ "jamespot-user-api": "^1.0.164",
43
43
  "react-redux": "7.2.9",
44
44
  "redux": "4.2.0",
45
45
  "uuid": "^9.0.1"