also looking at this
chore(deps): update dependency react-dom to 19.2.7
#2138
222 files
+16350
-1825
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -11,7 +11,7 @@ export const defaults: QrxConfig = { | ||
| 11 | 11 | displayValue: true, |
| 12 | 12 | fontOptions: '', |
| 13 | 13 | font: 'monospace', |
| 14 | text: undefined, | |
| 14 | text: '', | |
| 15 | 15 | textAlign: 'center', |
| 16 | 16 | textPosition: 'bottom', |
| 17 | 17 | textMargin: 2, |
| @@ -24,11 +24,21 @@ export const defaults: QrxConfig = { | ||
| 24 | 24 | marginLeft: undefined, |
| 25 | 25 | marginRight: undefined, |
| 26 | 26 | valid() { }, |
| 27 | flat: false, | |
| 28 | ean128: false, | |
| 29 | elementTag: 'svg', | |
| 27 | 30 | }, |
| 28 | 31 | } |
| 32 | // eslint-disable-next-line import/no-mutable-exports | |
| 33 | export let config: QrxConfig = defaults | |
| 34 | ; (async () => { | |
| 35 | config = await loadConfig({ | |
| 36 | name: 'qrx', | |
| 37 | defaultConfig: defaults, | |
| 38 | }) | |
| 39 | })() | |
| 29 | 40 | |
| 30 | // eslint-disable-next-line antfu/no-top-level-await | |
| 31 | export const config: QrxConfig = await loadConfig({ | |
| 32 | name: 'qrx', | |
| 33 | defaultConfig: defaults, | |
| 34 | }) | |
| 41 | // export const config: QrxConfig = await loadConfig({ | |
| 42 | // name: 'qrx', | |
| 43 | // defaultConfig: defaults, | |
| 44 | // }) | |
| @@ -3,6 +3,11 @@ export interface QrxConfig { | ||
| 3 | 3 | options: BarcodeConfig | QRCodeConfig |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | export interface QrxOptions { | |
| 7 | type?: 'bar' | 'qr' | |
| 8 | options?: BarcodeOptions | QRCodeOptions | |
| 9 | } | |
| 10 | ||
| 6 | 11 | export interface BarcodeSettings { |
| 7 | 12 | format: string |
| 8 | 13 | width: string | number |
| @@ -18,10 +23,10 @@ export interface BarcodeSettings { | ||
| 18 | 23 | background: string |
| 19 | 24 | lineColor: string |
| 20 | 25 | margin: string | number |
| 21 | marginTop: string | number | |
| 22 | marginBottom: string | number | |
| 23 | marginLeft: string | number | |
| 24 | marginRight: string | number | |
| 26 | marginTop: string | number | undefined | |
| 27 | marginBottom: string | number | undefined | |
| 28 | marginLeft: string | number | undefined | |
| 29 | marginRight: string | number | undefined | |
| 25 | 30 | flat: boolean |
| 26 | 31 | ean128: string | boolean |
| 27 | 32 | elementTag: string |
| @@ -31,7 +36,7 @@ export interface BarcodeSettings { | ||
| 31 | 36 | export type BarcodeOptions = Partial<BarcodeSettings> |
| 32 | 37 | |
| 33 | 38 | interface NodeConfig extends BarcodeSettings { |
| 34 | xmlDocument: XMLDocument | |
| 39 | xmlDocument?: XMLDocument | |
| 35 | 40 | } |
| 36 | 41 | |
| 37 | 42 | export interface NodeOptions extends BarcodeOptions { |