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

solid-motionone

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-motionone - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

16

dist/index.d.ts
import * as motionone from '@motionone/dom';
import { MotionState } from '@motionone/dom';
import { Options, MotionState } from '@motionone/dom';
export { Options, VariantDefinition } from '@motionone/dom';
import { PropertiesHyphen } from 'csstype';

@@ -7,3 +8,2 @@ import * as solid_js from 'solid-js';

type VariantDefinition = motionone.VariantDefinition;
interface MotionEventHandlers {

@@ -22,7 +22,7 @@ onMotionStart?: (event: motionone.MotionEvent) => void;

}
interface Options {
exit?: motionone.VariantDefinition;
}
}
type Options = motionone.Options & {
exit?: VariantDefinition;
};
type MotionComponentProps = ParentProps<MotionEventHandlers & Options>;
type MotionComponentProps = ParentProps<MotionEventHandlers & motionone.Options>;
type MotionComponent = {

@@ -41,3 +41,3 @@ (props: JSX.IntrinsicElements["div"] & MotionComponentProps): JSX.Element;

interface Directives {
motion: Options;
motion: motionone.Options;
}

@@ -123,2 +123,2 @@ }

export { type E, Motion, type MotionComponent, type MotionComponentProps, type MotionEventHandlers, type MotionProxy, type MotionProxyComponent, type Options, Presence, PresenceContext, type VariantDefinition, createMotion, motion };
export { type E, Motion, type MotionComponent, type MotionComponentProps, type MotionEventHandlers, type MotionProxy, type MotionProxyComponent, Presence, PresenceContext, createMotion, motion };

@@ -23,3 +23,3 @@ import { createComponent, mergeProps, Dynamic } from 'solid-js/web';

setMount(false);
(mountedStates.get(el)?.getOptions()).exit ? el.addEventListener("motioncomplete", done) : done();
mountedStates.get(el)?.getOptions().exit ? el.addEventListener("motioncomplete", done) : done();
});

@@ -26,0 +26,0 @@ },

@@ -29,3 +29,3 @@ // src/motion.tsx

setMount(false);
(mountedStates.get(el)?.getOptions()).exit ? el.addEventListener("motioncomplete", done) : done();
mountedStates.get(el)?.getOptions().exit ? el.addEventListener("motioncomplete", done) : done();
});

@@ -32,0 +32,0 @@ },

{
"name": "solid-motionone",
"version": "1.0.1",
"description": "A tiny, performant animation library for SolidJS",
"license": "MIT",
"author": "Damian Tarnawski <gthetarnav@gmail.com>; David Di Biase <dave.dibiase@gmail.com>",
"contributors": [
"Matt Perry <mattgperry@gmail.com>",
"Phil <phil.schaffarzyk@gridventures.de>"
],
"private": false,
"sideEffects": false,
"scripts": {
"prepublishOnly": "pnpm build",
"build": "tsup",
"test": "pnpm run test:client && pnpm run test:ssr",
"test:client": "jest --config jest/jest.config.cjs",
"test:ssr": "SSR=true jest --config jest/jest.config.cjs",
"format": "prettier --cache -w .",
"lint": "pnpm run lint:code & pnpm run lint:types",
"lint:code": "eslint --ignore-path .gitignore --max-warnings 0 src/**/*.{js,ts,tsx,jsx}",
"lint:types": "tsc --noEmit"
},
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": {},
"exports": {
"solid": "./dist/index.jsx",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"typesVersions": {},
"dependencies": {
"@motionone/dom": "^10.17.0",
"@motionone/utils": "^10.17.0",
"@solid-primitives/props": "^3.1.11",
"@solid-primitives/refs": "^1.0.8",
"@solid-primitives/transition-group": "^1.0.5",
"csstype": "^3.1.3"
},
"devDependencies": {
"@babel/preset-env": "^7.23.7",
"@babel/preset-typescript": "^7.23.3",
"@jest/types": "^29.6.3",
"@solidjs/testing-library": "^0.8.5",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"babel-jest": "^29.7.0",
"babel-preset-solid": "^1.8.6",
"enhanced-resolve-jest": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.1.1",
"solid-js": "^1.8.17",
"tsup": "^8.0.1",
"tsup-preset-solid": "^2.2.0",
"typescript": "^5.3.3"
},
"peerDependencies": {
"solid-js": "^1.8.0"
},
"packageManager": "pnpm@9.9.0",
"engines": {
"node": ">=20",
"pnpm": ">=9.0.0"
}
}
"name": "solid-motionone",
"version": "1.0.2",
"description": "A tiny, performant animation library for SolidJS",
"license": "MIT",
"author": "Damian Tarnawski <gthetarnav@gmail.com>; David Di Biase <dave.dibiase@gmail.com>",
"contributors": [
"Matt Perry <mattgperry@gmail.com>",
"Phil <phil.schaffarzyk@gridventures.de>"
],
"private": false,
"sideEffects": false,
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": {},
"exports": {
"solid": "./dist/index.jsx",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"typesVersions": {},
"dependencies": {
"@motionone/dom": "^10.17.0",
"@motionone/utils": "^10.17.0",
"@solid-primitives/props": "^3.1.11",
"@solid-primitives/refs": "^1.0.8",
"@solid-primitives/transition-group": "^1.0.5",
"csstype": "^3.1.3"
},
"devDependencies": {
"@babel/preset-env": "^7.23.7",
"@babel/preset-typescript": "^7.23.3",
"@jest/types": "^29.6.3",
"@solidjs/testing-library": "^0.8.5",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"babel-jest": "^29.7.0",
"babel-preset-solid": "^1.8.6",
"enhanced-resolve-jest": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.1.1",
"solid-js": "^1.8.17",
"tsup": "^8.0.1",
"tsup-preset-solid": "^2.2.0",
"typescript": "^5.3.3"
},
"peerDependencies": {
"solid-js": "^1.8.0"
},
"engines": {
"node": ">=20",
"pnpm": ">=9.0.0"
},
"scripts": {
"build": "tsup",
"test": "pnpm run test:client && pnpm run test:ssr",
"test:client": "jest --config jest/jest.config.cjs",
"test:ssr": "SSR=true jest --config jest/jest.config.cjs",
"format": "prettier --cache -w .",
"lint": "pnpm run lint:code & pnpm run lint:types",
"lint:code": "eslint --ignore-path .gitignore --max-warnings 0 src/**/*.{js,ts,tsx,jsx}",
"lint:types": "tsc --noEmit"
}
}

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