@tanstack/cta-ui 0.14.4 → 0.15.1

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.
@@ -95,8 +95,8 @@ export async function generateInitialPayload() {
95
95
  convertAddOnToAddOnInfo,
96
96
  )
97
97
 
98
- for (const addOnInfo of registryAddOns || []) {
99
- const addOnFramework = rawRegistry?.['add-ons'].find(
98
+ for (const addOnInfo of registryAddOns) {
99
+ const addOnFramework = rawRegistry?.['add-ons']?.find(
100
100
  (addOn) => addOn.url === addOnInfo.id,
101
101
  )
102
102
  if (addOnFramework?.framework === serializedOptions.framework) {
@@ -24,9 +24,9 @@ export declare function generateInitialPayload(): Promise<{
24
24
  name: string;
25
25
  description: string;
26
26
  url: string;
27
- banner?: string;
28
- mode: Mode;
29
27
  framework: string;
28
+ mode: "code-router" | "file-router";
29
+ banner?: string | undefined;
30
30
  }[];
31
31
  };
32
32
  }>;
@@ -57,8 +57,8 @@ export async function generateInitialPayload() {
57
57
  const framework = await getFrameworkById(serializedOptions.framework);
58
58
  const codeRouterAddOns = getAllAddOns(framework, 'code-router').map(convertAddOnToAddOnInfo);
59
59
  const fileRouterAddOns = getAllAddOns(framework, 'file-router').map(convertAddOnToAddOnInfo);
60
- for (const addOnInfo of registryAddOns || []) {
61
- const addOnFramework = rawRegistry?.['add-ons'].find((addOn) => addOn.url === addOnInfo.id);
60
+ for (const addOnInfo of registryAddOns) {
61
+ const addOnFramework = rawRegistry?.['add-ons']?.find((addOn) => addOn.url === addOnInfo.id);
62
62
  if (addOnFramework?.framework === serializedOptions.framework) {
63
63
  if (addOnInfo.modes.includes('code-router')) {
64
64
  codeRouterAddOns.push(convertAddOnToAddOnInfo(addOnInfo));
package/package.json CHANGED
@@ -45,9 +45,9 @@
45
45
  "tailwindcss-animate": "^1.0.7",
46
46
  "vite-tsconfig-paths": "^5.1.4",
47
47
  "zustand": "^5.0.3",
48
- "@tanstack/cta-engine": "0.14.4",
49
- "@tanstack/cta-framework-solid": "0.14.4",
50
- "@tanstack/cta-framework-react-cra": "0.14.4"
48
+ "@tanstack/cta-engine": "0.15.1",
49
+ "@tanstack/cta-framework-solid": "0.15.1",
50
+ "@tanstack/cta-framework-react-cra": "0.15.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@tailwindcss/typography": "^0.5.16",
@@ -66,6 +66,6 @@
66
66
  "vitest": "^3.0.5",
67
67
  "web-vitals": "^4.2.4"
68
68
  },
69
- "version": "0.14.4",
69
+ "version": "0.15.1",
70
70
  "scripts": {}
71
71
  }