@yugoo-design/dsh-design-provider-web-app 0.2.2 → 0.2.5

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/lib/client.js CHANGED
@@ -113105,33 +113105,33 @@ window.__ModuleLoader__.load({
113105
113105
  }
113106
113106
  //#endregion
113107
113107
  //#region ../../node_modules/.pnpm/reselect@5.1.1/node_modules/reselect/dist/reselect.mjs
113108
- function assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {
113108
+ function assertIsFunction$1(func, errorMessage = `expected a function, instead received ${typeof func}`) {
113109
113109
  if (typeof func !== "function") throw new TypeError(errorMessage);
113110
113110
  }
113111
113111
  function assertIsObject(object, errorMessage = `expected an object, instead received ${typeof object}`) {
113112
113112
  if (typeof object !== "object") throw new TypeError(errorMessage);
113113
113113
  }
113114
- function assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {
113114
+ function assertIsArrayOfFunctions$1(array, errorMessage = `expected all items to be functions, instead received the following types: `) {
113115
113115
  if (!array.every((item) => typeof item === "function")) {
113116
113116
  const itemTypes = array.map((item) => typeof item === "function" ? `function ${item.name || "unnamed"}()` : typeof item).join(", ");
113117
113117
  throw new TypeError(`${errorMessage}[${itemTypes}]`);
113118
113118
  }
113119
113119
  }
113120
- var ensureIsArray = (item) => {
113120
+ var ensureIsArray$1 = (item) => {
113121
113121
  return Array.isArray(item) ? item : [item];
113122
113122
  };
113123
- function getDependencies(createSelectorArgs) {
113123
+ function getDependencies$1(createSelectorArgs) {
113124
113124
  const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;
113125
- assertIsArrayOfFunctions(dependencies, `createSelector expects all input-selectors to be functions, but received the following types: `);
113125
+ assertIsArrayOfFunctions$1(dependencies, `createSelector expects all input-selectors to be functions, but received the following types: `);
113126
113126
  return dependencies;
113127
113127
  }
113128
- function collectInputSelectorResults(dependencies, inputSelectorArgs) {
113128
+ function collectInputSelectorResults$1(dependencies, inputSelectorArgs) {
113129
113129
  const inputSelectorResults = [];
113130
113130
  const { length } = dependencies;
113131
113131
  for (let i = 0; i < length; i++) inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));
113132
113132
  return inputSelectorResults;
113133
113133
  }
113134
- var StrongRef = class {
113134
+ var StrongRef$1 = class {
113135
113135
  constructor(value) {
113136
113136
  this.value = value;
113137
113137
  }
@@ -113139,19 +113139,19 @@ window.__ModuleLoader__.load({
113139
113139
  return this.value;
113140
113140
  }
113141
113141
  };
113142
- var Ref = typeof WeakRef !== "undefined" ? WeakRef : StrongRef;
113143
- var UNTERMINATED = 0;
113144
- var TERMINATED = 1;
113145
- function createCacheNode() {
113142
+ var Ref$1 = typeof WeakRef !== "undefined" ? WeakRef : StrongRef$1;
113143
+ var UNTERMINATED$1 = 0;
113144
+ var TERMINATED$1 = 1;
113145
+ function createCacheNode$1() {
113146
113146
  return {
113147
- s: UNTERMINATED,
113147
+ s: UNTERMINATED$1,
113148
113148
  v: void 0,
113149
113149
  o: null,
113150
113150
  p: null
113151
113151
  };
113152
113152
  }
113153
- function weakMapMemoize(func, options = {}) {
113154
- let fnNode = createCacheNode();
113153
+ function weakMapMemoize$1(func, options = {}) {
113154
+ let fnNode = createCacheNode$1();
113155
113155
  const { resultEqualityCheck } = options;
113156
113156
  let lastResult;
113157
113157
  let resultsCount = 0;
@@ -113165,7 +113165,7 @@ window.__ModuleLoader__.load({
113165
113165
  if (objectCache === null) cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();
113166
113166
  const objectNode = objectCache.get(arg);
113167
113167
  if (objectNode === void 0) {
113168
- cacheNode = createCacheNode();
113168
+ cacheNode = createCacheNode$1();
113169
113169
  objectCache.set(arg, cacheNode);
113170
113170
  } else cacheNode = objectNode;
113171
113171
  } else {
@@ -113173,14 +113173,14 @@ window.__ModuleLoader__.load({
113173
113173
  if (primitiveCache === null) cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();
113174
113174
  const primitiveNode = primitiveCache.get(arg);
113175
113175
  if (primitiveNode === void 0) {
113176
- cacheNode = createCacheNode();
113176
+ cacheNode = createCacheNode$1();
113177
113177
  primitiveCache.set(arg, cacheNode);
113178
113178
  } else cacheNode = primitiveNode;
113179
113179
  }
113180
113180
  }
113181
113181
  const terminatedNode = cacheNode;
113182
113182
  let result;
113183
- if (cacheNode.s === TERMINATED) result = cacheNode.v;
113183
+ if (cacheNode.s === TERMINATED$1) result = cacheNode.v;
113184
113184
  else {
113185
113185
  result = func.apply(null, arguments);
113186
113186
  resultsCount++;
@@ -113190,15 +113190,15 @@ window.__ModuleLoader__.load({
113190
113190
  result = lastResultValue;
113191
113191
  resultsCount !== 0 && resultsCount--;
113192
113192
  }
113193
- lastResult = typeof result === "object" && result !== null || typeof result === "function" ? new Ref(result) : result;
113193
+ lastResult = typeof result === "object" && result !== null || typeof result === "function" ? new Ref$1(result) : result;
113194
113194
  }
113195
113195
  }
113196
- terminatedNode.s = TERMINATED;
113196
+ terminatedNode.s = TERMINATED$1;
113197
113197
  terminatedNode.v = result;
113198
113198
  return result;
113199
113199
  }
113200
113200
  memoized.clearCache = () => {
113201
- fnNode = createCacheNode();
113201
+ fnNode = createCacheNode$1();
113202
113202
  memoized.resetResultsCount();
113203
113203
  };
113204
113204
  memoized.resultsCount = () => resultsCount;
@@ -113207,7 +113207,7 @@ window.__ModuleLoader__.load({
113207
113207
  };
113208
113208
  return memoized;
113209
113209
  }
113210
- function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
113210
+ function createSelectorCreator$1(memoizeOrOptions, ...memoizeOptionsFromArgs) {
113211
113211
  const createSelectorCreatorOptions = typeof memoizeOrOptions === "function" ? {
113212
113212
  memoize: memoizeOrOptions,
113213
113213
  memoizeOptions: memoizeOptionsFromArgs
@@ -113222,21 +113222,21 @@ window.__ModuleLoader__.load({
113222
113222
  directlyPassedOptions = resultFunc;
113223
113223
  resultFunc = createSelectorArgs.pop();
113224
113224
  }
113225
- assertIsFunction(resultFunc, `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`);
113226
- const { memoize, memoizeOptions = [], argsMemoize = weakMapMemoize, argsMemoizeOptions = [], devModeChecks = {} } = {
113225
+ assertIsFunction$1(resultFunc, `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`);
113226
+ const { memoize, memoizeOptions = [], argsMemoize = weakMapMemoize$1, argsMemoizeOptions = [], devModeChecks = {} } = {
113227
113227
  ...createSelectorCreatorOptions,
113228
113228
  ...directlyPassedOptions
113229
113229
  };
113230
- const finalMemoizeOptions = ensureIsArray(memoizeOptions);
113231
- const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);
113232
- const dependencies = getDependencies(createSelectorArgs);
113230
+ const finalMemoizeOptions = ensureIsArray$1(memoizeOptions);
113231
+ const finalArgsMemoizeOptions = ensureIsArray$1(argsMemoizeOptions);
113232
+ const dependencies = getDependencies$1(createSelectorArgs);
113233
113233
  const memoizedResultFunc = memoize(function recomputationWrapper() {
113234
113234
  recomputations++;
113235
113235
  return resultFunc.apply(null, arguments);
113236
113236
  }, ...finalMemoizeOptions);
113237
113237
  const selector = argsMemoize(function dependenciesChecker() {
113238
113238
  dependencyRecomputations++;
113239
- const inputSelectorResults = collectInputSelectorResults(dependencies, arguments);
113239
+ const inputSelectorResults = collectInputSelectorResults$1(dependencies, arguments);
113240
113240
  lastResult = memoizedResultFunc.apply(null, inputSelectorResults);
113241
113241
  return lastResult;
113242
113242
  }, ...finalArgsMemoizeOptions);
@@ -113260,7 +113260,7 @@ window.__ModuleLoader__.load({
113260
113260
  Object.assign(createSelector2, { withTypes: () => createSelector2 });
113261
113261
  return createSelector2;
113262
113262
  }
113263
- var createSelector = /* @__PURE__ */ createSelectorCreator(weakMapMemoize);
113263
+ var createSelector = /* @__PURE__ */ createSelectorCreator$1(weakMapMemoize$1);
113264
113264
  var createStructuredSelector = Object.assign((inputSelectorsObject, selectorCreator = createSelector) => {
113265
113265
  assertIsObject(inputSelectorsObject, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof inputSelectorsObject}`);
113266
113266
  const inputSelectorKeys = Object.keys(inputSelectorsObject);
@@ -114348,6 +114348,165 @@ window.__ModuleLoader__.load({
114348
114348
  globalThis.Iterator?.from;
114349
114349
  var produce$1 = new Immer2$1().produce;
114350
114350
  //#endregion
114351
+ //#region ../../node_modules/.pnpm/reselect@5.2.0/node_modules/reselect/dist/reselect.mjs
114352
+ function assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {
114353
+ if (typeof func !== "function") throw new TypeError(errorMessage);
114354
+ }
114355
+ function assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {
114356
+ if (!array.every((item) => typeof item === "function")) {
114357
+ const itemTypes = array.map((item) => typeof item === "function" ? `function ${item.name || "unnamed"}()` : typeof item).join(", ");
114358
+ throw new TypeError(`${errorMessage}[${itemTypes}]`);
114359
+ }
114360
+ }
114361
+ var ensureIsArray = (item) => {
114362
+ return Array.isArray(item) ? item : [item];
114363
+ };
114364
+ function getDependencies(createSelectorArgs) {
114365
+ const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;
114366
+ assertIsArrayOfFunctions(dependencies, `createSelector expects all input-selectors to be functions, but received the following types: `);
114367
+ return dependencies;
114368
+ }
114369
+ function collectInputSelectorResults(dependencies, inputSelectorArgs) {
114370
+ const inputSelectorResults = [];
114371
+ const { length } = dependencies;
114372
+ for (let i = 0; i < length; i++) inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));
114373
+ return inputSelectorResults;
114374
+ }
114375
+ var StrongRef = class {
114376
+ constructor(value) {
114377
+ this.value = value;
114378
+ }
114379
+ deref() {
114380
+ return this.value;
114381
+ }
114382
+ };
114383
+ var getWeakRef = () => typeof WeakRef === "undefined" ? StrongRef : WeakRef;
114384
+ var Ref = /* @__PURE__ */ getWeakRef();
114385
+ var UNTERMINATED = 0;
114386
+ var TERMINATED = 1;
114387
+ function createCacheNode() {
114388
+ return {
114389
+ s: UNTERMINATED,
114390
+ v: void 0,
114391
+ o: null,
114392
+ p: null
114393
+ };
114394
+ }
114395
+ function maybeDeref(r) {
114396
+ if (r instanceof Ref) return r.deref();
114397
+ return r;
114398
+ }
114399
+ function weakMapMemoize(func, options = {}) {
114400
+ let fnNode = createCacheNode();
114401
+ const { resultEqualityCheck } = options;
114402
+ let lastResult;
114403
+ let resultsCount = 0;
114404
+ function memoized() {
114405
+ let cacheNode = fnNode;
114406
+ const { length } = arguments;
114407
+ for (let i = 0, l = length; i < l; i++) {
114408
+ const arg = arguments[i];
114409
+ if (typeof arg === "function" || typeof arg === "object" && arg !== null) {
114410
+ let objectCache = cacheNode.o;
114411
+ if (objectCache === null) cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();
114412
+ const objectNode = objectCache.get(arg);
114413
+ if (objectNode === void 0) {
114414
+ cacheNode = createCacheNode();
114415
+ objectCache.set(arg, cacheNode);
114416
+ } else cacheNode = objectNode;
114417
+ } else {
114418
+ let primitiveCache = cacheNode.p;
114419
+ if (primitiveCache === null) cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();
114420
+ const primitiveNode = primitiveCache.get(arg);
114421
+ if (primitiveNode === void 0) {
114422
+ cacheNode = createCacheNode();
114423
+ primitiveCache.set(arg, cacheNode);
114424
+ } else cacheNode = primitiveNode;
114425
+ }
114426
+ }
114427
+ const terminatedNode = cacheNode;
114428
+ let result;
114429
+ if (cacheNode.s === TERMINATED) result = cacheNode.v;
114430
+ else {
114431
+ result = func.apply(null, arguments);
114432
+ resultsCount++;
114433
+ if (resultEqualityCheck) {
114434
+ const lastResultValue = maybeDeref(lastResult);
114435
+ if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {
114436
+ result = lastResultValue;
114437
+ resultsCount !== 0 && resultsCount--;
114438
+ }
114439
+ lastResult = typeof result === "object" && result !== null || typeof result === "function" ? /* @__PURE__ */ new Ref(result) : result;
114440
+ }
114441
+ }
114442
+ terminatedNode.s = TERMINATED;
114443
+ terminatedNode.v = result;
114444
+ return result;
114445
+ }
114446
+ memoized.clearCache = () => {
114447
+ fnNode = createCacheNode();
114448
+ memoized.resetResultsCount();
114449
+ };
114450
+ memoized.resultsCount = () => resultsCount;
114451
+ memoized.resetResultsCount = () => {
114452
+ resultsCount = 0;
114453
+ };
114454
+ return memoized;
114455
+ }
114456
+ function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
114457
+ const createSelectorCreatorOptions = typeof memoizeOrOptions === "function" ? {
114458
+ memoize: memoizeOrOptions,
114459
+ memoizeOptions: memoizeOptionsFromArgs
114460
+ } : memoizeOrOptions;
114461
+ const createSelector2 = (...createSelectorArgs) => {
114462
+ let recomputations = 0;
114463
+ let dependencyRecomputations = 0;
114464
+ let lastResult;
114465
+ let directlyPassedOptions = {};
114466
+ let resultFunc = createSelectorArgs.pop();
114467
+ if (typeof resultFunc === "object") {
114468
+ directlyPassedOptions = resultFunc;
114469
+ resultFunc = createSelectorArgs.pop();
114470
+ }
114471
+ assertIsFunction(resultFunc, `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`);
114472
+ const { memoize, memoizeOptions = [], argsMemoize = weakMapMemoize, argsMemoizeOptions = [] } = {
114473
+ ...createSelectorCreatorOptions,
114474
+ ...directlyPassedOptions
114475
+ };
114476
+ const finalMemoizeOptions = ensureIsArray(memoizeOptions);
114477
+ const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);
114478
+ const dependencies = getDependencies(createSelectorArgs);
114479
+ const memoizedResultFunc = memoize(function recomputationWrapper() {
114480
+ recomputations++;
114481
+ return resultFunc.apply(null, arguments);
114482
+ }, ...finalMemoizeOptions);
114483
+ const selector = argsMemoize(function dependenciesChecker() {
114484
+ dependencyRecomputations++;
114485
+ const inputSelectorResults = collectInputSelectorResults(dependencies, arguments);
114486
+ lastResult = memoizedResultFunc.apply(null, inputSelectorResults);
114487
+ return lastResult;
114488
+ }, ...finalArgsMemoizeOptions);
114489
+ return Object.assign(selector, {
114490
+ resultFunc,
114491
+ memoizedResultFunc,
114492
+ dependencies,
114493
+ dependencyRecomputations: () => dependencyRecomputations,
114494
+ resetDependencyRecomputations: () => {
114495
+ dependencyRecomputations = 0;
114496
+ },
114497
+ lastResult: () => lastResult,
114498
+ recomputations: () => recomputations,
114499
+ resetRecomputations: () => {
114500
+ recomputations = 0;
114501
+ },
114502
+ memoize,
114503
+ argsMemoize
114504
+ });
114505
+ };
114506
+ Object.assign(createSelector2, { withTypes: () => createSelector2 });
114507
+ return createSelector2;
114508
+ }
114509
+ //#endregion
114351
114510
  //#region ../../node_modules/.pnpm/redux-thunk@3.1.0_redux@5.0.1/node_modules/redux-thunk/dist/redux-thunk.mjs
114352
114511
  function createThunkMiddleware(extraArgument) {
114353
114512
  const middleware = ({ dispatch, getState }) => (next) => (action) => {