@destyler/qr-code 0.2.3-beta.5 → 0.2.3-beta.7
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/dist/index.d.mts +6 -5
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _destyler_anatomy0 from "@destyler/anatomy";
|
|
2
2
|
import { DataUrlType } from "@destyler/dom";
|
|
3
3
|
import * as _destyler_xstate0 from "@destyler/xstate";
|
|
4
|
-
import { AnyEventObject, XSend, XState } from "@destyler/xstate";
|
|
5
|
-
import { QrCodeGenerateOptions, QrCodeGenerateResult } from "uqr";
|
|
4
|
+
import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
5
|
+
import { QrCodeGenerateOptions, QrCodeGenerateOptions as QrCodeGenerateOptions$1, QrCodeGenerateResult, QrCodeGenerateResult as QrCodeGenerateResult$1 } from "uqr";
|
|
6
6
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
7
7
|
|
|
8
8
|
//#region src/anatomy.d.ts
|
|
@@ -28,7 +28,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
28
28
|
/**
|
|
29
29
|
* The qr code encoding options.
|
|
30
30
|
*/
|
|
31
|
-
encoding?: QrCodeGenerateOptions | undefined;
|
|
31
|
+
encoding?: QrCodeGenerateOptions$1 | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Callback fired when the value changes.
|
|
34
34
|
*/
|
|
@@ -41,7 +41,7 @@ interface PrivateContext {
|
|
|
41
41
|
pixelSize: number;
|
|
42
42
|
}
|
|
43
43
|
type ComputedContext = Readonly<{
|
|
44
|
-
encoded: QrCodeGenerateResult;
|
|
44
|
+
encoded: QrCodeGenerateResult$1;
|
|
45
45
|
}>;
|
|
46
46
|
type UserDefinedContext = RequiredBy<PublicContext, 'id'>;
|
|
47
47
|
interface MachineContext extends PublicContext, PrivateContext, ComputedContext {}
|
|
@@ -50,6 +50,7 @@ interface MachineState {
|
|
|
50
50
|
}
|
|
51
51
|
type State = XState<MachineContext, MachineState>;
|
|
52
52
|
type Send = XSend<AnyEventObject>;
|
|
53
|
+
type Service = Machine<MachineContext, MachineState, AnyEventObject>;
|
|
53
54
|
interface DownloadTriggerProps {
|
|
54
55
|
/**
|
|
55
56
|
* The mime type of the image.
|
|
@@ -94,4 +95,4 @@ declare function machine(userContext: UserDefinedContext): _destyler_xstate0.Mac
|
|
|
94
95
|
declare const props: ("value" | "ids" | "encoding" | "onValueChange" | "dir" | "id" | "getRootNode")[];
|
|
95
96
|
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "value" | "ids" | "encoding" | "onValueChange" | "dir" | "id" | "getRootNode">];
|
|
96
97
|
//#endregion
|
|
97
|
-
export { type UserDefinedContext as Context, anatomy, connect, machine, props, splitProps };
|
|
98
|
+
export { type MachineApi as Api, type UserDefinedContext as Context, type DownloadTriggerProps, type ElementIds, type MachineState, type QrCodeGenerateOptions, type QrCodeGenerateResult, type Send, type Service, type ValueChangeDetails, anatomy, connect, machine, props, splitProps };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/qr-code",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.3-beta.
|
|
4
|
+
"version": "0.2.3-beta.7",
|
|
5
5
|
"description": "a component that generates a QR code based on the provided data.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"proxy-memoize": "^3.0.1",
|
|
26
26
|
"uqr": "^0.1.2",
|
|
27
|
-
"@destyler/
|
|
28
|
-
"@destyler/types": "0.2.3-beta.
|
|
29
|
-
"@destyler/
|
|
30
|
-
"@destyler/
|
|
31
|
-
"@destyler/
|
|
27
|
+
"@destyler/dom": "0.2.3-beta.7",
|
|
28
|
+
"@destyler/types": "0.2.3-beta.7",
|
|
29
|
+
"@destyler/utils": "0.2.3-beta.7",
|
|
30
|
+
"@destyler/xstate": "0.2.3-beta.7",
|
|
31
|
+
"@destyler/anatomy": "0.2.3-beta.7"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|