jamespot-front-business 1.1.65 → 1.1.67

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/cjs.js CHANGED
@@ -56,7 +56,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
56
56
  const toastAdapter = toolkit.createEntityAdapter({
57
57
  selectId: (toast) => toast.id,
58
58
  });
59
- const slice$4 = toolkit.createSlice({
59
+ const slice$5 = toolkit.createSlice({
60
60
  name: 'toasts',
61
61
  initialState: toastAdapter.getInitialState(),
62
62
  reducers: {
@@ -70,9 +70,9 @@ const addMessage = (_a, type, timeout) => {
70
70
  if (type === void 0) { type = 'success'; }
71
71
  if (timeout === void 0) { timeout = 3000; }
72
72
  return (dispatch) => {
73
- dispatch(slice$4.actions.addOne(Object.assign(Object.assign({ id }, toast), { timeout, type })));
73
+ dispatch(slice$5.actions.addOne(Object.assign(Object.assign({ id }, toast), { timeout, type })));
74
74
  setTimeout(() => {
75
- dispatch(slice$4.actions.removeOne(id));
75
+ dispatch(slice$5.actions.removeOne(id));
76
76
  }, timeout);
77
77
  return id;
78
78
  };
@@ -83,11 +83,11 @@ const actions = {
83
83
  warning: (toast, timeout) => addMessage(toast, 'warning', timeout),
84
84
  error: (toast, timeout) => addMessage(toast, 'error', timeout),
85
85
  };
86
- const selectors$2 = toastAdapter.getSelectors((state) => state.toasts);
86
+ const selectors$3 = toastAdapter.getSelectors((state) => state.toasts);
87
87
  const Toast = {
88
- slice: slice$4,
89
- actions: Object.assign(Object.assign({}, actions), slice$4.actions),
90
- selectors: selectors$2,
88
+ slice: slice$5,
89
+ actions: Object.assign(Object.assign({}, actions), slice$5.actions),
90
+ selectors: selectors$3,
91
91
  };
92
92
 
93
93
  const initialState$m = {
@@ -303,24 +303,24 @@ const Animations = {
303
303
  getAnimationsRTHandlers,
304
304
  };
305
305
 
306
- const adapter$1 = toolkit.createEntityAdapter({
306
+ const adapter$2 = toolkit.createEntityAdapter({
307
307
  selectId: (app) => app.name,
308
308
  sortComparer: (a, b) => a.label.localeCompare(b.label),
309
309
  });
310
- const slice$3 = toolkit.createSlice({
310
+ const slice$4 = toolkit.createSlice({
311
311
  name: 'applications',
312
- initialState: adapter$1.getInitialState(),
312
+ initialState: adapter$2.getInitialState(),
313
313
  reducers: {
314
- addOne: adapter$1.addOne,
315
- addMany: adapter$1.addMany,
316
- setAll: adapter$1.setAll,
314
+ addOne: adapter$2.addOne,
315
+ addMany: adapter$2.addMany,
316
+ setAll: adapter$2.setAll,
317
317
  },
318
318
  });
319
- const selectors$1 = adapter$1.getSelectors((state) => state.entities.applications);
319
+ const selectors$2 = adapter$2.getSelectors((state) => state.entities.applications);
320
320
  const Application = {
321
- slice: slice$3,
322
- actions: Object.assign({}, slice$3.actions),
323
- selectors: selectors$1,
321
+ slice: slice$4,
322
+ actions: Object.assign({}, slice$4.actions),
323
+ selectors: selectors$2,
324
324
  };
325
325
 
326
326
  const initialState$l = {
@@ -1008,7 +1008,7 @@ const buildDrivesArrayFromObject = (drives) => {
1008
1008
  return Object.keys(drives).filter((k) => drives[k]);
1009
1009
  };
1010
1010
 
1011
- const slice$2 = toolkit.createSlice({
1011
+ const slice$3 = toolkit.createSlice({
1012
1012
  name: 'hooks',
1013
1013
  initialState: {},
1014
1014
  reducers: {
@@ -1026,8 +1026,8 @@ const hasHookLicense = (state, hook) => {
1026
1026
  return !!((_a = state.hooks[hook]) === null || _a === void 0 ? void 0 : _a.hasLicense);
1027
1027
  };
1028
1028
  const Hook = {
1029
- slice: slice$2,
1030
- actions: slice$2.actions,
1029
+ slice: slice$3,
1030
+ actions: slice$3.actions,
1031
1031
  selectors: { selectHooks, selectHook, hasHookLicense },
1032
1032
  utils: { buildDrivesArrayFromObject },
1033
1033
  };
@@ -1673,7 +1673,7 @@ const MediaLibrary = {
1673
1673
  },
1674
1674
  };
1675
1675
 
1676
- const adapter = toolkit.createEntityAdapter({
1676
+ const adapter$1 = toolkit.createEntityAdapter({
1677
1677
  selectId: (model) => model.type,
1678
1678
  sortComparer: (a, b) => a.label.localeCompare(b.label),
1679
1679
  });
@@ -1685,25 +1685,25 @@ const getModelIconSrc = (model, size) => {
1685
1685
  };
1686
1686
  return jamespot.formatImgUrl(imgProps);
1687
1687
  };
1688
- const slice$1 = toolkit.createSlice({
1688
+ const slice$2 = toolkit.createSlice({
1689
1689
  name: 'models',
1690
- initialState: adapter.getInitialState(),
1690
+ initialState: adapter$1.getInitialState(),
1691
1691
  reducers: {
1692
- addOne: adapter.addOne,
1693
- addMany: adapter.addMany,
1694
- setAll: adapter.setAll,
1692
+ addOne: adapter$1.addOne,
1693
+ addMany: adapter$1.addMany,
1694
+ setAll: adapter$1.setAll,
1695
1695
  },
1696
1696
  });
1697
- const selectors = adapter.getSelectors((state) => state.entities.models);
1697
+ const selectors$1 = adapter$1.getSelectors((state) => state.entities.models);
1698
1698
  const utils = {
1699
1699
  getModelIconSrc,
1700
1700
  };
1701
1701
  const selectByIds = (state, types) => types.map((type) => state.entities.models.entities[type]).filter((model) => !!model);
1702
1702
  const Model = {
1703
- slice: slice$1,
1704
- actions: Object.assign({}, slice$1.actions),
1703
+ slice: slice$2,
1704
+ actions: Object.assign({}, slice$2.actions),
1705
1705
  utils,
1706
- selectors: Object.assign(Object.assign({}, selectors), { selectByIds }),
1706
+ selectors: Object.assign(Object.assign({}, selectors$1), { selectByIds }),
1707
1707
  };
1708
1708
 
1709
1709
  const initialState$a = {};
@@ -2086,7 +2086,7 @@ const initialState$4 = {
2086
2086
  level: 0,
2087
2087
  active: 1,
2088
2088
  };
2089
- const slice = toolkit.createSlice({
2089
+ const slice$1 = toolkit.createSlice({
2090
2090
  name: 'userCurrent',
2091
2091
  initialState: initialState$4,
2092
2092
  reducers: {
@@ -2105,8 +2105,8 @@ const isLogged = (userCurrent) => {
2105
2105
  return userCurrent.id !== 0;
2106
2106
  };
2107
2107
  const UserCurrent = {
2108
- slice: slice,
2109
- actions: Object.assign({}, slice.actions),
2108
+ slice: slice$1,
2109
+ actions: Object.assign({}, slice$1.actions),
2110
2110
  selectors: {
2111
2111
  get,
2112
2112
  },
@@ -2287,6 +2287,7 @@ const widgetCheckListDefinition = {
2287
2287
  };
2288
2288
  const widgetCheckListContent = {
2289
2289
  arr: [],
2290
+ edit: false,
2290
2291
  };
2291
2292
 
2292
2293
  const widgetDatasourceTableDefinition = {
@@ -2709,6 +2710,27 @@ const WidgetEditor = {
2709
2710
  },
2710
2711
  };
2711
2712
 
2713
+ const adapter = toolkit.createEntityAdapter({
2714
+ selectId: (socialAction) => `${socialAction.struct.targetId}-${socialAction.type}`,
2715
+ });
2716
+ const slice = toolkit.createSlice({
2717
+ name: 'socialActions',
2718
+ initialState: adapter.getInitialState(),
2719
+ reducers: {
2720
+ addOne: adapter.addOne,
2721
+ addMany: adapter.addMany,
2722
+ setAll: adapter.setAll,
2723
+ clear: adapter.removeAll,
2724
+ updateOne: adapter.updateOne,
2725
+ },
2726
+ });
2727
+ const selectors = adapter.getSelectors((state) => state.entities.socialActions);
2728
+ const SocialActions = {
2729
+ slice: slice,
2730
+ actions: Object.assign({}, slice.actions),
2731
+ selectors,
2732
+ };
2733
+
2712
2734
  const AUDIENCE = {
2713
2735
  ALL: '1',
2714
2736
  CUSTOM: '0',
@@ -4131,6 +4153,7 @@ exports.Network = Network;
4131
4153
  exports.Platform = Platform;
4132
4154
  exports.STUDIO_VIEW = STUDIO_VIEW;
4133
4155
  exports.Share = Share;
4156
+ exports.SocialActions = SocialActions;
4134
4157
  exports.TVDisplay = TVDisplay;
4135
4158
  exports.TinyMCE = TinyMCE;
4136
4159
  exports.Toast = Toast;
@@ -4152,7 +4175,7 @@ exports.jland = jland;
4152
4175
  exports.magicPadSlice = magicPadSlice;
4153
4176
  exports.mediaLibraryReducer = mediaLibraryReducer;
4154
4177
  exports.mediaLibrarySlice = mediaLibrarySlice;
4155
- exports.slice = slice;
4178
+ exports.slice = slice$1;
4156
4179
  exports.studio = studio;
4157
4180
  exports.updateWidgetContent = updateWidgetContent;
4158
4181
  exports.viewsList = viewsList;