jamespot-front-business 1.1.69 → 1.1.71

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
@@ -239,7 +239,7 @@ const animationStatsSlice = toolkit.createSlice({
239
239
  builder.addCase(fetchAnimationStats.rejected, (state) => {
240
240
  state.loading = 'idle';
241
241
  });
242
- }
242
+ },
243
243
  });
244
244
 
245
245
  const fetchAnimationStatsCurrent = toolkit.createAsyncThunk('animations/fetchAnimationStatsCurrent', (uri, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
@@ -271,7 +271,7 @@ const animationStatsCurrentSlice = toolkit.createSlice({
271
271
  builder.addCase(fetchAnimationStatsCurrent.rejected, (state) => {
272
272
  state.loading = 'idle';
273
273
  });
274
- }
274
+ },
275
275
  });
276
276
 
277
277
  const selectCurrentAnimation = (state) => state.animations.animationsList.animationConfiguration;
@@ -2081,7 +2081,7 @@ const TinyMCEOptionsSlice = toolkit.createSlice({
2081
2081
  initialState: initialState$5,
2082
2082
  reducers: {
2083
2083
  initOptions: (_, { payload }) => {
2084
- return { common: payload };
2084
+ return payload;
2085
2085
  },
2086
2086
  },
2087
2087
  });
@@ -2096,11 +2096,15 @@ const TinyMCESlice = {
2096
2096
  const selectTinyMCECommonOptions = (state) => {
2097
2097
  return state.tinymce.options.common;
2098
2098
  };
2099
+ const selectTinyMCEExtendedOptions = (state) => {
2100
+ return state.tinymce.options.extended;
2101
+ };
2099
2102
  const TinyMCE = {
2100
2103
  slice: TinyMCESlice,
2101
2104
  actions: Object.assign({}, TinyMCEOptionsSlice.actions),
2102
2105
  selectors: {
2103
2106
  selectTinyMCECommonOptions,
2107
+ selectTinyMCEExtendedOptions,
2104
2108
  },
2105
2109
  };
2106
2110
 
@@ -2450,28 +2454,6 @@ function content(name) {
2450
2454
  }
2451
2455
  }
2452
2456
 
2453
- const getWidgetRTHandlers = function (dispatch, uniqid) {
2454
- const widgetPresenceResponseHandler = function (message) {
2455
- if (message.namespace === 'WIDGET' && message.function === 'widget-presence-response') {
2456
- if (message.data && message.data.uniqid === uniqid) {
2457
- dispatch(Widget.slice.actions.registerWidgetRTObject({
2458
- uniqid: message.data.uniqid,
2459
- object: message.data.object,
2460
- }));
2461
- }
2462
- }
2463
- };
2464
- return [
2465
- {
2466
- namespace: 'WIDGET',
2467
- function: 'widget-presence-response',
2468
- handler: widgetPresenceResponseHandler,
2469
- },
2470
- ];
2471
- };
2472
-
2473
- const MODE_EDIT = 'edit';
2474
- const MODE_VIEW = 'view';
2475
2457
  const initialState$3 = {
2476
2458
  token: undefined,
2477
2459
  ids: {},
@@ -2484,6 +2466,7 @@ const initialState$3 = {
2484
2466
  widgetObject: {},
2485
2467
  widgetObjectRights: {},
2486
2468
  widgetAuthor: {},
2469
+ flushedWidgets: [],
2487
2470
  rtObjectStack: [],
2488
2471
  };
2489
2472
  const IS_EMPTY = [
@@ -2544,8 +2527,10 @@ const widgetsSlice = toolkit.createSlice({
2544
2527
  const { uniqid } = action.payload;
2545
2528
  delete state.ids[uniqid];
2546
2529
  delete state.states[uniqid];
2530
+ state.flushedWidgets.push(uniqid);
2547
2531
  },
2548
2532
  flushAllWidget: (state) => {
2533
+ state.flushedWidgets = [...state.flushedWidgets, ...Object.keys(state.ids)];
2549
2534
  state.ids = {};
2550
2535
  state.states = {};
2551
2536
  },
@@ -2641,9 +2626,31 @@ const widgetsSlice = toolkit.createSlice({
2641
2626
  },
2642
2627
  },
2643
2628
  });
2629
+
2630
+ const getWidgetRTHandlers = function (dispatch, uniqid) {
2631
+ const widgetPresenceResponseHandler = function (message) {
2632
+ if (message.namespace === 'WIDGET' && message.function === 'widget-presence-response') {
2633
+ if (message.data && message.data.uniqid === uniqid) {
2634
+ dispatch(widgetsSlice.actions.registerWidgetRTObject({
2635
+ uniqid: message.data.uniqid,
2636
+ object: message.data.object,
2637
+ }));
2638
+ }
2639
+ }
2640
+ };
2641
+ return [
2642
+ {
2643
+ namespace: 'WIDGET',
2644
+ function: 'widget-presence-response',
2645
+ handler: widgetPresenceResponseHandler,
2646
+ },
2647
+ ];
2648
+ };
2649
+
2644
2650
  const selectToken = (state) => state.widgets.token;
2645
2651
  const selectModal = (state) => state.widgets.modal;
2646
2652
  const selectWidgets = (state) => state.widgets.ids;
2653
+ const selectFlushedWidgets = (state) => state.widgets.flushedWidgets;
2647
2654
  const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
2648
2655
  const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
2649
2656
  const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
@@ -2672,6 +2679,7 @@ const Widget = {
2672
2679
  selectWidgetAuthor,
2673
2680
  selectWidgetObjectRights,
2674
2681
  selectAllWidgetRTObject,
2682
+ selectFlushedWidgets,
2675
2683
  },
2676
2684
  };
2677
2685
 
@@ -4020,7 +4028,9 @@ function renderAppView(viewSolr, listView) {
4020
4028
  if (viewSolr === STUDIO_VIEW.SOLR) {
4021
4029
  let xml = '<AppView>solr</AppView>';
4022
4030
  const formItemIdInList = [];
4023
- Object.entries(listView).sort((a, b) => a[1].pos - b[1].pos).forEach(([fieldId, field]) => {
4031
+ Object.entries(listView)
4032
+ .sort((a, b) => a[1].pos - b[1].pos)
4033
+ .forEach(([fieldId, field]) => {
4024
4034
  if (!field.isUsed) {
4025
4035
  return;
4026
4036
  }
@@ -4036,7 +4046,9 @@ function renderAppView(viewSolr, listView) {
4036
4046
  }
4037
4047
  function renderAppSearch(searchView) {
4038
4048
  const formItemIdInFilter = [];
4039
- Object.entries(searchView).sort((a, b) => a[1].pos - b[1].pos).forEach(([fieldId, field]) => {
4049
+ Object.entries(searchView)
4050
+ .sort((a, b) => a[1].pos - b[1].pos)
4051
+ .forEach(([fieldId, field]) => {
4040
4052
  if (!field.isUsed) {
4041
4053
  return;
4042
4054
  }
@@ -4113,7 +4125,11 @@ function formItem2xml(field) {
4113
4125
  solr.indexed="true"
4114
4126
  solr.stored="true"
4115
4127
  solr.searchable="true"
4116
- solr.multiValued="${field.type === AppFormItemTypes.TAGS || field.type === AppFormItemTypes.CHECKBOX ? true : false}"
4128
+ solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
4129
+ field.type === AppFormItemTypes.CHECKBOX ||
4130
+ field.type === AppFormItemTypes.SELECT
4131
+ ? true
4132
+ : false}"
4117
4133
  teaser="true"
4118
4134
  display="true"
4119
4135
  >
@@ -5053,7 +5069,7 @@ const studio = {
5053
5069
  utils: {
5054
5070
  updateViewsFromFields,
5055
5071
  generateNewFormField,
5056
- }
5072
+ },
5057
5073
  };
5058
5074
 
5059
5075
  exports.APP_STATUS_TYPE = APP_STATUS_TYPE;
@@ -5078,8 +5094,6 @@ exports.Comment = Comment;
5078
5094
  exports.ExtraAppFieldsItemViews = ExtraAppFieldsItemViews;
5079
5095
  exports.Faq = Faq;
5080
5096
  exports.Hook = Hook;
5081
- exports.MODE_EDIT = MODE_EDIT;
5082
- exports.MODE_VIEW = MODE_VIEW;
5083
5097
  exports.MagicPad = MagicPad;
5084
5098
  exports.MapExtraFieldsWithView = MapExtraFieldsWithView;
5085
5099
  exports.MediaLibrary = MediaLibrary;