@qr-platform/qr-code.js 0.8.22 → 0.8.24
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.
- package/lib/core/qr-code-js.d.ts +2 -0
- package/lib/core/qr-templates.d.ts +1 -0
- package/lib/index.d.ts +17 -3
- package/lib/index.js +1 -1
- package/lib/node.d.ts +18 -3
- package/lib/node.js +1 -1
- package/package.json +1 -1
- package/lib/builder/index.d.ts +0 -13
- package/lib/builder/node.d.ts +0 -13
- package/lib/builder/qr-code-builder.d.ts +0 -25
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@qr-platform/qr-code.js",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.24",
|
4
4
|
"description": "QRCode.js is a professional JavaScript/TypeScript library for creating customized QR codes, offering a blend of simplicity and sophistication. With versatile styling options—dot shapes, colors, gradients, embedded images, borders, and text—it enables you to design unique, visually appealing QR codes that work flawlessly with standard scanners. QRCode.js is part of QR-Platform: All-in-One QR Codes Management Solution.",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./lib/node.js",
|
package/lib/builder/index.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { QRCodeJs } from '../index';
|
2
|
-
import { QRCodeBuilderCore } from './qr-code-builder';
|
3
|
-
/**
|
4
|
-
* Builder class specifically for the browser environment.
|
5
|
-
* Extends the core builder and provides the browser QRCodeJs constructor.
|
6
|
-
*/
|
7
|
-
export declare class QRCodeBuilder extends QRCodeBuilderCore<QRCodeJs> {
|
8
|
-
/**
|
9
|
-
* Creates a new QRCodeBuilder instance for the browser.
|
10
|
-
* @param templateName - Optional name of a predefined template to start with.
|
11
|
-
*/
|
12
|
-
constructor(templateName?: string);
|
13
|
-
}
|
package/lib/builder/node.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { QRCodeJs } from '../node';
|
2
|
-
import { QRCodeBuilderCore } from './qr-code-builder';
|
3
|
-
/**
|
4
|
-
* Builder class specifically for the Node.js environment.
|
5
|
-
* Extends the core builder and provides the node QRCodeJs constructor.
|
6
|
-
*/
|
7
|
-
export declare class QRCodeBuilder extends QRCodeBuilderCore<QRCodeJs> {
|
8
|
-
/**
|
9
|
-
* Creates a new QRCodeBuilder instance for Node.js.
|
10
|
-
* @param templateName - Optional name of a predefined template to start with.
|
11
|
-
*/
|
12
|
-
constructor(templateName?: string);
|
13
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { QRCodeJs as QRCodeJsBase } from '../core/qr-code-js';
|
2
|
-
import { RecursivePartial } from '../types/helper';
|
3
|
-
import { Options } from '../utils/options';
|
4
|
-
type QRCodeJsConstructor<T extends QRCodeJsBase = QRCodeJsBase> = new (options: Options) => T;
|
5
|
-
/**
|
6
|
-
* Core Builder class for fluently configuring QRCodeJs instances.
|
7
|
-
* This class is generic and requires the specific QRCodeJs constructor to be passed.
|
8
|
-
*/
|
9
|
-
export declare class QRCodeBuilderCore<T extends QRCodeJsBase> {
|
10
|
-
protected config: RecursivePartial<Options>;
|
11
|
-
protected qrCodeJsConstructor: QRCodeJsConstructor<T>;
|
12
|
-
/**
|
13
|
-
* Creates a new QRCodeBuilderCore instance.
|
14
|
-
* @param qrCodeJsConstructor - The constructor of the specific QRCodeJs class to use.
|
15
|
-
* @param templateName - Optional name of a predefined template to start with.
|
16
|
-
*/
|
17
|
-
constructor(qrCodeJsConstructor: QRCodeJsConstructor<T>, templateName?: string);
|
18
|
-
/**
|
19
|
-
* Merges the provided options into the builder's configuration and creates the QRCodeJs instance.
|
20
|
-
* @param options - A partial options object to merge.
|
21
|
-
* @returns The created QRCodeJs instance.
|
22
|
-
*/
|
23
|
-
options(options: RecursivePartial<Options>): T;
|
24
|
-
}
|
25
|
-
export {};
|