react-input-material 0.0.784 → 0.0.786

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.
@@ -9,7 +9,7 @@ import { ChainedCommands, type EditorOptions, Extensions } from '@tiptap/core';
9
9
  import { EditorEvents } from '@tiptap/react';
10
10
  import { StarterKitOptions } from '@tiptap/starter-kit';
11
11
  import { IconProperties, InputReference, SelectProperties, TextAreaProperties, TextFieldProperties } from '../../implementations/type';
12
- import { BaseModel, CursorState, NormalizedSelection, ModelState as BaseModelState, Properties as BaseProperties, Selection, State as BaseState, StaticWebComponent, ValueState as BaseValueState } from '../../type';
12
+ import { BaseModel, CursorState, NormalizedSelection, ModelState as BaseModelState, Properties as BaseProperties, SelectionDefinition, State as BaseState, StaticWebComponent, ValueState as BaseValueState } from '../../type';
13
13
  import { Reference as InputEventMapperReference } from './InputEventMapperWrapper';
14
14
  export type Transformer<T = unknown> = (value: T, transformer: DataTransformation, configuration: DefaultProperties<T>) => string;
15
15
  export interface FormatSpecification<T = unknown> {
@@ -134,7 +134,7 @@ export interface Properties<Type = unknown> extends ModelState, BaseProperties<T
134
134
  attributes?: Mapping<boolean | number | string>;
135
135
  invertedPattern: Array<RegExp | string> | null | RegExp | string;
136
136
  invertedPatternText: string;
137
- labels: Selection;
137
+ labels: SelectionDefinition;
138
138
  maximumLengthText: string;
139
139
  minimumLengthText: string;
140
140
  maximumText: string;
package/dist/helper.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Mapping } from 'clientnode';
2
2
  import { NullSymbol, UndefinedSymbol } from 'clientnode/property-types';
3
3
  import { ReactNode, useState } from 'react';
4
- import { BaseProperties, BaseProps, DefaultBaseProperties, DefaultProperties, ModelState, NormalizedSelection, Selection, ValueState } from './type';
4
+ import { BaseProperties, BaseProps, DefaultBaseProperties, DefaultProperties, ModelState, NormalizedSelection, SelectionDefinition, ValueState } from './type';
5
5
  import { DateTimeRepresentation } from './components/Interval/type';
6
6
  import { DefaultProperties as TextInputDefaultProperties, DataTransformation as TextInputDataTransformation, Props as TextInputProps } from './components/TextInput/type';
7
7
  /**
@@ -142,7 +142,7 @@ export declare function getValueFromSelection<T>(label: ReactNode | string, sele
142
142
  * via a content management system).
143
143
  * @returns Determined normalized sorted selection configuration.
144
144
  */
145
- export declare function normalizeSelection(selection?: Selection | null, labels?: Selection | null): NormalizedSelection | null | undefined;
145
+ export declare function normalizeSelection(selection?: SelectionDefinition | null, labels?: SelectionDefinition | null): NormalizedSelection | null | undefined;
146
146
  /**
147
147
  * Applies configured value transformations.
148
148
  * @param configuration - Input configuration.
package/dist/type.d.ts CHANGED
@@ -10,15 +10,15 @@ export interface CursorState {
10
10
  }
11
11
  export declare const PrimitiveTypes: readonly ["boolean", "DateTime", "integer", "number", "string"];
12
12
  export type PrimitiveType = typeof PrimitiveTypes[number];
13
- export type Type = boolean | number | string;
14
- export type TypeSpecification = Array<TypeSpecification> | Type;
13
+ export type Type = boolean | number | string | object;
14
+ export type TypeDefinition = Array<TypeDefinition> | Type;
15
15
  export interface SelectionOption {
16
16
  label: string;
17
17
  value: Primitive;
18
18
  }
19
19
  export type NormalizedSelection = Array<SelectionOption>;
20
- export type ModelSelection = Array<Primitive> | Mapping | NormalizedSelection;
21
- export type Selection = Array<[Primitive, string]> | ModelSelection;
20
+ export type BaseSelectionDefinition = Array<Primitive> | Mapping | NormalizedSelection;
21
+ export type SelectionDefinition = Array<[Primitive, string]> | BaseSelectionDefinition;
22
22
  export interface CommonBaseModel<Type = unknown> {
23
23
  declaration: string;
24
24
  description: string;
@@ -28,7 +28,7 @@ export interface CommonBaseModel<Type = unknown> {
28
28
  minimum: number | string;
29
29
  maximumLength: number;
30
30
  minimumLength: number;
31
- type: TypeSpecification;
31
+ type: TypeDefinition;
32
32
  trim: boolean;
33
33
  value?: Type;
34
34
  }
@@ -47,7 +47,7 @@ export type Pattern = Array<RegExp | string> | RegExp | string;
47
47
  export interface BaseModel<T = unknown> extends CommonBaseModel<T> {
48
48
  pattern?: Pattern;
49
49
  invertedPattern?: Pattern;
50
- selection?: ModelSelection;
50
+ selection?: BaseSelectionDefinition;
51
51
  mutable: boolean;
52
52
  writable: boolean;
53
53
  nullable: boolean;
@@ -68,7 +68,7 @@ export interface BaseProperties<T = unknown> extends CommonBaseModel<T>, ModelSt
68
68
  requiredText: string;
69
69
  componentProperties: Mapping<unknown>;
70
70
  domNodeProperties: Mapping<unknown>;
71
- selection?: Selection;
71
+ selection?: SelectionDefinition;
72
72
  showDeclaration: boolean;
73
73
  showInitialValidationState: boolean;
74
74
  showValidationState: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-material",
3
- "version": "0.0.784",
3
+ "version": "0.0.786",
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",
@@ -118,11 +118,11 @@
118
118
  "@codemirror/commands": "^6.10.2",
119
119
  "@codemirror/lang-css": "^6.3.1",
120
120
  "@codemirror/lang-javascript": "^6.2.4",
121
- "@codemirror/language": "^6.12.1",
121
+ "@codemirror/language": "^6.12.2",
122
122
  "@codemirror/lint": "^6.9.4",
123
123
  "@codemirror/search": "^6.6.0",
124
124
  "@codemirror/state": "^6.5.4",
125
- "@codemirror/view": "^6.39.14",
125
+ "@codemirror/view": "^6.39.15",
126
126
  "@emotion/react": "^11.14.0",
127
127
  "@eslint/js": "^10.0.1",
128
128
  "@playwright/test": "^1.58.2",
@@ -140,32 +140,32 @@
140
140
  "@rmwc/tooltip": "^14.3.5",
141
141
  "@rmwc/touch-target": "^14.3.5",
142
142
  "@rmwc/typography": "^14.3.5",
143
- "@stylistic/eslint-plugin": "^5.8.0",
143
+ "@stylistic/eslint-plugin": "^5.9.0",
144
144
  "@teamsupercell/typings-for-css-modules-loader": "^2.5.2",
145
- "@tiptap/core": "^3.19.0",
146
- "@tiptap/extensions": "^3.19.0",
147
- "@tiptap/react": "^3.19.0",
148
- "@tiptap/starter-kit": "^3.19.0",
145
+ "@tiptap/core": "^3.20.0",
146
+ "@tiptap/extensions": "^3.20.0",
147
+ "@tiptap/react": "^3.20.0",
148
+ "@tiptap/starter-kit": "^3.20.0",
149
149
  "@types/ejs": "^3.1.5",
150
150
  "@types/html-minifier": "^4.0.6",
151
- "@types/jquery": "^3.5.33",
152
- "@types/jsdom": "^27.0.0",
153
- "@types/node": "^25.2.3",
151
+ "@types/jquery": "^4.0.0",
152
+ "@types/jsdom": "^28.0.0",
153
+ "@types/node": "^25.3.3",
154
154
  "@types/react": "^18.3.28",
155
155
  "@types/react-dom": "^18.3.7",
156
156
  "@types/react-transition-group": "^4.4.12",
157
157
  "@types/spark-md5": "^3.0.5",
158
158
  "@types/webpack-env": "^1.18.8",
159
- "@typescript-eslint/eslint-plugin": "^8.56.0",
160
- "@typescript-eslint/parser": "^8.56.0",
159
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
160
+ "@typescript-eslint/parser": "^8.56.1",
161
161
  "blob-util": "^2.0.2",
162
- "clientnode": "3.0.1347",
162
+ "clientnode": "4.0.1349",
163
163
  "css-loader": "^7.1.4",
164
164
  "cssnano": "^7.1.2",
165
165
  "documentation-website": "^1.0.398",
166
- "eslint": "^10.0.0",
166
+ "eslint": "^10.0.2",
167
167
  "eslint-config-google": "^0.14.0",
168
- "eslint-plugin-jsdoc": "^62.5.5",
168
+ "eslint-plugin-jsdoc": "^62.7.1",
169
169
  "identity-obj-proxy": "^3.0.0",
170
170
  "jest": "^30.2.0",
171
171
  "jsdoc": "^4.0.5",
@@ -176,24 +176,25 @@
176
176
  "postcss-import": "^16.1.1",
177
177
  "postcss-loader": "^8.2.1",
178
178
  "postcss-nested": "^7.0.2",
179
- "postcss-preset-env": "^11.1.3",
179
+ "postcss-preset-env": "^11.2.0",
180
+ "postcss-scss": "^4.0.9",
180
181
  "prop-types": "^15.8.1",
181
182
  "react": "^18.3.1",
182
183
  "react-dom": "^18.3.1",
183
- "react-generic-animate": "^0.0.106",
184
- "react-generic-dummy": "^0.0.118",
185
- "react-generic-tools": "^0.0.94",
184
+ "react-generic-animate": "^0.0.108",
185
+ "react-generic-dummy": "^0.0.119",
186
+ "react-generic-tools": "^0.0.95",
186
187
  "react-transition-group": "^4.4.5",
187
188
  "react-useanimations": "^2.10.0",
188
189
  "spark-md5": "^3.0.2",
189
190
  "style-loader": "^4.0.0",
190
- "stylelint": "^17.3.0",
191
+ "stylelint": "^17.4.0",
191
192
  "stylelint-config-standard": "^40.0.0",
192
193
  "tslib": "^2.8.1",
193
- "typescript-eslint": "^8.56.0",
194
+ "typescript-eslint": "^8.56.1",
194
195
  "typescript-plugin-css-modules": "^5.2.0",
195
- "web-component-wrapper": "^0.0.543",
196
- "weboptimizer": "^2.0.1648",
196
+ "web-component-wrapper": "^0.0.544",
197
+ "weboptimizer": "^3.0.2",
197
198
  "webpack-dev-server": "^5.2.3"
198
199
  },
199
200
  "peerDependencies": {