qrdx 0.0.58 → 0.0.59

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.
@@ -17,7 +17,16 @@ export interface QRCodeProps extends QRProps {
17
17
  */
18
18
  export type QRCodeOptions = QRCodeProps & QRSVGAttributes;
19
19
  type QRData = ReturnType<typeof getQRData>;
20
- /** What `getQRData` lays out for `QRCode`'s props. */
20
+ /**
21
+ * Every prop `getQRCodeData` lays the code out from, in one list. React's
22
+ * `QRCode` keeps its layout until one of these changes, so a prop the layout
23
+ * reads can't be left out of that check: the looks once were (the per-eye
24
+ * shapes, the eyes' gradient span, the rounded background and its backdrop,
25
+ * the halo and the shadow), and a code drawn without them stayed on screen
26
+ * after one was turned on.
27
+ */
28
+ export declare const QR_CODE_DATA_KEYS: readonly ["value", "fgColor", "hideLogo", "bgColor", "eyeColor", "dotColor", "bodyPattern", "cornerEyePattern", "cornerEyeDotPattern", "level", "templateId", "logo", "logoOptions", "margin", "autoLevel", "shape", "eyeShapes", "eyeGradient", "bgRadius", "backdrop", "halo", "shadow"];
29
+ /** What `getQRData` lays out for `QRCode`'s props (QR_CODE_DATA_KEYS). */
21
30
  export declare function getQRCodeData(props: QRCodeProps): QRData;
22
31
  /**
23
32
  * The `QRCodeSVG` props `QRCode` draws with, given its laid-out data. Root
@@ -1 +1 @@
1
- {"version":3,"file":"qr-code-props.d.ts","sourceRoot":"","sources":["../../src/qr-code-props.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EACP,eAAe,EACf,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,qDAAqD;AACrD,MAAM,WAAW,WAAY,SAAQ,OAAO;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,WAAW,CAAC,EAAE,WAAW,CAAC;IA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,YAAY,CAyEd;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY,CAErE"}
@@ -1 +1 @@
1
- {"version":3,"file":"qr-code.d.ts","sourceRoot":"","sources":["../../src/qr-code.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKrD;;;;GAIG;AACH,eAAO,MAAM,MAAM,8CAAgB,cAAc,iCA2C/C,CAAC"}
1
+ {"version":3,"file":"qr-code.d.ts","sourceRoot":"","sources":["../../src/qr-code.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQrD;;;;GAIG;AACH,eAAO,MAAM,MAAM,8CAAgB,cAAc,iCAQ/C,CAAC"}