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

@trimble-oss/modus-react-components

Package Overview
Dependencies
Maintainers
4
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trimble-oss/modus-react-components - npm Package Compare versions

Comparing version 0.1.46-react18 to 0.1.47-react17

12

dist/components/stencil-generated/react-component-lib/utils/attachProps.js

@@ -61,2 +61,12 @@ import { camelToDashCase } from './case';

/**
* Transforms a React event name to a browser event name.
*/
export const transformReactEventName = (eventNameSuffix) => {
switch (eventNameSuffix) {
case 'doubleclick':
return 'dblclick';
}
return eventNameSuffix;
};
/**
* Checks if an event is supported in the current execution environment.

@@ -70,3 +80,3 @@ * @license Modernizr 3.0.0pre (Custom Build) | MIT

else {
const eventName = 'on' + eventNameSuffix;
const eventName = 'on' + transformReactEventName(eventNameSuffix);
let isSupported = eventName in document;

@@ -73,0 +83,0 @@ if (!isSupported) {

2

dist/types/components/stencil-generated/react-component-lib/createComponent.d.ts

@@ -9,3 +9,3 @@ import React from 'react';

}
export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType>, manipulatePropsFunction?: (originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<import("./utils").StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType>, manipulatePropsFunction?: (originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & import("./interfaces").StyleReactProps> & React.RefAttributes<ElementType>>;
export {};
export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
/**
* Transforms a React event name to a browser event name.
*/
export declare const transformReactEventName: (eventNameSuffix: string) => string;
/**
* Checks if an event is supported in the current execution environment.

@@ -5,0 +9,0 @@ * @license Modernizr 3.0.0pre (Custom Build) | MIT

import React from 'react';
import type { StyleReactProps } from '../interfaces';
export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
export declare type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
export declare type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<PropType & Omit<React.HTMLAttributes<ElementType>, "style"> & StyleReactProps> & React.RefAttributes<ElementType>>;
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
export * from './attachProps';
export * from './case';
{
"name": "@trimble-oss/modus-react-components",
"version": "0.1.46-react18",
"version": "0.1.47-react17",
"description": "Trimble Modus React Component Library",

@@ -36,19 +36,19 @@ "homepage": "https://modus-web-components.trimble.com/",

"dependencies": {
"@trimble-oss/modus-web-components": "0.1.46"
"@trimble-oss/modus-web-components": "0.1.47"
},
"devDependencies": {
"@types/jest": "23.3.14",
"@types/node": "^15.14.9",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
"jest": "^28.1.3",
"jest-dom": "^3.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@types/jest": "23.3.9",
"@types/node": "^15.12.2",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"jest": "^28.1.1",
"jest-dom": "^3.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.7.4"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}

@@ -5,3 +5,3 @@ # Modus React Components

This is a React wrapper library for [Modus Web Components](https://www.npmjs.com/package/@trimble-oss/modus-web-components) and the components were programmatically generated using the [Stencil](https://stenciljs.com/docs/react) for React Integration [v18.2.0](https://github.com/facebook/react/blob/main/CHANGELOG.md#1820-june-14-2022).
This is a React wrapper library for [Modus Web Components](https://www.npmjs.com/package/@trimble-oss/modus-web-components) and the components were programmatically generated using the [Stencil](https://stenciljs.com/docs/react) for React Integration [v17.0.2](https://github.com/facebook/react/blob/main/CHANGELOG.md#1702-march-22-2021).

@@ -8,0 +8,0 @@ ## Installation

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