Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@zag-js/qr-code

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/qr-code - npm Package Compare versions

Comparing version 0.56.0 to 0.56.1

9

dist/index.d.ts

@@ -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.56.0",
"version": "0.56.1",
"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.56.0",
"@zag-js/core": "0.56.0",
"@zag-js/dom-query": "0.56.0",
"@zag-js/utils": "0.56.0",
"@zag-js/types": "0.56.0"
"@zag-js/anatomy": "0.56.1",
"@zag-js/core": "0.56.1",
"@zag-js/dom-query": "0.56.1",
"@zag-js/utils": "0.56.1",
"@zag-js/types": "0.56.1"
},

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc