@zag-js/qr-code
Advanced tools
Comparing version 0.0.0-dev-20240611130830 to 0.0.0-dev-20240611182543
@@ -7,9 +7,10 @@ import * as _zag_js_anatomy from '@zag-js/anatomy'; | ||
import { QrCodeGenerateOptions, QrCodeGenerateResult } from 'uqr'; | ||
export { QrCodeGenerateOptions, QrCodeGenerateResult } from 'uqr'; | ||
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "frame" | "pattern" | "overlay">; | ||
interface ElementIds { | ||
root?: string; | ||
svg?: string; | ||
} | ||
type ElementIds = Partial<{ | ||
root: string; | ||
frame: string; | ||
}>; | ||
interface PublicContext extends DirectionProperty, CommonProperties { | ||
@@ -16,0 +17,0 @@ /** |
@@ -43,3 +43,3 @@ "use strict"; | ||
getRootId: (ctx) => ctx.ids?.root ?? `qrcode:${ctx.id}:root`, | ||
getFrameId: (ctx) => ctx.ids?.svg ?? `qrcode:${ctx.id}:svg`, | ||
getFrameId: (ctx) => ctx.ids?.frame ?? `qrcode:${ctx.id}:frame`, | ||
getFrameEl: (ctx) => dom.getById(ctx, dom.getFrameId(ctx)) | ||
@@ -46,0 +46,0 @@ }); |
{ | ||
"name": "@zag-js/qr-code", | ||
"version": "0.0.0-dev-20240611130830", | ||
"version": "0.0.0-dev-20240611182543", | ||
"description": "Core logic for the qr-code widget implemented as a state machine", | ||
@@ -33,7 +33,7 @@ "keywords": [ | ||
"uqr": "0.1.2", | ||
"@zag-js/anatomy": "0.0.0-dev-20240611130830", | ||
"@zag-js/core": "0.0.0-dev-20240611130830", | ||
"@zag-js/dom-query": "0.0.0-dev-20240611130830", | ||
"@zag-js/utils": "0.0.0-dev-20240611130830", | ||
"@zag-js/types": "0.0.0-dev-20240611130830" | ||
"@zag-js/anatomy": "0.0.0-dev-20240611182543", | ||
"@zag-js/core": "0.0.0-dev-20240611182543", | ||
"@zag-js/dom-query": "0.0.0-dev-20240611182543", | ||
"@zag-js/utils": "0.0.0-dev-20240611182543", | ||
"@zag-js/types": "0.0.0-dev-20240611182543" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
@@ -5,2 +5,8 @@ export { anatomy } from "./qr-code.anatomy" | ||
export * from "./qr-code.props" | ||
export type { UserDefinedContext as Context, MachineApi as Api, ElementIds } from "./qr-code.types" | ||
export type { | ||
MachineApi as Api, | ||
UserDefinedContext as Context, | ||
ElementIds, | ||
QrCodeGenerateOptions, | ||
QrCodeGenerateResult, | ||
} from "./qr-code.types" |
@@ -6,4 +6,4 @@ import { createScope } from "@zag-js/dom-query" | ||
getRootId: (ctx: Ctx) => ctx.ids?.root ?? `qrcode:${ctx.id}:root`, | ||
getFrameId: (ctx: Ctx) => ctx.ids?.svg ?? `qrcode:${ctx.id}:svg`, | ||
getFrameId: (ctx: Ctx) => ctx.ids?.frame ?? `qrcode:${ctx.id}:frame`, | ||
getFrameEl: (ctx: Ctx) => dom.getById<SVGElement>(ctx, dom.getFrameId(ctx)), | ||
}) |
@@ -6,6 +6,6 @@ import type { StateMachine as S } from "@zag-js/core" | ||
export interface ElementIds { | ||
root?: string | ||
svg?: string | ||
} | ||
export type ElementIds = Partial<{ | ||
root: string | ||
frame: string | ||
}> | ||
@@ -73,1 +73,3 @@ interface PublicContext extends DirectionProperty, CommonProperties { | ||
} | ||
export type { QrCodeGenerateOptions, QrCodeGenerateResult } from "uqr" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35729
529
+ Added@zag-js/anatomy@0.0.0-dev-20240611182543(transitive)
+ Added@zag-js/core@0.0.0-dev-20240611182543(transitive)
+ Added@zag-js/dom-query@0.0.0-dev-20240611182543(transitive)
+ Added@zag-js/store@0.0.0-dev-20240611182543(transitive)
+ Added@zag-js/types@0.0.0-dev-20240611182543(transitive)
+ Added@zag-js/utils@0.0.0-dev-20240611182543(transitive)
- Removed@zag-js/anatomy@0.0.0-dev-20240611130830(transitive)
- Removed@zag-js/core@0.0.0-dev-20240611130830(transitive)
- Removed@zag-js/dom-query@0.0.0-dev-20240611130830(transitive)
- Removed@zag-js/store@0.0.0-dev-20240611130830(transitive)
- Removed@zag-js/types@0.0.0-dev-20240611130830(transitive)
- Removed@zag-js/utils@0.0.0-dev-20240611130830(transitive)