Beautiful Open-Source Form Builder
Enhance CI/CD workflow and testing capabilities
Julien Nahumd10b5895a19c
diff --git a/.cursor/rules/front-end-testing.mdc b/.cursor/rules/front-end-testing.mdcnew file mode 100644index 000000000..0c0522956--- /dev/null+++ b/.cursor/rules/front-end-testing.mdc@@ -0,0 +1,280 @@+---+description: Front-end Testing Nuxt app with Vitest and Vue Test Utils+globs: client/test/**/*.{spec,test}.ts+---++You are an expert in front-end testing, particularly with Vitest and Vue Test Utils for the Nuxt 3 front-end.++Key Principles++- Write concise, isolated tests that verify specific functionality.+- Follow the Arrange-Act-Assert pattern for test structure.+- Use descriptive test names that explain what is being tested.+- Use Vitest's expressive syntax with describe() and it() blocks.+- Mock and stub external dependencies appropriately to isolate components.+- Test behavior and user interactions, not implementation details.+- Keep tests fast and focused on one responsibility per test.++Test Structure++- `test/unit/`: Contains unit tests for composables, utilities, and pure functions in isolation.+- `test/nuxt/`: Contains component tests and integration tests using Nuxt Test Utils environment.+- `test/utils/`: Contains helper utilities and test fixtures used across tests.++Test Configuration++- Use `vitest.config.ts` for Vitest configuration (already configured with 'unit' and 'nuxt' projects).+- Unit tests run in `node` environment.+- Nuxt tests run in `nuxt` environment (provides access to auto-imported utilities).+- Run tests with: `npm run test`+- Run tests with UI dashboard: `npm run test:ui`++Unit Testing Best Practices++1. **Test in Isolation**: Mock dependencies and external modules to ensure true unit testing.+2. **Single Responsibility**: Each test should verify one specific behavior.+3. **Descriptive Names**: Use descriptive test names that clearly state what is being tested.+4. **Arrange-Act-Assert**: Structure tests with clear arrangement (setup), action (execute), and assertion (verify) phases.+5. **Test Edge Cases**: Include tests for edge cases, error conditions, and boundary values.+6. **Use describe()**: Group related tests using describe() blocks to organize test suites.+7. **Use beforeEach()**: Set up common test state using beforeEach() hooks to reduce duplication.+8. **Avoid Test Dependencies**: Tests should not depend on the state or output from other tests.+9. **Test Public API**: Focus on testing the public API and observable behavior, not private implementation.+10. **Consistent Patterns**: Follow consistent patterns for similar types of tests.++Writing Unit Tests++- Use Vitest's expressive syntax:++ ```javascript+ import { describe, it, expect } from "vitest";+ import { computeValue } from "~/lib/utils";++ describe("computeValue", () => {+ it("should compute the correct value for valid input", () => {+ const result = computeValue(5, 10);+ expect(result).toBe(15);+ });++ it("should return zero for negative inputs", () => {+ const result = computeValue(-5, -10);+ expect(result).toBe(0);+ });+ });+ ```++- Group related tests with describe():++ ```javascript+ describe("Field visibility logic", () => {+ it("shows field when visibility flag is true", () => {+ const field = { hidden: false };+ expect(isFieldVisible(field)).toBe(true);+ });++ it("hides field when visibility flag is false", () => {+ const field = { hidden: true };+ expect(isFieldVisible(field)).toBe(false);+ });+ });+ ```++- Use beforeEach() for common setup:++ ```javascript+ describe("Form state", () => {+ let formData;++ beforeEach(() => {+ formData = {+ name: "",+ email: "",+ message: "",+ };+ });++ it("initializes with empty values", () => {+ expect(formData.name).toBe("");+ });+ });+ ```++- Mock dependencies:++ ```javascript+ import { vi, it, expect } from 'vitest'+ import { fetchUserData } from '~/api/users'++ vi.mock('~/api/users')++ it('handles user fetch correctly', () => {+ fetchUserData.mockResolvedValue({ id: 1, name: 'John' })+ const result = await getUser(1)+ expect(result.name).toBe('John')+ })+ ```++- Test edge cases:++ ```javascript+ it("handles empty string input gracefully", () => {+ const result = formatFieldName("");+ expect(result).toBe(null);+ });++ it("handles very long strings without breaking", () => {+ const longString = "a".repeat(1000);+ expect(() => formatFieldName(longString)).not.toThrow();+ });+ ```++Testing Composables++- Test composables by calling them in isolation:++ ```javascript+ import { useFieldState } from "~/lib/forms/composables/useFieldState";+ import { ref } from "vue";++ describe("useFieldState", () => {+ it("returns correct field state", () => {+ const mockData = ref({ field1: "value" });+ const mockConfig = ref({ properties: [] });+ const mockStrategy = ref({});++ const fieldState = useFieldState(+ mockData,+ mockConfig,+ mockStrategy+ );+ expect(fieldState).toBeDefined();+ });+ });+ ```++- Use beforeEach() to set up mocks:+ ```javascript+ beforeEach(() => {+ mockFormData.value = {+ name: "Test",+ hidden: false,+ };+ });+ ```++Testing Vue Components++- Use Nuxt Test Utils for component tests:++ ```javascript+ import { describe, it, expect } from "vitest";+ import { mount } from "@vue/test-utils";+ import MyComponent from "~/components/MyComponent.vue";++ describe("MyComponent", () => {+ it("renders correctly", () => {+ const wrapper = mount(MyComponent, {+ props: { title: "Test" },+ });+ expect(wrapper.find("h1").text()).toBe("Test");+ });++ it("emits event on button click", async () => {+ const wrapper = mount(MyComponent);+ await wrapper.find("button").trigger("click");+ expect(wrapper.emitted()).toHaveProperty("click");+ });+ });+ ```++- Test user interactions:++ ```javascript+ it("updates input value on user typing", async () => {+ const wrapper = mount(TextInput);+ const input = wrapper.find("input");+ await input.setValue("hello");+ expect(wrapper.vm.modelValue).toBe("hello");+ });+ ```++- Test conditional rendering:+ ```javascript+ it("shows error message when validation fails", async () => {+ const wrapper = mount(FormField, {+ props: { error: "Required field" },+ });+ expect(wrapper.find(".error").text()).toContain("Required field");+ });+ ```++Testing Strategy Patterns++- Test strategy pattern implementations (like FormModeStrategy):++ ```javascript+ describe("FormModeStrategy", () => {+ it("LIVE mode should not show hidden fields", () => {+ const strategy = createFormModeStrategy(FormMode.LIVE);+ expect(strategy.display.showHiddenFields).toBe(false);+ });++ it("EDIT mode should show hidden fields", () => {+ const strategy = createFormModeStrategy(FormMode.EDIT);+ expect(strategy.display.showHiddenFields).toBe(true);+ });+ });+ ```++Running Tests++- Run all tests: `npm run test`+- Run tests with UI dashboard: `npm run test:ui`+- Run tests in watch mode: `npm run test -- --watch`+- Run a specific test file: `npm run test -- hidden-field-indicator.spec.ts`+- Run tests matching a pattern: `npm run test -- --grep "hidden field"`+- Run only unit tests: `npm run test test/unit`+- Run only Nuxt tests: `npm run test test/nuxt`+- Run with coverage: `npm run test -- --coverage`++Test Debugging++- Use console.log() or similar for debugging (output visible in test results).+- Use Vitest UI (`npm run test:ui`) for interactive debugging.+- Mark tests with `.only` to focus on specific tests during debugging: `it.only('test name', () => {})`+- Skip tests temporarily with `.skip`: `it.skip('test name', () => {})`+- Check test output for detailed error messages and stack traces.+- Use `--inspect-brk` flag for Node debugger: `npm run test -- --inspect-brk`++Common Testing Patterns++- Testing computed/reactive properties:++ ```javascript+ it("recomputes when dependency changes", () => {+ const inputValue = ref("initial");+ const computed = computed(() => inputValue.value.toUpperCase());+ expect(computed.value).toBe("INITIAL");+ inputValue.value = "changed";+ expect(computed.value).toBe("CHANGED");+ });+ ```++- Testing error handling:++ ```javascript+ it("handles errors gracefully", async () => {+ const error = new Error("Network failed");+ expect(() => {+ processData(null);+ }).toThrow();+ });+ ```++- Testing async operations:+ ```javascript+ it("resolves async operation correctly", async () => {+ const result = await fetchData();+ expect(result).toBeDefined();+ });+ ```diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.ymlindex 349b60fd4..44ae61469 100644--- a/.github/workflows/ci-cd.yml+++ b/.github/workflows/ci-cd.yml@@ -61,7 +61,7 @@ jobs:client_lint:runs-on: ubuntu-latest- name: Run client linters+ name: Run client linters + testsdefaults:run:working-directory: ./client@@ -88,6 +88,9 @@ jobs:- name: Run ESLintrun: npm run lint+ - name: Run front-end tests+ run: npm run test -- --run+tests:runs-on: ubuntu-latestdiff --git a/client/nuxt.config.ts b/client/nuxt.config.tsindex 27c28717f..fb784102c 100644--- a/client/nuxt.config.ts+++ b/client/nuxt.config.ts@@ -7,7 +7,8 @@ export default defineNuxtConfig({devtools: {enabled: true},css: ['~/css/app.css'],- modules: [+ // Disable certain plugins during testing+ modules: process.env.VITEST ? [] : ['@pinia/nuxt','@vueuse/nuxt','@vueuse/motion/nuxt',@@ -20,6 +21,13 @@ export default defineNuxtConfig({'@zadigetvoltaire/nuxt-gtm',],+ // Skip plugin initialization during tests+ plugins: process.env.VITEST ? [+ // Only include plugins safe for testing+ ] : [+ // Full plugin list for production/dev+ ],+build: {transpile: ["vue-notion", "vue-signature-pad", "@zxing/library"],},diff --git a/client/package-lock.json b/client/package-lock.jsonindex 8c7e03727..aa8f16467 100644--- a/client/package-lock.json+++ b/client/package-lock.json@@ -70,18 +70,24 @@"@iconify-json/tabler": "^1.2.1","@nuxt/eslint-config": "^1.3.0","@nuxt/icon": "^1.12.0",+ "@nuxt/test-utils": "^3.19.2","@nuxtjs/i18n": "^9.0.0","@nuxtjs/sitemap": "^7.2.0",+ "@vitest/ui": "^3.2.4",+ "@vue/test-utils": "^2.4.6","autoprefixer": "^10.4.20","eslint": "^9.0.0","eslint-config-prettier": "^9.1.0","eslint-plugin-prettier": "^5.2.1","eslint-plugin-vue": "^10.1.0",+ "happy-dom": "^12.10.3",+ "jsdom": "^26.1.0","nuxt": "^3.17.1","nuxt-utm": "^0.2.2","postcss": "^8.5.6","prettier": "^3.3.3","sass": "^1.80.2",+ "vitest": "^3.2.4","vue": "^3.5.13","vue-router": "^4.4.5"}@@ -180,6 +186,27 @@"url": "https://github.com/sponsors/antfu"}},+ "node_modules/@asamuzakjp/css-color": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-3.2.0.tgz",+ "integrity": "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@csstools/css-calc": "^2.1.3",+ "@csstools/css-color-parser": "^3.0.9",+ "@csstools/css-parser-algorithms": "^3.0.4",+ "@csstools/css-tokenizer": "^3.0.3",+ "lru-cache": "^10.4.3"+ }+ },+ "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "dev": true,+ "license": "ISC"+ },"node_modules/@babel/code-frame": {"version": "7.27.1","resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",@@ -785,6 +812,121 @@"node": ">=0.1.90"}},+ "node_modules/@csstools/color-helpers": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.1.0.tgz",+ "integrity": "sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT-0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@csstools/css-calc": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.4.tgz",+ "integrity": "sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^3.0.5",+ "@csstools/css-tokenizer": "^3.0.4"+ }+ },+ "node_modules/@csstools/css-color-parser": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.1.0.tgz",+ "integrity": "sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@csstools/color-helpers": "^5.1.0",+ "@csstools/css-calc": "^2.1.4"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^3.0.5",+ "@csstools/css-tokenizer": "^3.0.4"+ }+ },+ "node_modules/@csstools/css-parser-algorithms": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.5.tgz",+ "integrity": "sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@csstools/css-tokenizer": "^3.0.4"+ }+ },+ "node_modules/@csstools/css-tokenizer": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.4.tgz",+ "integrity": "sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },"node_modules/@dabh/diagnostics": {"version": "2.0.3","resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz",@@ -4000,6 +4142,85 @@"node": ">=18.12.0"}},+ "node_modules/@nuxt/test-utils": {+ "version": "3.19.2",+ "resolved": "https://registry.npmjs.org/@nuxt/test-utils/-/test-utils-3.19.2.tgz",+ "integrity": "sha512-jvpCbTNd1e8t2vrGAMpVq8j7N25Jao0NpblRiIYwogXgNXOPrH1XBZxgufyLA701g64SeiplUe+pddtnJnQu/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nuxt/kit": "^3.17.5",+ "c12": "^3.0.4",+ "consola": "^3.4.2",+ "defu": "^6.1.4",+ "destr": "^2.0.5",+ "estree-walker": "^3.0.3",+ "fake-indexeddb": "^6.0.1",+ "get-port-please": "^3.1.2",+ "h3": "^1.15.3",+ "local-pkg": "^1.1.1",+ "magic-string": "^0.30.17",+ "node-fetch-native": "^1.6.5",+ "node-mock-http": "^1.0.1",+ "ofetch": "^1.4.1",+ "pathe": "^2.0.3",+ "perfect-debounce": "^1.0.0",+ "radix3": "^1.1.2",+ "scule": "^1.3.0",+ "std-env": "^3.9.0",+ "tinyexec": "^1.0.1",+ "ufo": "^1.6.1",+ "unplugin": "^2.3.5",+ "vitest-environment-nuxt": "^1.0.1",+ "vue": "^3.5.17"+ },+ "engines": {+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"+ },+ "peerDependencies": {+ "@cucumber/cucumber": "^10.3.1 || ^11.0.0",+ "@jest/globals": "^29.5.0 || ^30.0.0",+ "@playwright/test": "^1.43.1",+ "@testing-library/vue": "^7.0.0 || ^8.0.1",+ "@vue/test-utils": "^2.4.2",+ "happy-dom": "^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",+ "jsdom": "^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0",+ "playwright-core": "^1.43.1",+ "vitest": "^3.2.0"+ },+ "peerDependenciesMeta": {+ "@cucumber/cucumber": {+ "optional": true+ },+ "@jest/globals": {+ "optional": true+ },+ "@playwright/test": {+ "optional": true+ },+ "@testing-library/vue": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "@vue/test-utils": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ },+ "playwright-core": {+ "optional": true+ },+ "vitest": {+ "optional": true+ }+ }+ },"node_modules/@nuxt/ui": {"version": "3.2.0","resolved": "https://registry.npmjs.org/@nuxt/ui/-/ui-3.2.0.tgz",@@ -5276,6 +5497,13 @@"url": "https://github.com/sponsors/harlan-zw"}},+ "node_modules/@one-ini/wasm": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.1.1.tgz",+ "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@opentelemetry/api": {"version": "1.9.0","resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz",@@ -8241,6 +8469,16 @@"tslib": "^2.4.0"}},+ "node_modules/@types/chai": {+ "version": "5.2.2",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz",+ "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/deep-eql": "*"+ }+ },"node_modules/@types/connect": {"version": "3.4.38","resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",@@ -8250,6 +8488,13 @@"@types/node": "*"}},+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/estree": {"version": "1.0.8","resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",@@ -8734,6 +8979,143 @@"vue": "^3.0.0"}},+ "node_modules/@vitest/expect": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz",+ "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/spy": "3.2.4",+ "@vitest/utils": "3.2.4",+ "chai": "^5.2.0",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz",+ "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "3.2.4",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.17"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz",+ "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz",+ "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "3.2.4",+ "pathe": "^2.0.3",+ "strip-literal": "^3.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz",+ "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "3.2.4",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz",+ "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^4.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/ui": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-3.2.4.tgz",+ "integrity": "sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "3.2.4",+ "fflate": "^0.8.2",+ "flatted": "^3.3.3",+ "pathe": "^2.0.3",+ "sirv": "^3.0.1",+ "tinyglobby": "^0.2.14",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "vitest": "3.2.4"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz",+ "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "3.2.4",+ "loupe": "^3.1.4",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },"node_modules/@vue-macros/common": {"version": "1.16.1","resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-1.16.1.tgz",@@ -8968,6 +9350,17 @@"integrity": "sha512-CabR+UN630VnsJO/jHWYBC1YVXyMq94KKp6iF5MQgZJs5I8cmjw6oVMO1oDbtBkENSHSSn/UadWlW/OAgdmKrg==","license": "MIT"},+ "node_modules/@vue/test-utils": {+ "version": "2.4.6",+ "resolved": "https://registry.npmjs.org/@vue/test-utils/-/test-utils-2.4.6.tgz",+ "integrity": "sha512-FMxEjOpYNYiFe0GkaHsnJPXFHxQ6m4t8vI/ElPGpMWxZKpmRvQ33OIrvRXemy6yha03RxhOlQuy+gZMC3CQSow==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-beautify": "^1.14.9",+ "vue-component-type-helpers": "^2.0.0"+ }+ },"node_modules/@vueuse/components": {"version": "11.3.0","resolved": "https://registry.npmjs.org/@vueuse/components/-/components-11.3.0.tgz",@@ -9882,8 +10275,18 @@"node": ">=10"}},- "node_modules/ast-kit": {- "version": "1.4.3",+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/ast-kit": {+ "version": "1.4.3","resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-1.4.3.tgz","integrity": "sha512-MdJqjpodkS5J149zN0Po+HPshkTdUyrvF7CKTafUgv69vBSPtncrj+3IiUgqdd7ElIEkbeXCsEouBUwLrw9Ilg==","license": "MIT",@@ -10324,6 +10727,23 @@],"license": "CC-BY-4.0"},+ "node_modules/chai": {+ "version": "5.3.3",+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^2.0.1",+ "check-error": "^2.1.1",+ "deep-eql": "^5.0.1",+ "loupe": "^3.1.0",+ "pathval": "^2.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/chalk": {"version": "5.4.1","resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",@@ -10349,6 +10769,16 @@"pnpm": ">=8"}},+ "node_modules/check-error": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",+ "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },"node_modules/chokidar": {"version": "4.0.3","resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",@@ -10667,6 +11097,24 @@"integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==","license": "MIT"},+ "node_modules/config-chain": {+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",+ "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ini": "^1.3.4",+ "proto-list": "~1.2.1"+ }+ },+ "node_modules/config-chain/node_modules/ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",+ "dev": true,+ "license": "ISC"+ },"node_modules/consola": {"version": "3.4.2","resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz",@@ -10891,6 +11339,13 @@"url": "https://github.com/sponsors/fb55"}},+ "node_modules/css.escape": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/cssesc": {"version": "3.0.0","resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",@@ -11012,6 +11467,20 @@"integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==","license": "CC0-1.0"},+ "node_modules/cssstyle": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.6.0.tgz",+ "integrity": "sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/css-color": "^3.2.0",+ "rrweb-cssom": "^0.8.0"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/csstype": {"version": "3.1.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",@@ -11027,6 +11496,67 @@"node": ">= 12"}},+ "node_modules/data-urls": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz",+ "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "whatwg-mimetype": "^4.0.0",+ "whatwg-url": "^14.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/data-urls/node_modules/tr46": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz",+ "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "punycode": "^2.3.1"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/data-urls/node_modules/webidl-conversions": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/data-urls/node_modules/whatwg-mimetype": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/data-urls/node_modules/whatwg-url": {+ "version": "14.2.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",+ "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tr46": "^5.1.0",+ "webidl-conversions": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/date-fns": {"version": "2.30.0","resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",@@ -11127,6 +11657,13 @@"node": ">=0.10.0"}},+ "node_modules/decimal.js": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/decode-uri-component": {"version": "0.4.1","resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz",@@ -11136,6 +11673,16 @@"node": ">=14.16"}},+ "node_modules/deep-eql": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/deep-is": {"version": "0.1.4","resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",@@ -11495,6 +12042,51 @@"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==","license": "MIT"},+ "node_modules/editorconfig": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-1.0.4.tgz",+ "integrity": "sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@one-ini/wasm": "0.1.1",+ "commander": "^10.0.0",+ "minimatch": "9.0.1",+ "semver": "^7.5.3"+ },+ "bin": {+ "editorconfig": "bin/editorconfig"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/editorconfig/node_modules/commander": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",+ "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/editorconfig/node_modules/minimatch": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz",+ "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/ee-first": {"version": "1.1.1","resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",@@ -12382,6 +12974,16 @@"url": "https://github.com/sindresorhus/execa?sponsor=1"}},+ "node_modules/expect-type": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz",+ "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },"node_modules/exsolve": {"version": "1.0.7","resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.7.tgz",@@ -12441,6 +13043,16 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/fake-indexeddb": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.2.3.tgz",+ "integrity": "sha512-idzJXFtDIHNShFZ9ssS8IdsRgAP0t9zwWvSdCKsWK2dgh2xcXA6/2Oteaxar5GJqmwzZXCrKRO6F5IEiR4yJzw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18"+ }+ },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -12590,6 +13202,13 @@"node": "^12.20 || >= 14.13"}},+ "node_modules/fflate": {+ "version": "0.8.2",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",+ "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",+ "dev": true,+ "license": "MIT"+ },"node_modules/file-entry-cache": {"version": "8.0.0","resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",@@ -13131,6 +13750,31 @@"h3": "^1.6.0"}},+ "node_modules/happy-dom": {+ "version": "12.10.3",+ "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-12.10.3.tgz",+ "integrity": "sha512-JzUXOh0wdNGY54oKng5hliuBkq/+aT1V3YpTM+lrN/GoLQTANZsMaIvmHiHe612rauHvPJnDZkZ+5GZR++1Abg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "css.escape": "^1.5.1",+ "entities": "^4.5.0",+ "iconv-lite": "^0.6.3",+ "webidl-conversions": "^7.0.0",+ "whatwg-encoding": "^2.0.0",+ "whatwg-mimetype": "^3.0.0"+ }+ },+ "node_modules/happy-dom/node_modules/webidl-conversions": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ }+ },"node_modules/has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",@@ -13195,6 +13839,32 @@"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==","license": "ISC"},+ "node_modules/html-encoding-sniffer": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",+ "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "whatwg-encoding": "^3.1.1"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/html-encoding-sniffer/node_modules/whatwg-encoding": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "iconv-lite": "0.6.3"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/http-errors": {"version": "2.0.0","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",@@ -13220,6 +13890,30 @@"node": ">= 0.8"}},+ "node_modules/http-proxy-agent": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/http-proxy-agent/node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },"node_modules/http-shutdown": {"version": "1.2.2","resolved": "https://registry.npmjs.org/http-shutdown/-/http-shutdown-1.2.2.tgz",@@ -13258,6 +13952,19 @@"node": ">=16.17.0"}},+ "node_modules/iconv-lite": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/ieee754": {"version": "1.2.1","resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",@@ -13611,6 +14318,13 @@"node": ">=0.10.0"}},+ "node_modules/is-potential-custom-element-name": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/is-reference": {"version": "1.2.1","resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",@@ -13737,48 +14451,271 @@"@pkgjs/parseargs": "^0.11.0"}},- "node_modules/jiti": {- "version": "2.4.2",- "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",- "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",+ "node_modules/jiti": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",+ "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/js-beautify": {+ "version": "1.15.4",+ "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.15.4.tgz",+ "integrity": "sha512-9/KXeZUKKJwqCXUdBxFJ3vPh467OCckSBmYDwSK/EtV090K+iMJ7zx2S3HLVDIWFQdqMIsZWbnaGiba18aWhaA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "config-chain": "^1.1.13",+ "editorconfig": "^1.0.4",+ "glob": "^10.4.2",+ "js-cookie": "^3.0.5",+ "nopt": "^7.2.1"+ },+ "bin": {+ "css-beautify": "js/bin/css-beautify.js",+ "html-beautify": "js/bin/html-beautify.js",+ "js-beautify": "js/bin/js-beautify.js"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/js-beautify/node_modules/abbrev": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz",+ "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"+ }+ },+ "node_modules/js-beautify/node_modules/glob": {+ "version": "10.4.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",+ "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/js-beautify/node_modules/minipass": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/js-beautify/node_modules/nopt": {+ "version": "7.2.1",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-7.2.1.tgz",+ "integrity": "sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "abbrev": "^2.0.0"+ },+ "bin": {+ "nopt": "bin/nopt.js"+ },+ "engines": {+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"+ }+ },+ "node_modules/js-cookie": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz",+ "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/js-sha256": {+ "version": "0.10.1",+ "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.10.1.tgz",+ "integrity": "sha512-5obBtsz9301ULlsgggLg542s/jqtddfOpV5KJc4hajc9JV8GeY2gZHSVpYBn4nWqAUTJ9v+xwtbJ1mIBgIH5Vw==",+ "license": "MIT"+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/jsdoc-type-pratt-parser": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.1.0.tgz",+ "integrity": "sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/jsdom": {+ "version": "26.1.0",+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-26.1.0.tgz",+ "integrity": "sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssstyle": "^4.2.1",+ "data-urls": "^5.0.0",+ "decimal.js": "^10.5.0",+ "html-encoding-sniffer": "^4.0.0",+ "http-proxy-agent": "^7.0.2",+ "https-proxy-agent": "^7.0.6",+ "is-potential-custom-element-name": "^1.0.1",+ "nwsapi": "^2.2.16",+ "parse5": "^7.2.1",+ "rrweb-cssom": "^0.8.0",+ "saxes": "^6.0.0",+ "symbol-tree": "^3.2.4",+ "tough-cookie": "^5.1.1",+ "w3c-xmlserializer": "^5.0.0",+ "webidl-conversions": "^7.0.0",+ "whatwg-encoding": "^3.1.1",+ "whatwg-mimetype": "^4.0.0",+ "whatwg-url": "^14.1.1",+ "ws": "^8.18.0",+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "canvas": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "canvas": {+ "optional": true+ }+ }+ },+ "node_modules/jsdom/node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/jsdom/node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/jsdom/node_modules/tr46": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz",+ "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "punycode": "^2.3.1"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/jsdom/node_modules/webidl-conversions": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/jsdom/node_modules/whatwg-encoding": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",+ "dev": true,"license": "MIT",- "bin": {- "jiti": "lib/jiti-cli.mjs"+ "dependencies": {+ "iconv-lite": "0.6.3"+ },+ "engines": {+ "node": ">=18"}},- "node_modules/js-sha256": {- "version": "0.10.1",- "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.10.1.tgz",- "integrity": "sha512-5obBtsz9301ULlsgggLg542s/jqtddfOpV5KJc4hajc9JV8GeY2gZHSVpYBn4nWqAUTJ9v+xwtbJ1mIBgIH5Vw==",- "license": "MIT"- },- "node_modules/js-tokens": {+ "node_modules/jsdom/node_modules/whatwg-mimetype": {"version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "license": "MIT"+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }},- "node_modules/js-yaml": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",- "devOptional": true,+ "node_modules/jsdom/node_modules/whatwg-url": {+ "version": "14.2.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",+ "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==",+ "dev": true,"license": "MIT","dependencies": {- "argparse": "^2.0.1"+ "tr46": "^5.1.0",+ "webidl-conversions": "^7.0.0"},- "bin": {- "js-yaml": "bin/js-yaml.js"+ "engines": {+ "node": ">=18"}},- "node_modules/jsdoc-type-pratt-parser": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.1.0.tgz",- "integrity": "sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==",+ "node_modules/jsdom/node_modules/xml-name-validator": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","engines": {- "node": ">=12.0.0"+ "node": ">=18"}},"node_modules/jsesc": {@@ -14441,6 +15378,13 @@"node": ">= 12.0.0"}},+ "node_modules/loupe": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/lru-cache": {"version": "5.1.1","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",@@ -16525,6 +17469,13 @@"@oxc-parser/binding-win32-x64-msvc": "0.72.3"}},+ "node_modules/nwsapi": {+ "version": "2.2.22",+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.22.tgz",+ "integrity": "sha512-ujSMe1OWVn55euT1ihwCI1ZcAaAU3nxUiDwfDQldc51ZXaB9m2AyOn6/jh1BLe2t/G8xd6uKG1UBF2aZJeg2SQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/nypm": {"version": "0.6.0","resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.0.tgz",@@ -16941,6 +17892,32 @@"node": ">=14.13.0"}},+ "node_modules/parse5": {+ "version": "7.3.0",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",+ "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "entities": "^6.0.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "node_modules/parse5/node_modules/entities": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },"node_modules/parseurl": {"version": "1.3.3","resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",@@ -17032,6 +18009,16 @@"integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==","license": "MIT"},+ "node_modules/pathval": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.16"+ }+ },"node_modules/pend": {"version": "1.2.0","resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",@@ -17904,6 +18891,13 @@"node": ">= 6"}},+ "node_modules/proto-list": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",+ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==",+ "dev": true,+ "license": "ISC"+ },"node_modules/protocols": {"version": "2.0.2","resolved": "https://registry.npmjs.org/protocols/-/protocols-2.0.2.tgz",@@ -18673,6 +19667,13 @@"node": ">= 8"}},+ "node_modules/rrweb-cssom": {+ "version": "0.8.0",+ "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz",+ "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/run-applescript": {"version": "7.0.0","resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz",@@ -18737,6 +19738,13 @@"node": ">=10"}},+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/sass": {"version": "1.89.2","resolved": "https://registry.npmjs.org/sass/-/sass-1.89.2.tgz",@@ -18764,6 +19772,19 @@"integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==","license": "ISC"},+ "node_modules/saxes": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "xmlchars": "^2.2.0"+ },+ "engines": {+ "node": ">=v12.22.7"+ }+ },"node_modules/scslre": {"version": "0.3.0","resolved": "https://registry.npmjs.org/scslre/-/scslre-0.3.0.tgz",@@ -18987,6 +20008,13 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },"node_modules/signal-exit": {"version": "4.1.0","resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",@@ -19192,6 +20220,13 @@"node": "*"}},+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/standard-as-callback": {"version": "2.1.0","resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz",@@ -19542,6 +20577,13 @@"node": ">=16"}},+ "node_modules/symbol-tree": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",+ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/synckit": {"version": "0.11.8","resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.8.tgz",@@ -19718,6 +20760,13 @@"integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==","license": "MIT"},+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/tinyexec": {"version": "1.0.1","resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.1.tgz",@@ -19749,6 +20798,56 @@"node": ">=10"}},+ "node_modules/tinypool": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",+ "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz",+ "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tldts": {+ "version": "6.1.86",+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz",+ "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tldts-core": "^6.1.86"+ },+ "bin": {+ "tldts": "bin/cli.js"+ }+ },+ "node_modules/tldts-core": {+ "version": "6.1.86",+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz",+ "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/tmp": {"version": "0.2.3","resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz",@@ -19812,6 +20911,19 @@"node": ">=6"}},+ "node_modules/tough-cookie": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz",+ "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "tldts": "^6.1.32"+ },+ "engines": {+ "node": ">=16"+ }+ },"node_modules/tr46": {"version": "0.0.3","resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",@@ -21441,6 +22553,96 @@"@esbuild/win32-x64": "0.25.6"}},+ "node_modules/vitest": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz",+ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/expect": "3.2.4",+ "@vitest/mocker": "3.2.4",+ "@vitest/pretty-format": "^3.2.4",+ "@vitest/runner": "3.2.4",+ "@vitest/snapshot": "3.2.4",+ "@vitest/spy": "3.2.4",+ "@vitest/utils": "3.2.4",+ "chai": "^5.2.0",+ "debug": "^4.4.1",+ "expect-type": "^1.2.1",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3",+ "picomatch": "^4.0.2",+ "std-env": "^3.9.0",+ "tinybench": "^2.9.0",+ "tinyexec": "^0.3.2",+ "tinyglobby": "^0.2.14",+ "tinypool": "^1.1.1",+ "tinyrainbow": "^2.0.0",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",+ "vite-node": "3.2.4",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/debug": "^4.1.12",+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "@vitest/browser": "3.2.4",+ "@vitest/ui": "3.2.4",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/debug": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/vitest-environment-nuxt": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/vitest-environment-nuxt/-/vitest-environment-nuxt-1.0.1.tgz",+ "integrity": "sha512-eBCwtIQriXW5/M49FjqNKfnlJYlG2LWMSNFsRVKomc8CaMqmhQPBS5LZ9DlgYL9T8xIVsiA6RZn2lk7vxov3Ow==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nuxt/test-utils": ">=3.13.1"+ }+ },+ "node_modules/vitest/node_modules/tinyexec": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/vscode-uri": {"version": "3.1.0","resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz",@@ -21684,6 +22886,29 @@"integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==","license": "MIT"},+ "node_modules/w3c-xmlserializer": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/w3c-xmlserializer/node_modules/xml-name-validator": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18"+ }+ },"node_modules/web-streams-polyfill": {"version": "3.3.3","resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",@@ -21723,6 +22948,29 @@"integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==","license": "MIT"},+ "node_modules/whatwg-encoding": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz",+ "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "iconv-lite": "0.6.3"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/whatwg-mimetype": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz",+ "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },"node_modules/whatwg-url": {"version": "5.0.0","resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",@@ -21763,6 +23011,23 @@"integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==","license": "ISC"},+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/winston": {"version": "3.17.0","resolved": "https://registry.npmjs.org/winston/-/winston-3.17.0.tgz",@@ -21991,6 +23256,13 @@"node": ">=12"}},+ "node_modules/xmlchars": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/xtend": {"version": "4.0.2","resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",diff --git a/client/package.json b/client/package.jsonindex 2bdbc4629..5200fa542 100644--- a/client/package.json+++ b/client/package.json@@ -10,7 +10,9 @@"preview": "nuxt preview","postinstall": "nuxt prepare","lint": "eslint --ext .js,.vue .",- "lint:fix": "eslint . --fix --ext .js,.vue"+ "lint:fix": "eslint . --fix --ext .js,.vue",+ "test": "VITEST=true vitest",+ "test:ui": "VITEST=true vitest --ui"},"devDependencies": {"@iconify-json/clarity": "^1.2.1",@@ -21,18 +23,24 @@"@iconify-json/tabler": "^1.2.1","@nuxt/eslint-config": "^1.3.0","@nuxt/icon": "^1.12.0",+ "@nuxt/test-utils": "^3.19.2","@nuxtjs/i18n": "^9.0.0","@nuxtjs/sitemap": "^7.2.0",+ "@vitest/ui": "^3.2.4",+ "@vue/test-utils": "^2.4.6","autoprefixer": "^10.4.20","eslint": "^9.0.0","eslint-config-prettier": "^9.1.0","eslint-plugin-prettier": "^5.2.1","eslint-plugin-vue": "^10.1.0",+ "happy-dom": "^12.10.3",+ "jsdom": "^26.1.0","nuxt": "^3.17.1","nuxt-utm": "^0.2.2","postcss": "^8.5.6","prettier": "^3.3.3","sass": "^1.80.2",+ "vitest": "^3.2.4","vue": "^3.5.13","vue-router": "^4.4.5"},diff --git a/client/test/nuxt/block-renderer.component.spec.ts b/client/test/nuxt/block-renderer.component.spec.tsnew file mode 100644index 000000000..e33d229fb--- /dev/null+++ b/client/test/nuxt/block-renderer.component.spec.ts@@ -0,0 +1,198 @@+import { describe, it, expect, vi } from 'vitest'+import { ref } from 'vue'+import { FormMode, createFormModeStrategy } from '~/lib/forms/FormModeStrategy'+import { useFieldState } from '~/lib/forms/composables/useFieldState'++/**+ * BlockRenderer label computation tests - focuses on the core label logic+ * without the overhead of component mounting+ *+ * Tests validate that BlockRenderer correctly computes labels based on:+ * 1. Field hidden status+ * 2. Form mode (LIVE, READ_ONLY, EDIT, etc)+ * 3. Strategy's showHiddenFields flag+ */+describe('BlockRenderer - Label Computation Logic', () => {+ /**+ * Simulate BlockRenderer's boundProps.label computation+ * This is the actual logic from BlockRenderer.vue line 145+ */+ function computeLabel(field, fieldState) {+ if (field.hide_field_name) {+ return null+ }+ return field.name + (fieldState.hiddenIndicator ? ' (Hidden Field)' : '')+ }++ describe('LIVE mode - Public form submission', () => {+ it('hidden field renders label WITHOUT "(Hidden Field)" indicator', () => {+ const mockConfig = ref({+ properties: [+ { id: 'secret', name: 'Secret Data', hidden: true },+ ],+ })+ const mockData = ref({ secret: 'value' })+ const strategy = createFormModeStrategy(FormMode.LIVE)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const field = mockConfig.value.properties[0]+ const state = fieldState.getState(field)+ const label = computeLabel(field, state)++ // In LIVE mode, hidden fields show name WITHOUT indicator+ expect(label).toBe('Secret Data')+ expect(label).not.toContain('(Hidden Field)')+ })++ it('visible field renders label WITHOUT indicator in LIVE mode', () => {+ const mockConfig = ref({+ properties: [+ { id: 'name', name: 'Full Name', hidden: false },+ ],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.LIVE)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const field = mockConfig.value.properties[0]+ const state = fieldState.getState(field)+ const label = computeLabel(field, state)++ expect(label).toBe('Full Name')+ expect(label).not.toContain('(Hidden Field)')+ })+ })++ describe('READ_ONLY mode - ViewSubmissionModal', () => {+ it('hidden field renders label WITH "(Hidden Field)" indicator', () => {+ const mockConfig = ref({+ properties: [+ { id: 'secret', name: 'Internal ID', hidden: true },+ ],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const field = mockConfig.value.properties[0]+ const state = fieldState.getState(field)+ const label = computeLabel(field, state)++ // In READ_ONLY mode, hidden fields show indicator+ expect(label).toBe('Internal ID (Hidden Field)')+ expect(label).toContain('(Hidden Field)')+ })++ it('visible field renders label WITHOUT indicator in READ_ONLY mode', () => {+ const mockConfig = ref({+ properties: [+ { id: 'name', name: 'User Name', hidden: false },+ ],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const field = mockConfig.value.properties[0]+ const state = fieldState.getState(field)+ const label = computeLabel(field, state)++ expect(label).toBe('User Name')+ expect(label).not.toContain('(Hidden Field)')+ })+ })++ describe('EDIT mode - EditSubmissionModal', () => {+ it('hidden field renders label WITH "(Hidden Field)" indicator', () => {+ const mockConfig = ref({+ properties: [+ { id: 'ref', name: 'Reference Number', hidden: true },+ ],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.EDIT)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const field = mockConfig.value.properties[0]+ const state = fieldState.getState(field)+ const label = computeLabel(field, state)++ // In EDIT mode, hidden fields show indicator+ expect(label).toBe('Reference Number (Hidden Field)')+ expect(label).toContain('(Hidden Field)')+ })++ it('respects hide_field_name flag - returns null when true', () => {+ const field = {+ id: 'secret',+ name: 'Secret Field',+ hidden: true,+ hide_field_name: true, // This should hide the label+ }++ const mockConfig = ref({ properties: [field] })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const state = fieldState.getState(field)+ const label = computeLabel(field, state)++ // When hide_field_name is true, no label is generated+ expect(label).toBe(null)+ })+ })++ describe('Field state hiddenIndicator flag control', () => {+ it('LIVE mode sets hiddenIndicator = false for hidden fields', () => {+ const mockConfig = ref({+ properties: [{ id: 'x', name: 'Test', hidden: true }],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.LIVE)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const state = fieldState.getState(mockConfig.value.properties[0])+ expect(state.hiddenIndicator).toBe(false)+ })++ it('READ_ONLY mode sets hiddenIndicator = true for hidden fields', () => {+ const mockConfig = ref({+ properties: [{ id: 'x', name: 'Test', hidden: true }],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const state = fieldState.getState(mockConfig.value.properties[0])+ expect(state.hiddenIndicator).toBe(true)+ })++ it('EDIT mode sets hiddenIndicator = true for hidden fields', () => {+ const mockConfig = ref({+ properties: [{ id: 'x', name: 'Test', hidden: true }],+ })+ const mockData = ref({})+ const strategy = createFormModeStrategy(FormMode.EDIT)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))++ const state = fieldState.getState(mockConfig.value.properties[0])+ expect(state.hiddenIndicator).toBe(true)+ })++ it('never sets hiddenIndicator for visible fields', () => {+ const mockConfig = ref({+ properties: [{ id: 'x', name: 'Test', hidden: false }],+ })+ const mockData = ref({})++ ;[FormMode.LIVE, FormMode.READ_ONLY, FormMode.EDIT].forEach(mode => {+ const strategy = createFormModeStrategy(mode)+ const fieldState = useFieldState(mockData, mockConfig, ref(strategy))+ const state = fieldState.getState(mockConfig.value.properties[0])++ expect(state.hiddenIndicator).toBe(false)+ })+ })+ })+})diff --git a/client/test/nuxt/hidden-field-indicator.spec.ts b/client/test/nuxt/hidden-field-indicator.spec.tsnew file mode 100644index 000000000..91509448c--- /dev/null+++ b/client/test/nuxt/hidden-field-indicator.spec.ts@@ -0,0 +1,287 @@+// @vitest-environment node+import { describe, it, expect } from 'vitest'+import { ref } from 'vue'+import { FormMode, createFormModeStrategy } from '~/lib/forms/FormModeStrategy'+import { useFieldState } from '~/lib/forms/composables/useFieldState'++/**+ * Consolidated test suite for hidden field indicator behavior.+ *+ * Tests that:+ * - Hidden fields display "(Hidden Field)" indicator ONLY in admin contexts (READ_ONLY, EDIT)+ * - Hidden fields are hidden from public users (LIVE mode)+ * - Field state correctly computes hiddenIndicator based on form mode+ * - Label generation works correctly across all scenarios+ * - Edge cases and consistency are maintained+ */+describe('Hidden Field Indicator', () => {+ const mockFormConfig = ref({+ id: 1,+ name: 'Test Form',+ properties: [+ {+ id: 'field-1',+ name: 'Regular Field',+ type: 'text',+ hidden: false,+ required: false,+ hide_field_name: false,+ },+ {+ id: 'field-2',+ name: 'Hidden Field',+ type: 'text',+ hidden: true,+ required: false,+ hide_field_name: false,+ },+ ],+ color: '#3b82f6',+ presentation_style: 'classic',+ })++ const mockFormData = ref({+ 'field-1': 'value1',+ 'field-2': 'value2',+ })++ function generateLabel(field, hiddenIndicator) {+ if (field.hide_field_name) {+ return null+ }+ return field.name + (hiddenIndicator ? ' (Hidden Field)' : '')+ }++ describe('Strategy flag validation', () => {+ it('LIVE mode should have showHiddenFields = false', () => {+ const strategy = createFormModeStrategy(FormMode.LIVE)+ expect(strategy.display.showHiddenFields).toBe(false)+ })++ it('READ_ONLY mode should have showHiddenFields = true', () => {+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ expect(strategy.display.showHiddenFields).toBe(true)+ })++ it('EDIT mode should have showHiddenFields = true', () => {+ const strategy = createFormModeStrategy(FormMode.EDIT)+ expect(strategy.display.showHiddenFields).toBe(true)+ })++ it('PREFILL mode should have showHiddenFields = true', () => {+ const strategy = createFormModeStrategy(FormMode.PREFILL)+ expect(strategy.display.showHiddenFields).toBe(true)+ })++ it('TEST, PREVIEW, TEMPLATE modes set showHiddenFields = false', () => {+ const testModes = [FormMode.TEST, FormMode.PREVIEW, FormMode.TEMPLATE]+ testModes.forEach(mode => {+ const strategy = createFormModeStrategy(mode)+ expect(strategy.display.showHiddenFields).toBe(false)+ })+ })+ })++ describe('Field state hiddenIndicator computation', () => {+ it('LIVE mode: hidden fields do NOT show indicator', () => {+ const strategy = createFormModeStrategy(FormMode.LIVE)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const hiddenField = mockFormConfig.value.properties[1]+ const state = fieldState.getState(hiddenField)++ expect(state.hiddenIndicator).toBe(false)+ })++ it('READ_ONLY mode: hidden fields DO show indicator', () => {+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const hiddenField = mockFormConfig.value.properties[1]+ const state = fieldState.getState(hiddenField)++ expect(state.hiddenIndicator).toBe(true)+ })++ it('EDIT mode: hidden fields DO show indicator', () => {+ const strategy = createFormModeStrategy(FormMode.EDIT)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const hiddenField = mockFormConfig.value.properties[1]+ const state = fieldState.getState(hiddenField)++ expect(state.hiddenIndicator).toBe(true)+ })++ it('visible fields never show indicator regardless of mode', () => {+ const visibleField = mockFormConfig.value.properties[0]++ ;[FormMode.LIVE, FormMode.READ_ONLY, FormMode.EDIT, FormMode.TEST, FormMode.PREVIEW].forEach(mode => {+ const strategy = createFormModeStrategy(mode)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const state = fieldState.getState(visibleField)++ expect(state.hiddenIndicator).toBe(false)+ })+ })+ })++ describe('Label generation logic', () => {+ it('LIVE mode: hidden field label without indicator', () => {+ const hiddenField = mockFormConfig.value.properties[1]+ const strategy = createFormModeStrategy(FormMode.LIVE)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const state = fieldState.getState(hiddenField)+ const label = generateLabel(hiddenField, state.hiddenIndicator)++ expect(label).toBe('Hidden Field')+ expect(label).not.toContain('(Hidden Field)')+ })++ it('READ_ONLY mode: hidden field label with indicator', () => {+ const hiddenField = mockFormConfig.value.properties[1]+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const state = fieldState.getState(hiddenField)+ const label = generateLabel(hiddenField, state.hiddenIndicator)++ expect(label).toBe('Hidden Field (Hidden Field)')+ expect(label).toContain('(Hidden Field)')+ })++ it('EDIT mode: hidden field label with indicator', () => {+ const hiddenField = mockFormConfig.value.properties[1]+ const strategy = createFormModeStrategy(FormMode.EDIT)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const state = fieldState.getState(hiddenField)+ const label = generateLabel(hiddenField, state.hiddenIndicator)++ expect(label).toBe('Hidden Field (Hidden Field)')+ expect(label).toContain('(Hidden Field)')+ })++ it('respects hide_field_name flag regardless of mode', () => {+ const hiddenField = { ...mockFormConfig.value.properties[1], hide_field_name: true }++ ;[FormMode.LIVE, FormMode.READ_ONLY, FormMode.EDIT].forEach(mode => {+ const strategy = createFormModeStrategy(mode)+ const fieldState = useFieldState(mockFormData, mockFormConfig, ref(strategy))+ const state = fieldState.getState(hiddenField)+ const label = generateLabel(hiddenField, state.hiddenIndicator)++ expect(label).toBe(null)+ })+ })+ })++ describe('Edge cases', () => {+ it('handles multiple hidden fields correctly', () => {+ const multiFieldConfig = ref({+ properties: [+ { id: '1', hidden: true, name: 'Hidden 1' },+ { id: '2', hidden: true, name: 'Hidden 2' },+ { id: '3', hidden: false, name: 'Visible' },+ { id: '4', hidden: true, name: 'Hidden 3' },+ ],+ })+ const formData = ref({})+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(formData, multiFieldConfig, ref(strategy))++ // All hidden fields should get indicator+ ;[0, 1, 3].forEach(index => {+ const state = fieldState.getState(multiFieldConfig.value.properties[index])+ expect(state.hiddenIndicator).toBe(true)+ })++ // Visible field should not+ const visibleState = fieldState.getState(multiFieldConfig.value.properties[2])+ expect(visibleState.hiddenIndicator).toBe(false)+ })++ it('field state consistency across multiple calls', () => {+ const formConfig = ref({+ properties: [{ id: '1', hidden: true, name: 'Hidden' }],+ })+ const formData = ref({})+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(formData, formConfig, ref(strategy))++ const field = formConfig.value.properties[0]+ const state1 = fieldState.getState(field)+ const state2 = fieldState.getState(field)+ const state3 = fieldState.getState(field)++ expect(state1.hiddenIndicator).toBe(true)+ expect(state2.hiddenIndicator).toBe(true)+ expect(state3.hiddenIndicator).toBe(true)+ expect(state1).toEqual(state2)+ expect(state2).toEqual(state3)+ })+ })++ describe('Integration: Real-world scenarios', () => {+ it('ViewSubmissionModal: admin views submission in READ_ONLY mode', () => {+ const formConfig = ref({+ id: 'form-1',+ properties: [+ { id: 'name', hidden: false, name: 'Full Name' },+ { id: 'secret', hidden: true, name: 'Secret ID' },+ { id: 'email', hidden: false, name: 'Email' },+ ],+ })+ const formData = ref({+ name: 'John Doe',+ secret: 'XYZ123',+ email: '[email protected]',+ })+ const strategy = createFormModeStrategy(FormMode.READ_ONLY)+ const fieldState = useFieldState(formData, formConfig, ref(strategy))++ const nameState = fieldState.getState(formConfig.value.properties[0])+ const secretState = fieldState.getState(formConfig.value.properties[1])+ const emailState = fieldState.getState(formConfig.value.properties[2])++ expect(nameState.hiddenIndicator).toBe(false)+ expect(emailState.hiddenIndicator).toBe(false)+ expect(secretState.hiddenIndicator).toBe(true)+ expect(strategy.display.disableFields).toBe(true)+ })++ it('EditSubmissionModal: admin edits submission in EDIT mode', () => {+ const formConfig = ref({+ id: 'form-1',+ properties: [+ { id: 'name', hidden: false, name: 'Full Name' },+ { id: 'internal', hidden: true, name: 'Internal Reference' },+ ],+ })+ const formData = ref({+ name: 'Jane Smith',+ internal: 'REF-2024-001',+ })+ const strategy = createFormModeStrategy(FormMode.EDIT)+ const fieldState = useFieldState(formData, formConfig, ref(strategy))++ const internalState = fieldState.getState(formConfig.value.properties[1])++ expect(internalState.hiddenIndicator).toBe(true)+ expect(strategy.display.forceClassicPresentation).toBe(true)+ })++ it('public form: user sees no hidden field indicator in LIVE mode', () => {+ const formConfig = ref({+ id: 'form-1',+ properties: [+ { id: 'name', hidden: false, name: 'Name' },+ { id: 'promo', hidden: true, name: 'Promo Code' },+ ],+ })+ const formData = ref({})+ const strategy = createFormModeStrategy(FormMode.LIVE)+ const fieldState = useFieldState(formData, formConfig, ref(strategy))++ const promoState = fieldState.getState(formConfig.value.properties[1])++ expect(promoState.hiddenIndicator).toBe(false)+ expect(strategy.display.showHiddenFields).toBe(false)+ })+ })+})diff --git a/client/vitest.config.ts b/client/vitest.config.tsnew file mode 100644index 000000000..2186d9917--- /dev/null+++ b/client/vitest.config.ts@@ -0,0 +1,31 @@+import { defineConfig } from 'vitest/config'+import { defineVitestProject } from '@nuxt/test-utils/config'++export default defineConfig({+ test: {+ globals: true,+ projects: [+ {+ test: {+ name: 'unit',+ include: ['test/unit/**/*.{test,spec}.ts'],+ environment: 'node',+ testTimeout: 5000,+ },+ },+ await defineVitestProject({+ test: {+ name: 'nuxt',+ include: ['test/nuxt/**/*.{test,spec}.ts'],+ environment: 'nuxt',+ testTimeout: 20000,+ environmentOptions: {+ nuxt: {+ domEnvironment: 'jsdom',+ },+ },+ },+ }),+ ],+ },+})