jamespot-front-business 1.1.35 → 1.1.36
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 +127 -23
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +126 -24
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +74 -5
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
2
2
|
import { EntityState, Action, Dispatch as Dispatch$1, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
|
|
4
4
|
import * as jamespot_user_api from 'jamespot-user-api';
|
|
5
|
-
import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, Taxonomy, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, JLandMap, AdminLicensesNotAssigned, Model as Model$1, NetworkType, WedocFileType, jUserLittle, PagingResults, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps,
|
|
5
|
+
import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, Taxonomy, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, JLandMap, AdminLicensesNotAssigned, Model as Model$1, NetworkType, WedocFileType, jUserLittle, PagingResults, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, CombinedWidgetContent, WidgetsState, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
|
|
6
6
|
import * as redux from 'redux';
|
|
7
7
|
import { Dispatch } from 'redux';
|
|
8
8
|
import React from 'react';
|
|
@@ -101,6 +101,9 @@ interface StudioApplication {
|
|
|
101
101
|
manifest: StudioAppManifest;
|
|
102
102
|
inWorkVersion?: StudioApplication;
|
|
103
103
|
fields: AppFieldsFormItem[];
|
|
104
|
+
views: AppViewsFields;
|
|
105
|
+
audience: StudioAudienceType;
|
|
106
|
+
installFor: AppInstallForType[];
|
|
104
107
|
}
|
|
105
108
|
interface StudioAppManifest {
|
|
106
109
|
appShortName: string;
|
|
@@ -139,8 +142,22 @@ declare type AppFieldsFormItem = {
|
|
|
139
142
|
id: string;
|
|
140
143
|
type: AppFormItemTypes;
|
|
141
144
|
properties?: AppFieldFormProperty[];
|
|
142
|
-
mandatory
|
|
143
|
-
views
|
|
145
|
+
mandatory?: boolean;
|
|
146
|
+
views?: AppViews;
|
|
147
|
+
value?: any;
|
|
148
|
+
isActive?: boolean;
|
|
149
|
+
isFixed?: boolean;
|
|
150
|
+
isOptional?: boolean;
|
|
151
|
+
};
|
|
152
|
+
declare type AppViewFieldItem = {
|
|
153
|
+
type: AppFormItemTypes | ExtraAppFieldsItemViews;
|
|
154
|
+
properties: AppFieldFormProperty[];
|
|
155
|
+
isUsed: boolean;
|
|
156
|
+
isOptional: boolean;
|
|
157
|
+
isFixed: boolean;
|
|
158
|
+
isLockedValue: boolean;
|
|
159
|
+
value: any;
|
|
160
|
+
pos: number;
|
|
144
161
|
};
|
|
145
162
|
interface AppViews {
|
|
146
163
|
create: boolean;
|
|
@@ -150,6 +167,17 @@ interface AppViews {
|
|
|
150
167
|
filter: boolean;
|
|
151
168
|
view: boolean;
|
|
152
169
|
}
|
|
170
|
+
declare type AppViewsFields = {
|
|
171
|
+
create: AppViewFieldsItems;
|
|
172
|
+
popup: AppViewFieldsItems;
|
|
173
|
+
edit: AppViewFieldsItems;
|
|
174
|
+
list: AppViewFieldsItems;
|
|
175
|
+
filter: AppViewFieldsItems;
|
|
176
|
+
view: AppViewFieldsItems;
|
|
177
|
+
};
|
|
178
|
+
declare type AppViewFieldsItems = {
|
|
179
|
+
[id: string]: AppViewFieldItem;
|
|
180
|
+
};
|
|
153
181
|
declare type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
|
|
154
182
|
declare const viewsList: ViewName[];
|
|
155
183
|
declare enum AppFormItemTypes {
|
|
@@ -173,6 +201,14 @@ declare enum AppFormItemTypes {
|
|
|
173
201
|
USERLINK = "USERLINK",
|
|
174
202
|
CONTENTLINK = "CONTENTLINK"
|
|
175
203
|
}
|
|
204
|
+
declare enum ExtraAppFieldsItemViews {
|
|
205
|
+
TITLE = "TITLE",
|
|
206
|
+
USER = "USER",
|
|
207
|
+
PUBLISHTO = "PUBLISHTO",
|
|
208
|
+
SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
|
|
209
|
+
RECEIVEACOPY = "RECEIVEACOPY",
|
|
210
|
+
CREATIONDATE = "CREATIONDATE"
|
|
211
|
+
}
|
|
176
212
|
declare type CheckBoxOption = {
|
|
177
213
|
label: string;
|
|
178
214
|
value: any;
|
|
@@ -195,6 +231,17 @@ declare enum AppFieldFormPropertyTypes {
|
|
|
195
231
|
}
|
|
196
232
|
declare const AppFormUniqueList: AppFormItemTypes[];
|
|
197
233
|
declare const AppFormBannedFromViews: Map<AppFormItemTypes, ViewName[]>;
|
|
234
|
+
declare type MappedExtraFieldsWithView = {
|
|
235
|
+
fixed: ExtraAppFieldsItemViews[];
|
|
236
|
+
optional: ExtraAppFieldsItemViews[];
|
|
237
|
+
};
|
|
238
|
+
declare const MapExtraFieldsWithView: {
|
|
239
|
+
[k: string]: MappedExtraFieldsWithView;
|
|
240
|
+
};
|
|
241
|
+
declare type AppFieldView = {
|
|
242
|
+
fieldIdRef: string;
|
|
243
|
+
value: any;
|
|
244
|
+
};
|
|
198
245
|
interface AppTypeServerModel {
|
|
199
246
|
typeName: string;
|
|
200
247
|
typeLabel: string;
|
|
@@ -285,6 +332,20 @@ interface AppServerViewModel {
|
|
|
285
332
|
format?: string;
|
|
286
333
|
html?: string;
|
|
287
334
|
}
|
|
335
|
+
declare type AppInstallForType = Partial<{
|
|
336
|
+
id: string;
|
|
337
|
+
uri: string;
|
|
338
|
+
shortUri: string;
|
|
339
|
+
title: string;
|
|
340
|
+
name: string;
|
|
341
|
+
mainType: string;
|
|
342
|
+
type: string;
|
|
343
|
+
label: string;
|
|
344
|
+
cssClass: string;
|
|
345
|
+
cssColor: string;
|
|
346
|
+
class: string;
|
|
347
|
+
Pseudo: string;
|
|
348
|
+
}>;
|
|
288
349
|
|
|
289
350
|
declare type Loading = {
|
|
290
351
|
loading: 'idle' | 'pending';
|
|
@@ -1167,6 +1228,14 @@ declare type WidgetModalProps = {
|
|
|
1167
1228
|
title?: string;
|
|
1168
1229
|
view?: any;
|
|
1169
1230
|
};
|
|
1231
|
+
declare const updateWidgetContent: <T>(uniqid: string, content: Partial<T>, override?: boolean) => {
|
|
1232
|
+
payload: {
|
|
1233
|
+
uniqid: string;
|
|
1234
|
+
content: Partial<CombinedWidgetContent>;
|
|
1235
|
+
override?: boolean;
|
|
1236
|
+
};
|
|
1237
|
+
type: "widgets/updateWidget";
|
|
1238
|
+
};
|
|
1170
1239
|
declare const Widget: {
|
|
1171
1240
|
const: typeof WIDGETS;
|
|
1172
1241
|
factory: typeof widgetFactory;
|
|
@@ -1181,7 +1250,7 @@ declare const Widget: {
|
|
|
1181
1250
|
}>) => void;
|
|
1182
1251
|
updateWidget: (state: Draft<S>, action: PayloadAction<{
|
|
1183
1252
|
uniqid: string;
|
|
1184
|
-
content: CombinedWidgetContent
|
|
1253
|
+
content: Partial<CombinedWidgetContent>;
|
|
1185
1254
|
override?: boolean;
|
|
1186
1255
|
}>) => void;
|
|
1187
1256
|
flushWidget: (state: Draft<S>, action: PayloadAction<{
|
|
@@ -1442,4 +1511,4 @@ declare const studio: {
|
|
|
1442
1511
|
};
|
|
1443
1512
|
};
|
|
1444
1513
|
|
|
1445
|
-
export { APP_STATUS_TYPE, AUDIENCE, AppAttrSolrModel, AppAttrWidgetModel, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldsFormItem, AppFormBannedFromViews, AppFormItemTypes, AppFormUniqueList, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViews, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, EditorProps, EditorsRootState, EditorsState, Faq, FaqRootState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, Model, ModelRootState, Network, NetworkRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice, studio, viewsList };
|
|
1514
|
+
export { APP_STATUS_TYPE, AUDIENCE, AppAttrSolrModel, AppAttrWidgetModel, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormItemTypes, AppFormUniqueList, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, MapExtraFieldsWithView, Model, ModelRootState, Network, NetworkRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice, studio, updateWidgetContent, viewsList };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@reduxjs/toolkit": "1.9.0",
|
|
40
40
|
"@types/uuid": "^9.0.8",
|
|
41
|
-
"jamespot-user-api": "^1.0.
|
|
41
|
+
"jamespot-user-api": "^1.0.140",
|
|
42
42
|
"react-redux": "7.2.9",
|
|
43
43
|
"redux": "4.2.0",
|
|
44
44
|
"uuid": "^9.0.1"
|