@superblocksteam/library 2.0.6-next.97 → 2.0.6-next.99

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.
@@ -6037,136 +6037,6 @@ function getComputedArgsString(args) {
6037
6037
  }
6038
6038
  return args.map(getSingleArgString).join(", ");
6039
6039
  }
6040
- const isDimension = (value) => {
6041
- return typeof value === "object" && value !== null && "mode" in value && ["px", "fit", "fill", "%", "columns", "rows"].includes(value.mode) && (value.mode === "fit" || "value" in value);
6042
- };
6043
- var Dim;
6044
- (function(Dim2) {
6045
- function isEqual2(a3, b3) {
6046
- return Object.is(a3.mode, b3.mode) && Object.is(a3.value, b3.value);
6047
- }
6048
- Dim2.isEqual = isEqual2;
6049
- function build(value, mode) {
6050
- if (mode === "fit")
6051
- return { mode };
6052
- return { mode, value };
6053
- }
6054
- Dim2.build = build;
6055
- function fit() {
6056
- return Dim2.build(void 0, "fit");
6057
- }
6058
- Dim2.fit = fit;
6059
- function fill(value = 1) {
6060
- return Dim2.build(value, "fill");
6061
- }
6062
- Dim2.fill = fill;
6063
- function px(value) {
6064
- return Dim2.build(value, "px");
6065
- }
6066
- Dim2.px = px;
6067
- function percent(value) {
6068
- return Dim2.build(value, "%");
6069
- }
6070
- Dim2.percent = percent;
6071
- function columns(value) {
6072
- return Dim2.build(value, "columns");
6073
- }
6074
- Dim2.columns = columns;
6075
- function col(value) {
6076
- return Dim2.build(value, "columns");
6077
- }
6078
- Dim2.col = col;
6079
- function rows(value) {
6080
- return Dim2.build(value, "rows");
6081
- }
6082
- Dim2.rows = rows;
6083
- function row(value) {
6084
- return Dim2.build(value, "rows");
6085
- }
6086
- Dim2.row = row;
6087
- })(Dim || (Dim = {}));
6088
- const WIDGET_SOURCE_ID_ATTRIBUTE = "data-sb-id";
6089
- const WIDGET_INSTANCE_ID_ATTRIBUTE = "data-sb-instance-id";
6090
- const ROOT_WIDGET_ATTRIBUTE = "data-sb-root";
6091
- const PROCESSED_TRANSACTIONS_ATTRIBUTE = "data-sb-processed-transactions";
6092
- function pathStringToArray(pathStr) {
6093
- return pathStr ? pathStr.split("/").reduce((acc, segment) => {
6094
- const parsed = parseInt(segment, 10);
6095
- if (!isNaN(parsed) && parsed.toString() === segment) {
6096
- acc.push(parsed);
6097
- } else if (segment) {
6098
- acc.push(segment);
6099
- }
6100
- return acc;
6101
- }, []) : [];
6102
- }
6103
- function toMobXPatch(change, pathStr) {
6104
- const pathToObject = pathStringToArray(pathStr);
6105
- const path2 = [...pathToObject];
6106
- if ("name" in change && change.name !== void 0) {
6107
- path2.push(change.name);
6108
- }
6109
- switch (change.type) {
6110
- case "splice":
6111
- return {
6112
- op: "splice",
6113
- path: path2,
6114
- added: change.added || [],
6115
- addedCount: change.addedCount || 0,
6116
- removed: change.removed || [],
6117
- removedCount: change.removedCount || 0
6118
- };
6119
- case "update":
6120
- return {
6121
- op: "update",
6122
- path: path2,
6123
- value: "newValue" in change ? change.newValue : void 0
6124
- };
6125
- case "add":
6126
- return {
6127
- op: "add",
6128
- path: path2,
6129
- value: "newValue" in change ? change.newValue : void 0
6130
- };
6131
- case "remove":
6132
- case "delete":
6133
- return {
6134
- op: "remove",
6135
- path: path2
6136
- };
6137
- default: {
6138
- const exhaustiveCheck = change;
6139
- throw new Error(`Unknown change type: ${exhaustiveCheck}`);
6140
- }
6141
- }
6142
- }
6143
- function isComputedProperty(value) {
6144
- return typeof value === "object" && value !== null && value.__isComputedProperty === true;
6145
- }
6146
- function getRuntimeComputedExpression(value) {
6147
- var _a2, _b2, _c2;
6148
- const lines = value.split("\n");
6149
- if (lines.length === 1 && ((_a2 = lines[0]) == null ? void 0 : _a2.startsWith("return"))) {
6150
- return lines[0];
6151
- }
6152
- if (lines.length === 1 && (!((_b2 = lines[0]) == null ? void 0 : _b2.startsWith("return")) || ((_c2 = lines[0]) == null ? void 0 : _c2.endsWith(";")))) {
6153
- return `return ${lines[0]}`;
6154
- }
6155
- return value;
6156
- }
6157
- function isBindingString(value) {
6158
- return typeof value === "object" && value != null && value.__binding === true;
6159
- }
6160
- function isBindingEqual(a3, b3) {
6161
- return a3.value === b3.value;
6162
- }
6163
- function SB(strings) {
6164
- const fullString = strings.join("");
6165
- return {
6166
- __binding: true,
6167
- value: fullString
6168
- };
6169
- }
6170
6040
  var src = {};
6171
6041
  var v1$6 = {};
6172
6042
  var service_pb$2 = {};
@@ -42949,6 +42819,136 @@ const getDynamicBindings = (dynamicString) => {
42949
42819
  positionedSnippets: paths.filter((path2) => path2.str !== "")
42950
42820
  };
42951
42821
  };
42822
+ const isDimension = (value) => {
42823
+ return typeof value === "object" && value !== null && "mode" in value && ["px", "fit", "fill", "%", "columns", "rows"].includes(value.mode) && (value.mode === "fit" || "value" in value);
42824
+ };
42825
+ var Dim;
42826
+ (function(Dim2) {
42827
+ function isEqual2(a3, b3) {
42828
+ return Object.is(a3.mode, b3.mode) && Object.is(a3.value, b3.value);
42829
+ }
42830
+ Dim2.isEqual = isEqual2;
42831
+ function build(value, mode) {
42832
+ if (mode === "fit")
42833
+ return { mode };
42834
+ return { mode, value };
42835
+ }
42836
+ Dim2.build = build;
42837
+ function fit() {
42838
+ return Dim2.build(void 0, "fit");
42839
+ }
42840
+ Dim2.fit = fit;
42841
+ function fill(value = 1) {
42842
+ return Dim2.build(value, "fill");
42843
+ }
42844
+ Dim2.fill = fill;
42845
+ function px(value) {
42846
+ return Dim2.build(value, "px");
42847
+ }
42848
+ Dim2.px = px;
42849
+ function percent(value) {
42850
+ return Dim2.build(value, "%");
42851
+ }
42852
+ Dim2.percent = percent;
42853
+ function columns(value) {
42854
+ return Dim2.build(value, "columns");
42855
+ }
42856
+ Dim2.columns = columns;
42857
+ function col(value) {
42858
+ return Dim2.build(value, "columns");
42859
+ }
42860
+ Dim2.col = col;
42861
+ function rows(value) {
42862
+ return Dim2.build(value, "rows");
42863
+ }
42864
+ Dim2.rows = rows;
42865
+ function row(value) {
42866
+ return Dim2.build(value, "rows");
42867
+ }
42868
+ Dim2.row = row;
42869
+ })(Dim || (Dim = {}));
42870
+ const WIDGET_SOURCE_ID_ATTRIBUTE = "data-sb-id";
42871
+ const WIDGET_INSTANCE_ID_ATTRIBUTE = "data-sb-instance-id";
42872
+ const ROOT_WIDGET_ATTRIBUTE = "data-sb-root";
42873
+ const PROCESSED_TRANSACTIONS_ATTRIBUTE = "data-sb-processed-transactions";
42874
+ function pathStringToArray(pathStr) {
42875
+ return pathStr ? pathStr.split("/").reduce((acc, segment) => {
42876
+ const parsed = parseInt(segment, 10);
42877
+ if (!isNaN(parsed) && parsed.toString() === segment) {
42878
+ acc.push(parsed);
42879
+ } else if (segment) {
42880
+ acc.push(segment);
42881
+ }
42882
+ return acc;
42883
+ }, []) : [];
42884
+ }
42885
+ function toMobXPatch(change, pathStr) {
42886
+ const pathToObject = pathStringToArray(pathStr);
42887
+ const path2 = [...pathToObject];
42888
+ if ("name" in change && change.name !== void 0) {
42889
+ path2.push(change.name);
42890
+ }
42891
+ switch (change.type) {
42892
+ case "splice":
42893
+ return {
42894
+ op: "splice",
42895
+ path: path2,
42896
+ added: change.added || [],
42897
+ addedCount: change.addedCount || 0,
42898
+ removed: change.removed || [],
42899
+ removedCount: change.removedCount || 0
42900
+ };
42901
+ case "update":
42902
+ return {
42903
+ op: "update",
42904
+ path: path2,
42905
+ value: "newValue" in change ? change.newValue : void 0
42906
+ };
42907
+ case "add":
42908
+ return {
42909
+ op: "add",
42910
+ path: path2,
42911
+ value: "newValue" in change ? change.newValue : void 0
42912
+ };
42913
+ case "remove":
42914
+ case "delete":
42915
+ return {
42916
+ op: "remove",
42917
+ path: path2
42918
+ };
42919
+ default: {
42920
+ const exhaustiveCheck = change;
42921
+ throw new Error(`Unknown change type: ${exhaustiveCheck}`);
42922
+ }
42923
+ }
42924
+ }
42925
+ function isComputedProperty(value) {
42926
+ return typeof value === "object" && value !== null && value.__isComputedProperty === true;
42927
+ }
42928
+ function getRuntimeComputedExpression(value) {
42929
+ var _a2, _b2, _c2;
42930
+ const lines = value.split("\n");
42931
+ if (lines.length === 1 && ((_a2 = lines[0]) == null ? void 0 : _a2.startsWith("return"))) {
42932
+ return lines[0];
42933
+ }
42934
+ if (lines.length === 1 && (!((_b2 = lines[0]) == null ? void 0 : _b2.startsWith("return")) || ((_c2 = lines[0]) == null ? void 0 : _c2.endsWith(";")))) {
42935
+ return `return ${lines[0]}`;
42936
+ }
42937
+ return value;
42938
+ }
42939
+ function isBindingString(value) {
42940
+ return typeof value === "object" && value != null && value.__binding === true;
42941
+ }
42942
+ function isBindingEqual(a3, b3) {
42943
+ return a3.value === b3.value;
42944
+ }
42945
+ function SB(strings) {
42946
+ const fullString = strings.join("");
42947
+ return {
42948
+ __binding: true,
42949
+ value: fullString
42950
+ };
42951
+ }
42952
42952
  function getStableScopeId(scopeName) {
42953
42953
  return generatePredictableId(`sc-${scopeName}`);
42954
42954
  }
@@ -83845,7 +83845,7 @@ function registerStores(stores) {
83845
83845
  internalStores = { ...internalStores, ...stores };
83846
83846
  if (SUPPORTED_MODES.includes("production")) {
83847
83847
  if (Object.keys(internalStores).length === Object.keys(stores).length) {
83848
- import("./devtools-consolidated-Nb3opUCn.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
83848
+ import("./devtools-consolidated-B3U5EpYG.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
83849
83849
  setRegisteredStores(internalStores);
83850
83850
  initializeCustomDevTools();
83851
83851
  }).catch((error) => {
@@ -83858,7 +83858,7 @@ function registerStores(stores) {
83858
83858
  }
83859
83859
  }
83860
83860
  const DevToolsInternal = React__default.lazy(() => {
83861
- return import("./devtools-consolidated-Nb3opUCn.js").then((module2) => ({
83861
+ return import("./devtools-consolidated-B3U5EpYG.js").then((module2) => ({
83862
83862
  default: module2.CustomDevTools
83863
83863
  }));
83864
83864
  });
@@ -91386,14 +91386,14 @@ function getLoaderFn$1(options) {
91386
91386
  if (!(loader === "all")) return [3, 3];
91387
91387
  return [4, import(
91388
91388
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
91389
- "./allPathsLoader-BYPNQ715.js"
91389
+ "./allPathsLoader-DyTMsYjm.js"
91390
91390
  )];
91391
91391
  case 2:
91392
91392
  return [2, _b2.sent().allPathsLoader];
91393
91393
  case 3:
91394
91394
  return [4, import(
91395
91395
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
91396
- "./splitPathsBySizeLoader-BSp5Jmf7.js"
91396
+ "./splitPathsBySizeLoader-B6CeEPjz.js"
91397
91397
  )];
91398
91398
  case 4:
91399
91399
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -148482,14 +148482,14 @@ function getLoaderFn(options) {
148482
148482
  if (!(loader === "all")) return [3, 3];
148483
148483
  return [4, import(
148484
148484
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
148485
- "./allPathsLoader-DZ4ej0yO.js"
148485
+ "./allPathsLoader-CmUnKzK9.js"
148486
148486
  )];
148487
148487
  case 2:
148488
148488
  return [2, _b2.sent().allPathsLoader];
148489
148489
  case 3:
148490
148490
  return [4, import(
148491
148491
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
148492
- "./splitPathsBySizeLoader-CtV8jbQy.js"
148492
+ "./splitPathsBySizeLoader-mTPqVWRR.js"
148493
148493
  )];
148494
148494
  case 4:
148495
148495
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -200333,4 +200333,4 @@ export {
200333
200333
  SbVariable as y,
200334
200334
  SbTimer as z
200335
200335
  };
200336
- //# sourceMappingURL=index-3q353Tib.js.map
200336
+ //# sourceMappingURL=index-NrZGBHks.js.map