@overmap-ai/core 1.0.58-export-overmap-reducer.16 → 1.0.58-export-overmap-reducer.17
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/overmap-core.js
CHANGED
|
@@ -3192,56 +3192,21 @@ const { setRehydrated } = rehydratedSlice.actions;
|
|
|
3192
3192
|
const selectRehydrated = (state) => state.rehydratedReducer.isRehydrated;
|
|
3193
3193
|
const rehydratedReducer = rehydratedSlice.reducer;
|
|
3194
3194
|
const initialState$8 = {
|
|
3195
|
-
|
|
3196
|
-
enableClustering: false,
|
|
3197
|
-
svgLayout: false,
|
|
3198
|
-
appearance: "dark",
|
|
3199
|
-
isFetchingInitialData: false,
|
|
3200
|
-
// TODO: this is being used only in the custom hook in /web called useRetrySDK, which has something to do with licences
|
|
3201
|
-
// this has no purpose of being put into /core, it should be removed from here. But licences need to be fixed before this is done.
|
|
3202
|
-
isLoading: false
|
|
3195
|
+
isFetchingInitialData: false
|
|
3203
3196
|
};
|
|
3204
3197
|
const settingSlice = createSlice({
|
|
3205
3198
|
name: "settings",
|
|
3206
3199
|
initialState: initialState$8,
|
|
3207
3200
|
extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$8)),
|
|
3208
3201
|
reducers: {
|
|
3209
|
-
setEnablePlacementMode: (state, action) => {
|
|
3210
|
-
state.placementMode = action.payload;
|
|
3211
|
-
},
|
|
3212
|
-
setEnableSvgLayout: (state, action) => {
|
|
3213
|
-
state.svgLayout = action.payload;
|
|
3214
|
-
},
|
|
3215
|
-
setEnableClustering: (state, action) => {
|
|
3216
|
-
state.enableClustering = action.payload;
|
|
3217
|
-
},
|
|
3218
|
-
setAppearance: (state, action) => {
|
|
3219
|
-
state.appearance = action.payload;
|
|
3220
|
-
},
|
|
3221
3202
|
setIsFetchingInitialData: (state, action) => {
|
|
3222
3203
|
state.isFetchingInitialData = action.payload;
|
|
3223
|
-
},
|
|
3224
|
-
setIsLoading: (state, action) => {
|
|
3225
|
-
state.isLoading = action.payload;
|
|
3226
3204
|
}
|
|
3227
3205
|
}
|
|
3228
3206
|
});
|
|
3229
|
-
const {
|
|
3230
|
-
setEnablePlacementMode,
|
|
3231
|
-
setEnableSvgLayout,
|
|
3232
|
-
// TODO: needs to actually be used in /web
|
|
3233
|
-
setEnableClustering,
|
|
3234
|
-
setAppearance,
|
|
3235
|
-
setIsFetchingInitialData,
|
|
3236
|
-
setIsLoading
|
|
3237
|
-
} = settingSlice.actions;
|
|
3238
|
-
const selectEnablePlacementMode = (state) => state.settingReducer.placementMode;
|
|
3239
|
-
const selectEnableSvgLayout = (state) => state.settingReducer.svgLayout;
|
|
3240
|
-
const selectEnableClustering = (state) => state.settingReducer.enableClustering;
|
|
3241
|
-
const selectAppearance = (state) => state.settingReducer.appearance;
|
|
3207
|
+
const { setIsFetchingInitialData } = settingSlice.actions;
|
|
3242
3208
|
const settingReducer = settingSlice.reducer;
|
|
3243
3209
|
const selectIsFetchingInitialData = (state) => state.settingReducer.isFetchingInitialData;
|
|
3244
|
-
const selectIsLoading = (state) => state.settingReducer.isLoading;
|
|
3245
3210
|
const formRevisionSortFn = (formRevisionA, formRevisionB) => {
|
|
3246
3211
|
const revisionA = formRevisionA.revision;
|
|
3247
3212
|
const revisionB = formRevisionB.revision;
|
|
@@ -11359,8 +11324,8 @@ const Theme = React.forwardRef((props, forwardedRef) => {
|
|
|
11359
11324
|
Theme.displayName = "Theme";
|
|
11360
11325
|
const ThemeRoot = React.forwardRef((props, forwardedRef) => {
|
|
11361
11326
|
const { appearance: appearanceProp = themePropDefs.appearance.default, accentColor: accentColorProp = themePropDefs.accentColor.default, grayColor: grayColorProp = themePropDefs.grayColor.default, panelBackground: panelBackgroundProp = themePropDefs.panelBackground.default, radius: radiusProp2 = themePropDefs.radius.default, scaling: scalingProp = themePropDefs.scaling.default, hasBackground = themePropDefs.hasBackground.default, ...rootProps } = props;
|
|
11362
|
-
const [appearance,
|
|
11363
|
-
React.useEffect(() =>
|
|
11327
|
+
const [appearance, setAppearance] = React.useState(appearanceProp);
|
|
11328
|
+
React.useEffect(() => setAppearance(appearanceProp), [appearanceProp]);
|
|
11364
11329
|
const [accentColor, setAccentColor] = React.useState(accentColorProp);
|
|
11365
11330
|
React.useEffect(() => setAccentColor(accentColorProp), [accentColorProp]);
|
|
11366
11331
|
const [grayColor, setGrayColor] = React.useState(grayColorProp);
|
|
@@ -11405,7 +11370,7 @@ body { background-color: var(--color-page-background); }
|
|
|
11405
11370
|
radius,
|
|
11406
11371
|
scaling,
|
|
11407
11372
|
//
|
|
11408
|
-
onAppearanceChange:
|
|
11373
|
+
onAppearanceChange: setAppearance,
|
|
11409
11374
|
onAccentColorChange: setAccentColor,
|
|
11410
11375
|
onGrayColorChange: setGrayColor,
|
|
11411
11376
|
onPanelBackgroundChange: setPanelBackground,
|
|
@@ -20134,7 +20099,6 @@ export {
|
|
|
20134
20099
|
selectAllDocumentAttachments,
|
|
20135
20100
|
selectAllProjectAttachments,
|
|
20136
20101
|
selectAncestorIdsOfDocument,
|
|
20137
|
-
selectAppearance,
|
|
20138
20102
|
selectAsset,
|
|
20139
20103
|
selectAssetAttachment,
|
|
20140
20104
|
selectAssetAttachmentMapping,
|
|
@@ -20184,9 +20148,6 @@ export {
|
|
|
20184
20148
|
selectDocuments,
|
|
20185
20149
|
selectDocumentsMapping,
|
|
20186
20150
|
selectEmailDomainsAsMapping,
|
|
20187
|
-
selectEnableClustering,
|
|
20188
|
-
selectEnablePlacementMode,
|
|
20189
|
-
selectEnableSvgLayout,
|
|
20190
20151
|
selectEnabledProjectFileMapping,
|
|
20191
20152
|
selectEnabledProjectFiles,
|
|
20192
20153
|
selectFavouriteProjects,
|
|
@@ -20216,7 +20177,6 @@ export {
|
|
|
20216
20177
|
selectHiddenCategoryCount,
|
|
20217
20178
|
selectIsFetchingInitialData,
|
|
20218
20179
|
selectIsImportingProjectFile,
|
|
20219
|
-
selectIsLoading,
|
|
20220
20180
|
selectIsLoggedIn,
|
|
20221
20181
|
selectIssue,
|
|
20222
20182
|
selectIssueAttachment,
|
|
@@ -20306,7 +20266,6 @@ export {
|
|
|
20306
20266
|
setActiveProjectFileId,
|
|
20307
20267
|
setActiveProjectId,
|
|
20308
20268
|
setActiveWorkspaceId,
|
|
20309
|
-
setAppearance,
|
|
20310
20269
|
setAssetAttachment,
|
|
20311
20270
|
setAssetAttachments,
|
|
20312
20271
|
setAssetTypeAttachment,
|
|
@@ -20321,9 +20280,6 @@ export {
|
|
|
20321
20280
|
setDocumentAttachments,
|
|
20322
20281
|
setDocuments,
|
|
20323
20282
|
setEmailDomains,
|
|
20324
|
-
setEnableClustering,
|
|
20325
|
-
setEnablePlacementMode,
|
|
20326
|
-
setEnableSvgLayout,
|
|
20327
20283
|
setFormRevision,
|
|
20328
20284
|
setFormRevisionAttachments,
|
|
20329
20285
|
setFormRevisions,
|
|
@@ -20333,7 +20289,6 @@ export {
|
|
|
20333
20289
|
setForms,
|
|
20334
20290
|
setIsFetchingInitialData,
|
|
20335
20291
|
setIsImportingProjectFile,
|
|
20336
|
-
setIsLoading,
|
|
20337
20292
|
setIssueAttachment,
|
|
20338
20293
|
setIssueAttachments,
|
|
20339
20294
|
setIssueComment,
|