@tanstack/cta-ui 0.35.0 → 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/assets/{index-C7V_rFNl.js → index-DZuzT0kn.js} +3 -3
- package/dist/assets/index-DZuzT0kn.js.map +1 -0
- package/dist/index.html +1 -1
- package/lib/engine-handling/generate-initial-payload.ts +2 -2
- package/lib/engine-handling/server-environment.ts +3 -3
- package/lib/index.ts +1 -1
- package/lib/types.d.ts +1 -1
- package/lib-dist/engine-handling/generate-initial-payload.d.ts +1 -1
- package/lib-dist/engine-handling/generate-initial-payload.js +2 -2
- package/lib-dist/engine-handling/server-environment.d.ts +2 -2
- package/lib-dist/engine-handling/server-environment.js +2 -2
- package/lib-dist/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/types.d.ts +1 -1
- package/dist/assets/index-C7V_rFNl.js.map +0 -1
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
29
|
+
export const getShowDeploymentOptions = () => serverEnvironment.showDeploymentOptions
|
|
30
30
|
|
|
31
31
|
export const getProjectPath = () => serverEnvironment.projectPath
|
|
32
32
|
|
package/lib/index.ts
CHANGED
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' | '
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
10
|
+
showDeploymentOptions?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare function setServerEnvironment(options: Partial<ServerEnvironment>): void;
|
|
13
|
-
export declare const
|
|
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
|
-
|
|
9
|
+
showDeploymentOptions: false,
|
|
10
10
|
};
|
|
11
11
|
export function setServerEnvironment(options) {
|
|
12
12
|
Object.assign(serverEnvironment, options);
|
|
13
13
|
}
|
|
14
|
-
export const
|
|
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;
|
package/lib-dist/index.d.ts
CHANGED
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.
|
|
21
|
-
"@tanstack/cta-ui-base": "0.
|
|
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.
|
|
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' | '
|
|
35
|
+
type: 'add-on' | 'example' | 'starter' | 'toolchain' | 'deployment'
|
|
36
36
|
modes: Array<string>
|
|
37
37
|
smallLogo?: string
|
|
38
38
|
logo?: string
|