react-input-material 0.0.385 → 0.0.388
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Dummy.js +1 -1
- package/components/FileInput.js +1 -1
- package/components/FileInput.styles.css +3 -3
- package/components/GenericAnimate.js +1 -1
- package/components/GenericInput.d.ts +2 -7
- package/components/GenericInput.js +1 -1
- package/components/GenericInput.styles.css +1 -1
- package/components/GenericInput.tsx +15 -12
- package/components/Inputs.js +1 -1
- package/components/Inputs.styles.css +1 -1
- package/components/Interval.js +1 -1
- package/components/Interval.styles.css +1 -1
- package/components/RequireableCheckbox.js +1 -1
- package/components/RequireableCheckbox.styles.css +1 -1
- package/components/WrapConfigurations.js +1 -1
- package/components/WrapThemeProvider.js +1 -1
- package/components/WrapTooltip.js +1 -1
- package/helper.js +1 -1
- package/index.js +1 -1
- package/index.styles.css +7 -7
- package/package.json +5 -6
- package/testHelper.js +1 -1
- package/type.d.ts +6 -2
- package/testHelper.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-input-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.388",
|
|
4
4
|
"description": "Reusable material design based input field with support for (richt-)text, code, selections, numbers, dates and so on.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"form-field",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"test:coverage": "yarn clear && weboptimizer test:coverage",
|
|
57
57
|
"test:coverage:report": "yarn clear && weboptimizer test:coverage:report",
|
|
58
58
|
"update": "yarn version --patch && yarn publish",
|
|
59
|
-
"update:documentation": "
|
|
59
|
+
"update:documentation": "documentation-website",
|
|
60
60
|
"watch": "weboptimizer build --watch"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
"@tinymce/tinymce-react": "*",
|
|
84
84
|
"@types/ejs": "*",
|
|
85
85
|
"@types/html-minifier": "*",
|
|
86
|
-
"@types/jest": "*",
|
|
87
86
|
"@types/jquery": "*",
|
|
88
87
|
"@types/jsdom": "*",
|
|
89
88
|
"@types/node": "*",
|
|
@@ -275,7 +274,7 @@
|
|
|
275
274
|
"options": {
|
|
276
275
|
"import": {
|
|
277
276
|
"filter": {
|
|
278
|
-
"__evaluate__": "(url) =>
|
|
277
|
+
"__evaluate__": "(url) => !url.includes('.css')"
|
|
279
278
|
}
|
|
280
279
|
}
|
|
281
280
|
}
|
|
@@ -296,8 +295,8 @@
|
|
|
296
295
|
"javaScript": {
|
|
297
296
|
"options": {
|
|
298
297
|
"presets": {
|
|
299
|
-
"#": "TODO: Remove \"@babel/
|
|
300
|
-
"__evaluate__": "[['@babel/
|
|
298
|
+
"#": "TODO: Remove \"@babel/react\" options when updated to babel 8. NOTE: We have to disable module export/import transformation to allow tree shaking by the final (minimizer).",
|
|
299
|
+
"__evaluate__": "[['@babel/react', {runtime: 'automatic'}], ['@babel/preset-env', {loose: true, modules: false, targets: self.targetTechnology === 'node' ? {node: 'current'} : {browsers: self.generic.supportedBrowsers, node: 'current'}}], '@babel/typescript'].concat((self.debug || !self.module.optimizer.babelMinify.module || 2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2] === 'document') ? [] : [['minify', self.module.optimizer.babelMinify.module]])"
|
|
301
300
|
}
|
|
302
301
|
}
|
|
303
302
|
}
|
package/testHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(e
|
|
1
|
+
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@jest/globals"),require("clientnode"),require("react-dom/client"),require("react-dom/test-utils")):"function"==typeof define&&define.amd?define("componentsDummy",["@jest/globals","clientnode","react-dom/client","react-dom/test-utils"],e):"object"==typeof exports?exports.componentsDummy=e(require("@jest/globals"),require("clientnode"),require("react-dom/client"),require("react-dom/test-utils")):(n.componentsDummy=n.componentsDummy||{},n.componentsDummy.componentsFileInput=n.componentsDummy.componentsFileInput||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate=n.componentsDummy.componentsFileInput.componentsGenericAnimate||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip.helper=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip.helper||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip.helper.index=n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip.helper.index||{},n.componentsDummy.componentsFileInput.componentsGenericAnimate.componentsGenericInput.componentsInputs.componentsInterval.componentsRequireableCheckbox.componentsWrapConfigurations.componentsWrapThemeProvider.componentsWrapTooltip.helper.index.testHelper=e(n["@jest/globals"],n.clientnode,n["react-dom/client"],n["react-dom/test-utils"]))}(this,(function(n,e,o,t){return function(){"use strict";var p={41:function(e){e.exports=n},3:function(n){n.exports=e},42:function(n){n.exports=o},43:function(n){n.exports=t}},c={};function m(n){var e=c[n];if(void 0!==e)return e.exports;var o=c[n]={exports:{}};return p[n](o,o.exports,m),o.exports}m.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return m.d(e,{a:e}),e},m.d=function(n,e){for(var o in e)m.o(e,o)&&!m.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},m.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},m.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return function(){m.r(r),m.d(r,{prepareTestEnvironment:function(){return p}});var n=m(41),e=m(3),o=m(42),t=m(43);e.globalContext.IS_REACT_ACT_ENVIRONMENT=!0;var p=function(e,p){var c=null,m={container:null,render:function(n){var e,o;return(0,t.act)((function(){c?c.render(n):console.error('You call "render" outside a testing context.')})),null!=(e=m.container)&&null!=(o=e.childNodes)&&o.length?m.container.childNodes[0]:m.container}};return(null!=e?e:n.beforeEach)((function(){m.container=document.createElement("div"),m.container.setAttribute("class","test-wrapper"),document.body.appendChild(m.container),c||(0,t.act)((function(){c=(0,o.createRoot)(m.container)}))})),(null!=p?p:n.afterEach)((function(){c&&(0,t.act)((function(){c.unmount(),c=null})),m.container.remove(),m.container=null})),m};r.default=p}(),r}()}));
|
package/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import PropertyTypes from 'clientnode/property-types';
|
|
|
2
2
|
import { Mapping, PlainObject, RecursivePartial, ValueOf } from 'clientnode/type';
|
|
3
3
|
import { ComponentClass, FocusEvent, ForwardRefExoticComponent, FunctionComponent, HTMLProps, KeyboardEvent, MouseEvent, MutableRefObject, ReactElement, RefAttributes, Requireable, SyntheticEvent } from 'react';
|
|
4
4
|
import CodeEditorType, { IAceEditorProps as CodeEditorProps } from 'react-ace';
|
|
5
|
-
import { Editor as RichTextEditor } from 'tinymce';
|
|
5
|
+
import { EditorOptions as RawTinyMCEOptions, Editor as RichTextEditor } from 'tinymce';
|
|
6
6
|
import { ComponentAdapter, PropertiesValidationMap, StaticWebComponent as StaticBaseWebComponent, ValidationMapping } from 'web-component-wrapper/type';
|
|
7
7
|
import { MDCMenuFoundation } from '@material/menu';
|
|
8
8
|
import { MDCSelectFoundation } from '@material/select';
|
|
@@ -23,7 +23,7 @@ export interface GenericEvent<T = unknown> extends SyntheticEvent {
|
|
|
23
23
|
}
|
|
24
24
|
export interface TestEnvironment {
|
|
25
25
|
container: HTMLDivElement | null;
|
|
26
|
-
render: (_component: ReactElement) =>
|
|
26
|
+
render: <T = HTMLElement>(_component: ReactElement) => null | T;
|
|
27
27
|
}
|
|
28
28
|
export interface CursorState {
|
|
29
29
|
end: number;
|
|
@@ -303,6 +303,10 @@ export interface InputAdapterWithReferences<T = unknown> extends InputAdapter<T>
|
|
|
303
303
|
suggestionMenuFoundationReference: MutableRefObject<MDCMenuFoundation | null>;
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
+
export interface TinyMCEOptions extends RawTinyMCEOptions {
|
|
307
|
+
selector?: undefined;
|
|
308
|
+
target?: undefined;
|
|
309
|
+
}
|
|
306
310
|
export interface GenericInputComponent extends Omit<ForwardRefExoticComponent<InputProps>, 'propTypes'>, StaticWebComponent<InputModelState, DefaultInputProperties> {
|
|
307
311
|
<T = string>(_props: InputProps<T> & RefAttributes<InputAdapter<T>>): ReactElement;
|
|
308
312
|
locales: Array<string>;
|
package/testHelper.d.ts
DELETED