@superblocksteam/cli 2.0.0-next.40 → 2.0.0-next.42

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/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @superblocksteam/cli
14
14
  $ superblocks COMMAND
15
15
  running command...
16
16
  $ superblocks (--version)
17
- @superblocksteam/cli/2.0.0-next.40 linux-x64 node-v20.19.0
17
+ @superblocksteam/cli/2.0.0-next.42 linux-x64 node-v20.19.0
18
18
  $ superblocks --help [COMMAND]
19
19
  USAGE
20
20
  $ superblocks COMMAND
@@ -91,7 +91,7 @@ init_cjs_shims();
91
91
 
92
92
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.js
93
93
  init_cjs_shims();
94
- var content12 = '## SbButton\n\nThe following is the type definition for the SbButton component.\n\n```typescript\ninterface SbButtonProps {\n label?: string;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":9},"bottom":{"mode":"px","value":9}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n /** @default "primary" */\n variant?: "primary" | "secondary" | "tertiary";\n icon?: string;\n /** @default "left" */\n iconPosition?: "left" | "right";\n /** @default undefined */\n textStyle?: Record<string, any>;\n /** @default undefined */\n backgroundColor?: string;\n /** @default undefined */\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default undefined */\n borderRadius?: { topLeft: Dim; topRight: Dim; bottomLeft: Dim; bottomRight: Dim };\n /** @default "center" */\n labelAlignment?: "left" | "center" | "right";\n /** @default true */\n loadingAnimation?: boolean;\n /** @default false */\n isDisabled?: boolean;\n onClick?: SbEventFlow;\n}\n```\n';
94
+ var content12 = '## SbButton\n\nThe following is the type definition for the SbButton component.\n\n```typescript\ninterface SbButtonProps {\n label?: string;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":9},"bottom":{"mode":"px","value":9}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n /** @default "primary" */\n variant?: "primary" | "secondary" | "tertiary";\n icon?: string;\n /** @default "left" */\n iconPosition?: string;\n /** @default {"variant":"buttonLabel","textColor":{"default":"#FFFFFF"}} */\n textStyle?: Record<string, any>;\n /** @default undefined */\n backgroundColor?: string;\n /** @default undefined */\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default undefined */\n borderRadius?: {\n topLeft: Dim;\n topRight: Dim;\n bottomLeft: Dim;\n bottomRight: Dim;\n };\n /** @default "center" */\n labelAlignment?: "left" | "center" | "right";\n /** @default true */\n loadingAnimation?: boolean;\n /** @default false */\n isDisabled?: boolean;\n onClick?: SbEventFlow;\n}\n```\n';
95
95
 
96
96
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.js
97
97
  init_cjs_shims();
@@ -123,7 +123,7 @@ var content19 = '## SbImage\n\nThe following is the type definition for the SbIm
123
123
 
124
124
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.js
125
125
  init_cjs_shims();
126
- var content20 = '## SbInput\n\nThe following is the type definition for the SbInput component.\n\n```typescript\ninterface SbInputProps {\n /** @default "" */\n label?: string;\n /** @default "TEXT" */\n inputType?: "TEXT" | "NUMBER" | "PERCENTAGE" | "CURRENCY" | "PASSWORD" | "EMAIL" | "URL";\n /** @default "standard" */\n numberFormatting?: "unformatted" | "standard" | "compact" | "scientific" | "engineering";\n /** @default "USD" */\n currency?: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";\n /** @default "symbol" */\n currencyCodeDisplay?: "symbol" | "iso_code";\n /** @default "" */\n defaultValue?: string;\n /** @default "top" */\n labelPosition?: "top" | "left";\n /** @default undefined */\n labelStyle?: Record<string, any>;\n /** @default "Enter text" */\n placeholderText?: string;\n /** @default undefined */\n textStyle?: Record<string, any>;\n /** @default "{{ theme.colors.neutral }}" */\n backgroundColor?: string;\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default undefined */\n borderRadius?: { topLeft: Dim; topRight: Dim; bottomLeft: Dim; bottomRight: Dim };\n icon?: string;\n /** @default "left" */\n iconPosition?: "left" | "right";\n inputType?: string;\n /** @default false */\n multiline?: boolean;\n /** @default true */\n loadingAnimation?: boolean;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":8},"bottom":{"mode":"px","value":8}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n labelPosition?: string;\n /** @default {"mode":"%","value":30} */\n labelWidth?: any;\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n inputType?: string;\n /** @default 1 */\n minimumFractionDigits?: number;\n /** @default 2 */\n maximumFractionDigits?: number;\n /** @default false */\n stepper?: boolean;\n /** @default 1 */\n stepSize?: number;\n minLength?: number;\n maxLength?: number;\n /** @default false */\n isDisabled?: boolean;\n /** @default false */\n isRequired?: boolean;\n /** @default "tooltip" */\n errorMessagePlacement?: "tooltip" | "inline";\n /** @default "" */\n customValidationRule?: string;\n /** @default "" */\n customErrorMessage?: string;\n onTextChanged?: SbEventFlow;\n onSubmit?: SbEventFlow;\n onFocus?: SbEventFlow;\n onFocusOut?: SbEventFlow;\n}\n```\n\nAnd the following properties can be referenced on this component in the Superblocks state object:\n\n```typescript\ninterface SbInputComponentState {\n /** @default "" */\n value?: string;\n /** @default {} */\n validationErrors?: any;\n /** @default true */\n isValid?: boolean;\n showError?: boolean;\n}\n```\n';
126
+ var content20 = '## SbInput\n\nThe following is the type definition for the SbInput component.\n\n```typescript\ninterface SbInputProps {\n /** @default "" */\n label?: string;\n /** @default "TEXT" */\n inputType?:\n | "TEXT"\n | "NUMBER"\n | "PERCENTAGE"\n | "CURRENCY"\n | "PASSWORD"\n | "EMAIL"\n | "URL";\n /** @default "standard" */\n numberFormatting?:\n | "unformatted"\n | "standard"\n | "compact"\n | "scientific"\n | "engineering";\n /** @default "USD" */\n currency?:\n | "AED"\n | "AFN"\n | "ALL"\n | "AMD"\n | "ANG"\n | "AOA"\n | "ARS"\n | "AUD"\n | "AWG"\n | "AZN"\n | "BAM"\n | "BBD"\n | "BDT"\n | "BGN"\n | "BHD"\n | "BIF"\n | "BMD"\n | "BND"\n | "BOB"\n | "BOV"\n | "BRL"\n | "BSD"\n | "BTN"\n | "BWP"\n | "BYN"\n | "BZD"\n | "CAD"\n | "CDF"\n | "CHE"\n | "CHF"\n | "CHW"\n | "CLF"\n | "CLP"\n | "CNY"\n | "COP"\n | "COU"\n | "CRC"\n | "CUC"\n | "CUP"\n | "CVE"\n | "CZK"\n | "DJF"\n | "DKK"\n | "DOP"\n | "DZD"\n | "EGP"\n | "ERN"\n | "ETB"\n | "EUR"\n | "FJD"\n | "FKP"\n | "GBP"\n | "GEL"\n | "GHS"\n | "GIP"\n | "GMD"\n | "GNF"\n | "GTQ"\n | "GYD"\n | "HKD"\n | "HNL"\n | "HRK"\n | "HTG"\n | "HUF"\n | "IDR"\n | "ILS"\n | "INR"\n | "IQD"\n | "IRR"\n | "ISK"\n | "JMD"\n | "JOD"\n | "JPY"\n | "KES"\n | "KGS"\n | "KHR"\n | "KMF"\n | "KPW"\n | "KRW"\n | "KWD"\n | "KYD"\n | "KZT"\n | "LAK"\n | "LBP"\n | "LKR"\n | "LRD"\n | "LSL"\n | "LYD"\n | "MAD"\n | "MDL"\n | "MGA"\n | "MKD"\n | "MMK"\n | "MNT"\n | "MOP"\n | "MRU"\n | "MUR"\n | "MVR"\n | "MWK"\n | "MXN"\n | "MXV"\n | "MYR"\n | "MZN"\n | "NAD"\n | "NGN"\n | "NIO"\n | "NOK"\n | "NPR"\n | "NZD"\n | "OMR"\n | "PAB"\n | "PEN"\n | "PGK"\n | "PHP"\n | "PKR"\n | "PLN"\n | "PYG"\n | "QAR"\n | "RON"\n | "RSD"\n | "RUB"\n | "RWF"\n | "SAR"\n | "SBD"\n | "SCR"\n | "SDG"\n | "SEK"\n | "SGD"\n | "SHP"\n | "SLL"\n | "SOS"\n | "SRD"\n | "SSP"\n | "STN"\n | "SVC"\n | "SYP"\n | "SZL"\n | "THB"\n | "TJS"\n | "TMT"\n | "TND"\n | "TOP"\n | "TRY"\n | "TTD"\n | "TWD"\n | "TZS"\n | "UAH"\n | "UGX"\n | "USD"\n | "USN"\n | "UYI"\n | "UYU"\n | "UYW"\n | "UZS"\n | "VED"\n | "VES"\n | "VND"\n | "VUV"\n | "WST"\n | "XAF"\n | "XAG"\n | "XAU"\n | "XBA"\n | "XBB"\n | "XBC"\n | "XBD"\n | "XCD"\n | "XDR"\n | "XOF"\n | "XPD"\n | "XPF"\n | "XPT"\n | "XSU"\n | "XTS"\n | "XUA"\n | "XXX"\n | "YER"\n | "ZAR"\n | "ZMW"\n | "ZWL";\n /** @default "symbol" */\n currencyCodeDisplay?: "symbol" | "iso_code";\n /** @default "" */\n defaultValue?: string;\n /** @default "top" */\n labelPosition?: "top" | "left";\n /** @default undefined */\n labelStyle?: Record<string, any>;\n /** @default "Enter text" */\n placeholderText?: string;\n /** @default undefined */\n textStyle?: Record<string, any>;\n /** @default "{{ theme.colors.neutral }}" */\n backgroundColor?: string;\n border?: { left: Border; right: Border; top: Border; bottom: Border };\n /** @default undefined */\n borderRadius?: {\n topLeft: Dim;\n topRight: Dim;\n bottomLeft: Dim;\n bottomRight: Dim;\n };\n icon?: string;\n /** @default "left" */\n iconPosition?: string;\n inputType?: string;\n /** @default false */\n multiline?: boolean;\n /** @default true */\n loadingAnimation?: boolean;\n /** @default {"left":{"mode":"px","value":10},"right":{"mode":"px","value":10},"top":{"mode":"px","value":8},"bottom":{"mode":"px","value":8}} */\n padding?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n width?: Dim;\n height?: Dim;\n minWidth?: Dim;\n maxWidth?: Dim;\n minHeight?: Dim;\n maxHeight?: Dim;\n /** @default {"top":{"mode":"px","value":0},"bottom":{"mode":"px","value":0},"left":{"mode":"px","value":0},"right":{"mode":"px","value":0}} */\n margin?: { left: Dim; right: Dim; top: Dim; bottom: Dim };\n labelPosition?: string;\n /** @default {"mode":"%","value":30} */\n labelWidth?: any;\n /** @default true */\n isVisible?: boolean;\n collapseWhenInvisible?: boolean;\n inputType?: string;\n /** @default 1 */\n minimumFractionDigits?: number;\n /** @default 2 */\n maximumFractionDigits?: number;\n /** @default false */\n stepper?: boolean;\n /** @default 1 */\n stepSize?: number;\n minLength?: number;\n maxLength?: number;\n /** @default false */\n isDisabled?: boolean;\n /** @default false */\n isRequired?: boolean;\n /** @default "tooltip" */\n errorMessagePlacement?: "tooltip" | "inline";\n /** @default "" */\n customValidationRule?: string;\n /** @default "" */\n customErrorMessage?: string;\n onTextChanged?: SbEventFlow;\n onSubmit?: SbEventFlow;\n onFocus?: SbEventFlow;\n onFocusOut?: SbEventFlow;\n}\n```\n\nAnd the following properties can be referenced on this component in the Superblocks state object:\n\n```typescript\ninterface SbInputComponentState {\n /** @default "" */\n value?: string;\n /** @default {} */\n validationErrors?: any;\n /** @default true */\n isValid?: boolean;\n showError?: boolean;\n}\n```\n';
127
127
 
128
128
  // ../../../vite-plugin-file-sync/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.js
129
129
  init_cjs_shims();
package/dist/index.js CHANGED
@@ -82858,13 +82858,13 @@ var require_utils3 = __commonJS({
82858
82858
  var DATA_BIND_REGEX = /{{([\s\S]*?)}}/;
82859
82859
  var containsBindingsAnywhere3 = (value2) => DATA_BIND_REGEX.test(value2);
82860
82860
  exports2.containsBindingsAnywhere = containsBindingsAnywhere3;
82861
- var isExactBinding2 = (value2) => value2.startsWith("{{") && value2.endsWith("}}");
82862
- exports2.isExactBinding = isExactBinding2;
82861
+ var isExactBinding = (value2) => value2.startsWith("{{") && value2.endsWith("}}");
82862
+ exports2.isExactBinding = isExactBinding;
82863
82863
  function getDynamicStringSegments(dynamicString) {
82864
- return getDynamicStringSegmentsWithPositions2(dynamicString).map((segment) => segment.str);
82864
+ return getDynamicStringSegmentsWithPositions(dynamicString).map((segment) => segment.str);
82865
82865
  }
82866
82866
  exports2.getDynamicStringSegments = getDynamicStringSegments;
82867
- function getDynamicStringSegmentsWithPositions2(inputString) {
82867
+ function getDynamicStringSegmentsWithPositions(inputString) {
82868
82868
  const tokens = [];
82869
82869
  let currentToken = "";
82870
82870
  let betweenBrackets = false;
@@ -82926,7 +82926,7 @@ var require_utils3 = __commonJS({
82926
82926
  if (!dynamicString || !(0, lodash_1.isString)(dynamicString)) {
82927
82927
  return { stringSegments: [], jsSnippets: [], positionedSnippets: [] };
82928
82928
  }
82929
- const stringSegments = getDynamicStringSegmentsWithPositions2(dynamicString.trim());
82929
+ const stringSegments = getDynamicStringSegmentsWithPositions(dynamicString.trim());
82930
82930
  const paths = stringSegments.map((positionedSegment) => {
82931
82931
  const segment = positionedSegment.str;
82932
82932
  const length = segment.length;
@@ -256986,7 +256986,7 @@ var import_util4 = __toESM(require_dist4(), 1);
256986
256986
  // ../sdk/package.json
256987
256987
  var package_default = {
256988
256988
  name: "@superblocksteam/sdk",
256989
- version: "2.0.0-next.40",
256989
+ version: "2.0.0-next.42",
256990
256990
  type: "module",
256991
256991
  description: "Superblocks JS SDK",
256992
256992
  homepage: "https://www.superblocks.com",
@@ -257024,8 +257024,8 @@ var package_default = {
257024
257024
  "@rollup/wasm-node": "^4.35.0",
257025
257025
  "@superblocksteam/bucketeer-sdk": "0.4.1",
257026
257026
  "@superblocksteam/shared": "0.9137.0",
257027
- "@superblocksteam/util": "2.0.0-next.40",
257028
- "@superblocksteam/vite-plugin-file-sync": "2.0.0-next.40",
257027
+ "@superblocksteam/util": "2.0.0-next.42",
257028
+ "@superblocksteam/vite-plugin-file-sync": "2.0.0-next.42",
257029
257029
  "@vitejs/plugin-react": "^4.3.4",
257030
257030
  axios: "^1.4.0",
257031
257031
  chokidar: "^4.0.3",
@@ -264290,91 +264290,62 @@ var getControlBlockExpressions = (block) => {
264290
264290
  // ../../../vite-plugin-file-sync/dist/binding-extraction/extract-embedded-identifiers.js
264291
264291
  init_cjs_shims();
264292
264292
  init_lodash();
264293
- var isExactBinding = (value2) => value2.startsWith("{{") && value2.endsWith("}}");
264294
- function getDynamicStringSegmentsWithPositions(inputString) {
264295
- const tokens = [];
264296
- let currentToken = "";
264297
- let betweenBrackets = false;
264298
- let sum = 0;
264299
- for (let i2 = 0; i2 < inputString.length; i2++) {
264300
- if (inputString[i2] === "{") {
264301
- if (betweenBrackets) {
264302
- currentToken += "{";
264303
- sum++;
264304
- } else if (inputString[i2 + 1] === "{") {
264305
- if (currentToken.length > 0) {
264306
- tokens.push({
264307
- str: currentToken,
264308
- from: i2 - currentToken.length,
264309
- to: i2
264310
- });
264311
- }
264312
- currentToken = "{{";
264313
- betweenBrackets = true;
264314
- sum = 0;
264315
- i2++;
264316
- } else {
264317
- currentToken += "{";
264318
- }
264319
- } else if (inputString[i2] === "}") {
264320
- if (betweenBrackets) {
264321
- if (sum === 0 && inputString[i2 + 1] === "}") {
264322
- currentToken += "}}";
264323
- i2++;
264324
- tokens.push({
264325
- str: currentToken,
264326
- from: i2 - currentToken.length,
264327
- to: i2
264328
- });
264329
- currentToken = "";
264330
- betweenBrackets = false;
264331
- } else {
264332
- currentToken += "}";
264333
- sum = Math.max(sum - 1, 0);
264334
- }
264335
- } else {
264336
- currentToken += "}";
264337
- sum = Math.max(sum - 1, 0);
264338
- }
264339
- } else {
264340
- currentToken += inputString[i2];
264293
+
264294
+ // ../../../vite-plugin-file-sync/dist/binding-extraction/template-strings.js
264295
+ init_cjs_shims();
264296
+ function parseTemplateString(str2) {
264297
+ const results = [];
264298
+ const regex = /(\${[^}]+})/g;
264299
+ let lastIndex = 0;
264300
+ let match3;
264301
+ while ((match3 = regex.exec(str2)) != null) {
264302
+ const startIndex = match3.index;
264303
+ const endIndex = regex.lastIndex;
264304
+ if (startIndex > lastIndex) {
264305
+ results.push({
264306
+ type: "string",
264307
+ value: str2.substring(lastIndex, startIndex),
264308
+ startIndex: lastIndex,
264309
+ endIndex: startIndex
264310
+ });
264311
+ }
264312
+ const fullExpression = match3[1];
264313
+ if (!fullExpression) {
264314
+ continue;
264341
264315
  }
264316
+ const expressionContent = fullExpression.substring(2, fullExpression.length - 1);
264317
+ results.push({
264318
+ type: "expression",
264319
+ value: expressionContent,
264320
+ startIndex,
264321
+ endIndex
264322
+ });
264323
+ lastIndex = endIndex;
264342
264324
  }
264343
- if (currentToken.length > 0) {
264344
- tokens.push({
264345
- str: currentToken,
264346
- from: inputString.length - currentToken.length,
264347
- to: inputString.length
264325
+ if (lastIndex < str2.length) {
264326
+ results.push({
264327
+ type: "string",
264328
+ value: str2.substring(lastIndex),
264329
+ startIndex: lastIndex,
264330
+ endIndex: str2.length
264348
264331
  });
264349
264332
  }
264350
- return tokens;
264333
+ if (str2.length === 0 && results.length === 0) {
264334
+ results.push({ type: "string", value: "", startIndex: 0, endIndex: 0 });
264335
+ }
264336
+ return results;
264351
264337
  }
264338
+
264339
+ // ../../../vite-plugin-file-sync/dist/binding-extraction/extract-embedded-identifiers.js
264352
264340
  var getDynamicBindings = (dynamicString) => {
264353
264341
  if (!dynamicString || !isString_default(dynamicString)) {
264354
264342
  return { stringSegments: [], jsSnippets: [], positionedSnippets: [] };
264355
264343
  }
264356
- const stringSegments = getDynamicStringSegmentsWithPositions(dynamicString.trim());
264357
- const paths = stringSegments.map((positionedSegment) => {
264358
- const segment = positionedSegment.str;
264359
- const length = segment.length;
264360
- const matches = isExactBinding(segment);
264361
- if (matches) {
264362
- return {
264363
- str: segment.substring(2, length - 2),
264364
- from: positionedSegment.from + 2,
264365
- to: positionedSegment.from + length - 2
264366
- };
264367
- }
264368
- return {
264369
- str: "",
264370
- from: 0,
264371
- to: 0
264372
- };
264373
- });
264344
+ const segments = parseTemplateString(dynamicString.trim());
264374
264345
  return {
264375
- stringSegments: stringSegments.map((segment) => segment.str),
264376
- jsSnippets: paths.map((path45) => path45.str),
264377
- positionedSnippets: paths.filter((path45) => path45.str !== "")
264346
+ stringSegments: segments.filter((segment) => segment.type === "string").map((segment) => segment.value),
264347
+ jsSnippets: segments.filter((segment) => segment.type === "expression").map((segment) => segment.value),
264348
+ positionedSnippets: segments
264378
264349
  };
264379
264350
  };
264380
264351
 
@@ -308761,7 +308732,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
308761
308732
  };
308762
308733
  const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
308763
308734
  const customFolder = path21.join(root2, "custom");
308764
- const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.40";
308735
+ const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.42";
308765
308736
  const env3 = loadEnv(mode, root2, "");
308766
308737
  const hmrPort = await getFreePort();
308767
308738
  const hmrOptions = {
@@ -315333,7 +315304,7 @@ var datasourceSdkClassByType = {
315333
315304
  python: "Python",
315334
315305
  redpanda: "Kafka",
315335
315306
  redshift: "Redshift",
315336
- restapiintegration: "RestApiIntegration",
315307
+ restapiintegration: "RestApi",
315337
315308
  s3: "S3",
315338
315309
  smtp: "Smtp",
315339
315310
  snowflake: "Snowflake",
@@ -315487,7 +315458,7 @@ init_cjs_shims();
315487
315458
  init_cjs_shims();
315488
315459
  var generated = {};
315489
315460
  try {
315490
- generated = await import("./generated-XLKKF4K3.js");
315461
+ generated = await import("./generated-AZ3PML4T.js");
315491
315462
  } catch (_error) {
315492
315463
  getLogger().warn("[ai-service] Generated markdown modules not found. Run `pnpm generate:markdown` first.");
315493
315464
  }
@@ -509,5 +509,5 @@
509
509
  "strict": true
510
510
  }
511
511
  },
512
- "version": "2.0.0-next.40"
512
+ "version": "2.0.0-next.42"
513
513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "2.0.0-next.40",
3
+ "version": "2.0.0-next.42",
4
4
  "type": "module",
5
5
  "description": "Official Superblocks CLI",
6
6
  "homepage": "https://www.superblocks.com",
@@ -42,9 +42,9 @@
42
42
  "devDependencies": {
43
43
  "@eslint/js": "^9.16.0",
44
44
  "@oclif/test": "^4.1.11",
45
- "@superblocksteam/sdk": "2.0.0-next.40",
45
+ "@superblocksteam/sdk": "2.0.0-next.42",
46
46
  "@superblocksteam/shared": "0.9137.0",
47
- "@superblocksteam/util": "2.0.0-next.40",
47
+ "@superblocksteam/util": "2.0.0-next.42",
48
48
  "@types/babel__core": "^7.20.0",
49
49
  "@types/chai": "^4",
50
50
  "@types/fs-extra": "^11.0.1",