@tanstack/cta-ui 0.32.3 → 0.33.2
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-BMNLJ_vl.js → index-C7V_rFNl.js} +48 -48
- package/dist/assets/index-C7V_rFNl.js.map +1 -0
- package/dist/index.html +1 -1
- package/lib/engine-handling/generate-initial-payload.ts +3 -0
- package/lib/engine-handling/server-environment.ts +4 -0
- package/lib/index.ts +1 -0
- package/lib/types.d.ts +1 -0
- package/lib-dist/engine-handling/generate-initial-payload.d.ts +1 -0
- package/lib-dist/engine-handling/generate-initial-payload.js +3 -1
- package/lib-dist/engine-handling/server-environment.d.ts +2 -0
- package/lib-dist/engine-handling/server-environment.js +2 -0
- package/lib-dist/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/assets/index-BMNLJ_vl.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-C7V_rFNl.js"></script>
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-CMi5ddsE.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body class="dark">
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
getProjectOptions,
|
|
20
20
|
getProjectPath,
|
|
21
21
|
getRegistry as getRegistryURL,
|
|
22
|
+
getShowHostingOptions,
|
|
22
23
|
} from './server-environment.js'
|
|
23
24
|
|
|
24
25
|
import type { AddOn, SerializedOptions } from '@tanstack/cta-engine'
|
|
@@ -28,6 +29,7 @@ function convertAddOnToAddOnInfo(addOn: AddOn): AddOnInfo {
|
|
|
28
29
|
return {
|
|
29
30
|
id: addOn.id,
|
|
30
31
|
name: addOn.name,
|
|
32
|
+
priority: addOn.priority,
|
|
31
33
|
description: addOn.description,
|
|
32
34
|
modes: addOn.modes as Array<'code-router' | 'file-router'>,
|
|
33
35
|
type: addOn.type,
|
|
@@ -118,6 +120,7 @@ export async function generateInitialPayload() {
|
|
|
118
120
|
return {
|
|
119
121
|
supportedModes: framework!.supportedModes,
|
|
120
122
|
applicationMode,
|
|
123
|
+
showHostingOptions: getShowHostingOptions(),
|
|
121
124
|
localFiles,
|
|
122
125
|
addOns,
|
|
123
126
|
options: serializedOptions,
|
|
@@ -8,6 +8,7 @@ export type ServerEnvironment = {
|
|
|
8
8
|
forcedRouterMode?: string
|
|
9
9
|
forcedAddOns?: Array<string>
|
|
10
10
|
registry?: string
|
|
11
|
+
showHostingOptions?: boolean
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
const serverEnvironment: ServerEnvironment = {
|
|
@@ -18,12 +19,15 @@ const serverEnvironment: ServerEnvironment = {
|
|
|
18
19
|
forcedRouterMode: undefined,
|
|
19
20
|
forcedAddOns: undefined,
|
|
20
21
|
registry: undefined,
|
|
22
|
+
showHostingOptions: false,
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export function setServerEnvironment(options: Partial<ServerEnvironment>) {
|
|
24
26
|
Object.assign(serverEnvironment, options)
|
|
25
27
|
}
|
|
26
28
|
|
|
29
|
+
export const getShowHostingOptions = () => serverEnvironment.showHostingOptions
|
|
30
|
+
|
|
27
31
|
export const getProjectPath = () => serverEnvironment.projectPath
|
|
28
32
|
|
|
29
33
|
export const getApplicationMode = () => serverEnvironment.mode
|
package/lib/index.ts
CHANGED
package/lib/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare function generateInitialPayload(): Promise<{
|
|
|
7
7
|
forceTypescript: boolean;
|
|
8
8
|
}>;
|
|
9
9
|
applicationMode: "add" | "setup";
|
|
10
|
+
showHostingOptions: boolean | undefined;
|
|
10
11
|
localFiles: Record<string, string>;
|
|
11
12
|
addOns: Record<string, AddOnInfo[]>;
|
|
12
13
|
options: SerializedOptions;
|
|
@@ -2,11 +2,12 @@ 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, } from './server-environment.js';
|
|
5
|
+
import { getApplicationMode, getForcedAddOns, getForcedRouterMode, getProjectOptions, getProjectPath, getRegistry as getRegistryURL, getShowHostingOptions, } from './server-environment.js';
|
|
6
6
|
function convertAddOnToAddOnInfo(addOn) {
|
|
7
7
|
return {
|
|
8
8
|
id: addOn.id,
|
|
9
9
|
name: addOn.name,
|
|
10
|
+
priority: addOn.priority,
|
|
10
11
|
description: addOn.description,
|
|
11
12
|
modes: addOn.modes,
|
|
12
13
|
type: addOn.type,
|
|
@@ -73,6 +74,7 @@ export async function generateInitialPayload() {
|
|
|
73
74
|
return {
|
|
74
75
|
supportedModes: framework.supportedModes,
|
|
75
76
|
applicationMode,
|
|
77
|
+
showHostingOptions: getShowHostingOptions(),
|
|
76
78
|
localFiles,
|
|
77
79
|
addOns,
|
|
78
80
|
options: serializedOptions,
|
|
@@ -7,8 +7,10 @@ export type ServerEnvironment = {
|
|
|
7
7
|
forcedRouterMode?: string;
|
|
8
8
|
forcedAddOns?: Array<string>;
|
|
9
9
|
registry?: string;
|
|
10
|
+
showHostingOptions?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export declare function setServerEnvironment(options: Partial<ServerEnvironment>): void;
|
|
13
|
+
export declare const getShowHostingOptions: () => boolean | undefined;
|
|
12
14
|
export declare const getProjectPath: () => string;
|
|
13
15
|
export declare const getApplicationMode: () => "add" | "setup";
|
|
14
16
|
export declare const getProjectOptions: () => SerializedOptions;
|
|
@@ -6,10 +6,12 @@ const serverEnvironment = {
|
|
|
6
6
|
forcedRouterMode: undefined,
|
|
7
7
|
forcedAddOns: undefined,
|
|
8
8
|
registry: undefined,
|
|
9
|
+
showHostingOptions: false,
|
|
9
10
|
};
|
|
10
11
|
export function setServerEnvironment(options) {
|
|
11
12
|
Object.assign(serverEnvironment, options);
|
|
12
13
|
}
|
|
14
|
+
export const getShowHostingOptions = () => serverEnvironment.showHostingOptions;
|
|
13
15
|
export const getProjectPath = () => serverEnvironment.projectPath;
|
|
14
16
|
export const getApplicationMode = () => serverEnvironment.mode;
|
|
15
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.33.0",
|
|
21
|
+
"@tanstack/cta-ui-base": "0.33.2"
|
|
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.33.2",
|
|
41
41
|
"scripts": {}
|
|
42
42
|
}
|