From 4c93bf8fc4b8cc3313393fe3296ee18474a54574 Mon Sep 17 00:00:00 2001 From: davidglezz Date: Wed, 4 Jun 2025 15:52:04 +0200 Subject: [PATCH 1/8] build: use entries instead of custom plugin Signed-off-by: davidglezz --- packages/x-components/build/build.ts | 2 +- .../x-components.rollup-plugin.ts | 197 ------------------ packages/x-components/build/rollup.config.ts | 35 +++- packages/x-components/build/tsconfig.json | 10 +- packages/x-components/package.json | 2 +- packages/x-components/src/core.entry.ts | 10 + packages/x-components/src/index.ts | 13 +- packages/x-components/tsconfig.json | 13 +- 8 files changed, 56 insertions(+), 226 deletions(-) delete mode 100644 packages/x-components/build/rollup-plugins/x-components.rollup-plugin.ts create mode 100644 packages/x-components/src/core.entry.ts diff --git a/packages/x-components/build/build.ts b/packages/x-components/build/build.ts index 5b3d8ddb0e..41b29b90dd 100644 --- a/packages/x-components/build/build.ts +++ b/packages/x-components/build/build.ts @@ -1,6 +1,6 @@ import type { OutputOptions } from 'rollup' import { rollup } from 'rollup' -import { rollupConfig } from './rollup.config' +import rollupConfig from './rollup.config' /** * Entry point for building the project. diff --git a/packages/x-components/build/rollup-plugins/x-components.rollup-plugin.ts b/packages/x-components/build/rollup-plugins/x-components.rollup-plugin.ts deleted file mode 100644 index 331d3b5467..0000000000 --- a/packages/x-components/build/rollup-plugins/x-components.rollup-plugin.ts +++ /dev/null @@ -1,197 +0,0 @@ -import type { Plugin } from 'rollup' -import fs from 'node:fs' -import path from 'node:path' -import { forEach } from '@empathyco/x-utils' -import { ensureFilePathExists } from '../build.utils' - -/** - * Type alias of a reducer function that will generate a `Record` where the key is the chunk name, - * and the value is an array of strings containing the code. - */ -type ReducerFunctionOfEntryPoints = ( - files: Record, - line: string, -) => Record - -export interface GenerateEntryFilesOptions { - /** The path where the build will go. */ - buildPath: string - /** The path to the directory where generated js files are stored. */ - jsOutputDir: string - /** The path to the directory where generated .d.ts files are stored. */ - typesOutputDir: string -} - -/** - * Rollup plugin to generate one common entry point with shared code, and one for each x-module. - * This is needed because x-modules have side effects on import (like registering the wiring, and - * store modules). If these x-modules were imported from a single barrel file, then they will be - * executed always, except if the build had tree-shaking step that removed them from the code. Tree - * shaking is a costly step that is only run for production builds normally. So, for consistency - * between dev and prod builds, creating an entry point per each x-module is the safest way to - * achieve this. - * - * @param options - Options to configure the generation of the entry files. - * @returns Rollup plugin for generating project entry files. - */ -export function generateEntryFiles(options: GenerateEntryFilesOptions): Plugin { - return { - name: 'GenerateEntryFiles', - /** - * Takes the generated files in the dist directory, and generates in the root directory: - * - 1 Core entry point for shared code - * - 1 Entry point per x-module - * - 1 Typings file per entry point. - */ - writeBundle() { - generateEntryPoints(options.buildPath, options.jsOutputDir, 'js') - generateEntryPoints(options.buildPath, options.typesOutputDir, 'd.ts') - copyIndexSourcemap(options.buildPath, options.jsOutputDir) - }, - } -} - -/** Regex to split a read file per lines, supporting both Unix and Windows systems. */ -const BY_LINES = /\r?\n/ -/** Name of the x-modules folder. */ -const X_MODULES_DIR_NAME = 'x-modules' - -/** - * Generates an entry point for each x-component, and another one for the shared code. - * - * @param buildPath - The path where the build will go. - * @param outputDirectory - The directory to load it's barrel and generate the entry points. - * @param extension - The type of files to generate the entry points (i.e. `d.ts`, `js`). - */ -function generateEntryPoints(buildPath: string, outputDirectory: string, extension: string): void { - const jsEntry = fs.readFileSync(path.join(outputDirectory, `index.${extension}`), 'utf8') - const jsEntryPoints = jsEntry - .split(BY_LINES) - .filter(emptyLines) - .reduce(generateEntryPointsRecord(buildPath, outputDirectory, extension), {}) - forEach(jsEntryPoints, writeEntryFile(buildPath, extension)) -} - -/** - * Copies the index sourcemap. As long as the index.js file in the ./dist directory does not have - * any other code than exports it should be fine. If not done, the consumer project won't have - * sourcemaps. - * - * @param buildPath - The path where the build will go. - * @param outputDirectory - Directory where storing the index source map. - */ -function copyIndexSourcemap(buildPath: string, outputDirectory: string): void { - const fileName = 'index.js.map' - fs.copyFileSync(path.join(outputDirectory, fileName), path.join(buildPath, 'core', fileName)) -} - -/** - * Generates a reducer function to split the entry points into multiple chunks, the `core` for the - * shared code and one per each x module. - * - * @param buildPath - The path where the build will go. - * @param outputDirectory - The directory where the output files are stored. - * @param extension - The type of the files for generating the entry points. - * @returns A reducer function that will generate a `Record` where the key is the chunk name, and - * the value is an array of strings containing the code. - */ -function generateEntryPointsRecord( - buildPath: string, - outputDirectory: string, - extension: string, -): ReducerFunctionOfEntryPoints { - const relativeOutputDirectory = `../${path.relative(buildPath, outputDirectory)}/` - const getXModuleNameFromExport = extractXModuleFromExport(outputDirectory, extension) - - return (files: Record, line: string): Record => { - const xModuleFileName = getXModuleNameFromExport(line) - const adjustedExport = adjustExport(relativeOutputDirectory, line) - if (xModuleFileName) { - // If it is a file from a x-module, we adjust the export, and add it to an array with the - // x module name - files[xModuleFileName] = files[xModuleFileName] || [] - files[xModuleFileName].push(adjustedExport) - } else { - // If it is not an export from a x-module, we keep that export on the core file, adjusting - // its location - files.core = files.core || [] - files.core.push(adjustedExport) - } - return files - } -} - -/** - * Adjusts an export to a new location. - * - * @param location - The new base location. - * @param line - The export line to adjust the export. - * @returns String with the new location adjusted to the line export. - */ -function adjustExport(location: string, line: string): string { - return line.replace('./', location) -} - -/** - * Generates a function that receives a line that is an export sentence from a DTS file, and - * if the line is an export from an x-module, it extracts the x-module name. In other case it - * returns `null`. - * - * @param outputDirectory - The export line to extract the x-module name. - * @param extension - The extension (i.e. `js`, `d.ts`) to check if the export is from a file or a - * barrel. - * @returns A function to test if a line is an export from an x-module. - */ -function extractXModuleFromExport(outputDirectory: string, extension: string) { - return (line: string): string | null => { - const anyExportFromXModulesDirectoryRegex = new RegExp(`/${X_MODULES_DIR_NAME}/([^';/]+)`) - const [, xModuleName] = anyExportFromXModulesDirectoryRegex.exec(line) ?? [] - if (!xModuleName) { - return null - } else { - const xModuleFileName = addExtension(xModuleName, extension) - const isFile = fs.existsSync( - path.join(outputDirectory, `${X_MODULES_DIR_NAME}/${xModuleFileName}`), - ) - return isFile ? null : xModuleName - } - } -} - -/** - * Appends the extension to the file name. - * - * @param fileName - File name with or without extension. - * @param extension - Extension to append to file name. - * @returns The file name with the extension added. - */ -function addExtension(fileName: string, extension: string): string { - return fileName.endsWith(`.${extension}`) ? fileName : `${fileName}.${extension}` -} - -/** - * Returns whether a line is empty or not. - * - * @param line - The line to test if it is empty. - * @returns True if the line is empty or false in the opposite case. - */ -function emptyLines(line: string): boolean { - return !!line.trim() -} - -/** - * Generates a reusable function that will write a file with the extension passed. - * The function will receive the file name, and the file contents. - * - * @param buildPath - The path where the build will go. - * @param extension - The extension of the file to write. - * @returns Function which writes a file with the extension passed as parameter. - */ -function writeEntryFile(buildPath: string, extension: string) { - return (fileName: string, fileContents: string[]): string => { - const filePath = path.join(buildPath, `/${fileName}/index.${extension}`) - ensureFilePathExists(filePath) - fs.writeFileSync(filePath, fileContents.join('\n')) - return filePath - } -} diff --git a/packages/x-components/build/rollup.config.ts b/packages/x-components/build/rollup.config.ts index e970999269..e542b8cda7 100644 --- a/packages/x-components/build/rollup.config.ts +++ b/packages/x-components/build/rollup.config.ts @@ -7,12 +7,11 @@ import styles from 'rollup-plugin-styles' import typescript from 'rollup-plugin-typescript2' import { dependencies as pkgDeps, peerDependencies as pkgPeerDeps } from '../package.json' import { apiDocumentation } from './docgen/documentation.rollup-plugin' -import { generateEntryFiles } from './rollup-plugins/x-components.rollup-plugin' const rootDir = path.resolve(__dirname, '../') const buildPath = path.join(rootDir, 'dist') +const r = (p: string) => path.join(rootDir, p) -const jsOutputDir = path.join(buildPath, 'js') const typesOutputDir = path.join(buildPath, 'types') const dependencies = new Set(Object.keys(pkgDeps).concat(Object.keys(pkgPeerDeps))) @@ -23,10 +22,33 @@ const vueDocs = { !/vue&type=docs/.test(id) ? undefined : `export default ''`, } -export const rollupConfig: RollupOptions = { - input: path.join(rootDir, 'src/index.ts'), +const rollupConfig: RollupOptions = { + input: { + 'core/index': r('src/core.entry.ts'), + 'device/index': r('src/x-modules/device/index.ts'), + 'empathize/index': r('src/x-modules/empathize/index.ts'), + 'experience-controls/index': r('src/x-modules/experience-controls/index.ts'), + 'extra-params/index': r('src/x-modules/extra-params/index.ts'), + 'facets/index': r('src/x-modules/facets/index.ts'), + 'history-queries/index': r('src/x-modules/history-queries/index.ts'), + 'identifier-results/index': r('src/x-modules/identifier-results/index.ts'), + 'next-queries/index': r('src/x-modules/next-queries/index.ts'), + 'popular-searches/index': r('src/x-modules/popular-searches/index.ts'), + 'queries-preview/index': r('src/x-modules/queries-preview/index.ts'), + 'query-suggestions/index': r('src/x-modules/query-suggestions/index.ts'), + 'recommendations/index': r('src/x-modules/recommendations/index.ts'), + 'related-prompts/index': r('src/x-modules/related-prompts/index.ts'), + 'related-tags/index': r('src/x-modules/related-tags/index.ts'), + 'scroll/index': r('src/x-modules/scroll/index.ts'), + 'search/index': r('src/x-modules/search/index.ts'), + 'search-box/index': r('src/x-modules/search-box/index.ts'), + 'semantic-queries/index': r('src/x-modules/semantic-queries/index.ts'), + 'tagging/index': r('src/x-modules/tagging/index.ts'), + 'url/index': r('src/x-modules/url/index.ts'), + 'x-modules.types/index': r('src/x-modules/x-modules.types.ts'), + }, output: { - dir: jsOutputDir, + dir: buildPath, format: 'esm', sourcemap: true, preserveModules: true, @@ -90,7 +112,6 @@ export const rollupConfig: RollupOptions = { ], }), vueDocs, - generateEntryFiles({ buildPath, jsOutputDir, typesOutputDir }), apiDocumentation({ buildPath }), copy({ targets: [ @@ -101,3 +122,5 @@ export const rollupConfig: RollupOptions = { }), ], } + +export default rollupConfig diff --git a/packages/x-components/build/tsconfig.json b/packages/x-components/build/tsconfig.json index 616681bd99..3517e39e51 100644 --- a/packages/x-components/build/tsconfig.json +++ b/packages/x-components/build/tsconfig.json @@ -2,23 +2,25 @@ "compilerOptions": { "target": "es2020", "jsx": "preserve", - "lib": ["esnext", "dom", "scripthost"], - "experimentalDecorators": true, + "lib": ["esnext", "dom", "dom.iterable"], "baseUrl": ".", + "rootDir": "src", "module": "commonjs", "moduleResolution": "node", - "paths": {}, "resolveJsonModule": true, "types": ["node"], "allowJs": true, "strict": true, "noImplicitAny": true, "noImplicitThis": true, + "declaration": true, + "declarationMap": true, + "importHelpers": true, "sourceMap": true, "allowSyntheticDefaultImports": true, "esModuleInterop": true, "skipLibCheck": true }, - "include": ["**/*.ts", "**/*.js"], + "include": ["**/*.ts", "**/*.js", "**/*.vue"], "exclude": ["node_modules"] } diff --git a/packages/x-components/package.json b/packages/x-components/package.json index 2bf29de25c..c44e5b7b22 100644 --- a/packages/x-components/package.json +++ b/packages/x-components/package.json @@ -38,7 +38,7 @@ ], "main": "./core/index.js", "module": "./core/index.js", - "types": "./core/index.d.ts", + "types": "./types/index.d.ts", "engines": { "node": ">=22" }, diff --git a/packages/x-components/src/core.entry.ts b/packages/x-components/src/core.entry.ts new file mode 100644 index 0000000000..cac0f7217f --- /dev/null +++ b/packages/x-components/src/core.entry.ts @@ -0,0 +1,10 @@ +export * from './components' +export * from './composables' +export * from './directives' +export * from './plugins' +export * from './services' +export * from './store' +export * from './types' +export * from './utils' +export * from './wiring' +export * from './x-installer' diff --git a/packages/x-components/src/index.ts b/packages/x-components/src/index.ts index ce9fce8960..3f07f0852a 100644 --- a/packages/x-components/src/index.ts +++ b/packages/x-components/src/index.ts @@ -5,18 +5,7 @@ */ // TODO Write a complete description. -export * from './components' -export * from './composables' -export * from './directives' -export * from './plugins' -export * from './services' -export * from './store' -export * from './types' -export * from './utils' -export * from './wiring' -export * from './x-bus' -export * from './x-bus/x-priority-queue' -export * from './x-installer' +export * from './core.entry' export * from './x-modules/device' export * from './x-modules/empathize' export * from './x-modules/experience-controls' diff --git a/packages/x-components/tsconfig.json b/packages/x-components/tsconfig.json index c6afac3f07..97b13e27bb 100644 --- a/packages/x-components/tsconfig.json +++ b/packages/x-components/tsconfig.json @@ -1,23 +1,26 @@ { "compilerOptions": { - "target": "es2019", + "target": "es2020", "jsx": "preserve", - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "experimentalDecorators": true, + "lib": ["esnext", "dom", "dom.iterable"], "baseUrl": ".", "rootDir": "src", "module": "esnext", "moduleResolution": "node", + "resolveJsonModule": true, "types": ["jest", "node", "@testing-library/jest-dom"], "strict": true, + "noImplicitAny": true, + "noImplicitThis": true, "declaration": true, "declarationMap": true, "importHelpers": true, "noEmit": true, "sourceMap": true, "allowSyntheticDefaultImports": true, - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true }, - "include": ["src/**/*.ts", "src/**/*.vue"], + "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.vue"], "exclude": ["node_modules"] } From 2a72fb4e38ca6e9044f8fff76f1eacc2e495e53a Mon Sep 17 00:00:00 2001 From: davidglezz Date: Wed, 4 Jun 2025 16:56:17 +0200 Subject: [PATCH 2/8] fix: move base CSS injector utility inside src Signed-off-by: davidglezz --- packages/x-components/build/rollup.config.ts | 2 +- packages/x-components/{build/tools => src/utils}/inject-css.js | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename packages/x-components/{build/tools => src/utils}/inject-css.js (100%) diff --git a/packages/x-components/build/rollup.config.ts b/packages/x-components/build/rollup.config.ts index e542b8cda7..c44f0995ee 100644 --- a/packages/x-components/build/rollup.config.ts +++ b/packages/x-components/build/rollup.config.ts @@ -106,7 +106,7 @@ const rollupConfig: RollupOptions = { mode: [ 'inject', varname => { - const pathInjector = path.resolve('./tools/inject-css.js') + const pathInjector = r('src/utils/inject-css.js') return `import injectCss from '${pathInjector}';injectCss(${varname});` }, ], diff --git a/packages/x-components/build/tools/inject-css.js b/packages/x-components/src/utils/inject-css.js similarity index 100% rename from packages/x-components/build/tools/inject-css.js rename to packages/x-components/src/utils/inject-css.js From 7bddd339f193e338994ffbfb69d7fda206c0dd87 Mon Sep 17 00:00:00 2001 From: davidglezz Date: Wed, 4 Jun 2025 18:10:43 +0200 Subject: [PATCH 3/8] chore: define exports in package.json Signed-off-by: davidglezz --- packages/x-components/package.json | 93 +++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 3 deletions(-) diff --git a/packages/x-components/package.json b/packages/x-components/package.json index c44e5b7b22..180b6d569e 100644 --- a/packages/x-components/package.json +++ b/packages/x-components/package.json @@ -36,9 +36,96 @@ "**/*vue[0-9].js", "**/*.vue" ], - "main": "./core/index.js", - "module": "./core/index.js", - "types": "./types/index.d.ts", + "exports": { + ".": { + "types": "./types/core.entry.d.ts", + "import": "./core/index.js" + }, + "./device": { + "types": "./types/x-modules/device/index.d.ts", + "import": "./device/index.js" + }, + "./empathize": { + "types": "./types/x-modules/empathize/index.d.ts", + "import": "./empathize/index.js" + }, + "./experience-controls": { + "types": "./types/x-modules/experience-controls/index.d.ts", + "import": "./experience-controls/index.js" + }, + "./extra-params": { + "types": "./types/x-modules/extra-params/index.d.ts", + "import": "./extra-params/index.js" + }, + "./facets": { + "types": "./types/x-modules/facets/index.d.ts", + "import": "./facets/index.js" + }, + "./history-queries": { + "types": "./types/x-modules/history-queries/index.d.ts", + "import": "./history-queries/index.js" + }, + "./identifier-results": { + "types": "./types/x-modules/identifier-results/index.d.ts", + "import": "./identifier-results/index.js" + }, + "./next-queries": { + "types": "./types/x-modules/next-queries/index.d.ts", + "import": "./next-queries/index.js" + }, + "./popular-searches": { + "types": "./types/x-modules/popular-searches/index.d.ts", + "import": "./popular-searches/index.js" + }, + "./queries-preview": { + "types": "./types/x-modules/queries-preview/index.d.ts", + "import": "./queries-preview/index.js" + }, + "./query-suggestions": { + "types": "./types/x-modules/query-suggestions/index.d.ts", + "import": "./query-suggestions/index.js" + }, + "./recommendations": { + "types": "./types/x-modules/recommendations/index.d.ts", + "import": "./recommendations/index.js" + }, + "./related-prompts": { + "types": "./types/x-modules/related-prompts/index.d.ts", + "import": "./related-prompts/index.js" + }, + "./related-tags": { + "types": "./types/x-modules/related-tags/index.d.ts", + "import": "./related-tags/index.js" + }, + "./scroll": { + "types": "./types/x-modules/scroll/index.d.ts", + "import": "./scroll/index.js" + }, + "./search-box": { + "types": "./types/x-modules/search-box/index.d.ts", + "import": "./search-box/index.js" + }, + "./search": { + "types": "./types/x-modules/search/index.d.ts", + "import": "./search/index.js" + }, + "./semantic-queries": { + "types": "./types/x-modules/semantic-queries/index.d.ts", + "import": "./semantic-queries/index.js" + }, + "./tagging": { + "types": "./types/x-modules/tagging/index.d.ts", + "import": "./tagging/index.js" + }, + "./url": { + "types": "./types/x-modules/url/index.d.ts", + "import": "./url/index.js" + }, + "./types": { + "types": "./types/x-modules/x-modules.types.d.ts", + "import": "./x-modules.types/index.js" + } + }, "engines": { "node": ">=22" }, From 850a902a3b870baa59482648ec2bb23989e785e0 Mon Sep 17 00:00:00 2001 From: davidglezz Date: Thu, 5 Jun 2025 23:25:50 +0200 Subject: [PATCH 4/8] fix: patch vuex to export types Signed-off-by: davidglezz --- packages/x-components/build/rollup.config.ts | 2 +- packages/x-components/package.json | 1 + packages/x-components/patches/vuex.mjs | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 packages/x-components/patches/vuex.mjs diff --git a/packages/x-components/build/rollup.config.ts b/packages/x-components/build/rollup.config.ts index c44f0995ee..3ed8195d35 100644 --- a/packages/x-components/build/rollup.config.ts +++ b/packages/x-components/build/rollup.config.ts @@ -116,7 +116,7 @@ const rollupConfig: RollupOptions = { copy({ targets: [ { src: ['build/tools'], dest: buildPath }, - { src: ['CHANGELOG.md', 'package.json', 'README.md', 'docs'], dest: buildPath }, + { src: ['CHANGELOG.md', 'package.json', 'README.md', 'docs', 'patches'], dest: buildPath }, ], hook: 'writeBundle', }), diff --git a/packages/x-components/package.json b/packages/x-components/package.json index 180b6d569e..da0d9ab108 100644 --- a/packages/x-components/package.json +++ b/packages/x-components/package.json @@ -158,6 +158,7 @@ "cypress:open:firefox": "cypress open --e2e --browser firefox", "cypress:open:component": "cypress open --component --browser chrome", "cypress:open:component:firefox": "cypress open --component --browser firefox", + "postinstall": "node patches/vuex.mjs", "prepublishOnly": "pnpm run build" }, "peerDependencies": { diff --git a/packages/x-components/patches/vuex.mjs b/packages/x-components/patches/vuex.mjs new file mode 100644 index 0000000000..a8543d1b53 --- /dev/null +++ b/packages/x-components/patches/vuex.mjs @@ -0,0 +1,16 @@ +import { existsSync, readFileSync, writeFileSync } from 'node:fs' +import { resolve } from 'node:path' + +/** Add a types entry to the exports section in Vuex's package.json */ +function patchVuex(path) { + const vuexPackageJsonPath = resolve(import.meta.dirname, path) + if (!existsSync(vuexPackageJsonPath)) return + const pkg = JSON.parse(readFileSync(vuexPackageJsonPath, 'utf-8')) + pkg.exports['.'].types = './types/index.d.ts' + writeFileSync(vuexPackageJsonPath, JSON.stringify(pkg, null, 2)) +} + +// This project +patchVuex('node_modules/vuex/package.json') +// When is installed as a dependency +patchVuex('../../../vuex/package.json') From c735876b410c635da73306f7d92cc260ca50ebda Mon Sep 17 00:00:00 2001 From: davidglezz Date: Tue, 29 Jul 2025 13:54:32 +0200 Subject: [PATCH 5/8] refactor: simplify input module configuration by dynamically loading x-modules Signed-off-by: davidglezz --- packages/x-components/build/rollup.config.ts | 32 ++++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/packages/x-components/build/rollup.config.ts b/packages/x-components/build/rollup.config.ts index 3ed8195d35..a8103b6a1b 100644 --- a/packages/x-components/build/rollup.config.ts +++ b/packages/x-components/build/rollup.config.ts @@ -1,4 +1,5 @@ import type { Plugin, RollupOptions } from 'rollup' +import fs from 'node:fs' import path from 'node:path' import vue3 from '@vitejs/plugin-vue' import copy from 'rollup-plugin-copy' @@ -22,29 +23,20 @@ const vueDocs = { !/vue&type=docs/.test(id) ? undefined : `export default ''`, } +const getXModules = () => { + const xModulesPath = path.join(rootDir, 'src', 'x-modules') + return Object.fromEntries( + fs + .readdirSync(xModulesPath) + .filter(file => fs.statSync(path.join(xModulesPath, file)).isDirectory()) + .map(module => [`${module}/index`, r(`src/x-modules/${module}/index.ts`)]), + ) +} + const rollupConfig: RollupOptions = { input: { 'core/index': r('src/core.entry.ts'), - 'device/index': r('src/x-modules/device/index.ts'), - 'empathize/index': r('src/x-modules/empathize/index.ts'), - 'experience-controls/index': r('src/x-modules/experience-controls/index.ts'), - 'extra-params/index': r('src/x-modules/extra-params/index.ts'), - 'facets/index': r('src/x-modules/facets/index.ts'), - 'history-queries/index': r('src/x-modules/history-queries/index.ts'), - 'identifier-results/index': r('src/x-modules/identifier-results/index.ts'), - 'next-queries/index': r('src/x-modules/next-queries/index.ts'), - 'popular-searches/index': r('src/x-modules/popular-searches/index.ts'), - 'queries-preview/index': r('src/x-modules/queries-preview/index.ts'), - 'query-suggestions/index': r('src/x-modules/query-suggestions/index.ts'), - 'recommendations/index': r('src/x-modules/recommendations/index.ts'), - 'related-prompts/index': r('src/x-modules/related-prompts/index.ts'), - 'related-tags/index': r('src/x-modules/related-tags/index.ts'), - 'scroll/index': r('src/x-modules/scroll/index.ts'), - 'search/index': r('src/x-modules/search/index.ts'), - 'search-box/index': r('src/x-modules/search-box/index.ts'), - 'semantic-queries/index': r('src/x-modules/semantic-queries/index.ts'), - 'tagging/index': r('src/x-modules/tagging/index.ts'), - 'url/index': r('src/x-modules/url/index.ts'), + ...getXModules(), 'x-modules.types/index': r('src/x-modules/x-modules.types.ts'), }, output: { From 0fe80a3daeafd0450f0ceed85b2ea9aa12ea593c Mon Sep 17 00:00:00 2001 From: davidglezz Date: Wed, 4 Jun 2025 17:51:01 +0200 Subject: [PATCH 6/8] fix: use same vue version Signed-off-by: davidglezz --- packages/x-archetype-utils/package.json | 4 +- packages/x-components/package.json | 4 +- packages/x-tailwindcss/package.json | 2 +- pnpm-lock.yaml | 344 ++++++++---------------- 4 files changed, 124 insertions(+), 230 deletions(-) diff --git a/packages/x-archetype-utils/package.json b/packages/x-archetype-utils/package.json index a0cd794d01..300c474a60 100644 --- a/packages/x-archetype-utils/package.json +++ b/packages/x-archetype-utils/package.json @@ -40,7 +40,7 @@ "prepublishOnly": "pnpm run build" }, "peerDependencies": { - "vue": "^3.4.31", + "vue": "^3.5.18", "vue-i18n": "^9.14.4" }, "dependencies": { @@ -61,7 +61,7 @@ "rollup-plugin-typescript2": "0.36.0", "ts-jest": "29.4.0", "typescript": "5.8.3", - "vue": "3.4.31" + "vue": "3.5.18" }, "publishConfig": { "access": "public" diff --git a/packages/x-components/package.json b/packages/x-components/package.json index da0d9ab108..10541598a2 100644 --- a/packages/x-components/package.json +++ b/packages/x-components/package.json @@ -162,7 +162,7 @@ "prepublishOnly": "pnpm run build" }, "peerDependencies": { - "vue": "^3.5.12", + "vue": "3.5.18", "vuex": "4.0.2" }, "dependencies": { @@ -221,7 +221,7 @@ "typescript": "5.8.3", "vite": "6.3.5", "vite-plugin-vue-inspector": "5.2.0", - "vue": "3.4.31", + "vue": "3.5.18", "vue-docgen-cli": "4.79.0", "vue-router": "4.5.1", "vuex": "4.0.2" diff --git a/packages/x-tailwindcss/package.json b/packages/x-tailwindcss/package.json index 63392eb131..38e9b1edda 100644 --- a/packages/x-tailwindcss/package.json +++ b/packages/x-tailwindcss/package.json @@ -56,7 +56,7 @@ "tailwindcss": "3.4.0", "typescript": "5.8.3", "vite": "6.3.5", - "vue": "3.5.13" + "vue": "3.5.18" }, "publishConfig": { "access": "public" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0b6ff01cc9..5786ba20e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: devDependencies: '@empathyco/eslint-config': specifier: 1.8.0 - version: 1.8.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.17)(jiti@1.21.7)(typescript@5.8.3) + version: 1.8.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.18)(jiti@1.21.7)(typescript@5.8.3) colors: specifier: 1.4.0 version: 1.4.0 @@ -173,7 +173,7 @@ importers: version: 2.8.1 vue-i18n: specifier: ~9.14.4 - version: 9.14.4(vue@3.4.31(typescript@5.8.3)) + version: 9.14.4(vue@3.5.18(typescript@5.8.3)) devDependencies: '@types/jest': specifier: 29.5.14 @@ -209,8 +209,8 @@ importers: specifier: 5.8.3 version: 5.8.3 vue: - specifier: 3.4.31 - version: 3.4.31(typescript@5.8.3) + specifier: 3.5.18 + version: 3.5.18(typescript@5.8.3) packages/x-components: dependencies: @@ -237,7 +237,7 @@ importers: version: 6.5.1 '@vueuse/core': specifier: ~10.11.0 - version: 10.11.1(vue@3.4.31(typescript@5.8.3)) + version: 10.11.1(vue@3.5.18(typescript@5.8.3)) js-md5: specifier: ~0.8.3 version: 0.8.3 @@ -252,7 +252,7 @@ importers: version: 2.8.1 vue-global-events: specifier: ~3.0.1 - version: 3.0.1(vue@3.4.31(typescript@5.8.3)) + version: 3.0.1(vue@3.5.18(typescript@5.8.3)) vue-tsc: specifier: ~3.0.4 version: 3.0.4(typescript@5.8.3) @@ -292,13 +292,13 @@ importers: version: 22.15.29 '@vitejs/plugin-vue': specifier: 5.2.4 - version: 5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.4.31(typescript@5.8.3)) + version: 5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.5.18(typescript@5.8.3)) '@vue/test-utils': specifier: 2.4.6 version: 2.4.6 '@vue/vue3-jest': specifier: 29.2.6 - version: 29.2.6(@babel/core@7.28.0)(babel-jest@29.7.0(@babel/core@7.28.0))(jest@29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@types/node@22.15.29)(typescript@5.8.3)))(typescript@5.8.3)(vue@3.4.31(typescript@5.8.3)) + version: 29.2.6(@babel/core@7.28.0)(babel-jest@29.7.0(@babel/core@7.28.0))(jest@29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@types/node@22.15.29)(typescript@5.8.3)))(typescript@5.8.3)(vue@3.5.18(typescript@5.8.3)) autoprefixer: specifier: 10.4.21 version: 10.4.21(postcss@8.4.12) @@ -349,7 +349,7 @@ importers: version: 0.36.0(rollup@4.9.1)(typescript@5.8.3) rollup-plugin-vue: specifier: 6.0.0 - version: 6.0.0(@vue/compiler-sfc@3.5.17) + version: 6.0.0(@vue/compiler-sfc@3.5.18) sass: specifier: 1.70.0 version: 1.70.0 @@ -375,17 +375,17 @@ importers: specifier: 5.2.0 version: 5.2.0(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0)) vue: - specifier: 3.4.31 - version: 3.4.31(typescript@5.8.3) + specifier: 3.5.18 + version: 3.5.18(typescript@5.8.3) vue-docgen-cli: specifier: 4.79.0 - version: 4.79.0(vue@3.4.31(typescript@5.8.3)) + version: 4.79.0(vue@3.5.18(typescript@5.8.3)) vue-router: specifier: 4.5.1 - version: 4.5.1(vue@3.4.31(typescript@5.8.3)) + version: 4.5.1(vue@3.5.18(typescript@5.8.3)) vuex: specifier: 4.0.2 - version: 4.0.2(vue@3.4.31(typescript@5.8.3)) + version: 4.0.2(vue@3.5.18(typescript@5.8.3)) publishDirectory: dist packages/x-svg-converter: @@ -426,7 +426,7 @@ importers: version: 25.0.7(rollup@4.9.1) '@vitejs/plugin-vue': specifier: 5.2.4 - version: 5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) + version: 5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.5.18(typescript@5.8.3)) autoprefixer: specifier: 10.4.21 version: 10.4.21(postcss@8.4.12) @@ -455,8 +455,8 @@ importers: specifier: 6.3.5 version: 6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0) vue: - specifier: 3.5.13 - version: 3.5.13(typescript@5.8.3) + specifier: 3.5.18 + version: 3.5.18(typescript@5.8.3) packages/x-translations: dependencies: @@ -2762,42 +2762,30 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 - '@vue/compiler-core@3.4.31': - resolution: {integrity: sha512-skOiodXWTV3DxfDhB4rOf3OGalpITLlgCeOwb+Y9GJpfQ8ErigdBUHomBzvG78JoVE8MJoQsb+qhZiHfKeNeEg==} - - '@vue/compiler-core@3.5.13': - resolution: {integrity: sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==} - '@vue/compiler-core@3.5.17': resolution: {integrity: sha512-Xe+AittLbAyV0pabcN7cP7/BenRBNcteM4aSDCtRvGw0d9OL+HG1u/XHLY/kt1q4fyMeZYXyIYrsHuPSiDPosA==} - '@vue/compiler-dom@3.4.31': - resolution: {integrity: sha512-wK424WMXsG1IGMyDGyLqB+TbmEBFM78hIsOJ9QwUVLGrcSk0ak6zYty7Pj8ftm7nEtdU/DGQxAXp0/lM/2cEpQ==} - - '@vue/compiler-dom@3.5.13': - resolution: {integrity: sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==} + '@vue/compiler-core@3.5.18': + resolution: {integrity: sha512-3slwjQrrV1TO8MoXgy3aynDQ7lslj5UqDxuHnrzHtpON5CBinhWjJETciPngpin/T3OuW3tXUf86tEurusnztw==} '@vue/compiler-dom@3.5.17': resolution: {integrity: sha512-+2UgfLKoaNLhgfhV5Ihnk6wB4ljyW1/7wUIog2puUqajiC29Lp5R/IKDdkebh9jTbTogTbsgB+OY9cEWzG95JQ==} - '@vue/compiler-sfc@3.4.31': - resolution: {integrity: sha512-einJxqEw8IIJxzmnxmJBuK2usI+lJonl53foq+9etB2HAzlPjAS/wa7r0uUpXw5ByX3/0uswVSrjNb17vJm1kQ==} - - '@vue/compiler-sfc@3.5.13': - resolution: {integrity: sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==} + '@vue/compiler-dom@3.5.18': + resolution: {integrity: sha512-RMbU6NTU70++B1JyVJbNbeFkK+A+Q7y9XKE2EM4NLGm2WFR8x9MbAtWxPPLdm0wUkuZv9trpwfSlL6tjdIa1+A==} '@vue/compiler-sfc@3.5.17': resolution: {integrity: sha512-rQQxbRJMgTqwRugtjw0cnyQv9cP4/4BxWfTdRBkqsTfLOHWykLzbOc3C4GGzAmdMDxhzU/1Ija5bTjMVrddqww==} - '@vue/compiler-ssr@3.4.31': - resolution: {integrity: sha512-RtefmITAje3fJ8FSg1gwgDhdKhZVntIVbwupdyZDSifZTRMiWxWehAOTCc8/KZDnBOcYQ4/9VWxsTbd3wT0hAA==} - - '@vue/compiler-ssr@3.5.13': - resolution: {integrity: sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==} + '@vue/compiler-sfc@3.5.18': + resolution: {integrity: sha512-5aBjvGqsWs+MoxswZPoTB9nSDb3dhd1x30xrrltKujlCxo48j8HGDNj3QPhF4VIS0VQDUrA1xUfp2hEa+FNyXA==} '@vue/compiler-ssr@3.5.17': resolution: {integrity: sha512-hkDbA0Q20ZzGgpj5uZjb9rBzQtIHLS78mMilwrlpWk2Ep37DYntUz0PonQ6kr113vfOEdM+zTBuJDaceNIW0tQ==} + '@vue/compiler-ssr@3.5.18': + resolution: {integrity: sha512-xM16Ak7rSWHkM3m22NlmcdIM+K4BMyFARAfV9hYFl+SFuRzrZ3uGMNW05kA5pmeMa0X9X963Kgou7ufdbpOP9g==} + '@vue/compiler-vue2@2.7.16': resolution: {integrity: sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==} @@ -2815,43 +2803,26 @@ packages: typescript: optional: true - '@vue/reactivity@3.4.31': - resolution: {integrity: sha512-VGkTani8SOoVkZNds1PfJ/T1SlAIOf8E58PGAhIOUDYPC4GAmFA2u/E14TDAFcf3vVDKunc4QqCe/SHr8xC65Q==} - - '@vue/reactivity@3.5.13': - resolution: {integrity: sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==} - - '@vue/runtime-core@3.4.31': - resolution: {integrity: sha512-LDkztxeUPazxG/p8c5JDDKPfkCDBkkiNLVNf7XZIUnJ+66GVGkP+TIh34+8LtPisZ+HMWl2zqhIw0xN5MwU1cw==} + '@vue/reactivity@3.5.18': + resolution: {integrity: sha512-x0vPO5Imw+3sChLM5Y+B6G1zPjwdOri9e8V21NnTnlEvkxatHEH5B5KEAJcjuzQ7BsjGrKtfzuQ5eQwXh8HXBg==} - '@vue/runtime-core@3.5.13': - resolution: {integrity: sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==} + '@vue/runtime-core@3.5.18': + resolution: {integrity: sha512-DUpHa1HpeOQEt6+3nheUfqVXRog2kivkXHUhoqJiKR33SO4x+a5uNOMkV487WPerQkL0vUuRvq/7JhRgLW3S+w==} - '@vue/runtime-dom@3.4.31': - resolution: {integrity: sha512-2Auws3mB7+lHhTFCg8E9ZWopA6Q6L455EcU7bzcQ4x6Dn4cCPuqj6S2oBZgN2a8vJRS/LSYYxwFFq2Hlx3Fsaw==} + '@vue/runtime-dom@3.5.18': + resolution: {integrity: sha512-YwDj71iV05j4RnzZnZtGaXwPoUWeRsqinblgVJwR8XTXYZ9D5PbahHQgsbmzUvCWNF6x7siQ89HgnX5eWkr3mw==} - '@vue/runtime-dom@3.5.13': - resolution: {integrity: sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==} - - '@vue/server-renderer@3.4.31': - resolution: {integrity: sha512-D5BLbdvrlR9PE3by9GaUp1gQXlCNadIZytMIb8H2h3FMWJd4oUfkUTEH2wAr3qxoRz25uxbTcbqd3WKlm9EHQA==} + '@vue/server-renderer@3.5.18': + resolution: {integrity: sha512-PvIHLUoWgSbDG7zLHqSqaCoZvHi6NNmfVFOqO+OnwvqMz/tqQr3FuGWS8ufluNddk7ZLBJYMrjcw1c6XzR12mA==} peerDependencies: - vue: 3.4.31 - - '@vue/server-renderer@3.5.13': - resolution: {integrity: sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==} - peerDependencies: - vue: 3.5.13 - - '@vue/shared@3.4.31': - resolution: {integrity: sha512-Yp3wtJk//8cO4NItOPpi3QkLExAr/aLBGZMmTtW9WpdwBCJpRM6zj9WgWktXAl8IDIozwNMByT45JP3tO3ACWA==} - - '@vue/shared@3.5.13': - resolution: {integrity: sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==} + vue: 3.5.18 '@vue/shared@3.5.17': resolution: {integrity: sha512-CabR+UN630VnsJO/jHWYBC1YVXyMq94KKp6iF5MQgZJs5I8cmjw6oVMO1oDbtBkENSHSSn/UadWlW/OAgdmKrg==} + '@vue/shared@3.5.18': + resolution: {integrity: sha512-cZy8Dq+uuIXbxCZpuLd2GJdeSO/lIzIspC2WtkqIpje5QyFbvLaI5wZtdUjLHjGZrlVX6GilejatWwVYYRc8tA==} + '@vue/test-utils@2.4.6': resolution: {integrity: sha512-FMxEjOpYNYiFe0GkaHsnJPXFHxQ6m4t8vI/ElPGpMWxZKpmRvQ33OIrvRXemy6yha03RxhOlQuy+gZMC3CQSow==} @@ -8184,16 +8155,8 @@ packages: peerDependencies: typescript: '>=5.0.0' - vue@3.4.31: - resolution: {integrity: sha512-njqRrOy7W3YLAlVqSKpBebtZpDVg21FPoaq1I7f/+qqBThK9ChAIjkRWgeP6Eat+8C+iia4P3OYqpATP21BCoQ==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - vue@3.5.13: - resolution: {integrity: sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==} + vue@3.5.18: + resolution: {integrity: sha512-7W4Y4ZbMiQ3SEo+m9lnoNpV9xG7QVMLa+/0RFwwiAVkeYoyGXqWE85jabU4pllJNUzqfLShJ5YLptewhCWUgNA==} peerDependencies: typescript: '*' peerDependenciesMeta: @@ -8445,7 +8408,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.12 '@jridgewell/trace-mapping': 0.3.29 - '@antfu/eslint-config@4.6.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.17)(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3)': + '@antfu/eslint-config@4.6.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.18)(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3)': dependencies: '@antfu/install-pkg': 1.1.0 '@clack/prompts': 0.10.1 @@ -8476,7 +8439,7 @@ snapshots: eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.36.0(@typescript-eslint/parser@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(eslint@9.21.0(jiti@1.21.7)) eslint-plugin-vue: 10.3.0(@typescript-eslint/parser@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(eslint@9.21.0(jiti@1.21.7))(vue-eslint-parser@10.2.0(eslint@9.21.0(jiti@1.21.7))) eslint-plugin-yml: 1.18.0(eslint@9.21.0(jiti@1.21.7)) - eslint-processor-vue-blocks: 2.0.0(@vue/compiler-sfc@3.5.17)(eslint@9.21.0(jiti@1.21.7)) + eslint-processor-vue-blocks: 2.0.0(@vue/compiler-sfc@3.5.18)(eslint@9.21.0(jiti@1.21.7)) globals: 16.3.0 jsonc-eslint-parser: 2.4.0 local-pkg: 1.1.1 @@ -9326,7 +9289,7 @@ snapshots: '@cucumber/ci-environment': 10.0.1 '@cucumber/cucumber-expressions': 18.0.1 '@cucumber/gherkin': 30.0.4 - '@cucumber/gherkin-streams': 5.0.1(@cucumber/gherkin@30.0.4)(@cucumber/message-streams@4.0.1(@cucumber/messages@27.2.0))(@cucumber/messages@27.2.0) + '@cucumber/gherkin-streams': 5.0.1(@cucumber/gherkin@30.0.4)(@cucumber/message-streams@4.0.1(@cucumber/messages@28.0.0))(@cucumber/messages@27.2.0) '@cucumber/gherkin-utils': 9.2.0 '@cucumber/html-formatter': 21.10.1(@cucumber/messages@27.2.0) '@cucumber/junit-xml-formatter': 0.7.1(@cucumber/messages@27.2.0) @@ -9363,7 +9326,7 @@ snapshots: yaml: 2.8.0 yup: 1.6.1 - '@cucumber/gherkin-streams@5.0.1(@cucumber/gherkin@30.0.4)(@cucumber/message-streams@4.0.1(@cucumber/messages@27.2.0))(@cucumber/messages@27.2.0)': + '@cucumber/gherkin-streams@5.0.1(@cucumber/gherkin@30.0.4)(@cucumber/message-streams@4.0.1(@cucumber/messages@28.0.0))(@cucumber/messages@27.2.0)': dependencies: '@cucumber/gherkin': 30.0.4 '@cucumber/message-streams': 4.0.1(@cucumber/messages@27.2.0) @@ -9496,9 +9459,9 @@ snapshots: tslib: 2.8.1 optional: true - '@empathyco/eslint-config@1.8.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.17)(jiti@1.21.7)(typescript@5.8.3)': + '@empathyco/eslint-config@1.8.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.18)(jiti@1.21.7)(typescript@5.8.3)': dependencies: - '@antfu/eslint-config': 4.6.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.17)(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3) + '@antfu/eslint-config': 4.6.0(@typescript-eslint/utils@8.36.0(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3))(@vue/compiler-sfc@3.5.18)(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3) eslint: 9.21.0(jiti@1.21.7) prettier: 3.5.3 prettier-plugin-tailwindcss: 0.6.11(prettier@3.5.3) @@ -11052,15 +11015,10 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.11.0': optional: true - '@vitejs/plugin-vue@5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.4.31(typescript@5.8.3))': + '@vitejs/plugin-vue@5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.5.18(typescript@5.8.3))': dependencies: vite: 6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0) - vue: 3.4.31(typescript@5.8.3) - - '@vitejs/plugin-vue@5.2.4(vite@6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3))': - dependencies: - vite: 6.3.5(@types/node@22.15.29)(jiti@1.21.7)(sass@1.70.0)(tsx@4.20.3)(yaml@2.8.0) - vue: 3.5.13(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) '@vitest/eslint-plugin@1.3.4(eslint@9.21.0(jiti@1.21.7))(typescript@5.8.3)': dependencies: @@ -11112,68 +11070,31 @@ snapshots: transitivePeerDependencies: - supports-color - '@vue/compiler-core@3.4.31': - dependencies: - '@babel/parser': 7.28.0 - '@vue/shared': 3.4.31 - entities: 4.5.0 - estree-walker: 2.0.2 - source-map-js: 1.2.1 - - '@vue/compiler-core@3.5.13': + '@vue/compiler-core@3.5.17': dependencies: '@babel/parser': 7.28.0 - '@vue/shared': 3.5.13 + '@vue/shared': 3.5.17 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.2.1 - '@vue/compiler-core@3.5.17': + '@vue/compiler-core@3.5.18': dependencies: '@babel/parser': 7.28.0 - '@vue/shared': 3.5.17 + '@vue/shared': 3.5.18 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.2.1 - '@vue/compiler-dom@3.4.31': - dependencies: - '@vue/compiler-core': 3.4.31 - '@vue/shared': 3.4.31 - - '@vue/compiler-dom@3.5.13': - dependencies: - '@vue/compiler-core': 3.5.13 - '@vue/shared': 3.5.13 - '@vue/compiler-dom@3.5.17': dependencies: '@vue/compiler-core': 3.5.17 '@vue/shared': 3.5.17 - '@vue/compiler-sfc@3.4.31': - dependencies: - '@babel/parser': 7.28.0 - '@vue/compiler-core': 3.4.31 - '@vue/compiler-dom': 3.4.31 - '@vue/compiler-ssr': 3.4.31 - '@vue/shared': 3.4.31 - estree-walker: 2.0.2 - magic-string: 0.30.17 - postcss: 8.5.6 - source-map-js: 1.2.1 - - '@vue/compiler-sfc@3.5.13': + '@vue/compiler-dom@3.5.18': dependencies: - '@babel/parser': 7.28.0 - '@vue/compiler-core': 3.5.13 - '@vue/compiler-dom': 3.5.13 - '@vue/compiler-ssr': 3.5.13 - '@vue/shared': 3.5.13 - estree-walker: 2.0.2 - magic-string: 0.30.17 - postcss: 8.5.6 - source-map-js: 1.2.1 + '@vue/compiler-core': 3.5.18 + '@vue/shared': 3.5.18 '@vue/compiler-sfc@3.5.17': dependencies: @@ -11187,21 +11108,28 @@ snapshots: postcss: 8.5.6 source-map-js: 1.2.1 - '@vue/compiler-ssr@3.4.31': - dependencies: - '@vue/compiler-dom': 3.4.31 - '@vue/shared': 3.4.31 - - '@vue/compiler-ssr@3.5.13': + '@vue/compiler-sfc@3.5.18': dependencies: - '@vue/compiler-dom': 3.5.13 - '@vue/shared': 3.5.13 + '@babel/parser': 7.28.0 + '@vue/compiler-core': 3.5.18 + '@vue/compiler-dom': 3.5.18 + '@vue/compiler-ssr': 3.5.18 + '@vue/shared': 3.5.18 + estree-walker: 2.0.2 + magic-string: 0.30.17 + postcss: 8.5.6 + source-map-js: 1.2.1 '@vue/compiler-ssr@3.5.17': dependencies: '@vue/compiler-dom': 3.5.17 '@vue/shared': 3.5.17 + '@vue/compiler-ssr@3.5.18': + dependencies: + '@vue/compiler-dom': 3.5.18 + '@vue/shared': 3.5.18 + '@vue/compiler-vue2@2.7.16': dependencies: de-indent: 1.0.2 @@ -11224,62 +11152,38 @@ snapshots: optionalDependencies: typescript: 5.8.3 - '@vue/reactivity@3.4.31': - dependencies: - '@vue/shared': 3.4.31 - - '@vue/reactivity@3.5.13': - dependencies: - '@vue/shared': 3.5.13 - - '@vue/runtime-core@3.4.31': + '@vue/reactivity@3.5.18': dependencies: - '@vue/reactivity': 3.4.31 - '@vue/shared': 3.4.31 + '@vue/shared': 3.5.18 - '@vue/runtime-core@3.5.13': + '@vue/runtime-core@3.5.18': dependencies: - '@vue/reactivity': 3.5.13 - '@vue/shared': 3.5.13 + '@vue/reactivity': 3.5.18 + '@vue/shared': 3.5.18 - '@vue/runtime-dom@3.4.31': + '@vue/runtime-dom@3.5.18': dependencies: - '@vue/reactivity': 3.4.31 - '@vue/runtime-core': 3.4.31 - '@vue/shared': 3.4.31 + '@vue/reactivity': 3.5.18 + '@vue/runtime-core': 3.5.18 + '@vue/shared': 3.5.18 csstype: 3.1.3 - '@vue/runtime-dom@3.5.13': - dependencies: - '@vue/reactivity': 3.5.13 - '@vue/runtime-core': 3.5.13 - '@vue/shared': 3.5.13 - csstype: 3.1.3 - - '@vue/server-renderer@3.4.31(vue@3.4.31(typescript@5.8.3))': - dependencies: - '@vue/compiler-ssr': 3.4.31 - '@vue/shared': 3.4.31 - vue: 3.4.31(typescript@5.8.3) - - '@vue/server-renderer@3.5.13(vue@3.5.13(typescript@5.8.3))': + '@vue/server-renderer@3.5.18(vue@3.5.18(typescript@5.8.3))': dependencies: - '@vue/compiler-ssr': 3.5.13 - '@vue/shared': 3.5.13 - vue: 3.5.13(typescript@5.8.3) - - '@vue/shared@3.4.31': {} - - '@vue/shared@3.5.13': {} + '@vue/compiler-ssr': 3.5.18 + '@vue/shared': 3.5.18 + vue: 3.5.18(typescript@5.8.3) '@vue/shared@3.5.17': {} + '@vue/shared@3.5.18': {} + '@vue/test-utils@2.4.6': dependencies: js-beautify: 1.15.4 vue-component-type-helpers: 2.2.12 - '@vue/vue3-jest@29.2.6(@babel/core@7.28.0)(babel-jest@29.7.0(@babel/core@7.28.0))(jest@29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@types/node@22.15.29)(typescript@5.8.3)))(typescript@5.8.3)(vue@3.4.31(typescript@5.8.3))': + '@vue/vue3-jest@29.2.6(@babel/core@7.28.0)(babel-jest@29.7.0(@babel/core@7.28.0))(jest@29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@types/node@22.15.29)(typescript@5.8.3)))(typescript@5.8.3)(vue@3.5.18(typescript@5.8.3))': dependencies: '@babel/core': 7.28.0 '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/core@7.28.0) @@ -11290,27 +11194,27 @@ snapshots: jest: 29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@types/node@22.15.29)(typescript@5.8.3)) source-map: 0.5.6 tsconfig: 7.0.0 - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) optionalDependencies: typescript: 5.8.3 transitivePeerDependencies: - supports-color - '@vueuse/core@10.11.1(vue@3.4.31(typescript@5.8.3))': + '@vueuse/core@10.11.1(vue@3.5.18(typescript@5.8.3))': dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.11.1 - '@vueuse/shared': 10.11.1(vue@3.4.31(typescript@5.8.3)) - vue-demi: 0.14.10(vue@3.4.31(typescript@5.8.3)) + '@vueuse/shared': 10.11.1(vue@3.5.18(typescript@5.8.3)) + vue-demi: 0.14.10(vue@3.5.18(typescript@5.8.3)) transitivePeerDependencies: - '@vue/composition-api' - vue '@vueuse/metadata@10.11.1': {} - '@vueuse/shared@10.11.1(vue@3.4.31(typescript@5.8.3))': + '@vueuse/shared@10.11.1(vue@3.5.18(typescript@5.8.3))': dependencies: - vue-demi: 0.14.10(vue@3.4.31(typescript@5.8.3)) + vue-demi: 0.14.10(vue@3.5.18(typescript@5.8.3)) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -12926,9 +12830,9 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-processor-vue-blocks@2.0.0(@vue/compiler-sfc@3.5.17)(eslint@9.21.0(jiti@1.21.7)): + eslint-processor-vue-blocks@2.0.0(@vue/compiler-sfc@3.5.18)(eslint@9.21.0(jiti@1.21.7)): dependencies: - '@vue/compiler-sfc': 3.5.17 + '@vue/compiler-sfc': 3.5.18 eslint: 9.21.0(jiti@1.21.7) eslint-scope@8.4.0: @@ -16601,9 +16505,9 @@ snapshots: tslib: 2.8.1 typescript: 5.8.3 - rollup-plugin-vue@6.0.0(@vue/compiler-sfc@3.5.17): + rollup-plugin-vue@6.0.0(@vue/compiler-sfc@3.5.18): dependencies: - '@vue/compiler-sfc': 3.5.17 + '@vue/compiler-sfc': 3.5.18 debug: 4.4.1(supports-color@8.1.1) hash-sum: 2.0.0 rollup-pluginutils: 2.8.2 @@ -17567,11 +17471,11 @@ snapshots: vue-component-type-helpers@2.2.12: {} - vue-demi@0.14.10(vue@3.4.31(typescript@5.8.3)): + vue-demi@0.14.10(vue@3.5.18(typescript@5.8.3)): dependencies: - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) - vue-docgen-api@4.79.2(vue@3.4.31(typescript@5.8.3)): + vue-docgen-api@4.79.2(vue@3.5.18(typescript@5.8.3)): dependencies: '@babel/parser': 7.28.0 '@babel/types': 7.28.0 @@ -17584,10 +17488,10 @@ snapshots: pug: 3.0.3 recast: 0.23.11 ts-map: 1.0.3 - vue: 3.4.31(typescript@5.8.3) - vue-inbrowser-compiler-independent-utils: 4.71.1(vue@3.4.31(typescript@5.8.3)) + vue: 3.5.18(typescript@5.8.3) + vue-inbrowser-compiler-independent-utils: 4.71.1(vue@3.5.18(typescript@5.8.3)) - vue-docgen-cli@4.79.0(vue@3.4.31(typescript@5.8.3)): + vue-docgen-cli@4.79.0(vue@3.5.18(typescript@5.8.3)): dependencies: cac: 6.7.14 chokidar: 3.6.0 @@ -17595,7 +17499,7 @@ snapshots: lodash.memoize: 4.1.2 loglevel: 1.9.2 prettier: 2.8.8 - vue-docgen-api: 4.79.2(vue@3.4.31(typescript@5.8.3)) + vue-docgen-api: 4.79.2(vue@3.5.18(typescript@5.8.3)) transitivePeerDependencies: - vue @@ -17611,26 +17515,26 @@ snapshots: transitivePeerDependencies: - supports-color - vue-global-events@3.0.1(vue@3.4.31(typescript@5.8.3)): + vue-global-events@3.0.1(vue@3.5.18(typescript@5.8.3)): dependencies: pkg-types: 1.3.1 - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) - vue-i18n@9.14.4(vue@3.4.31(typescript@5.8.3)): + vue-i18n@9.14.4(vue@3.5.18(typescript@5.8.3)): dependencies: '@intlify/core-base': 9.14.4 '@intlify/shared': 9.14.4 '@vue/devtools-api': 6.5.1 - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) - vue-inbrowser-compiler-independent-utils@4.71.1(vue@3.4.31(typescript@5.8.3)): + vue-inbrowser-compiler-independent-utils@4.71.1(vue@3.5.18(typescript@5.8.3)): dependencies: - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) - vue-router@4.5.1(vue@3.4.31(typescript@5.8.3)): + vue-router@4.5.1(vue@3.5.18(typescript@5.8.3)): dependencies: '@vue/devtools-api': 6.6.4 - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) vue-tsc@3.0.4(typescript@5.8.3): dependencies: @@ -17638,30 +17542,20 @@ snapshots: '@vue/language-core': 3.0.4(typescript@5.8.3) typescript: 5.8.3 - vue@3.4.31(typescript@5.8.3): - dependencies: - '@vue/compiler-dom': 3.4.31 - '@vue/compiler-sfc': 3.4.31 - '@vue/runtime-dom': 3.4.31 - '@vue/server-renderer': 3.4.31(vue@3.4.31(typescript@5.8.3)) - '@vue/shared': 3.4.31 - optionalDependencies: - typescript: 5.8.3 - - vue@3.5.13(typescript@5.8.3): + vue@3.5.18(typescript@5.8.3): dependencies: - '@vue/compiler-dom': 3.5.13 - '@vue/compiler-sfc': 3.5.13 - '@vue/runtime-dom': 3.5.13 - '@vue/server-renderer': 3.5.13(vue@3.5.13(typescript@5.8.3)) - '@vue/shared': 3.5.13 + '@vue/compiler-dom': 3.5.18 + '@vue/compiler-sfc': 3.5.18 + '@vue/runtime-dom': 3.5.18 + '@vue/server-renderer': 3.5.18(vue@3.5.18(typescript@5.8.3)) + '@vue/shared': 3.5.18 optionalDependencies: typescript: 5.8.3 - vuex@4.0.2(vue@3.4.31(typescript@5.8.3)): + vuex@4.0.2(vue@3.5.18(typescript@5.8.3)): dependencies: '@vue/devtools-api': 6.5.1 - vue: 3.4.31(typescript@5.8.3) + vue: 3.5.18(typescript@5.8.3) w3c-xmlserializer@4.0.0: dependencies: From 8700a767b6248e09285d3f500b36bcc20828b120 Mon Sep 17 00:00:00 2001 From: davidglezz Date: Sat, 16 Aug 2025 12:45:49 +0200 Subject: [PATCH 7/8] build: disable TypeScript checking Signed-off-by: davidglezz --- packages/x-components/build/rollup.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/x-components/build/rollup.config.ts b/packages/x-components/build/rollup.config.ts index a8103b6a1b..1f3ff2952f 100644 --- a/packages/x-components/build/rollup.config.ts +++ b/packages/x-components/build/rollup.config.ts @@ -75,6 +75,7 @@ const rollupConfig: RollupOptions = { ], }), typescript({ + check: false, useTsconfigDeclarationDir: true, tsconfig: path.resolve(rootDir, 'tsconfig.json'), tsconfigOverride: { From 2b7299daf0f4d586ff3849ff2b1f76024de877df Mon Sep 17 00:00:00 2001 From: davidglezz Date: Sun, 17 Aug 2025 00:09:32 +0200 Subject: [PATCH 8/8] fix(v-typing): fix Default export of the module has or is using private name Signed-off-by: davidglezz --- packages/x-components/src/directives/typing.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/x-components/src/directives/typing.ts b/packages/x-components/src/directives/typing.ts index a771670e97..c3dd5e98c9 100644 --- a/packages/x-components/src/directives/typing.ts +++ b/packages/x-components/src/directives/typing.ts @@ -24,7 +24,12 @@ export interface TypingOptions { targetAttr?: string } -interface TypingHTMLElement extends HTMLElement { +/** + * Typing element private data. + * + * @internal + */ +export interface TypingHTMLElement extends HTMLElement { __timeoutId?: number }