@next-core/brick-kit 2.154.8 → 2.154.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/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import _asyncToGenerator$3 from '@babel/runtime/helpers/asyncToGenerator';
|
|
|
5
5
|
import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import React, { useState, useEffect, useRef, forwardRef, useImperativeHandle, useMemo, useContext, createContext, useReducer, useCallback } from 'react';
|
|
7
7
|
import { JsonStorage, toPath, computeRealRoutePath, hasOwnProperty, isObject, isEvaluable, transformAndInject, transform, trackContext, trackState, scanPermissionActionsInStoryboard, precookFunction, cook, resolveContextConcurrently, syncResolveContextConcurrently, trackUsedState, trackUsedContext, shouldAllowRecursiveEvaluations, preevaluate, inject, matchPath, deepFreeze, createProviderClass, removeDeadConditionsInTpl, getTemplateDepsOfStoryboard, getDllAndDepsOfStoryboard, asyncProcessStoryboard, getDllAndDepsByResource, scanRouteAliasInStoryboard, prefetchScript, scanBricksInBrickConf, scanProcessorsInAny, loadScript, scanAppGetMenuInAny, asyncProcessBrick, scanInstalledAppsInStoryboard, removeDeadConditions, restoreDynamicTemplates, scanStoryboard, mapCustomApisToNameAndNamespace } from '@next-core/brick-utils';
|
|
8
|
-
import _, { set, get, difference, identity, uniqueId, cloneDeep, clamp, isNil, isEmpty, sortBy, orderBy, merge, isObject as isObject$1, pick, omit, findLastIndex, noop, isString as isString$1 } from 'lodash';
|
|
8
|
+
import _, { set, get, difference, identity, uniqueId, cloneDeep, clamp, isNil, isEmpty, sortBy, orderBy, merge, isObject as isObject$1, uniq, pick, omit, findLastIndex, noop, isString as isString$1 } from 'lodash';
|
|
9
9
|
import { http, HttpResponseError, HttpAbortError, HttpFetchError } from '@next-core/brick-http';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import { pipes } from '@next-core/pipes';
|
|
@@ -8605,8 +8605,9 @@ function lowLevelExpandCustomTemplate(template, brickConf, proxyBrick, context,
|
|
|
8605
8605
|
var proxyCopy = _objectSpread({}, proxy);
|
|
8606
8606
|
|
|
8607
8607
|
proxyBrick.proxy = proxyCopy;
|
|
8608
|
-
proxyBrick.proxyRefs = new Map();
|
|
8609
|
-
|
|
8608
|
+
proxyBrick.proxyRefs = new Map(); // Allow duplicated state names which maybe mutually exclusive.
|
|
8609
|
+
|
|
8610
|
+
proxyBrick.stateNames = state ? uniq(state.map(item => item.name)) : undefined;
|
|
8610
8611
|
var refToBrickConf = collectRefsInTemplate(template); // Reversed proxies are used for expand storyboard before rendering page.
|
|
8611
8612
|
|
|
8612
8613
|
var reversedProxies = {
|