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

@zag-js/clipboard

Package Overview
Dependencies
Maintainers
1
Versions
343
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/clipboard - npm Package Compare versions

Comparing version

to
0.37.1

4

dist/index.d.ts

@@ -78,4 +78,6 @@ import * as _zag_js_anatomy from '@zag-js/anatomy';

declare const props: ("value" | "timeout" | "id" | "ids" | "onCopyStatusChange" | "getRootNode")[];
declare const contextProps: <Props extends UserDefinedContext>(props: Props) => [UserDefinedContext, Omit<Props, "value" | "timeout" | "id" | "ids" | "onCopyStatusChange" | "getRootNode">];
declare const indicatorProps: "copied"[];
declare const splitIndicatorProps: <Props extends IndicatorProps>(props: Props) => [IndicatorProps, Omit<Props, "copied">];
export { type MachineApi as Api, type UserDefinedContext as Context, type CopyStatusDetails, type ElementIds, type IndicatorProps, anatomy, connect, indicatorProps, machine, props };
export { type MachineApi as Api, type UserDefinedContext as Context, type CopyStatusDetails, type ElementIds, type IndicatorProps, anatomy, connect, contextProps, indicatorProps, machine, props, splitIndicatorProps };

@@ -25,5 +25,7 @@ "use strict";

connect: () => connect,
contextProps: () => contextProps,
indicatorProps: () => indicatorProps,
machine: () => machine,
props: () => props
props: () => props,
splitIndicatorProps: () => splitIndicatorProps
});

@@ -224,2 +226,3 @@ module.exports = __toCommonJS(src_exports);

var import_types = require("@zag-js/types");
var import_utils3 = require("@zag-js/utils");
var props = (0, import_types.createProps)()([

@@ -233,3 +236,5 @@ "getRootNode",

]);
var contextProps = (0, import_utils3.createSplitProps)(props);
var indicatorProps = (0, import_types.createProps)()(["copied"]);
var splitIndicatorProps = (0, import_utils3.createSplitProps)(indicatorProps);
// Annotate the CommonJS export names for ESM import in node:

@@ -239,6 +244,8 @@ 0 && (module.exports = {

connect,
contextProps,
indicatorProps,
machine,
props
props,
splitIndicatorProps
});
//# sourceMappingURL=index.js.map
{
"name": "@zag-js/clipboard",
"version": "0.37.0",
"version": "0.37.1",
"description": "Core logic for the clipboard widget implemented as a state machine",

@@ -31,7 +31,7 @@ "keywords": [

"dependencies": {
"@zag-js/anatomy": "0.37.0",
"@zag-js/core": "0.37.0",
"@zag-js/dom-query": "0.37.0",
"@zag-js/utils": "0.37.0",
"@zag-js/types": "0.37.0"
"@zag-js/anatomy": "0.37.1",
"@zag-js/core": "0.37.1",
"@zag-js/dom-query": "0.37.1",
"@zag-js/utils": "0.37.1",
"@zag-js/types": "0.37.1"
},

@@ -38,0 +38,0 @@ "devDependencies": {

import { createProps } from "@zag-js/types"
import type { IndicatorProps, UserDefinedContext } from "./clipboard.types"
import { createSplitProps } from "@zag-js/utils"

@@ -12,3 +13,5 @@ export const props = createProps<UserDefinedContext>()([

])
export const contextProps = createSplitProps<UserDefinedContext>(props)
export const indicatorProps = createProps<IndicatorProps>()(["copied"])
export const splitIndicatorProps = createSplitProps<IndicatorProps>(indicatorProps)

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