@bigbinary/neeto-themes-frontend 4.2.9 → 4.2.10
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/.ready +1 -1
- package/dist/NeetoThemesBuilder.js +39 -39
- package/dist/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/NeetoThemesBuilder.js +38 -38
- package/dist/cjs/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/hooks.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/v2/NeetoThemesBuilder.js +38 -38
- package/dist/cjs/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/v2/hooks.js +1 -1
- package/dist/cjs/v2/index.js +2 -2
- package/dist/hooks.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{useExpandedSection-BTBI4UqP.js → useExpandedSection-D0PusQFE.js} +7 -7
- package/dist/{useExpandedSection-BTBI4UqP.js.map → useExpandedSection-D0PusQFE.js.map} +1 -1
- package/dist/{useExpandedSection-MjgB7rh6.js → useExpandedSection-Dpv_-kLy.js} +8 -8
- package/dist/{useExpandedSection-MjgB7rh6.js.map → useExpandedSection-Dpv_-kLy.js.map} +1 -1
- package/dist/{useGlobalThemesApi-DjZDCCZE.js → useGlobalThemesApi-Bx5QeeJE.js} +4 -4
- package/dist/{useGlobalThemesApi-DjZDCCZE.js.map → useGlobalThemesApi-Bx5QeeJE.js.map} +1 -1
- package/dist/{useGlobalThemesApi-BdrPI8PW.js → useGlobalThemesApi-CjQhpJ4v.js} +5 -5
- package/dist/{useGlobalThemesApi-BdrPI8PW.js.map → useGlobalThemesApi-CjQhpJ4v.js.map} +1 -1
- package/dist/v2/NeetoThemesBuilder.js +39 -39
- package/dist/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/v2/hooks.js +1 -1
- package/dist/v2/index.js +2 -2
- package/package.json +7 -7
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-11-
|
|
1
|
+
Built at 2026-11-17T09:10:26.751Z
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useShallow } from 'zustand/shallow';
|
|
2
2
|
import { Suspense, lazy, useState, useEffect, createElement, useMemo, useRef, memo, useCallback } from 'react';
|
|
3
3
|
import { isPresent, hyphenate, findBy, findIndexBy, isNot, filterBy, snakeToCamelCase, isNotPresent, toLabelAndValue, capitalize, humanize, isNotEmpty, noop } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { withT, useQueryParams, useBreakpoints, PageTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -7,8 +7,8 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
7
7
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
8
8
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
9
9
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
10
|
-
import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useListThemes, c as useCreateTheme, d as useUpdateTheme, e as useApplyTheme, f as routes, g as useShowThemeEntity, h as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-
|
|
11
|
-
import { a as useExpandedSection, b as useConfigStore, c as useThemeStore, u as useThemeUtils, P as POSITION_OPTIONS, H as HUNDRED, O as OVERLAY_OPACITY_SLIDER_MARKS, F as FONT_OPTIONS, d as useSyncExpandedSectionFromUrl, T as THEME_VALIDATION_SCHEMA, A as APPLY_SPINNER_DELAY } from './useExpandedSection-
|
|
10
|
+
import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useListThemes, c as useCreateTheme, d as useUpdateTheme, e as useApplyTheme, f as routes, g as useShowThemeEntity, h as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-CjQhpJ4v.js';
|
|
11
|
+
import { a as useExpandedSection, b as useConfigStore, c as useThemeStore, u as useThemeUtils, P as POSITION_OPTIONS, H as HUNDRED, O as OVERLAY_OPACITY_SLIDER_MARKS, F as FONT_OPTIONS, d as useSyncExpandedSectionFromUrl, T as THEME_VALIDATION_SCHEMA, A as APPLY_SPINNER_DELAY } from './useExpandedSection-Dpv_-kLy.js';
|
|
12
12
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
14
|
import { joinHyphenCase, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -319,12 +319,12 @@ var CustomCSS = function CustomCSS(_ref) {
|
|
|
319
319
|
var _useFormikContext = useFormikContext(),
|
|
320
320
|
values = _useFormikContext.values,
|
|
321
321
|
setFieldValue = _useFormikContext.setFieldValue;
|
|
322
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
322
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
323
323
|
return {
|
|
324
324
|
themePropertiesSchema: store["themePropertiesSchema"],
|
|
325
325
|
helpPopoverProps: store["helpPopoverProps"]
|
|
326
326
|
};
|
|
327
|
-
}
|
|
327
|
+
})),
|
|
328
328
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
329
329
|
helpPopoverProps = _useConfigStore.helpPopoverProps;
|
|
330
330
|
var _helpPopoverProps$cus = helpPopoverProps.customCss,
|
|
@@ -1023,17 +1023,17 @@ var Properties = function Properties(_ref) {
|
|
|
1023
1023
|
var onPropertiesChange = _ref.onPropertiesChange,
|
|
1024
1024
|
condition = _ref.condition,
|
|
1025
1025
|
themeId = _ref.themeId;
|
|
1026
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1026
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1027
1027
|
return {
|
|
1028
1028
|
themePropertiesSchema: store["themePropertiesSchema"]
|
|
1029
1029
|
};
|
|
1030
|
-
}
|
|
1030
|
+
})),
|
|
1031
1031
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema;
|
|
1032
|
-
var _useThemeStore = useThemeStore(function (store) {
|
|
1032
|
+
var _useThemeStore = useThemeStore(useShallow(function (store) {
|
|
1033
1033
|
return {
|
|
1034
1034
|
setThemeState: store["setThemeState"]
|
|
1035
1035
|
};
|
|
1036
|
-
}
|
|
1036
|
+
})),
|
|
1037
1037
|
setThemeState = _useThemeStore.setThemeState;
|
|
1038
1038
|
var _useFormikContext = useFormikContext(),
|
|
1039
1039
|
setFieldValue = _useFormikContext.setFieldValue,
|
|
@@ -1241,11 +1241,11 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1241
1241
|
var _useFormikContext = useFormikContext(),
|
|
1242
1242
|
setFieldValue = _useFormikContext.setFieldValue,
|
|
1243
1243
|
values = _useFormikContext.values;
|
|
1244
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1244
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1245
1245
|
return {
|
|
1246
1246
|
themePropertiesSchema: store["themePropertiesSchema"]
|
|
1247
1247
|
};
|
|
1248
|
-
}
|
|
1248
|
+
})),
|
|
1249
1249
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema;
|
|
1250
1250
|
var propertySchema = findBy({
|
|
1251
1251
|
key: attribute
|
|
@@ -1349,11 +1349,11 @@ var Images = function Images(_ref) {
|
|
|
1349
1349
|
fixedAspectRatio = _ref.fixedAspectRatio;
|
|
1350
1350
|
var _useFormikContext = useFormikContext(),
|
|
1351
1351
|
values = _useFormikContext.values;
|
|
1352
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1352
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1353
1353
|
return {
|
|
1354
1354
|
helpPopoverProps: store["helpPopoverProps"]
|
|
1355
1355
|
};
|
|
1356
|
-
}
|
|
1356
|
+
})),
|
|
1357
1357
|
helpPopoverProps = _useConfigStore.helpPopoverProps;
|
|
1358
1358
|
var key = snakeToCamelCase(attribute);
|
|
1359
1359
|
var title = buildLabel(key, "image");
|
|
@@ -1381,11 +1381,11 @@ var ThemeMeta = function ThemeMeta(_ref) {
|
|
|
1381
1381
|
var className = _ref.className;
|
|
1382
1382
|
var _useTranslation = useTranslation(),
|
|
1383
1383
|
t = _useTranslation.t;
|
|
1384
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1384
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1385
1385
|
return {
|
|
1386
1386
|
helpPopoverProps: store["helpPopoverProps"]
|
|
1387
1387
|
};
|
|
1388
|
-
}
|
|
1388
|
+
})),
|
|
1389
1389
|
helpPopoverProps = _useConfigStore.helpPopoverProps;
|
|
1390
1390
|
var _helpPopoverProps$nam = helpPopoverProps.name,
|
|
1391
1391
|
nameHelpPopoverProps = _helpPopoverProps$nam === void 0 ? {} : _helpPopoverProps$nam;
|
|
@@ -1425,7 +1425,7 @@ var Customize = function Customize(_ref) {
|
|
|
1425
1425
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1426
1426
|
popoverInstance = _useState2[0],
|
|
1427
1427
|
setPopoverInstance = _useState2[1];
|
|
1428
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1428
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1429
1429
|
return {
|
|
1430
1430
|
themePropertiesSchema: store["themePropertiesSchema"],
|
|
1431
1431
|
entityId: store["entityId"],
|
|
@@ -1435,7 +1435,7 @@ var Customize = function Customize(_ref) {
|
|
|
1435
1435
|
enabledFeatures: store["enabledFeatures"],
|
|
1436
1436
|
proFeatures: store["proFeatures"]
|
|
1437
1437
|
};
|
|
1438
|
-
}
|
|
1438
|
+
})),
|
|
1439
1439
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
1440
1440
|
entityId = _useConfigStore.entityId,
|
|
1441
1441
|
entityType = _useConfigStore.entityType,
|
|
@@ -1448,12 +1448,12 @@ var Customize = function Customize(_ref) {
|
|
|
1448
1448
|
var _useQueryParams = useQueryParams(),
|
|
1449
1449
|
sourceThemeId = _useQueryParams.source;
|
|
1450
1450
|
var isCustomizingSystemTheme = !themeId && isPresent(sourceThemeId);
|
|
1451
|
-
var _useThemeStore = useThemeStore(function (store) {
|
|
1451
|
+
var _useThemeStore = useThemeStore(useShallow(function (store) {
|
|
1452
1452
|
return {
|
|
1453
1453
|
currentTheme: store["currentTheme"],
|
|
1454
1454
|
setThemeState: store["setThemeState"]
|
|
1455
1455
|
};
|
|
1456
|
-
}
|
|
1456
|
+
})),
|
|
1457
1457
|
currentTheme = _useThemeStore.currentTheme,
|
|
1458
1458
|
setThemeState = _useThemeStore.setThemeState;
|
|
1459
1459
|
var _useShowGlobalTheme = useShowGlobalTheme(entityType),
|
|
@@ -1776,11 +1776,11 @@ var Thumbnail = function Thumbnail(_ref) {
|
|
|
1776
1776
|
isPreviewing = _ref.isPreviewing,
|
|
1777
1777
|
isHighLightedTheme = _ref.isHighLightedTheme,
|
|
1778
1778
|
theme = _ref.theme;
|
|
1779
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1779
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1780
1780
|
return {
|
|
1781
1781
|
themePropertiesSchema: store["themePropertiesSchema"]
|
|
1782
1782
|
};
|
|
1783
|
-
}
|
|
1783
|
+
})),
|
|
1784
1784
|
_useConfigStore$theme = _useConfigStore.themePropertiesSchema,
|
|
1785
1785
|
themePropertiesSchema = _useConfigStore$theme === void 0 ? [] : _useConfigStore$theme;
|
|
1786
1786
|
var _themePropertiesSchem = _slicedToArray(themePropertiesSchema, 2),
|
|
@@ -1865,13 +1865,13 @@ var Card$1 = function Card(_ref) {
|
|
|
1865
1865
|
Thumbnail$1 = _ref.thumbnail;
|
|
1866
1866
|
var _useTranslation = useTranslation(),
|
|
1867
1867
|
t = _useTranslation.t;
|
|
1868
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
1868
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
1869
1869
|
return {
|
|
1870
1870
|
themePropertiesSchema: store["themePropertiesSchema"],
|
|
1871
1871
|
enabledFeatures: store["enabledFeatures"],
|
|
1872
1872
|
proFeatures: store["proFeatures"]
|
|
1873
1873
|
};
|
|
1874
|
-
}
|
|
1874
|
+
})),
|
|
1875
1875
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
1876
1876
|
enabledFeatures = _useConfigStore.enabledFeatures,
|
|
1877
1877
|
proFeatures = _useConfigStore.proFeatures;
|
|
@@ -2071,19 +2071,19 @@ var Themes = function Themes(_ref) {
|
|
|
2071
2071
|
t = _useTranslation.t;
|
|
2072
2072
|
var _useThemeUtils = useThemeUtils(),
|
|
2073
2073
|
setTheme = _useThemeUtils.setTheme;
|
|
2074
|
-
var _useThemeStore = useThemeStore(function (store) {
|
|
2074
|
+
var _useThemeStore = useThemeStore(useShallow(function (store) {
|
|
2075
2075
|
return {
|
|
2076
2076
|
setThemeState: store["setThemeState"],
|
|
2077
2077
|
previewingTheme: store["previewingTheme"]
|
|
2078
2078
|
};
|
|
2079
|
-
}
|
|
2079
|
+
})),
|
|
2080
2080
|
setThemeState = _useThemeStore.setThemeState,
|
|
2081
2081
|
previewingTheme = _useThemeStore.previewingTheme;
|
|
2082
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
2082
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
2083
2083
|
return {
|
|
2084
2084
|
entityType: store["entityType"]
|
|
2085
2085
|
};
|
|
2086
|
-
}
|
|
2086
|
+
})),
|
|
2087
2087
|
entityType = _useConfigStore.entityType;
|
|
2088
2088
|
var _useQueryParams = useQueryParams(),
|
|
2089
2089
|
_useQueryParams$searc = _useQueryParams.searchTerm,
|
|
@@ -2225,19 +2225,19 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
2225
2225
|
handleToggleSearch = _ref.handleToggleSearch;
|
|
2226
2226
|
var _useTranslation = useTranslation(),
|
|
2227
2227
|
t = _useTranslation.t;
|
|
2228
|
-
var _useThemeStore = useThemeStore(function (store) {
|
|
2228
|
+
var _useThemeStore = useThemeStore(useShallow(function (store) {
|
|
2229
2229
|
return {
|
|
2230
2230
|
previewingTheme: store["previewingTheme"]
|
|
2231
2231
|
};
|
|
2232
|
-
}
|
|
2232
|
+
})),
|
|
2233
2233
|
previewingTheme = _useThemeStore.previewingTheme;
|
|
2234
2234
|
var themeId = previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id;
|
|
2235
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
2235
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
2236
2236
|
return {
|
|
2237
2237
|
entityType: store["entityType"],
|
|
2238
2238
|
helpDocUrl: store["helpDocUrl"]
|
|
2239
2239
|
};
|
|
2240
|
-
}
|
|
2240
|
+
})),
|
|
2241
2241
|
entityType = _useConfigStore.entityType,
|
|
2242
2242
|
helpDocUrl = _useConfigStore.helpDocUrl;
|
|
2243
2243
|
var _useQueryParams = useQueryParams(),
|
|
@@ -2348,23 +2348,23 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2348
2348
|
useEffect(function () {
|
|
2349
2349
|
setIsThemesSidebarCollapsed(!isLargerScreen);
|
|
2350
2350
|
}, [isLargerScreen]);
|
|
2351
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
2351
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
2352
2352
|
return {
|
|
2353
2353
|
entityType: store["entityType"],
|
|
2354
2354
|
entityId: store["entityId"],
|
|
2355
2355
|
isFetchingSchema: store["isFetchingSchema"],
|
|
2356
2356
|
defaultThemeName: store["defaultThemeName"]
|
|
2357
2357
|
};
|
|
2358
|
-
}
|
|
2358
|
+
})),
|
|
2359
2359
|
entityType = _useConfigStore.entityType,
|
|
2360
2360
|
entityId = _useConfigStore.entityId,
|
|
2361
2361
|
isFetchingSchema = _useConfigStore.isFetchingSchema,
|
|
2362
2362
|
defaultThemeName = _useConfigStore.defaultThemeName;
|
|
2363
|
-
var _useThemeStore = useThemeStore(function (store) {
|
|
2363
|
+
var _useThemeStore = useThemeStore(useShallow(function (store) {
|
|
2364
2364
|
return {
|
|
2365
2365
|
setThemeState: store["setThemeState"]
|
|
2366
2366
|
};
|
|
2367
|
-
}
|
|
2367
|
+
})),
|
|
2368
2368
|
setThemeState = _useThemeStore.setThemeState;
|
|
2369
2369
|
var didScrollActiveThemeIntoView = useRef(null);
|
|
2370
2370
|
var _useTranslation = useTranslation(),
|
|
@@ -2643,19 +2643,19 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
2643
2643
|
_ref$proFeatures = _ref.proFeatures,
|
|
2644
2644
|
proFeatures = _ref$proFeatures === void 0 ? {} : _ref$proFeatures;
|
|
2645
2645
|
useMemo(registerNeetoThemesTranslations, []);
|
|
2646
|
-
var _useThemeStore = useThemeStore(function (store) {
|
|
2646
|
+
var _useThemeStore = useThemeStore(useShallow(function (store) {
|
|
2647
2647
|
return {
|
|
2648
2648
|
setThemeState: store["setThemeState"]
|
|
2649
2649
|
};
|
|
2650
|
-
}
|
|
2650
|
+
})),
|
|
2651
2651
|
setThemeState = _useThemeStore.setThemeState;
|
|
2652
2652
|
var _useThemeUtils = useThemeUtils(),
|
|
2653
2653
|
setTheme = _useThemeUtils.setTheme;
|
|
2654
|
-
var _useConfigStore = useConfigStore(function (store) {
|
|
2654
|
+
var _useConfigStore = useConfigStore(useShallow(function (store) {
|
|
2655
2655
|
return {
|
|
2656
2656
|
setConfigState: store["setConfigState"]
|
|
2657
2657
|
};
|
|
2658
|
-
}
|
|
2658
|
+
})),
|
|
2659
2659
|
setConfigState = _useConfigStore.setConfigState;
|
|
2660
2660
|
var _useTranslation = useTranslation(),
|
|
2661
2661
|
t = _useTranslation.t;
|