jamespot-front-business 1.1.70 → 1.1.72
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 +27 -8
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +27 -8
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +57 -4
- package/package.json +4 -4
package/dist/cjs.js
CHANGED
|
@@ -90,6 +90,10 @@ const Toast = {
|
|
|
90
90
|
selectors: selectors$3,
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
const isAbortError = (error) => {
|
|
94
|
+
return !!error && typeof error === 'object' && 'aborted' in error && !!error.aborted;
|
|
95
|
+
};
|
|
96
|
+
|
|
93
97
|
const initialState$m = {
|
|
94
98
|
animationConfiguration: null,
|
|
95
99
|
isActiveForCurrentUser: false,
|
|
@@ -122,14 +126,16 @@ const animationsListSlice = toolkit.createSlice({
|
|
|
122
126
|
});
|
|
123
127
|
},
|
|
124
128
|
});
|
|
125
|
-
const fetchCurrentAnimation = toolkit.createAsyncThunk('animations/fetchCurrentAnimation', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
129
|
+
const fetchCurrentAnimation = toolkit.createAsyncThunk('animations/fetchCurrentAnimation', (_, { extra, rejectWithValue, dispatch, signal }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
126
130
|
try {
|
|
127
|
-
const animationConfiguration = (yield extra.jApi.animations.GetCurrentAnimation()).result;
|
|
128
|
-
const isActiveForCurrentUser = (yield extra.jApi.animations.GetAnimationActive()).result;
|
|
131
|
+
const animationConfiguration = (yield extra.jApi.animations.GetCurrentAnimation({ signal })).result;
|
|
132
|
+
const isActiveForCurrentUser = (yield extra.jApi.animations.GetAnimationActive({ signal })).result;
|
|
129
133
|
return { animationConfiguration, isActiveForCurrentUser, isInitialized: true };
|
|
130
134
|
}
|
|
131
|
-
catch (
|
|
132
|
-
|
|
135
|
+
catch (err) {
|
|
136
|
+
if (!isAbortError(err)) {
|
|
137
|
+
dispatch(Toast.actions.error({ label: 'GLOBAL_Technical_Error' }));
|
|
138
|
+
}
|
|
133
139
|
return rejectWithValue({ error: 1, errorMsg: 'Cannot retrieve animation' });
|
|
134
140
|
}
|
|
135
141
|
}));
|
|
@@ -2466,6 +2472,7 @@ const initialState$3 = {
|
|
|
2466
2472
|
widgetObject: {},
|
|
2467
2473
|
widgetObjectRights: {},
|
|
2468
2474
|
widgetAuthor: {},
|
|
2475
|
+
flushedWidgets: [],
|
|
2469
2476
|
rtObjectStack: [],
|
|
2470
2477
|
};
|
|
2471
2478
|
const IS_EMPTY = [
|
|
@@ -2526,8 +2533,10 @@ const widgetsSlice = toolkit.createSlice({
|
|
|
2526
2533
|
const { uniqid } = action.payload;
|
|
2527
2534
|
delete state.ids[uniqid];
|
|
2528
2535
|
delete state.states[uniqid];
|
|
2536
|
+
state.flushedWidgets.push(uniqid);
|
|
2529
2537
|
},
|
|
2530
2538
|
flushAllWidget: (state) => {
|
|
2539
|
+
state.flushedWidgets = [...state.flushedWidgets, ...Object.keys(state.ids)];
|
|
2531
2540
|
state.ids = {};
|
|
2532
2541
|
state.states = {};
|
|
2533
2542
|
},
|
|
@@ -2647,6 +2656,7 @@ const getWidgetRTHandlers = function (dispatch, uniqid) {
|
|
|
2647
2656
|
const selectToken = (state) => state.widgets.token;
|
|
2648
2657
|
const selectModal = (state) => state.widgets.modal;
|
|
2649
2658
|
const selectWidgets = (state) => state.widgets.ids;
|
|
2659
|
+
const selectFlushedWidgets = (state) => state.widgets.flushedWidgets;
|
|
2650
2660
|
const selectWidgetState = (state, uniqid) => { var _a; return (_a = state.widgets.states[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2651
2661
|
const selectWidget = (state, uniqid) => { var _a; return (_a = state.widgets.ids[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
2652
2662
|
const selectWidgetObject = (state, uniqid) => { var _a; return (_a = state.widgets.widgetObject[uniqid]) !== null && _a !== void 0 ? _a : undefined; };
|
|
@@ -2675,6 +2685,7 @@ const Widget = {
|
|
|
2675
2685
|
selectWidgetAuthor,
|
|
2676
2686
|
selectWidgetObjectRights,
|
|
2677
2687
|
selectAllWidgetRTObject,
|
|
2688
|
+
selectFlushedWidgets,
|
|
2678
2689
|
},
|
|
2679
2690
|
};
|
|
2680
2691
|
|
|
@@ -4023,7 +4034,9 @@ function renderAppView(viewSolr, listView) {
|
|
|
4023
4034
|
if (viewSolr === STUDIO_VIEW.SOLR) {
|
|
4024
4035
|
let xml = '<AppView>solr</AppView>';
|
|
4025
4036
|
const formItemIdInList = [];
|
|
4026
|
-
Object.entries(listView)
|
|
4037
|
+
Object.entries(listView)
|
|
4038
|
+
.sort((a, b) => a[1].pos - b[1].pos)
|
|
4039
|
+
.forEach(([fieldId, field]) => {
|
|
4027
4040
|
if (!field.isUsed) {
|
|
4028
4041
|
return;
|
|
4029
4042
|
}
|
|
@@ -4039,7 +4052,9 @@ function renderAppView(viewSolr, listView) {
|
|
|
4039
4052
|
}
|
|
4040
4053
|
function renderAppSearch(searchView) {
|
|
4041
4054
|
const formItemIdInFilter = [];
|
|
4042
|
-
Object.entries(searchView)
|
|
4055
|
+
Object.entries(searchView)
|
|
4056
|
+
.sort((a, b) => a[1].pos - b[1].pos)
|
|
4057
|
+
.forEach(([fieldId, field]) => {
|
|
4043
4058
|
if (!field.isUsed) {
|
|
4044
4059
|
return;
|
|
4045
4060
|
}
|
|
@@ -4116,7 +4131,11 @@ function formItem2xml(field) {
|
|
|
4116
4131
|
solr.indexed="true"
|
|
4117
4132
|
solr.stored="true"
|
|
4118
4133
|
solr.searchable="true"
|
|
4119
|
-
solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
|
|
4134
|
+
solr.multiValued="${field.type === AppFormItemTypes.TAGS ||
|
|
4135
|
+
field.type === AppFormItemTypes.CHECKBOX ||
|
|
4136
|
+
field.type === AppFormItemTypes.SELECT
|
|
4137
|
+
? true
|
|
4138
|
+
: false}"
|
|
4120
4139
|
teaser="true"
|
|
4121
4140
|
display="true"
|
|
4122
4141
|
>
|