- Changed the test script in package.json to run workspace tests using a new script.
- Updated imports in generator and helper files to point to specific schema paths.
- Added new builtins and tables exports in schemas package.json and created corresponding files.
- Enhanced error handling in multiVariableText propPanel for JSON parsing.
- Refactored UI components to use React 18 and updated dependencies accordingly.
- Improved snapshot tests to ensure cleaner output by removing empty text nodes.
- Updated documentation to reflect changes in package usage and requirements.
* build(deps): bump zod from 3.25.67 to 4.1.11
Bumps [zod](https://github.com/colinhacks/zod) from 3.25.67 to 4.1.11.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v3.25.67...v4.1.11)
---
updated-dependencies:
- dependency-name: zod
dependency-version: 4.1.11
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix zod v4 API compatibility issues
- Update z.function() usage to z.any() for Plugin schema (zod v4 changed z.function() to a function factory)
- Update z.record() calls to use two arguments (key schema, value schema) as required by zod v4
- Add type assertions for Object.entries() to fix type inference issues
- Update test error message to match zod v4 format
Co-Authored-By: Kyohei Fukuda <kyoheif@wix.com>
* Update test expectations for zod v4 error message format
- Update error messages in common package tests to match zod v4 format
- 'Expected array, received string' → 'Invalid input: expected array, received string'
- 'Array must contain at least 1 element(s)' → 'Too small: expected array to have >=1 items'
- 'Required' → 'Invalid input: expected {type}, received undefined'
Co-Authored-By: Kyohei Fukuda <kyoheif@wix.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* remove old japanese template
* Add new image snapshots and update font references in tests
* Refactor code structure for improved readability and maintainability
* add pluginRepository and make plugin checking more robust
* Apply suggestions from code review
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* f
* f
---------
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Fix lint errors across multiple packages
- Fixed TypeScript type safety issues in common, schemas, generator, and UI packages
- Replaced 'any' types with more specific types like Map<string | number, unknown>
- Added proper type assertions in UI components to ensure type compatibility
- Created BarcodeRenderOptions interface to improve type safety in barcode rendering
- Fixed unsafe member access and return value issues in helper functions
- Ensured type safety in React components with proper type narrowing
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Fix type safety issues in tables/pdfRender.ts
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Fix remaining lint errors in multiple packages
- Fixed type safety issues in DetailView/index.tsx by removing unsafe type assertions
- Improved type safety in select/index.ts with proper type assertions
- Enhanced type safety in generate.ts with proper type narrowing and error handling
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Fix type error in DetailView/index.tsx
- Added type assertion to i18n function call to satisfy union type constraint
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Enable problematic test in Playground E2E Tests
* TMP
* Fix TypeScript type compatibility issues across packages
- Update Map type definitions to use consistent Map<string | number, unknown> type
- Fix Plugin type definition to properly handle Schema types
- Update function signatures to maintain type compatibility
- Resolve type errors in UI components and context providers
- Ensure proper type handling in schema implementations
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Refactor typedI18n function to use a type-safe key assertion for i18n
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Update TypeScript to version 5.8.2 and fix type compatibility issues
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Update package-lock.json for TypeScript 5.8.2
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Fix TypeScript errors in generator package
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Update moduleResolution to esnext in all tsconfig.esm.json files and fix type errors in generator package
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Update moduleResolution to bundler in all tsconfig.esm.json files
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
* Refactor ESLint configuration: remove legacy .eslintrc.cjs files and replace with new .mjs configurations
* Remove unnecessary TypeScript ignore comments and simplify async calls in barcode tests
* Refactor date helper: remove TypeScript ignore comments and simplify AirDatepicker usage
* Enhance date helper: add AirDatepickerDate type and improve type annotations for onSelect callback
* Update TypeScript and ESLint configurations: change module to NodeNext, refine file patterns, and enhance lint command
* Refactor ESLint configuration: remove unnecessary language options for TypeScript files
* Add pdf2img integration for converting PDF to images in e2e tests
* Refactor PDF generation tests to convert PDFs to images and validate against snapshots
* Refactor package.json files to remove "type": "module" and update import statements to CommonJS format
* Fix e2e test
* Add new image snapshots for e2e tests and remove obsolete snapshot
* Remove fast-xml-parser dependency and update vite-tsconfig-paths to 5.1.4
* tmp
* Refactor test files and scripts to use ES modules; remove obsolete files
* Enhance tests with new PDF utilities and update Jest configuration for ESM support
* tmp
* chore: update TypeScript configuration to use ESNext module and resolution
* fix: update remaining imports with .js extensions and tsconfig files with nodenext
Co-Authored-By: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* use image snapshot
* remove
* Add new feature for user profile customization
* Implement user profile customization feature
* Update snapshots to reflect changes in button class names
* use Intl.Segmenter for line breaking and support alignment
* fix no justify for single line texts
* remove locale from text schema
* remove unused locale related codes and minor bug fixes
* Update generator snapshot
* prevent overflow if text is longer than box width
* take into account character spacing when splitting lines
* update some assert pdfs
* Fix bugs on text segmentation in edge cases
* use const, add containsJapanese
---------
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
* [630]: Bug fix on basePdf as array buffer
* Minor fix
* Fix handling of customPdf in getB64BasePdf to ensure proper conversion to Uint8Array
* TMP
* Fix test
---------
Co-authored-by: hand-dot <kyouhei.fukuda0729@gmail.com>