New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/radio-group

Package Overview
Dependencies
Maintainers
1
Versions
817
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/radio-group - npm Package Compare versions

Comparing version

to
0.0.0-dev-20230107162034

dist/chunk-FMPH6XGK.mjs

20

dist/index.js

@@ -93,21 +93,3 @@ "use strict";

getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id),
createEmitter: (ctx, target) => {
const win = dom2.getWin(ctx);
return function emit(evt, detail, options) {
const { bubbles = true, cancelable, composed = true } = options != null ? options : {};
const eventName = `zag:${evt}`;
const init = { bubbles, cancelable, composed, detail };
const event = new win.CustomEvent(eventName, init);
target.dispatchEvent(event);
};
},
createListener: (target) => {
return function listen(evt, handler) {
const eventName = `zag:${evt}`;
const listener = (e) => handler(e);
target.addEventListener(eventName, listener);
return () => target.removeEventListener(eventName, listener);
};
}
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
};

@@ -114,0 +96,0 @@ return {

@@ -62,21 +62,3 @@ "use strict";

getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id),
createEmitter: (ctx, target) => {
const win = dom2.getWin(ctx);
return function emit(evt, detail, options) {
const { bubbles = true, cancelable, composed = true } = options != null ? options : {};
const eventName = `zag:${evt}`;
const init = { bubbles, cancelable, composed, detail };
const event = new win.CustomEvent(eventName, init);
target.dispatchEvent(event);
};
},
createListener: (target) => {
return function listen(evt, handler) {
const eventName = `zag:${evt}`;
const listener = (e) => handler(e);
target.addEventListener(eventName, listener);
return () => target.removeEventListener(eventName, listener);
};
}
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
};

@@ -83,0 +65,0 @@ return {

@@ -21,6 +21,2 @@ import { MachineContext } from './radio-group.types.js';

}, id: string) => T | null;
createEmitter: (ctx: {
getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
}, target: HTMLElement) => (evt: string, detail: Record<string, any>, options?: EventInit | undefined) => void;
createListener: (target: HTMLElement) => <T_1 = any>(evt: string, handler: (e: CustomEvent<T_1>) => void) => () => void;
} & {

@@ -27,0 +23,0 @@ getRootId: (ctx: MachineContext) => string;

@@ -54,21 +54,3 @@ "use strict";

getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id),
createEmitter: (ctx, target) => {
const win = dom2.getWin(ctx);
return function emit(evt, detail, options) {
const { bubbles = true, cancelable, composed = true } = options != null ? options : {};
const eventName = `zag:${evt}`;
const init = { bubbles, cancelable, composed, detail };
const event = new win.CustomEvent(eventName, init);
target.dispatchEvent(event);
};
},
createListener: (target) => {
return function listen(evt, handler) {
const eventName = `zag:${evt}`;
const listener = (e) => handler(e);
target.addEventListener(eventName, listener);
return () => target.removeEventListener(eventName, listener);
};
}
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
};

@@ -75,0 +57,0 @@ return {

@@ -72,21 +72,3 @@ "use strict";

getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id),
createEmitter: (ctx, target) => {
const win = dom2.getWin(ctx);
return function emit(evt, detail, options) {
const { bubbles = true, cancelable, composed = true } = options != null ? options : {};
const eventName = `zag:${evt}`;
const init = { bubbles, cancelable, composed, detail };
const event = new win.CustomEvent(eventName, init);
target.dispatchEvent(event);
};
},
createListener: (target) => {
return function listen(evt, handler) {
const eventName = `zag:${evt}`;
const listener = (e) => handler(e);
target.addEventListener(eventName, listener);
return () => target.removeEventListener(eventName, listener);
};
}
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
};

@@ -93,0 +75,0 @@ return {

{
"name": "@zag-js/radio-group",
"version": "0.0.0-dev-20221229205502",
"version": "0.0.0-dev-20230107162034",
"description": "Core logic for the radio group widget implemented as a state machine",

@@ -30,11 +30,11 @@ "keywords": [

"dependencies": {
"@zag-js/anatomy": "0.0.0-dev-20221229205502",
"@zag-js/core": "0.0.0-dev-20221229205502",
"@zag-js/types": "0.0.0-dev-20221229205502"
"@zag-js/anatomy": "0.1.3",
"@zag-js/core": "0.0.0-dev-20230107162034",
"@zag-js/types": "0.3.2"
},
"devDependencies": {
"clean-package": "2.2.0",
"@zag-js/dom-utils": "0.0.0-dev-20221229205502",
"@zag-js/form-utils": "0.0.0-dev-20221229205502",
"@zag-js/utils": "0.0.0-dev-20221229205502"
"@zag-js/dom-utils": "0.0.0-dev-20230107162034",
"@zag-js/form-utils": "0.2.3",
"@zag-js/utils": "0.3.2"
},

@@ -41,0 +41,0 @@ "clean-package": "../../../clean-package.config.json",

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