@vezham/config 26.0.0-alpha.9 → 26.0.0-beta.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/lib/deploy/firebase.d.ts +1 -1
- package/dist/lib/deploy/index.d.ts +1 -1
- package/dist/lib/deploy/vercel.d.ts +1 -1
- package/dist/lib/integrations/next/index.d.ts +2 -2
- package/dist/lib/integrations/playwright/index.d.ts +1 -1
- package/dist/lib/integrations/playwright/test.d.ts +2 -2
- package/dist/lib/integrations/vite/index.d.ts +1 -1
- package/dist/lib/integrations/vite-lib/base.d.ts +2 -2
- package/dist/lib/integrations/vite-lib/index.d.ts +2 -2
- package/dist/lib/integrations/vite-lib/react.d.ts +2 -2
- package/dist/lib/integrations/vitest/framework.d.ts +3 -3
- package/dist/lib/integrations/vitest/frameworks/docs-plugins.d.ts +1 -1
- package/dist/lib/integrations/vitest/frameworks/docs.d.ts +2 -2
- package/dist/lib/integrations/vitest/frameworks/next.d.ts +2 -2
- package/dist/lib/integrations/vitest/frameworks/react.d.ts +2 -2
- package/dist/lib/integrations/vitest/shared.d.ts +2 -2
- package/dist/lib/metadata/env.d.ts +1 -1
- package/dist/lib/metadata/html.d.ts +1 -1
- package/dist/lib/metadata/index.d.ts +2 -2
- package/dist/lib/metadata/next.d.ts +1 -1
- package/dist/lib/metadata/public.d.ts +1 -1
- package/dist/lib/metadata/render.d.ts +1 -1
- package/dist/lib/metadata/runtime.d.ts +1 -1
- package/dist/lib/metadata/tanstack.d.ts +1 -1
- package/dist/lib/metadata/types.d.ts +3 -3
- package/dist/lib/navigation/app-menu.js +2 -2
- package/dist/lib/navigation/control-center.js +2 -2
- package/dist/lib/navigation/toolbar.js +5 -5
- package/dist/lib/presets/app/index.d.ts +2 -2
- package/dist/lib/presets/app/index.js +1 -1
- package/dist/lib/presets/docs/config.d.ts +2 -2
- package/dist/lib/presets/docs/mdx-path.d.ts +1 -1
- package/dist/lib/presets/docs/og.d.ts +4 -4
- package/dist/lib/presets/docs/openapi.d.ts +1 -1
- package/dist/lib/presets/docs/openapi.js +1 -1
- package/dist/lib/presets/docs/routes.d.ts +2 -2
- package/dist/lib/presets/docs/routes.js +1 -1
- package/dist/lib/presets/docs/vite.d.ts +3 -3
- package/dist/lib/presets/route-files.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DeployFile, VxAppConfig, VxDeployConfig } from './types';
|
|
2
2
|
export declare const getFirebaseDeployFile: (workspaceRoot: string, projectRoot: string, appConfig: VxAppConfig, deployConfig: VxDeployConfig) => DeployFile;
|
|
3
3
|
//# sourceMappingURL=firebase.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GenerateDeployConfigOptions } from './types';
|
|
2
2
|
export type { GenerateDeployConfigOptions } from './types';
|
|
3
3
|
export declare const generateDeployConfig: (options?: GenerateDeployConfigOptions) => string[];
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DeployFile, VxDeployConfig } from './types';
|
|
2
2
|
export declare const getVercelDeployFile: (workspaceRoot: string, projectRoot: string, deployConfig: VxDeployConfig) => DeployFile;
|
|
3
3
|
//# sourceMappingURL=vercel.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WithNxOptions } from '@nx/next/plugins/with-nx';
|
|
2
2
|
export type NextConfig = WithNxOptions;
|
|
3
|
-
export declare const defineConfig: (overrides?: NextConfig) => import(
|
|
3
|
+
export declare const defineConfig: (overrides?: NextConfig) => import('@nx/next/src/utils/config').NextConfigFn;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PlaywrightTestConfig } from '@playwright/test';
|
|
2
2
|
type WebServerConfig = Exclude<NonNullable<PlaywrightTestConfig['webServer']>, unknown[]>;
|
|
3
3
|
export type PlaywrightConfig = Omit<PlaywrightTestConfig, 'webServer'> & {
|
|
4
4
|
webServer: WebServerConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const test: import(
|
|
1
|
+
export declare const test: import('@playwright/test').TestType<import('@playwright/test').PlaywrightTestArgs & import('@playwright/test').PlaywrightTestOptions & {
|
|
2
2
|
browserHealth: void;
|
|
3
|
-
}, import(
|
|
3
|
+
}, import('@playwright/test').PlaywrightWorkerArgs & import('@playwright/test').PlaywrightWorkerOptions>;
|
|
4
4
|
export { expect } from '@playwright/test';
|
|
5
5
|
//# sourceMappingURL=test.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ConfigEnv, UserConfig, UserConfigExport } from 'vite';
|
|
2
2
|
export declare const getProjectPackageName: (projectRoot?: string) => string;
|
|
3
3
|
export declare const getViteCacheDir: (projectRoot?: string) => string;
|
|
4
4
|
export type ViteConfig = UserConfig & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigFnPromise;
|
|
3
3
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigFnPromise;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigFnPromise;
|
|
3
3
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export declare const defineFrameworkTestConfig: (framework: Framework, overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { Framework } from '../../framework';
|
|
2
|
+
import { ViteConfigOverrides } from '../vite';
|
|
3
|
+
export declare const defineFrameworkTestConfig: (framework: Framework, overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
4
4
|
//# sourceMappingURL=framework.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../../vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
3
3
|
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../../vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
3
3
|
//# sourceMappingURL=next.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../../vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
3
3
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const defineTestConfig: (feature: "react" | "next" | "docs", overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../vite';
|
|
2
|
+
export declare const defineTestConfig: (feature: "react" | "next" | "docs", overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
3
3
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenerateMetadataOptions, MetadataFile, VxConfig } from './types';
|
|
2
2
|
export declare const loadVxAppConfig: (projectRoot?: string) => VxConfig;
|
|
3
3
|
export declare const getMetadataFiles: (config: VxConfig, projectRoot?: string) => MetadataFile[];
|
|
4
4
|
export declare const generateMetadata: (options?: GenerateMetadataOptions) => string[];
|
|
5
|
-
export declare const watchMetadata: (options?: GenerateMetadataOptions) => import(
|
|
5
|
+
export declare const watchMetadata: (options?: GenerateMetadataOptions) => import('node:fs').FSWatcher;
|
|
6
6
|
export type { GenerateMetadataOptions } from './types';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VxConfig } from './types';
|
|
2
2
|
export declare const generatedNotice = "Generated by Vx metadata. DO NOT EDIT.";
|
|
3
3
|
export declare const stringifyManifest: (manifest: Record<string, unknown>) => string;
|
|
4
4
|
export declare const escapeHtml: (value: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VxConfig, VxIcon, VxIconSource } from './types';
|
|
2
2
|
export declare const lowerFirst: (value: string) => string;
|
|
3
3
|
export declare const getProjectAssetBaseUrl: (projectRoot: string) => string;
|
|
4
4
|
export declare const createVersionedAssetUrl: (baseUrl: string, version: string) => (assetPath: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { Framework } from '../framework';
|
|
2
|
+
import { I18nConfig } from '../i18n';
|
|
3
|
+
import { DocsConfig, OgConfig } from '../presets/docs/config';
|
|
4
4
|
export type VxConfig = {
|
|
5
5
|
framework: Framework;
|
|
6
6
|
core: VxCoreConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/lib/navigation/app-menu.ts
|
|
2
|
-
var MENU_FIELDS = new Set([
|
|
2
|
+
var MENU_FIELDS = /* @__PURE__ */ new Set([
|
|
3
3
|
"key",
|
|
4
4
|
"label",
|
|
5
5
|
"icon",
|
|
6
6
|
"groups"
|
|
7
7
|
]);
|
|
8
|
-
var ACTION_FIELDS = new Set([
|
|
8
|
+
var ACTION_FIELDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"key",
|
|
10
10
|
"label",
|
|
11
11
|
"icon",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/lib/navigation/control-center.ts
|
|
2
|
-
var TYPES = new Set([
|
|
2
|
+
var TYPES = /* @__PURE__ */ new Set([
|
|
3
3
|
"direction-toggle",
|
|
4
4
|
"appearance-toggle",
|
|
5
5
|
"appearance",
|
|
@@ -17,7 +17,7 @@ var TYPES = new Set([
|
|
|
17
17
|
"preview-sound",
|
|
18
18
|
"custom"
|
|
19
19
|
]);
|
|
20
|
-
var FIELDS = new Set([
|
|
20
|
+
var FIELDS = /* @__PURE__ */ new Set([
|
|
21
21
|
"id",
|
|
22
22
|
"type",
|
|
23
23
|
"span",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
//#region src/lib/navigation/toolbar.ts
|
|
2
|
-
var ACTION_FIELDS = new Set([
|
|
2
|
+
var ACTION_FIELDS = /* @__PURE__ */ new Set([
|
|
3
3
|
"key",
|
|
4
4
|
"label",
|
|
5
5
|
"icon",
|
|
6
6
|
"children"
|
|
7
7
|
]);
|
|
8
|
-
var VIEW_ACTION_FIELDS = new Set([
|
|
8
|
+
var VIEW_ACTION_FIELDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"key",
|
|
10
10
|
"label",
|
|
11
11
|
"icon",
|
|
12
12
|
"enabled"
|
|
13
13
|
]);
|
|
14
|
-
var TOOLBAR_FIELDS = new Set([
|
|
14
|
+
var TOOLBAR_FIELDS = /* @__PURE__ */ new Set([
|
|
15
15
|
"search",
|
|
16
16
|
"sync",
|
|
17
17
|
"filter",
|
|
@@ -20,8 +20,8 @@ var TOOLBAR_FIELDS = new Set([
|
|
|
20
20
|
"menuActions",
|
|
21
21
|
"primaryAction"
|
|
22
22
|
]);
|
|
23
|
-
var SEARCH_FIELDS = new Set(["label", "placeholder"]);
|
|
24
|
-
var VIEW_ACTION_KEYS = new Set(["grid", "list"]);
|
|
23
|
+
var SEARCH_FIELDS = /* @__PURE__ */ new Set(["label", "placeholder"]);
|
|
24
|
+
var VIEW_ACTION_KEYS = /* @__PURE__ */ new Set(["grid", "list"]);
|
|
25
25
|
var object = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
26
26
|
var validateFields = (value, fields, location) => {
|
|
27
27
|
for (const key of Object.keys(value)) if (!fields.has(key)) throw new Error(`Unknown field: ${location}.${key}`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
1
|
+
import { ViteConfigOverrides } from '../../integrations/vite';
|
|
2
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
3
3
|
export type PrerenderPage = {
|
|
4
4
|
path: string;
|
|
5
5
|
prerender?: {
|
|
@@ -73,7 +73,7 @@ var uniquePrerenderPages = (pages) => {
|
|
|
73
73
|
};
|
|
74
74
|
var appRouteFileOptions = {
|
|
75
75
|
emptyRoutePath: "/",
|
|
76
|
-
rootRouteSegments: new Set(["__root", "__root__"]),
|
|
76
|
+
rootRouteSegments: /* @__PURE__ */ new Set(["__root", "__root__"]),
|
|
77
77
|
stripLazySuffix: true
|
|
78
78
|
};
|
|
79
79
|
var getStaticPageRoutes = (projectRoot) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { DocsConfig, I18nConfig } from './config';
|
|
3
|
+
import { OgImageProps } from './og-image';
|
|
4
|
+
import { RouteInput } from './types';
|
|
5
5
|
export declare const generateDocsOgImages: (projectRoot: string, config: DocsConfig, i18n: I18nConfig, { routes, renderImage }?: {
|
|
6
6
|
routes?: RouteInput[];
|
|
7
7
|
renderImage?: (props: OgImageProps) => ReactElement;
|
|
@@ -6,7 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
import * as OpenAPI from "@vezham/docs-openapi";
|
|
7
7
|
import { createOpenAPI } from "@vezham/docs-openapi/server";
|
|
8
8
|
//#region src/lib/presets/docs/openapi.ts
|
|
9
|
-
var openapiExtensions = new Set([
|
|
9
|
+
var openapiExtensions = /* @__PURE__ */ new Set([
|
|
10
10
|
".json",
|
|
11
11
|
".yaml",
|
|
12
12
|
".yml"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DocsConfig, I18nConfig } from './config';
|
|
2
|
+
import { DocsPrerenderPage, DocsPrerenderPagesOptions, DocsStaticPaths, RouteInput } from './types';
|
|
3
3
|
export declare const getDocsStaticPaths: (projectRoot: string, config: DocsConfig | undefined, i18n: I18nConfig) => DocsStaticPaths;
|
|
4
4
|
export declare const getDocsMirrorRoutes: (routes: RouteInput[]) => string[];
|
|
5
5
|
export declare const getDocsPrerenderPages: (projectRoot: string, config: DocsConfig | undefined, i18n: I18nConfig, { extraPages, includeDocsRoot, includeLocalizedDocsRoots, routes }?: DocsPrerenderPagesOptions) => DocsPrerenderPage[];
|
|
@@ -4,7 +4,7 @@ import { loadVxDocsConfig, resolveDocsConfig } from "./config.js";
|
|
|
4
4
|
import { docsPathFromMdx } from "./mdx-path.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region src/lib/presets/docs/routes.ts
|
|
7
|
-
var docsRouteFileOptions = { rootRouteSegments: new Set(["__root__"]) };
|
|
7
|
+
var docsRouteFileOptions = { rootRouteSegments: /* @__PURE__ */ new Set(["__root__"]) };
|
|
8
8
|
var getNonDefaultLanguages = (i18n) => {
|
|
9
9
|
return i18n.languages.filter((lang) => lang !== i18n.defaultLanguage);
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
2
|
import { docsMdx as createDocsMdx } from '@vezham/docs-mdx/vite';
|
|
3
|
-
import
|
|
3
|
+
import { ViteConfigOverrides } from '../../integrations/vite';
|
|
4
4
|
export type DocsMdxMacroImportAliasOptions = {
|
|
5
5
|
rewriteContentBase?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export type DocsMdxOptions = NonNullable<Parameters<typeof createDocsMdx>[0]>;
|
|
8
8
|
export declare const docsMdx: (options?: DocsMdxOptions) => Plugin<any>[];
|
|
9
9
|
export declare const docsMdxMacroImportAlias: (options?: DocsMdxMacroImportAliasOptions) => Plugin;
|
|
10
|
-
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import(
|
|
10
|
+
export declare const defineConfig: (overrides?: ViteConfigOverrides) => import('vite').UserConfigExport;
|
|
11
11
|
//# sourceMappingURL=vite.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { slash, unique, walkFiles, withoutExtension } from "./files.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region src/lib/presets/route-files.ts
|
|
4
|
-
var routeFileExtensions = new Set([
|
|
4
|
+
var routeFileExtensions = /* @__PURE__ */ new Set([
|
|
5
5
|
".js",
|
|
6
6
|
".jsx",
|
|
7
7
|
".ts",
|