react-input-material 0.0.384 → 0.0.387

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-material",
3
- "version": "0.0.384",
3
+ "version": "0.0.387",
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": "documentationWebsite --log-level info",
59
+ "update:documentation": "documentation-website",
60
60
  "watch": "weboptimizer build --watch"
61
61
  },
62
62
  "dependencies": {
@@ -275,7 +275,7 @@
275
275
  "options": {
276
276
  "import": {
277
277
  "filter": {
278
- "__evaluate__": "(url) => console.log('AAA', url) || !url.includes('.css')"
278
+ "__evaluate__": "(url) => !url.includes('.css')"
279
279
  }
280
280
  }
281
281
  }
package/testHelper.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="jest" />
2
2
  import { TestEnvironment } from './type';
3
- export declare const prepareTestEnvironment: (beforeEach: jest.Lifecycle, afterEach: jest.Lifecycle) => TestEnvironment;
3
+ export declare const prepareTestEnvironment: (currentBeforeEach?: jest.Lifecycle | undefined, currentAfterEach?: jest.Lifecycle | undefined) => TestEnvironment;
4
4
  export default prepareTestEnvironment;
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,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react-dom"),require("react-dom/test-utils"));else if("function"==typeof define&&define.amd)define(["react-dom","react-dom/test-utils"],t);else{var n="object"==typeof exports?t(require("react-dom"),require("react-dom/test-utils")):t(e["react-dom"],e["react-dom/test-utils"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e,t){return function(){"use strict";var n={41:function(t){t.exports=e},42:function(e){e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){o.r(i),o.d(i,{prepareTestEnvironment:function(){return n}});var e=o(41),t=o(42),n=function(n,r){var o={container:null,render:function(n){return(0,t.act)((function(){(0,e.render)(n,o.container)})),o.container.childNodes.length?o.container.childNodes[0]:null}};return n((function(){o.container=document.createElement("div"),o.container.setAttribute("class","test-wrapper"),document.body.appendChild(o.container)})),r((function(){(0,e.unmountComponentAtNode)(o.container),o.container.remove(),o.container=null})),o};i.default=n}(),i}()}));
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,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("clientnode"),require("react-dom/client"),require("react-dom/test-utils"));else if("function"==typeof define&&define.amd)define(["clientnode","react-dom/client","react-dom/test-utils"],t);else{var n="object"==typeof exports?t(require("clientnode"),require("react-dom/client"),require("react-dom/test-utils")):t(e.clientnode,e["react-dom/client"],e["react-dom/test-utils"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e,t,n){return function(){"use strict";var r={3:function(t){t.exports=e},41:function(e){e.exports=t},42:function(e){e.exports=n}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){i.r(c),i.d(c,{prepareTestEnvironment:function(){return r}});var e=i(3),t=i(41),n=i(42);e.globalContext.IS_REACT_ACT_ENVIRONMENT=!0;var r=function(e,r){var o=null,i={container:null,render:function(e){var t,r;return(0,n.act)((function(){o?o.render(e):console.error('You call "render" outside a testing context.')})),null!=(t=i.container)&&null!=(r=t.childNodes)&&r.length?i.container.childNodes[0]:i.container}};return(null!=e?e:beforeEach)((function(){i.container=document.createElement("div"),i.container.setAttribute("class","test-wrapper"),document.body.appendChild(i.container),o||(0,n.act)((function(){o=(0,t.createRoot)(i.container)}))})),(null!=r?r:afterEach)((function(){o&&(0,n.act)((function(){o.unmount(),o=null})),i.container.remove(),i.container=null})),i};c.default=r}(),c}()}));
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) => ChildNode | null;
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>;