@liquid-js/qr-code-styling 3.0.0-2 → 3.0.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +1 -2
  2. package/lib/core/{QRCodeStyling.d.ts → qr-code-styling.d.ts} +16 -22
  3. package/lib/core/qr-svg.d.ts +31 -0
  4. package/lib/figures/corner-dot.d.ts +24 -0
  5. package/lib/figures/corner-square.d.ts +22 -0
  6. package/lib/figures/dot.d.ts +28 -0
  7. package/lib/index.d.ts +9 -5
  8. package/lib/kanji.js +1 -1
  9. package/lib/kanji.js.map +1 -1
  10. package/lib/node.d.ts +13 -6
  11. package/lib/qr-code-styling-node.js +891 -1539
  12. package/lib/qr-code-styling-node.js.map +1 -1
  13. package/lib/qr-code-styling.js +1 -1
  14. package/lib/qr-code-styling.js.map +1 -1
  15. package/lib/tools/{browserImageTools.d.ts → browser-image-tools.d.ts} +1 -2
  16. package/lib/tools/browser-utils.d.ts +18 -0
  17. package/lib/types/helper.d.ts +23 -0
  18. package/lib/types/qrcode.d.ts +64 -0
  19. package/lib/utils/canvas-options.d.ts +7 -0
  20. package/lib/utils/gradient.d.ts +26 -0
  21. package/lib/{tools → utils}/merge.d.ts +3 -1
  22. package/lib/{types/index.d.ts → utils/options.d.ts} +29 -151
  23. package/lib/{constants/errorCorrectionPercents.d.ts → utils/qrcode.d.ts} +2 -0
  24. package/lib/utils/svg.d.ts +2 -0
  25. package/package.json +1 -1
  26. package/lib/core/QROptions.d.ts +0 -32
  27. package/lib/core/QRSVG.d.ts +0 -58
  28. package/lib/figures/cornerDot/QRCornerDot.d.ts +0 -27
  29. package/lib/figures/cornerSquare/QRCornerSquare.d.ts +0 -25
  30. package/lib/figures/dot/QRDot.d.ts +0 -31
  31. package/lib/tools/browserUtils.d.ts +0 -11
  32. package/lib/tools/getMode.d.ts +0 -2
  33. package/lib/tools/sanitizeOptions.d.ts +0 -3
  34. /package/lib/{tools/calculateImageSize.d.ts → utils/image.d.ts} +0 -0
package/lib/node.d.ts CHANGED
@@ -1,9 +1,16 @@
1
- import { RequiredOptions } from "./core/QROptions.js";
2
- import { QRCodeStyling as _QRCodeStyling } from "./index.js";
3
- export { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents.js";
4
- export * from "./types/index.js";
5
- import type * as _browserUtils from "./tools/browserUtils.js";
1
+ import { QRCodeStyling as _QRCodeStyling } from "./core/qr-code-styling.js";
2
+ import type * as _browserUtils from "./tools/browser-utils.js";
3
+ import { RecursivePartial } from "./types/helper.js";
4
+ import { Options } from "./utils/options.js";
5
+ export { type ExtensionFunction } from "./core/qr-code-styling.js";
6
+ export { FileExtension } from "./tools/browser-utils.js";
7
+ export { type RecursivePartial } from "./types/helper.js";
8
+ export { ErrorCorrectionLevel, Mode, TypeNumber } from "./types/qrcode.js";
9
+ export { type CanvasOptions } from "./utils/canvas-options.js";
10
+ export { GradientType, type Gradient } from "./utils/gradient.js";
11
+ export { CornerDotType, CornerSquareType, DotType, ShapeType, type Options } from "./utils/options.js";
12
+ export { ErrorCorrectionPercents } from "./utils/qrcode.js";
6
13
  export declare const browserUtils: typeof _browserUtils | undefined;
7
14
  export declare class QRCodeStyling extends _QRCodeStyling {
8
- constructor(options: RequiredOptions);
15
+ constructor(options: RecursivePartial<Options>);
9
16
  }