@ostack.tech/ui-kform-scaffolder 0.3.2 → 0.3.4
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/ostack-ui-kform-scaffolder.js +57 -26
- package/dist/ostack-ui-kform-scaffolder.js.map +1 -1
- package/dist/types/configs/DefaultLocaleConfig.d.ts +1 -0
- package/dist/types/configs/SerializationFormatConfig.d.ts +1 -0
- package/dist/types/scaffolding/ScaffoldingData.d.ts +26 -0
- package/dist/types/scaffolding/scaffolders/scaffoldApi.d.ts +3 -0
- package/dist/types/scaffolding/scaffolders/scaffoldGradleProject.d.ts +2 -0
- package/dist/types/scaffolding/scaffolders/scaffoldViteProject.d.ts +2 -0
- package/dist/webapp/assets/{index-DQxMC8FJ.js → index-Prz5SDS2.js} +133 -111
- package/dist/webapp/index.html +1 -1
- package/package.json +1 -1
- package/dist/types/scaffolding/templates/react-app/src/api/reportError.d.ts +0 -1
|
@@ -2,5 +2,6 @@ export interface DefaultLocaleConfigProps {
|
|
|
2
2
|
defaultValue?: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
}
|
|
5
|
+
export declare const DEFAULT_LOCALE = "en-US";
|
|
5
6
|
export declare const LOCALES: string[];
|
|
6
7
|
export declare function DefaultLocaleConfig({ defaultValue, disabled, }: DefaultLocaleConfigProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,5 @@ export interface SerializationFormatConfigProps {
|
|
|
3
3
|
defaultValue?: SerializationFormat;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
|
+
export declare const DEFAULT_SERIALIZATION_FORMAT = "json";
|
|
6
7
|
export declare function SerializationFormatConfig({ defaultValue, disabled, }: SerializationFormatConfigProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,4 +6,30 @@ export interface ScaffoldingData extends KFormScaffoldingData {
|
|
|
6
6
|
serializationFormat?: SerializationFormat;
|
|
7
7
|
/** Application's default locale. */
|
|
8
8
|
defaultLocale?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to include the `kotlinx.datetime` library. By default, this is
|
|
11
|
+
* inferred from the schematic.
|
|
12
|
+
*/
|
|
13
|
+
includeKotlinxDatetime?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to include the `kt-math` library. By default, this is inferred from
|
|
16
|
+
* the schematic.
|
|
17
|
+
*/
|
|
18
|
+
includeKtMath?: boolean;
|
|
19
|
+
/** `gradle.properties` group. */
|
|
20
|
+
gradlePropertiesGroup?: string;
|
|
21
|
+
/** Base path of the API. */
|
|
22
|
+
apiBasePath?: string;
|
|
23
|
+
/** API endpoint used to submit the form. */
|
|
24
|
+
submitApiEndpoint?: string;
|
|
25
|
+
/** API endpoint used to report errors. */
|
|
26
|
+
reportErrorApiEndpoint?: string;
|
|
27
|
+
/** Output directory for the Vite config. */
|
|
28
|
+
viteConfigOutDir?: string;
|
|
29
|
+
/** Proxy target for the Vite config. */
|
|
30
|
+
viteConfigProxyTarget?: string;
|
|
31
|
+
/** Version of the JVM toolchain to specify in `libs.versions.toml`. */
|
|
32
|
+
jvmToolchainVersion?: string;
|
|
33
|
+
/** Version of Node.js to specify in `libs.versions.toml`. */
|
|
34
|
+
nodejsVersion?: string;
|
|
9
35
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Schematic } from '@ostack.tech/kform-scaffolder';
|
|
2
2
|
import { ReactAppData } from '../reactApp/ReactAppData.ts';
|
|
3
|
+
export declare const DEFAULT_API_BASE_PATH = "/api/";
|
|
4
|
+
export declare const DEFAULT_REPORT_ERROR_API_ENDPOINT = "report-error";
|
|
5
|
+
export declare const DEFAULT_SUBMIT_API_ENDPOINT = "submit";
|
|
3
6
|
export declare function scaffoldApi(schematic: Schematic, data: ReactAppData): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { Schematic } from '@ostack.tech/kform-scaffolder';
|
|
2
2
|
import { ScaffoldingData } from '../ScaffoldingData.ts';
|
|
3
|
+
export declare const DEFAULT_JVM_TOOLCHAIN_VERSION = "17";
|
|
4
|
+
export declare const DEFAULT_NODEJS_VERSION = "22.20.0";
|
|
3
5
|
export declare function scaffoldGradleProject(schematic: Schematic, data: ScaffoldingData): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { Schematic } from '@ostack.tech/kform-scaffolder';
|
|
2
2
|
import { ReactAppData } from '../reactApp/ReactAppData.ts';
|
|
3
|
+
export declare const DEFAULT_VITE_CONFIG_OUT_DIR = "build/dist/";
|
|
4
|
+
export declare const DEFAULT_VITE_CONFIG_PROXY_TARGET = "http://127.0.0.1:8080/";
|
|
3
5
|
export declare function scaffoldViteProject(schematic: Schematic, data: ReactAppData): void;
|