@rmwc/base
Advanced tools
Comparing version 3.0.10 to 3.0.11
{ | ||
"name": "@rmwc/base", | ||
"version": "3.0.10", | ||
"version": "3.0.11", | ||
"description": "RMWC base module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,13 +28,15 @@ 'use strict'; | ||
Object.defineProperty(window['HTMLCanvasElement'].prototype, 'getContext', { | ||
writable: true, | ||
value: function value() { | ||
return { | ||
font: '', | ||
measureText: function measureText() { | ||
return { width: 0 }; | ||
} | ||
}; | ||
} | ||
}); | ||
if (!window['HTMLCanvasElement']) { | ||
Object.defineProperty(window['HTMLCanvasElement'].prototype, 'getContext', { | ||
writable: true, | ||
value: function value() { | ||
return { | ||
font: '', | ||
measureText: function measureText() { | ||
return { width: 0 }; | ||
} | ||
}; | ||
} | ||
}); | ||
} | ||
@@ -41,0 +43,0 @@ window['MutationObserver'] = window['MutationObserver'] || require('mutation-observer'); |
@@ -6,2 +6,3 @@ import * as React from 'react'; | ||
render(): any; | ||
context: any; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
@@ -8,0 +9,0 @@ forceUpdate(callBack?: (() => void) | undefined): void; |
@@ -50,2 +50,3 @@ import { SimpleTagPropsT } from './simpleTag'; | ||
unlisten(evtType: string, handler: Function): void; | ||
context: any; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<FoundationPropsT<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
@@ -52,0 +53,0 @@ forceUpdate(callBack?: (() => void) | undefined): void; |
@@ -13,2 +13,2 @@ import * as React from 'react'; | ||
*/ | ||
export declare const withTheme: (Component: React.ComponentType<any>) => React.StatelessComponent<any>; | ||
export declare const withTheme: (Component: React.ComponentType<any>) => React.FunctionComponent<any>; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
704093
19418