chore: update dependencies and configurations across multiple packages
Publish to NPM / Check version changes and publish (push) Failing after 10m44s
Publish to NPM / Check version changes and publish (push) Failing after 10m44s
This commit is contained in:
@@ -17,11 +17,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "configs/eslint"
|
"directory": "configs/eslint"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
@@ -47,15 +48,15 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint/js": "^10.0.1",
|
"@eslint/js": "^10.0.1",
|
||||||
"@stylistic/eslint-plugin": "catalog:",
|
"@stylistic/eslint-plugin": "catalog:",
|
||||||
"@vitest/eslint-plugin": "^1.6.19",
|
"@vitest/eslint-plugin": "^1.6.20",
|
||||||
"eslint-plugin-import-x": "^4.16.2",
|
"eslint-plugin-import-x": "^4.16.2",
|
||||||
"eslint-plugin-n": "^18.1.0",
|
"eslint-plugin-n": "^18.1.0",
|
||||||
"eslint-plugin-regexp": "^3.1.0",
|
"eslint-plugin-regexp": "^3.1.0",
|
||||||
"eslint-plugin-unicorn": "^65.0.1",
|
"eslint-plugin-unicorn": "^67.0.0",
|
||||||
"eslint-plugin-vue": "^10.9.2",
|
"eslint-plugin-vue": "^10.9.2",
|
||||||
"globals": "^17.6.0",
|
"globals": "^17.6.0",
|
||||||
"jiti": "^2.7.0",
|
"jiti": "^2.7.0",
|
||||||
"typescript-eslint": "^8.61.0",
|
"typescript-eslint": "^8.61.1",
|
||||||
"vue-eslint-parser": "^10.4.1"
|
"vue-eslint-parser": "^10.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "packages/tsconfig"
|
"directory": "packages/tsconfig"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "configs/tsdown"
|
"directory": "configs/tsdown"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,11 +17,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "core/crdt"
|
"directory": "core/crdt"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -13,11 +13,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "core/encoding"
|
"directory": "core/encoding"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -15,11 +15,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "core/fetch"
|
"directory": "core/fetch"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "packages/platform"
|
"directory": "packages/platform"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "packages/stdlib"
|
"directory": "packages/stdlib"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|||||||
+2
-2
@@ -26,11 +26,11 @@
|
|||||||
"@nuxt/fonts": "^0.14.0",
|
"@nuxt/fonts": "^0.14.0",
|
||||||
"@nuxt/kit": "^4.4.8",
|
"@nuxt/kit": "^4.4.8",
|
||||||
"@robonen/eslint": "workspace:*",
|
"@robonen/eslint": "workspace:*",
|
||||||
"@tailwindcss/vite": "^4.3.0",
|
"@tailwindcss/vite": "^4.3.1",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"jiti": "^2.7.0",
|
"jiti": "^2.7.0",
|
||||||
"nuxt": "catalog:",
|
"nuxt": "catalog:",
|
||||||
"tailwindcss": "^4.3.0",
|
"tailwindcss": "^4.3.1",
|
||||||
"ts-morph": "^28.0.0",
|
"ts-morph": "^28.0.0",
|
||||||
"vue": "catalog:",
|
"vue": "catalog:",
|
||||||
"vue-router": "^5.1.0"
|
"vue-router": "^5.1.0"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "packages/renovate"
|
"directory": "packages/renovate"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
@@ -27,6 +27,6 @@
|
|||||||
"test": "renovate-config-validator ./default.json"
|
"test": "renovate-config-validator ./default.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"renovate": "^43.216.1"
|
"renovate": "^43.228.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -15,13 +15,13 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/robonen/tools.git"
|
"url": "git+https://github.com/robonen/tools.git"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^25.9.2",
|
"@types/node": "^25.9.3",
|
||||||
"@vitest/coverage-v8": "catalog:",
|
"@vitest/coverage-v8": "catalog:",
|
||||||
"@vitest/ui": "catalog:",
|
"@vitest/ui": "catalog:",
|
||||||
"citty": "^0.2.2",
|
"citty": "^0.2.2",
|
||||||
|
|||||||
Generated
+2771
-3541
File diff suppressed because it is too large
Load Diff
+22
-8
@@ -6,20 +6,34 @@ packages:
|
|||||||
- vue/*/playground
|
- vue/*/playground
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
|
allowBuilds:
|
||||||
|
'@parcel/watcher': true
|
||||||
|
core-js-pure: true
|
||||||
|
dtrace-provider: true
|
||||||
|
esbuild: true
|
||||||
|
re2: true
|
||||||
|
unrs-resolver: true
|
||||||
|
|
||||||
catalog:
|
catalog:
|
||||||
'@stylistic/eslint-plugin': ^5.10.0
|
'@stylistic/eslint-plugin': ^5.10.0
|
||||||
'@vitest/browser': ^4.1.8
|
'@vitest/browser': ^4.1.9
|
||||||
'@vitest/coverage-v8': ^4.1.8
|
'@vitest/coverage-v8': ^4.1.9
|
||||||
'@vitest/ui': ^4.1.8
|
'@vitest/ui': ^4.1.9
|
||||||
'@vue/shared': ^3.5.35
|
'@vue/shared': ^3.5.38
|
||||||
'@vue/test-utils': ^2.4.11
|
'@vue/test-utils': ^2.4.11
|
||||||
eslint: ^10.4.1
|
eslint: ^10.5.0
|
||||||
jsdom: ^29.1.1
|
jsdom: ^29.1.1
|
||||||
nuxt: ^4.4.8
|
nuxt: ^4.4.8
|
||||||
tsdown: ^0.22.2
|
tsdown: ^0.22.3
|
||||||
vitest: ^4.1.8
|
vitest: ^4.1.9
|
||||||
vue: ^3.5.35
|
vue: ^3.5.38
|
||||||
|
|
||||||
ignoredBuiltDependencies:
|
ignoredBuiltDependencies:
|
||||||
- '@parcel/watcher'
|
- '@parcel/watcher'
|
||||||
- esbuild
|
- esbuild
|
||||||
|
|
||||||
|
minimumReleaseAgeExclude:
|
||||||
|
- ast-kit@3.0.0
|
||||||
|
- renovate@43.228.0
|
||||||
|
- rolldown-plugin-dts@0.26.0
|
||||||
|
- tsdown@0.22.3
|
||||||
|
|||||||
@@ -15,11 +15,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "vue/primitives"
|
"directory": "vue/primitives"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
@@ -58,23 +59,26 @@
|
|||||||
"@robonen/tsconfig": "workspace:*",
|
"@robonen/tsconfig": "workspace:*",
|
||||||
"@robonen/tsdown": "workspace:*",
|
"@robonen/tsdown": "workspace:*",
|
||||||
"@vitest/browser": "catalog:",
|
"@vitest/browser": "catalog:",
|
||||||
"@vitest/browser-playwright": "^4.1.8",
|
"@vitest/browser-playwright": "^4.1.9",
|
||||||
"@vue/test-utils": "catalog:",
|
"@vue/test-utils": "catalog:",
|
||||||
"axe-core": "^4.12.0",
|
"axe-core": "^4.12.1",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"playwright": "^1.60.0",
|
"playwright": "^1.61.0",
|
||||||
"tsdown": "catalog:",
|
"tsdown": "catalog:",
|
||||||
"unplugin-vue": "^7.2.0",
|
"unplugin-vue": "^7.2.0",
|
||||||
"vitest-browser-vue": "^2.1.0",
|
"vitest-browser-vue": "^2.1.0",
|
||||||
"vue-tsc": "^3.3.4"
|
"vue": "catalog:",
|
||||||
|
"vue-tsc": "^3.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@floating-ui/vue": "^1.1.11",
|
"@floating-ui/vue": "^2.0.0",
|
||||||
"@robonen/encoding": "workspace:*",
|
"@robonen/encoding": "workspace:*",
|
||||||
"@robonen/platform": "workspace:*",
|
"@robonen/platform": "workspace:*",
|
||||||
"@robonen/stdlib": "workspace:*",
|
"@robonen/stdlib": "workspace:*",
|
||||||
"@robonen/vue": "workspace:*",
|
"@robonen/vue": "workspace:*",
|
||||||
"@vue/shared": "catalog:",
|
"@vue/shared": "catalog:"
|
||||||
"vue": "catalog:"
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"vue": "^3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@robonen/tsconfig": "workspace:*",
|
"@robonen/tsconfig": "workspace:*",
|
||||||
"@tailwindcss/vite": "^4.3.0",
|
"@tailwindcss/vite": "^4.3.1",
|
||||||
"@vitejs/plugin-vue": "^6.0.7",
|
"@vitejs/plugin-vue": "^6.0.7",
|
||||||
"tailwindcss": "^4.3.0",
|
"tailwindcss": "^4.3.1",
|
||||||
"vite": "^8.0.16",
|
"vite": "^8.0.16",
|
||||||
"vue-tsc": "^3.3.4"
|
"vue-tsc": "^3.3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,14 @@ import {
|
|||||||
CalendarHeadCell,
|
CalendarHeadCell,
|
||||||
CalendarRoot,
|
CalendarRoot,
|
||||||
} from '../index';
|
} from '../index';
|
||||||
|
import { nativeDateAdapter } from '../../../utilities/config-provider';
|
||||||
import { findFirstFocusableDate, getLocaleWeekStartsOn, toIsoDate } from '../utils';
|
import { findFirstFocusableDate, getLocaleWeekStartsOn, toIsoDate } from '../utils';
|
||||||
|
|
||||||
|
// A date adapter whose "today" sits far outside any month exercised below, so
|
||||||
|
// the roving-tabindex fallback never anchors on the real system date (which
|
||||||
|
// would otherwise make date-sensitive expectations flaky).
|
||||||
|
const fixedTodayAdapter = { ...nativeDateAdapter, now: () => new Date(2020, 0, 1) };
|
||||||
|
|
||||||
function mountCalendar(
|
function mountCalendar(
|
||||||
props: Record<string, unknown> = {},
|
props: Record<string, unknown> = {},
|
||||||
options: Record<string, unknown> = {},
|
options: Record<string, unknown> = {},
|
||||||
@@ -203,6 +209,7 @@ describe('Calendar — roving fallback tabindex', () => {
|
|||||||
const w = mountCalendar({
|
const w = mountCalendar({
|
||||||
defaultPlaceholder: new Date(2026, 5, 1),
|
defaultPlaceholder: new Date(2026, 5, 1),
|
||||||
isDateDisabled: (d: Date) => d.getMonth() === 5 && d.getDate() < 16,
|
isDateDisabled: (d: Date) => d.getMonth() === 5 && d.getDate() < 16,
|
||||||
|
dateAdapter: fixedTodayAdapter,
|
||||||
});
|
});
|
||||||
const focusable = w.findAll('[data-primitives-calendar-cell-trigger][tabindex="0"]');
|
const focusable = w.findAll('[data-primitives-calendar-cell-trigger][tabindex="0"]');
|
||||||
expect(focusable).toHaveLength(1);
|
expect(focusable).toHaveLength(1);
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ export default defineConfig({
|
|||||||
dts: { vue: true },
|
dts: { vue: true },
|
||||||
deps: {
|
deps: {
|
||||||
neverBundle: ['vue'],
|
neverBundle: ['vue'],
|
||||||
alwaysBundle: [/^@robonen\//, '@vue/shared'],
|
// `@robonen/*` stay external (deduped by the package manager); only the
|
||||||
|
// stateless `@vue/shared` helpers are inlined (a Vue internal consumers
|
||||||
|
// don't install directly, so it can't be externalized reliably).
|
||||||
|
alwaysBundle: ['@vue/shared'],
|
||||||
},
|
},
|
||||||
inputOptions: {
|
inputOptions: {
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ export default defineConfig({
|
|||||||
'@': resolve(__dirname, './src'),
|
'@': resolve(__dirname, './src'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
optimizeDeps: {
|
||||||
|
include: ['@robonen/vue'],
|
||||||
|
},
|
||||||
test: {
|
test: {
|
||||||
browser: {
|
browser: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
@@ -19,12 +19,12 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@robonen/eslint": "workspace:*",
|
"@robonen/eslint": "workspace:*",
|
||||||
"@robonen/tsconfig": "workspace:*",
|
"@robonen/tsconfig": "workspace:*",
|
||||||
"@storybook/addon-a11y": "^10.4.2",
|
"@storybook/addon-a11y": "^10.4.6",
|
||||||
"@storybook/addon-docs": "^10.4.2",
|
"@storybook/addon-docs": "^10.4.6",
|
||||||
"@storybook/vue3-vite": "^10.4.2",
|
"@storybook/vue3-vite": "^10.4.6",
|
||||||
"@vitejs/plugin-vue": "^6.0.7",
|
"@vitejs/plugin-vue": "^6.0.7",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"storybook": "^10.4.2",
|
"storybook": "^10.4.6",
|
||||||
"vite": "^8.0.16"
|
"vite": "^8.0.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,11 +16,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "vue/toolkit"
|
"directory": "vue/toolkit"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
@@ -49,11 +50,14 @@
|
|||||||
"@robonen/tsdown": "workspace:*",
|
"@robonen/tsdown": "workspace:*",
|
||||||
"@vue/test-utils": "catalog:",
|
"@vue/test-utils": "catalog:",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"tsdown": "catalog:"
|
"tsdown": "catalog:",
|
||||||
|
"vue": "catalog:"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@robonen/platform": "workspace:*",
|
"@robonen/platform": "workspace:*",
|
||||||
"@robonen/stdlib": "workspace:*",
|
"@robonen/stdlib": "workspace:*"
|
||||||
"vue": "catalog:"
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"vue": "^3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,15 +44,15 @@ export type UseDateFormatReturn = ComputedRef<string>;
|
|||||||
|
|
||||||
// Matches a token, or a `[literal]` escape that is emitted verbatim.
|
// Matches a token, or a `[literal]` escape that is emitted verbatim.
|
||||||
const REGEX_FORMAT
|
const REGEX_FORMAT
|
||||||
= /* #__PURE__ */ /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|z{1,4}|SSS/g;
|
= /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|z{1,4}|SSS/g;
|
||||||
|
|
||||||
// Loose ISO-ish parser used for date strings without a trailing `Z`. The optional
|
// Loose ISO-ish parser used for date strings without a trailing `Z`. The optional
|
||||||
// separators make adjacent digit groups technically "misleading" to the linter,
|
// separators make adjacent digit groups technically "misleading" to the linter,
|
||||||
// but this is the deliberate lenient dayjs parser (accepts `2024-01-01` and
|
// but this is the deliberate lenient dayjs parser (accepts `2024-01-01` and
|
||||||
// `20240101`); JS lacks possessive quantifiers to disambiguate it.
|
// `20240101`); JS lacks possessive quantifiers to disambiguate it.
|
||||||
// eslint-disable-next-line regexp/no-misleading-capturing-group
|
// eslint-disable-next-line regexp/no-misleading-capturing-group
|
||||||
const REGEX_PARSE = /* #__PURE__ */ /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
|
const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i;
|
||||||
const REGEX_ISO_SUFFIX = /* #__PURE__ */ /z$/i;
|
const REGEX_ISO_SUFFIX = /z$/i;
|
||||||
|
|
||||||
const ORDINAL_SUFFIXES = ['th', 'st', 'nd', 'rd'] as const;
|
const ORDINAL_SUFFIXES = ['th', 'st', 'nd', 'rd'] as const;
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ const DEFAULT_UNITS: Array<UseTimeAgoUnit<UseTimeAgoUnitName>> = [
|
|||||||
{ max: Number.POSITIVE_INFINITY, value: 31536000000, name: 'year' },
|
{ max: Number.POSITIVE_INFINITY, value: 31536000000, name: 'year' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const REGEX_DIGIT = /* #__PURE__ */ /\d/;
|
const REGEX_DIGIT = /\d/;
|
||||||
|
|
||||||
const DEFAULT_MESSAGES: UseTimeAgoMessages<UseTimeAgoUnitName> = {
|
const DEFAULT_MESSAGES: UseTimeAgoMessages<UseTimeAgoUnitName> = {
|
||||||
justNow: 'just now',
|
justNow: 'just now',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { defaultWindow } from '@/types';
|
|||||||
|
|
||||||
// Combo separator (`ctrl+a`, `ctrl_a`, `ctrl-a`). Non-global so it is safe to
|
// Combo separator (`ctrl+a`, `ctrl_a`, `ctrl-a`). Non-global so it is safe to
|
||||||
// reuse for both `.test()` (no lastIndex state) and `.split()`.
|
// reuse for both `.test()` (no lastIndex state) and `.split()`.
|
||||||
const COMBO_SEPARATOR_RE = /* #__PURE__ */ /[+_-]/;
|
const COMBO_SEPARATOR_RE = /[+_-]/;
|
||||||
|
|
||||||
export type UseMagicKeysAliasMap = Readonly<Record<string, string>>;
|
export type UseMagicKeysAliasMap = Readonly<Record<string, string>>;
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ export type UseMagicKeysAliasMap = Readonly<Record<string, string>>;
|
|||||||
* Default lowercase alias map: maps common shorthand key names to their
|
* Default lowercase alias map: maps common shorthand key names to their
|
||||||
* canonical `KeyboardEvent.key` (lowercased) equivalents.
|
* canonical `KeyboardEvent.key` (lowercased) equivalents.
|
||||||
*/
|
*/
|
||||||
export const DefaultMagicKeysAliasMap: UseMagicKeysAliasMap = /* #__PURE__ */ {
|
export const DefaultMagicKeysAliasMap: UseMagicKeysAliasMap = {
|
||||||
ctrl: 'control',
|
ctrl: 'control',
|
||||||
command: 'meta',
|
command: 'meta',
|
||||||
cmd: 'meta',
|
cmd: 'meta',
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { isClient } from '@robonen/platform/multi';
|
import { isClient } from '@robonen/platform/multi';
|
||||||
|
|
||||||
export const defaultWindow = /* #__PURE__ */ isClient ? globalThis as Window & typeof globalThis : undefined;
|
export const defaultWindow = isClient ? globalThis as Window & typeof globalThis : undefined;
|
||||||
export const defaultDocument = /* #__PURE__ */ isClient ? globalThis.document : undefined;
|
export const defaultDocument = isClient ? globalThis.document : undefined;
|
||||||
export const defaultNavigator = /* #__PURE__ */ isClient ? globalThis.navigator : undefined;
|
export const defaultNavigator = isClient ? globalThis.navigator : undefined;
|
||||||
|
|
||||||
export interface ConfigurableWindow {
|
export interface ConfigurableWindow {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -6,5 +6,4 @@ export default defineConfig({
|
|||||||
tsconfig: './tsconfig.src.json',
|
tsconfig: './tsconfig.src.json',
|
||||||
entry: ['src/index.ts'],
|
entry: ['src/index.ts'],
|
||||||
external: ['vue'],
|
external: ['vue'],
|
||||||
noExternal: [/^@robonen\//],
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -19,11 +19,12 @@
|
|||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "vue/writekit"
|
"directory": "vue/writekit"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.34.1",
|
"packageManager": "pnpm@11.7.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.16.0"
|
"node": ">=24.16.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
@@ -62,15 +63,16 @@
|
|||||||
"@robonen/tsconfig": "workspace:*",
|
"@robonen/tsconfig": "workspace:*",
|
||||||
"@robonen/tsdown": "workspace:*",
|
"@robonen/tsdown": "workspace:*",
|
||||||
"@vitest/browser": "catalog:",
|
"@vitest/browser": "catalog:",
|
||||||
"@vitest/browser-playwright": "^4.1.8",
|
"@vitest/browser-playwright": "^4.1.9",
|
||||||
"@vue/test-utils": "catalog:",
|
"@vue/test-utils": "catalog:",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"jsdom": "catalog:",
|
"jsdom": "catalog:",
|
||||||
"playwright": "^1.60.0",
|
"playwright": "^1.61.0",
|
||||||
"tsdown": "catalog:",
|
"tsdown": "catalog:",
|
||||||
"unplugin-vue": "^7.2.0",
|
"unplugin-vue": "^7.2.0",
|
||||||
"vitest-browser-vue": "^2.1.0",
|
"vitest-browser-vue": "^2.1.0",
|
||||||
"vue-tsc": "^3.3.4"
|
"vue": "catalog:",
|
||||||
|
"vue-tsc": "^3.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@robonen/crdt": "workspace:*",
|
"@robonen/crdt": "workspace:*",
|
||||||
@@ -78,7 +80,9 @@
|
|||||||
"@robonen/primitives": "workspace:*",
|
"@robonen/primitives": "workspace:*",
|
||||||
"@robonen/stdlib": "workspace:*",
|
"@robonen/stdlib": "workspace:*",
|
||||||
"@robonen/vue": "workspace:*",
|
"@robonen/vue": "workspace:*",
|
||||||
"@vue/shared": "catalog:",
|
"@vue/shared": "catalog:"
|
||||||
"vue": "catalog:"
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"vue": "^3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,6 @@
|
|||||||
"@robonen/tsconfig": "workspace:*",
|
"@robonen/tsconfig": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^6.0.7",
|
"@vitejs/plugin-vue": "^6.0.7",
|
||||||
"vite": "^8.0.16",
|
"vite": "^8.0.16",
|
||||||
"vue-tsc": "^3.3.4"
|
"vue-tsc": "^3.3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,10 @@ export default defineConfig({
|
|||||||
dts: { vue: true },
|
dts: { vue: true },
|
||||||
deps: {
|
deps: {
|
||||||
neverBundle: ['vue'],
|
neverBundle: ['vue'],
|
||||||
alwaysBundle: [/^@robonen\//, '@vue/shared'],
|
// `@robonen/*` (incl. `@robonen/primitives`) stay external — no more
|
||||||
|
// inlining the whole component lib (and its transitive `@floating-ui/*`)
|
||||||
|
// into writekit's bundle. Only stateless `@vue/shared` is inlined.
|
||||||
|
alwaysBundle: ['@vue/shared'],
|
||||||
},
|
},
|
||||||
inputOptions: {
|
inputOptions: {
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user