@superblocksteam/library 2.0.8-next.8 → 2.0.8

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.
Files changed (42) hide show
  1. package/dist/{allPaths-BlqXGY7i.js → allPaths-Cei4E473.js} +2 -2
  2. package/dist/{allPaths-BlqXGY7i.js.map → allPaths-Cei4E473.js.map} +1 -1
  3. package/dist/{allPaths-CntrivuU.js → allPaths-IKDt3cd_.js} +2 -2
  4. package/dist/{allPaths-CntrivuU.js.map → allPaths-IKDt3cd_.js.map} +1 -1
  5. package/dist/{allPathsLoader-5qc08otC.js → allPathsLoader-D_cBFX7b.js} +3 -3
  6. package/dist/{allPathsLoader-5qc08otC.js.map → allPathsLoader-D_cBFX7b.js.map} +1 -1
  7. package/dist/{allPathsLoader-DSvDWPTu.js → allPathsLoader-mTE2bVLJ.js} +3 -3
  8. package/dist/{allPathsLoader-DSvDWPTu.js.map → allPathsLoader-mTE2bVLJ.js.map} +1 -1
  9. package/dist/{devtools-consolidated-F9ZtVbBI.js → devtools-consolidated-BZt1bNF_.js} +2 -2
  10. package/dist/{devtools-consolidated-F9ZtVbBI.js.map → devtools-consolidated-BZt1bNF_.js.map} +1 -1
  11. package/dist/{index-CQyG8q_M.js → index-C7Zt4bkH.js} +57 -62
  12. package/dist/{index-CQyG8q_M.js.map → index-C7Zt4bkH.js.map} +1 -1
  13. package/dist/index.js +5 -5
  14. package/dist/{splitPathsBySizeLoader-BrjoROLc.js → splitPathsBySizeLoader-BNHfwA8Q.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-BrjoROLc.js.map → splitPathsBySizeLoader-BNHfwA8Q.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-BxSGidzh.js → splitPathsBySizeLoader-D7Yo0qy6.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-BxSGidzh.js.map → splitPathsBySizeLoader-D7Yo0qy6.js.map} +1 -1
  18. package/dist-types/lib/index.d.ts +2 -2
  19. package/dist-types/lib/internal-details/scope/scope.d.ts +3 -3
  20. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +1 -1
  21. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +1 -1
  22. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
  23. package/dist-types/lib/user-facing/components/checkbox/types.d.ts +1 -1
  24. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
  25. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
  26. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +1 -1
  27. package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
  28. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -1
  29. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -1
  30. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
  31. package/dist-types/lib/user-facing/components/input/index.d.ts +1 -1
  32. package/dist-types/lib/user-facing/components/input/props.d.ts +1 -1
  33. package/dist-types/lib/user-facing/components/input/types.d.ts +1 -1
  34. package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
  35. package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
  36. package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +1 -1
  37. package/dist-types/lib/user-facing/components/switch/types.d.ts +1 -1
  38. package/dist-types/lib/user-facing/components/table/types.d.ts +1 -1
  39. package/dist-types/lib/user-facing/entities/timer/index.d.ts +2 -2
  40. package/dist-types/lib/user-facing/entities/variable/index.d.ts +6 -6
  41. package/dist-types/lib/user-facing/entities/variable/props.d.ts +2 -2
  42. package/package.json +2 -2
@@ -43263,8 +43263,8 @@ let SuperblocksEditorBridge = _SuperblocksEditorBridge;
43263
43263
  const editorBridge = SuperblocksEditorBridge.getInstance();
43264
43264
  const sbEntitySymbol = Symbol("sbEntity");
43265
43265
  const SbEntityType = {
43266
- VARIABLE: "SbVariable",
43267
- TIMER: "SbTimer",
43266
+ VARIABLE: "StateVar",
43267
+ TIMER: "Timer",
43268
43268
  EVENT: "SbEvent",
43269
43269
  API: "SbApi"
43270
43270
  };
@@ -83892,7 +83892,7 @@ function registerStores(stores) {
83892
83892
  internalStores = { ...internalStores, ...stores };
83893
83893
  if (SUPPORTED_MODES.includes("production")) {
83894
83894
  if (Object.keys(internalStores).length === Object.keys(stores).length) {
83895
- import("./devtools-consolidated-F9ZtVbBI.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
83895
+ import("./devtools-consolidated-BZt1bNF_.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
83896
83896
  setRegisteredStores(internalStores);
83897
83897
  initializeCustomDevTools();
83898
83898
  }).catch((error) => {
@@ -83905,7 +83905,7 @@ function registerStores(stores) {
83905
83905
  }
83906
83906
  }
83907
83907
  const DevToolsInternal = React__default.lazy(() => {
83908
- return import("./devtools-consolidated-F9ZtVbBI.js").then((module2) => ({
83908
+ return import("./devtools-consolidated-BZt1bNF_.js").then((module2) => ({
83909
83909
  default: module2.CustomDevTools
83910
83910
  }));
83911
83911
  });
@@ -91432,14 +91432,14 @@ function getLoaderFn$1(options) {
91432
91432
  if (!(loader === "all")) return [3, 3];
91433
91433
  return [4, import(
91434
91434
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
91435
- "./allPathsLoader-5qc08otC.js"
91435
+ "./allPathsLoader-D_cBFX7b.js"
91436
91436
  )];
91437
91437
  case 2:
91438
91438
  return [2, _b2.sent().allPathsLoader];
91439
91439
  case 3:
91440
91440
  return [4, import(
91441
91441
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
91442
- "./splitPathsBySizeLoader-BrjoROLc.js"
91442
+ "./splitPathsBySizeLoader-BNHfwA8Q.js"
91443
91443
  )];
91444
91444
  case 4:
91445
91445
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -100693,7 +100693,7 @@ function registerScope(Component3, scopeDef, options) {
100693
100693
  type: type5
100694
100694
  });
100695
100695
  }
100696
- if (type5 === "SbTimer" && rest.startOnPageLoad && typeof entity === "object" && typeof (entity == null ? void 0 : entity.start) === "function") {
100696
+ if (type5 === "Timer" && rest.startOnPageLoad && typeof entity === "object" && typeof (entity == null ? void 0 : entity.start) === "function") {
100697
100697
  entity.start();
100698
100698
  }
100699
100699
  }
@@ -123387,8 +123387,8 @@ const useErrorMessages = (messages2) => {
123387
123387
  };
123388
123388
  const getErrorMessagesList = (errors2 = {}, showError) => {
123389
123389
  if (!showError) return [];
123390
- if (errors2.isRequired || errors2.required) {
123391
- return [errors2.isRequired ?? errors2.required];
123390
+ if (errors2.required || errors2.required) {
123391
+ return [errors2.required ?? errors2.required];
123392
123392
  }
123393
123393
  return Object.values(errors2).filter((error) => !!error);
123394
123394
  };
@@ -127607,7 +127607,7 @@ const useConditionalProps = (props2) => {
127607
127607
  inputType,
127608
127608
  validationErrors,
127609
127609
  showError,
127610
- isRequired,
127610
+ required: required4,
127611
127611
  value
127612
127612
  } = props2;
127613
127613
  return useMemo$2(() => {
@@ -127628,7 +127628,7 @@ const useConditionalProps = (props2) => {
127628
127628
  inputType,
127629
127629
  validationErrors,
127630
127630
  showError,
127631
- isRequired,
127631
+ required4,
127632
127632
  value
127633
127633
  ]);
127634
127634
  };
@@ -128073,7 +128073,7 @@ const _InputComponent = class _InputComponent extends React__default.Component {
128073
128073
  style: this.props.labelStyleOverride,
128074
128074
  ref: this.props.labelRef,
128075
128075
  children: [
128076
- this.props.isRequired && this.props.label.indexOf("*") === -1 && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: `asterisk ${CLASS_NAMES.ERROR_MODIFIER}`, children: [
128076
+ this.props.required && this.props.label.indexOf("*") === -1 && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: `asterisk ${CLASS_NAMES.ERROR_MODIFIER}`, children: [
128077
128077
  "*",
128078
128078
  " "
128079
128079
  ] }),
@@ -128178,7 +128178,7 @@ const PaddingOverlayWrapper = (props2) => {
128178
128178
  const getInputValidationErrors = (props2) => {
128179
128179
  const errors2 = {};
128180
128180
  const text = props2.text ?? "";
128181
- if (props2.isRequired && (!text || !text.length)) {
128181
+ if (props2.required && (!text || !text.length)) {
128182
128182
  errors2.required = "Required";
128183
128183
  }
128184
128184
  if (props2.customValidationRule && props2.customValidationRule.length && props2.customValidationRule === "false") {
@@ -128628,7 +128628,7 @@ const propertiesDefinition$e = {
128628
128628
  label: "Disabled",
128629
128629
  controlType: "SWITCH"
128630
128630
  }),
128631
- isRequired: Prop.boolean().default(false).propertiesPanel({
128631
+ required: Prop.boolean().default(false).propertiesPanel({
128632
128632
  label: "Required",
128633
128633
  helpText: "Makes input to the component mandatory",
128634
128634
  controlType: "SWITCH"
@@ -148528,14 +148528,14 @@ function getLoaderFn(options) {
148528
148528
  if (!(loader === "all")) return [3, 3];
148529
148529
  return [4, import(
148530
148530
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
148531
- "./allPathsLoader-DSvDWPTu.js"
148531
+ "./allPathsLoader-mTE2bVLJ.js"
148532
148532
  )];
148533
148533
  case 2:
148534
148534
  return [2, _b2.sent().allPathsLoader];
148535
148535
  case 3:
148536
148536
  return [4, import(
148537
148537
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
148538
- "./splitPathsBySizeLoader-BxSGidzh.js"
148538
+ "./splitPathsBySizeLoader-D7Yo0qy6.js"
148539
148539
  )];
148540
148540
  case 4:
148541
148541
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -156820,7 +156820,7 @@ class DatePickerComponent extends React__default.Component {
156820
156820
  className: `${this.props.labelClassName ?? CLASS_NAMES.INPUT_LABEL} ${this.props.isDisabled ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${CLASS_NAMES.ELLIPSIS_TEXT}`,
156821
156821
  style: this.props.labelStyleOverride,
156822
156822
  children: [
156823
- this.props.isRequired && this.props.label.indexOf("*") === -1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: "* " }),
156823
+ this.props.required && this.props.label.indexOf("*") === -1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: "* " }),
156824
156824
  this.props.label
156825
156825
  ]
156826
156826
  }
@@ -179086,8 +179086,8 @@ const _TableWidget = class _TableWidget extends React__default.Component {
179086
179086
  customErrorMessage: columnProperties.editCustomErrorMessage,
179087
179087
  maxLength: columnProperties.editMaxLength,
179088
179088
  minLength: columnProperties.editMinLength,
179089
- isRequired: Boolean(
179090
- isInserted ? columnProperties.isRequiredOnInsertion : columnProperties.editIsRequired
179089
+ required: Boolean(
179090
+ isInserted ? columnProperties.requiredOnInsertion : columnProperties.editIsRequired
179091
179091
  )
179092
179092
  });
179093
179093
  const validationErrors = getErrorMessages(errors2);
@@ -179532,7 +179532,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
179532
179532
  const { columns } = this.props;
179533
179533
  const validationErrors = Object.entries(columns).reduce(
179534
179534
  (acc, [key2, column2]) => {
179535
- if (column2.isRequiredOnInsertion && column2.defaultValue === void 0) {
179535
+ if (column2.requiredOnInsertion && column2.defaultValue === void 0) {
179536
179536
  acc[key2] = ["This field is required"];
179537
179537
  }
179538
179538
  return acc;
@@ -183658,7 +183658,7 @@ class DropDownComponent extends React__default.PureComponent {
183658
183658
  className: `${CLASS_NAMES.ELLIPSIS_TEXT} ${this.props.labelClassName ?? CLASS_NAMES.INPUT_LABEL} ${this.props.isDisabled ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${this.props.isLoading ? "test-loading-dropdown" : ""}`,
183659
183659
  style: this.props.labelStyleOverride,
183660
183660
  children: [
183661
- this.props.isRequired && this.props.label.indexOf("*") === -1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: "* " }),
183661
+ this.props.required && this.props.label.indexOf("*") === -1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: "* " }),
183662
183662
  this.props.label
183663
183663
  ]
183664
183664
  }
@@ -183944,7 +183944,7 @@ const propertiesDefinition$8 = {
183944
183944
  label: "Client-side filtering",
183945
183945
  helpText: "Enable client-side typeahead filtering of options via fuzzy matching. When implementing server-side filtering, we recommend disabling this setting to avoid flickering"
183946
183946
  }),
183947
- isRequired: Prop.boolean().readAndWrite().default(false).propertiesPanel({
183947
+ required: Prop.boolean().readAndWrite().default(false).propertiesPanel({
183948
183948
  label: "Required",
183949
183949
  helpText: "Makes input to the component mandatory"
183950
183950
  }),
@@ -184035,11 +184035,11 @@ const propertiesDefinition$8 = {
184035
184035
  validationErrors: Prop.any().readable().default(function() {
184036
184036
  const errors2 = {};
184037
184037
  if (!this.isTouched) return errors2;
184038
- if (this.isRequired) {
184038
+ if (this.required) {
184039
184039
  if (this.multiselect && this.selectedIndexArr && this.selectedIndexArr.length === 0) {
184040
- errors2.isRequired = "Required";
184040
+ errors2.required = "Required";
184041
184041
  } else if (!this.multiselect && !this.selectedOption) {
184042
- errors2.isRequired = "Required";
184042
+ errors2.required = "Required";
184043
184043
  }
184044
184044
  }
184045
184045
  if (this.customValidationRule && this.customValidationRule.length && this.customValidationRule === "false") {
@@ -184186,9 +184186,9 @@ const Dropdown = registerComponent$1(
184186
184186
  const isInvalid = useMemo$2(() => {
184187
184187
  var _a3;
184188
184188
  if (!props2.isTouched) return false;
184189
- if (((_a3 = props2.validationErrors) == null ? void 0 : _a3.isRequired) && Object.keys(props2.validationErrors ?? {}).length === 1) {
184189
+ if (((_a3 = props2.validationErrors) == null ? void 0 : _a3.required) && Object.keys(props2.validationErrors ?? {}).length === 1) {
184190
184190
  const nothingSelected = props2.metaSelectedOptionValue == null || props2.metaSelectedOptionValue === -1 || Array.isArray(props2.metaSelectedOptionValueArr) && props2.metaSelectedOptionValueArr.length === 0;
184191
- return nothingSelected && props2.isRequired;
184191
+ return nothingSelected && props2.required;
184192
184192
  }
184193
184193
  return !props2.isValid;
184194
184194
  }, [
@@ -184196,7 +184196,7 @@ const Dropdown = registerComponent$1(
184196
184196
  props2.isValid,
184197
184197
  props2.metaSelectedOptionValue,
184198
184198
  props2.metaSelectedOptionValueArr,
184199
- props2.isRequired,
184199
+ props2.required,
184200
184200
  props2.validationErrors
184201
184201
  ]);
184202
184202
  const normalize2 = useCallback(
@@ -184358,7 +184358,7 @@ const Dropdown = registerComponent$1(
184358
184358
  options,
184359
184359
  label: hasLabel ? props2.label : void 0,
184360
184360
  isLoading: props2.isLoading,
184361
- isRequired: props2.isRequired,
184361
+ required: props2.required,
184362
184362
  disabled: props2.isDisabled,
184363
184363
  vertical: props2.labelPosition === "top",
184364
184364
  allowClearing: props2.allowClearing,
@@ -184546,7 +184546,7 @@ class CheckboxComponent extends React__default.PureComponent {
184546
184546
  },
184547
184547
  htmlFor: `${this.props.name}-checkbox`,
184548
184548
  children: [
184549
- this.props.isRequired && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: asterisk }),
184549
+ this.props.required && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: asterisk }),
184550
184550
  restOfLabel
184551
184551
  ]
184552
184552
  }
@@ -184583,7 +184583,7 @@ const propertiesDefinition$7 = {
184583
184583
  }),
184584
184584
  layout: basicLayout(),
184585
184585
  interaction: Section$1.category(PropsPanelCategory.Interaction).children({
184586
- isRequired: Prop.boolean().readAndWrite().propertiesPanel({
184586
+ required: Prop.boolean().readAndWrite().propertiesPanel({
184587
184587
  label: "Required",
184588
184588
  helpText: "Makes checking this component mandatory",
184589
184589
  controlType: "SWITCH"
@@ -184614,8 +184614,8 @@ const propertiesDefinition$7 = {
184614
184614
  validationErrors: Prop.any().readable().default(function() {
184615
184615
  if (!this.isTouched) return {};
184616
184616
  const errors2 = {};
184617
- if (this.isRequired && !this.isChecked) {
184618
- errors2.isRequired = "Required";
184617
+ if (this.required && !this.isChecked) {
184618
+ errors2.required = "Required";
184619
184619
  }
184620
184620
  if (this.customValidationRule && this.customValidationRule.length && this.customValidationRule === "false") {
184621
184621
  errors2.customError = this.customErrorMessage || "Invalid";
@@ -184664,8 +184664,8 @@ const Checkbox = registerComponent$1(
184664
184664
  const errorMessages = useMemo$2(() => {
184665
184665
  if (!props2.showError) return [];
184666
184666
  const errors2 = props2.validationErrors;
184667
- if (errors2.isRequired || errors2.required) {
184668
- return [errors2.isRequired ?? errors2.required];
184667
+ if (errors2.required || errors2.required) {
184668
+ return [errors2.required ?? errors2.required];
184669
184669
  }
184670
184670
  return Object.values(errors2).filter(Boolean);
184671
184671
  }, [props2.showError, props2.validationErrors]);
@@ -184674,7 +184674,7 @@ const Checkbox = registerComponent$1(
184674
184674
  {
184675
184675
  name: props2.name,
184676
184676
  labelProps,
184677
- isRequired: props2.isRequired,
184677
+ required: props2.required,
184678
184678
  showError: props2.showError,
184679
184679
  isChecked: checkedValue,
184680
184680
  label: props2.label,
@@ -184884,7 +184884,7 @@ const propertiesDefinition$6 = {
184884
184884
  loading: loading()
184885
184885
  }),
184886
184886
  interaction: Section$1.category(PropsPanelCategory.Interaction).children({
184887
- isRequired: Prop.boolean().readAndWrite().default(false).propertiesPanel({
184887
+ required: Prop.boolean().readAndWrite().default(false).propertiesPanel({
184888
184888
  label: "Required",
184889
184889
  helpText: "Makes date picker mandatory",
184890
184890
  controlType: "SWITCH"
@@ -184934,8 +184934,8 @@ const propertiesDefinition$6 = {
184934
184934
  validationErrors: Prop.any().readable().default(function() {
184935
184935
  if (!this.isTouched) return {};
184936
184936
  const errors2 = {};
184937
- if (this.isRequired && !this.selectedDate) {
184938
- errors2.isRequired = "Required";
184937
+ if (this.required && !this.selectedDate) {
184938
+ errors2.required = "Required";
184939
184939
  }
184940
184940
  if (this.selectedDate && this.dateFormat && !moment(this.selectedDate, this.dateFormat, true).isValid()) {
184941
184941
  errors2.dateInvalid = "Invalid date";
@@ -185015,8 +185015,8 @@ const DatePicker = registerComponent$1(
185015
185015
  const errorMessages = useMemo$2(() => {
185016
185016
  if (!props2.showError) return [];
185017
185017
  const errors2 = props2.validationErrors;
185018
- if (errors2.isRequired || errors2.required) {
185019
- return [errors2.isRequired ?? errors2.required];
185018
+ if (errors2.required || errors2.required) {
185019
+ return [errors2.required ?? errors2.required];
185020
185020
  }
185021
185021
  return Object.values(errors2).filter(Boolean);
185022
185022
  }, [props2.showError, props2.validationErrors]);
@@ -185041,7 +185041,7 @@ const DatePicker = registerComponent$1(
185041
185041
  maxDate: props2.maxDate,
185042
185042
  isValid: !isInvalid,
185043
185043
  isTouched: props2.isTouched,
185044
- isRequired: props2.isRequired,
185044
+ required: props2.required,
185045
185045
  use24HourTime: props2.use24HourTime,
185046
185046
  displayTimezone: props2.manageTimezone ? props2.displayTimezone : void 0,
185047
185047
  timezone: props2.manageTimezone ? props2.valueTimezone : void 0,
@@ -185103,7 +185103,7 @@ const propertiesDefinition$5 = {
185103
185103
  }),
185104
185104
  layout: basicLayout(),
185105
185105
  interaction: Section$1.category(PropsPanelCategory.Interaction).children({
185106
- isRequired: Prop.boolean().readAndWrite().propertiesPanel({
185106
+ required: Prop.boolean().readAndWrite().propertiesPanel({
185107
185107
  label: "Required",
185108
185108
  helpText: "Makes checking this component mandatory",
185109
185109
  controlType: "SWITCH"
@@ -185134,8 +185134,8 @@ const propertiesDefinition$5 = {
185134
185134
  validationErrors: Prop.any().readable().default(function() {
185135
185135
  if (!this.isTouched) return {};
185136
185136
  const errors2 = {};
185137
- if (this.isRequired && !this.isChecked) {
185138
- errors2.isRequired = "Required";
185137
+ if (this.required && !this.isChecked) {
185138
+ errors2.required = "Required";
185139
185139
  }
185140
185140
  if (this.customValidationRule && this.customValidationRule.length && this.customValidationRule === "false") {
185141
185141
  errors2.customError = this.customErrorMessage || "Invalid";
@@ -185204,7 +185204,7 @@ const SwitchComponent = memo(
185204
185204
  labelPosition: labelPosition2,
185205
185205
  isChecked,
185206
185206
  isDisabled,
185207
- isRequired,
185207
+ required: required4,
185208
185208
  onSwitchChange,
185209
185209
  isLoading,
185210
185210
  labelProps,
@@ -185243,12 +185243,12 @@ const SwitchComponent = memo(
185243
185243
  style: labelProps.style,
185244
185244
  ref: labelRef,
185245
185245
  children: [
185246
- isRequired && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: asterisk }),
185246
+ required4 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: CLASS_NAMES.ERROR_MODIFIER, children: asterisk }),
185247
185247
  label
185248
185248
  ]
185249
185249
  }
185250
185250
  );
185251
- }, [isRequired, label, toggleSwitch, labelClass, labelProps.style]);
185251
+ }, [required4, label, toggleSwitch, labelClass, labelProps.style]);
185252
185252
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
185253
185253
  WidgetErrorsWrapper,
185254
185254
  {
@@ -185321,15 +185321,15 @@ const Switch = registerComponent$1(
185321
185321
  const errorMessages = useMemo$2(() => {
185322
185322
  if (!props2.showError) return [];
185323
185323
  const errors2 = props2.validationErrors;
185324
- if (errors2.isRequired || errors2.required) {
185325
- return [errors2.isRequired ?? errors2.required];
185324
+ if (errors2.required || errors2.required) {
185325
+ return [errors2.required ?? errors2.required];
185326
185326
  }
185327
185327
  return Object.values(errors2).filter(Boolean);
185328
185328
  }, [props2.showError, props2.validationErrors]);
185329
185329
  return /* @__PURE__ */ jsxRuntimeExports.jsx(SwitchContainer, { ...passThroughProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
185330
185330
  SwitchComponent,
185331
185331
  {
185332
- isRequired: !!props2.isRequired,
185332
+ required: !!props2.required,
185333
185333
  isChecked: !!props2.isChecked,
185334
185334
  label: props2.label,
185335
185335
  labelPosition: props2.labelPosition,
@@ -185708,7 +185708,7 @@ const propertiesDefinition$2 = {
185708
185708
  })
185709
185709
  })
185710
185710
  };
185711
- const SbVariable = registerEntity(
185711
+ const StateVar = registerEntity(
185712
185712
  SbEntityType.VARIABLE,
185713
185713
  {
185714
185714
  propertiesDefinition: propertiesDefinition$2
@@ -185771,7 +185771,7 @@ const propertiesDefinition$1 = {
185771
185771
  })
185772
185772
  })
185773
185773
  };
185774
- const SbTimer = registerEntity(
185774
+ const Timer = registerEntity(
185775
185775
  SbEntityType.TIMER,
185776
185776
  {
185777
185777
  propertiesDefinition: propertiesDefinition$1
@@ -197624,16 +197624,11 @@ function useHotkeys(keys2, callback, options, deps) {
197624
197624
  return ref2;
197625
197625
  }
197626
197626
  function useEditorHotkeys(keys2, callback, options, deps) {
197627
- const editorReadOnly = false;
197628
- let overrideCallback = callback;
197629
197627
  if (options instanceof Array) {
197630
197628
  deps = options;
197631
197629
  options = void 0;
197632
197630
  }
197633
- return useHotkeys(keys2, overrideCallback, options, [
197634
- ...deps ?? [],
197635
- editorReadOnly
197636
- ]);
197631
+ return useHotkeys(keys2, callback, options, [...deps ?? [], false]);
197637
197632
  }
197638
197633
  function EditorHotkeys({ children }) {
197639
197634
  useEditorHotkeys(
@@ -200368,9 +200363,9 @@ export {
200368
200363
  Image as n,
200369
200364
  observer as o,
200370
200365
  pascalCase as p,
200371
- SbVariable as q,
200366
+ StateVar as q,
200372
200367
  registerComponent as r,
200373
- SbTimer as s,
200368
+ Timer as s,
200374
200369
  toJS as t,
200375
200370
  SbApi as u,
200376
200371
  SbProvider as v,
@@ -200379,4 +200374,4 @@ export {
200379
200374
  setQueryParams as y,
200380
200375
  download as z
200381
200376
  };
200382
- //# sourceMappingURL=index-CQyG8q_M.js.map
200377
+ //# sourceMappingURL=index-C7Zt4bkH.js.map