@tanstack/cta-ui 0.34.15 → 0.36.0

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/dist/index.html CHANGED
@@ -11,7 +11,7 @@
11
11
  href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
12
12
  />
13
13
  <!-- PRELOAD-->
14
- <script type="module" crossorigin src="/assets/index-C7V_rFNl.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-DZuzT0kn.js"></script>
15
15
  <link rel="stylesheet" crossorigin href="/assets/index-CMi5ddsE.css">
16
16
  </head>
17
17
  <body class="dark">
@@ -19,7 +19,7 @@ import {
19
19
  getProjectOptions,
20
20
  getProjectPath,
21
21
  getRegistry as getRegistryURL,
22
- getShowHostingOptions,
22
+ getShowDeploymentOptions,
23
23
  } from './server-environment.js'
24
24
 
25
25
  import type { AddOn, SerializedOptions } from '@tanstack/cta-engine'
@@ -120,7 +120,7 @@ export async function generateInitialPayload() {
120
120
  return {
121
121
  supportedModes: framework!.supportedModes,
122
122
  applicationMode,
123
- showHostingOptions: getShowHostingOptions(),
123
+ showDeploymentOptions: getShowDeploymentOptions(),
124
124
  localFiles,
125
125
  addOns,
126
126
  options: serializedOptions,
@@ -8,7 +8,7 @@ export type ServerEnvironment = {
8
8
  forcedRouterMode?: string
9
9
  forcedAddOns?: Array<string>
10
10
  registry?: string
11
- showHostingOptions?: boolean
11
+ showDeploymentOptions?: boolean
12
12
  }
13
13
 
14
14
  const serverEnvironment: ServerEnvironment = {
@@ -19,14 +19,14 @@ const serverEnvironment: ServerEnvironment = {
19
19
  forcedRouterMode: undefined,
20
20
  forcedAddOns: undefined,
21
21
  registry: undefined,
22
- showHostingOptions: false,
22
+ showDeploymentOptions: false,
23
23
  }
24
24
 
25
25
  export function setServerEnvironment(options: Partial<ServerEnvironment>) {
26
26
  Object.assign(serverEnvironment, options)
27
27
  }
28
28
 
29
- export const getShowHostingOptions = () => serverEnvironment.showHostingOptions
29
+ export const getShowDeploymentOptions = () => serverEnvironment.showDeploymentOptions
30
30
 
31
31
  export const getProjectPath = () => serverEnvironment.projectPath
32
32
 
package/lib/index.ts CHANGED
@@ -23,7 +23,7 @@ export function launchUI(
23
23
  port?: number
24
24
  environmentFactory?: () => Environment
25
25
  webBase?: string
26
- showHostingOptions?: boolean
26
+ showDeploymentOptions?: boolean
27
27
  },
28
28
  ) {
29
29
  const { port: requestedPort, webBase, ...rest } = options
package/lib/types.d.ts CHANGED
@@ -12,7 +12,7 @@ export type AddOnInfo = {
12
12
  name: string
13
13
  description: string
14
14
  priority?: number
15
- type: 'add-on' | 'example' | 'starter' | 'toolchain' | 'host'
15
+ type: 'add-on' | 'example' | 'starter' | 'toolchain' | 'deployment'
16
16
  modes: Array<'code-router' | 'file-router'>
17
17
  smallLogo?: string
18
18
  logo?: string
@@ -7,7 +7,7 @@ export declare function generateInitialPayload(): Promise<{
7
7
  forceTypescript: boolean;
8
8
  }>;
9
9
  applicationMode: "add" | "setup";
10
- showHostingOptions: boolean | undefined;
10
+ showDeploymentOptions: boolean | undefined;
11
11
  localFiles: Record<string, string>;
12
12
  addOns: Record<string, AddOnInfo[]>;
13
13
  options: SerializedOptions;
@@ -2,7 +2,7 @@ import { basename, resolve } from 'node:path';
2
2
  import { createSerializedOptionsFromPersisted, getAllAddOns, getFrameworkById, getRawRegistry, getRegistryAddOns, readConfigFile, recursivelyGatherFiles, } from '@tanstack/cta-engine';
3
3
  import { cleanUpFiles } from './file-helpers.js';
4
4
  import { createAppWrapper } from './create-app-wrapper.js';
5
- import { getApplicationMode, getForcedAddOns, getForcedRouterMode, getProjectOptions, getProjectPath, getRegistry as getRegistryURL, getShowHostingOptions, } from './server-environment.js';
5
+ import { getApplicationMode, getForcedAddOns, getForcedRouterMode, getProjectOptions, getProjectPath, getRegistry as getRegistryURL, getShowDeploymentOptions, } from './server-environment.js';
6
6
  function convertAddOnToAddOnInfo(addOn) {
7
7
  return {
8
8
  id: addOn.id,
@@ -74,7 +74,7 @@ export async function generateInitialPayload() {
74
74
  return {
75
75
  supportedModes: framework.supportedModes,
76
76
  applicationMode,
77
- showHostingOptions: getShowHostingOptions(),
77
+ showDeploymentOptions: getShowDeploymentOptions(),
78
78
  localFiles,
79
79
  addOns,
80
80
  options: serializedOptions,
@@ -7,10 +7,10 @@ export type ServerEnvironment = {
7
7
  forcedRouterMode?: string;
8
8
  forcedAddOns?: Array<string>;
9
9
  registry?: string;
10
- showHostingOptions?: boolean;
10
+ showDeploymentOptions?: boolean;
11
11
  };
12
12
  export declare function setServerEnvironment(options: Partial<ServerEnvironment>): void;
13
- export declare const getShowHostingOptions: () => boolean | undefined;
13
+ export declare const getShowDeploymentOptions: () => boolean | undefined;
14
14
  export declare const getProjectPath: () => string;
15
15
  export declare const getApplicationMode: () => "add" | "setup";
16
16
  export declare const getProjectOptions: () => SerializedOptions;
@@ -6,12 +6,12 @@ const serverEnvironment = {
6
6
  forcedRouterMode: undefined,
7
7
  forcedAddOns: undefined,
8
8
  registry: undefined,
9
- showHostingOptions: false,
9
+ showDeploymentOptions: false,
10
10
  };
11
11
  export function setServerEnvironment(options) {
12
12
  Object.assign(serverEnvironment, options);
13
13
  }
14
- export const getShowHostingOptions = () => serverEnvironment.showHostingOptions;
14
+ export const getShowDeploymentOptions = () => serverEnvironment.showDeploymentOptions;
15
15
  export const getProjectPath = () => serverEnvironment.projectPath;
16
16
  export const getApplicationMode = () => serverEnvironment.mode;
17
17
  export const getProjectOptions = () => serverEnvironment.options;
@@ -4,5 +4,5 @@ export declare function launchUI(options: Partial<ServerEnvironment> & {
4
4
  port?: number;
5
5
  environmentFactory?: () => Environment;
6
6
  webBase?: string;
7
- showHostingOptions?: boolean;
7
+ showDeploymentOptions?: boolean;
8
8
  }): void;
package/package.json CHANGED
@@ -17,8 +17,8 @@
17
17
  "tailwindcss": "^4.1.6",
18
18
  "tailwindcss-animate": "^1.0.7",
19
19
  "vite-tsconfig-paths": "^5.1.4",
20
- "@tanstack/cta-engine": "0.34.15",
21
- "@tanstack/cta-ui-base": "0.34.15"
20
+ "@tanstack/cta-engine": "0.36.0",
21
+ "@tanstack/cta-ui-base": "0.36.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tailwindcss/typography": "^0.5.16",
@@ -37,6 +37,6 @@
37
37
  "vitest": "^3.0.5",
38
38
  "web-vitals": "^4.2.4"
39
39
  },
40
- "version": "0.34.15",
40
+ "version": "0.36.0",
41
41
  "scripts": {}
42
42
  }
package/src/types.d.ts CHANGED
@@ -32,7 +32,7 @@ export type AddOnInfo = {
32
32
  id: string
33
33
  name: string
34
34
  description: string
35
- type: 'add-on' | 'example' | 'starter' | 'toolchain' | 'host'
35
+ type: 'add-on' | 'example' | 'starter' | 'toolchain' | 'deployment'
36
36
  modes: Array<string>
37
37
  smallLogo?: string
38
38
  logo?: string