@instructure/ui-editable 8.10.3-snapshot.3 → 8.11.1-snapshot.0
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/CHANGELOG.md +4 -0
- package/es/Editable/index.js +13 -1
- package/es/Editable/props.js +7 -2
- package/es/InPlaceEdit/index.js +7 -1
- package/lib/Editable/index.js +13 -1
- package/lib/Editable/props.js +7 -2
- package/lib/InPlaceEdit/index.js +7 -1
- package/package.json +14 -14
- package/src/Editable/index.tsx +14 -1
- package/src/Editable/props.ts +8 -2
- package/src/InPlaceEdit/index.tsx +7 -0
- package/types/Editable/index.d.ts +5 -0
- package/types/Editable/index.d.ts.map +1 -1
- package/types/Editable/props.d.ts +1 -0
- package/types/Editable/props.d.ts.map +1 -1
- package/types/InPlaceEdit/index.d.ts +2 -0
- package/types/InPlaceEdit/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.11.0](https://github.com/instructure/instructure-ui/compare/v8.10.2...v8.11.0) (2021-10-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-editable
|
|
9
|
+
|
|
6
10
|
## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-editable
|
package/es/Editable/index.js
CHANGED
|
@@ -97,6 +97,17 @@ class Editable extends Component {
|
|
|
97
97
|
this.enterEdit();
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
this.ref = null;
|
|
101
|
+
|
|
102
|
+
this.handleContainerRef = el => {
|
|
103
|
+
const elementRef = this.props.elementRef;
|
|
104
|
+
this.ref = el;
|
|
105
|
+
|
|
106
|
+
if (typeof elementRef === 'function') {
|
|
107
|
+
elementRef(el);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
100
111
|
this.getContainerProps = (props = {}) => {
|
|
101
112
|
const _this$props = this.props,
|
|
102
113
|
mode = _this$props.mode,
|
|
@@ -107,7 +118,8 @@ class Editable extends Component {
|
|
|
107
118
|
onMouseDown: mode !== 'edit' ? this.handleViewClick : null,
|
|
108
119
|
onKeyUp: mode === 'edit' ? this.handleEditESC : null,
|
|
109
120
|
readOnly,
|
|
110
|
-
...props
|
|
121
|
+
...props,
|
|
122
|
+
ref: this.handleContainerRef
|
|
111
123
|
};
|
|
112
124
|
};
|
|
113
125
|
|
package/es/Editable/props.js
CHANGED
|
@@ -65,7 +65,12 @@ const propTypes = {
|
|
|
65
65
|
/**
|
|
66
66
|
* The mode is fixed as 'view'
|
|
67
67
|
*/
|
|
68
|
-
readOnly: PropTypes.bool
|
|
68
|
+
readOnly: PropTypes.bool,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* provides a reference to the underlying html root element (container)
|
|
72
|
+
*/
|
|
73
|
+
elementRef: PropTypes.func
|
|
69
74
|
};
|
|
70
|
-
const allowedProps = ['mode', 'onChangeMode', 'children', 'render', 'value', 'onChange', 'readOnly'];
|
|
75
|
+
const allowedProps = ['mode', 'onChangeMode', 'children', 'render', 'value', 'onChange', 'readOnly', 'elementRef'];
|
|
71
76
|
export { propTypes, allowedProps };
|
package/es/InPlaceEdit/index.js
CHANGED
|
@@ -45,6 +45,11 @@ category: components
|
|
|
45
45
|
let InPlaceEdit = (_dec = withStyle(generateStyle, null), _dec(_class = (_temp = _class2 = class InPlaceEdit extends Component {
|
|
46
46
|
constructor(props) {
|
|
47
47
|
super(props);
|
|
48
|
+
this.ref = null;
|
|
49
|
+
|
|
50
|
+
this.handleRef = el => {
|
|
51
|
+
this.ref = el;
|
|
52
|
+
};
|
|
48
53
|
|
|
49
54
|
this.handleEditButtonRef = el => {
|
|
50
55
|
this._editButtonRef = el;
|
|
@@ -140,7 +145,8 @@ let InPlaceEdit = (_dec = withStyle(generateStyle, null), _dec(_class = (_temp =
|
|
|
140
145
|
render: this.renderAll,
|
|
141
146
|
value: value,
|
|
142
147
|
onChange: onChange,
|
|
143
|
-
readOnly: readOnly
|
|
148
|
+
readOnly: readOnly,
|
|
149
|
+
elementRef: this.handleRef
|
|
144
150
|
});
|
|
145
151
|
}
|
|
146
152
|
|
package/lib/Editable/index.js
CHANGED
|
@@ -109,6 +109,17 @@ class Editable extends _react.Component {
|
|
|
109
109
|
this.enterEdit();
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
+
this.ref = null;
|
|
113
|
+
|
|
114
|
+
this.handleContainerRef = el => {
|
|
115
|
+
const elementRef = this.props.elementRef;
|
|
116
|
+
this.ref = el;
|
|
117
|
+
|
|
118
|
+
if (typeof elementRef === 'function') {
|
|
119
|
+
elementRef(el);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
112
123
|
this.getContainerProps = (props = {}) => {
|
|
113
124
|
const _this$props = this.props,
|
|
114
125
|
mode = _this$props.mode,
|
|
@@ -119,7 +130,8 @@ class Editable extends _react.Component {
|
|
|
119
130
|
onMouseDown: mode !== 'edit' ? this.handleViewClick : null,
|
|
120
131
|
onKeyUp: mode === 'edit' ? this.handleEditESC : null,
|
|
121
132
|
readOnly,
|
|
122
|
-
...props
|
|
133
|
+
...props,
|
|
134
|
+
ref: this.handleContainerRef
|
|
123
135
|
};
|
|
124
136
|
};
|
|
125
137
|
|
package/lib/Editable/props.js
CHANGED
|
@@ -75,8 +75,13 @@ const propTypes = {
|
|
|
75
75
|
/**
|
|
76
76
|
* The mode is fixed as 'view'
|
|
77
77
|
*/
|
|
78
|
-
readOnly: _propTypes.default.bool
|
|
78
|
+
readOnly: _propTypes.default.bool,
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* provides a reference to the underlying html root element (container)
|
|
82
|
+
*/
|
|
83
|
+
elementRef: _propTypes.default.func
|
|
79
84
|
};
|
|
80
85
|
exports.propTypes = propTypes;
|
|
81
|
-
const allowedProps = ['mode', 'onChangeMode', 'children', 'render', 'value', 'onChange', 'readOnly'];
|
|
86
|
+
const allowedProps = ['mode', 'onChangeMode', 'children', 'render', 'value', 'onChange', 'readOnly', 'elementRef'];
|
|
82
87
|
exports.allowedProps = allowedProps;
|
package/lib/InPlaceEdit/index.js
CHANGED
|
@@ -39,6 +39,11 @@ category: components
|
|
|
39
39
|
let InPlaceEdit = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_temp = _class2 = class InPlaceEdit extends _react.Component {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
|
42
|
+
this.ref = null;
|
|
43
|
+
|
|
44
|
+
this.handleRef = el => {
|
|
45
|
+
this.ref = el;
|
|
46
|
+
};
|
|
42
47
|
|
|
43
48
|
this.handleEditButtonRef = el => {
|
|
44
49
|
this._editButtonRef = el;
|
|
@@ -134,7 +139,8 @@ let InPlaceEdit = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_
|
|
|
134
139
|
render: this.renderAll,
|
|
135
140
|
value: value,
|
|
136
141
|
onChange: onChange,
|
|
137
|
-
readOnly: readOnly
|
|
142
|
+
readOnly: readOnly,
|
|
143
|
+
elementRef: this.handleRef
|
|
138
144
|
});
|
|
139
145
|
}
|
|
140
146
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-editable",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.1-snapshot.0+8536a1c9b",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.
|
|
28
|
-
"@instructure/ui-test-utils": "8.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.11.1-snapshot.0+8536a1c9b",
|
|
28
|
+
"@instructure/ui-test-utils": "8.11.1-snapshot.0+8536a1c9b"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.13.10",
|
|
32
|
-
"@instructure/console": "8.
|
|
33
|
-
"@instructure/emotion": "8.
|
|
34
|
-
"@instructure/ui-a11y-content": "8.
|
|
35
|
-
"@instructure/ui-buttons": "8.
|
|
36
|
-
"@instructure/ui-dom-utils": "8.
|
|
37
|
-
"@instructure/ui-flex": "8.
|
|
38
|
-
"@instructure/ui-focusable": "8.
|
|
39
|
-
"@instructure/ui-icons": "8.
|
|
40
|
-
"@instructure/ui-utils": "8.
|
|
41
|
-
"@instructure/ui-view": "8.
|
|
32
|
+
"@instructure/console": "8.11.1-snapshot.0+8536a1c9b",
|
|
33
|
+
"@instructure/emotion": "8.11.1-snapshot.0+8536a1c9b",
|
|
34
|
+
"@instructure/ui-a11y-content": "8.11.1-snapshot.0+8536a1c9b",
|
|
35
|
+
"@instructure/ui-buttons": "8.11.1-snapshot.0+8536a1c9b",
|
|
36
|
+
"@instructure/ui-dom-utils": "8.11.1-snapshot.0+8536a1c9b",
|
|
37
|
+
"@instructure/ui-flex": "8.11.1-snapshot.0+8536a1c9b",
|
|
38
|
+
"@instructure/ui-focusable": "8.11.1-snapshot.0+8536a1c9b",
|
|
39
|
+
"@instructure/ui-icons": "8.11.1-snapshot.0+8536a1c9b",
|
|
40
|
+
"@instructure/ui-utils": "8.11.1-snapshot.0+8536a1c9b",
|
|
41
|
+
"@instructure/ui-view": "8.11.1-snapshot.0+8536a1c9b",
|
|
42
42
|
"prop-types": "^15"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8536a1c9badcd8c1d2ce55dfb462d1899e3ca500"
|
|
53
53
|
}
|
package/src/Editable/index.tsx
CHANGED
|
@@ -171,6 +171,18 @@ class Editable extends Component<EditableProps> {
|
|
|
171
171
|
this.enterEdit()
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
ref: Element | null = null
|
|
175
|
+
|
|
176
|
+
handleContainerRef = (el: Element | null) => {
|
|
177
|
+
const { elementRef } = this.props
|
|
178
|
+
|
|
179
|
+
this.ref = el
|
|
180
|
+
|
|
181
|
+
if (typeof elementRef === 'function') {
|
|
182
|
+
elementRef(el)
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
174
186
|
// ------- prop getters ------
|
|
175
187
|
getContainerProps = (props = {}) => {
|
|
176
188
|
const { mode, readOnly } = this.props
|
|
@@ -180,7 +192,8 @@ class Editable extends Component<EditableProps> {
|
|
|
180
192
|
onMouseDown: mode !== 'edit' ? this.handleViewClick : null,
|
|
181
193
|
onKeyUp: mode === 'edit' ? this.handleEditESC : null,
|
|
182
194
|
readOnly,
|
|
183
|
-
...props
|
|
195
|
+
...props,
|
|
196
|
+
ref: this.handleContainerRef
|
|
184
197
|
}
|
|
185
198
|
}
|
|
186
199
|
|
package/src/Editable/props.ts
CHANGED
|
@@ -34,6 +34,7 @@ type EditableOwnProps = {
|
|
|
34
34
|
value?: any
|
|
35
35
|
onChange?: (...args: any[]) => any
|
|
36
36
|
readOnly?: boolean
|
|
37
|
+
elementRef?: (element: Element | null) => void
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
type PropKeys = keyof EditableOwnProps
|
|
@@ -81,7 +82,11 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
81
82
|
/**
|
|
82
83
|
* The mode is fixed as 'view'
|
|
83
84
|
*/
|
|
84
|
-
readOnly: PropTypes.bool
|
|
85
|
+
readOnly: PropTypes.bool,
|
|
86
|
+
/**
|
|
87
|
+
* provides a reference to the underlying html root element (container)
|
|
88
|
+
*/
|
|
89
|
+
elementRef: PropTypes.func
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
const allowedProps: AllowedPropKeys = [
|
|
@@ -91,7 +96,8 @@ const allowedProps: AllowedPropKeys = [
|
|
|
91
96
|
'render',
|
|
92
97
|
'value',
|
|
93
98
|
'onChange',
|
|
94
|
-
'readOnly'
|
|
99
|
+
'readOnly',
|
|
100
|
+
'elementRef'
|
|
95
101
|
]
|
|
96
102
|
|
|
97
103
|
export type { EditableProps }
|
|
@@ -56,6 +56,12 @@ class InPlaceEdit extends Component<InPlaceEditProps> {
|
|
|
56
56
|
editButtonPlacement: 'end'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
ref: Element | null = null
|
|
60
|
+
|
|
61
|
+
handleRef = (el: Element | null) => {
|
|
62
|
+
this.ref = el
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
// @ts-expect-error ts-migrate(7006) FIXME: Parameter 'props' implicitly has an 'any' type.
|
|
60
66
|
constructor(props) {
|
|
61
67
|
super(props)
|
|
@@ -189,6 +195,7 @@ class InPlaceEdit extends Component<InPlaceEditProps> {
|
|
|
189
195
|
value={value}
|
|
190
196
|
onChange={onChange}
|
|
191
197
|
readOnly={readOnly}
|
|
198
|
+
elementRef={this.handleRef}
|
|
192
199
|
/>
|
|
193
200
|
)
|
|
194
201
|
}
|
|
@@ -15,6 +15,7 @@ declare class Editable extends Component<EditableProps> {
|
|
|
15
15
|
value?: any;
|
|
16
16
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
readOnly?: boolean | undefined;
|
|
18
|
+
elementRef?: ((element: Element | null) => void) | undefined;
|
|
18
19
|
}>;
|
|
19
20
|
static allowedProps: readonly (keyof {
|
|
20
21
|
mode: "view" | "edit";
|
|
@@ -24,6 +25,7 @@ declare class Editable extends Component<EditableProps> {
|
|
|
24
25
|
value?: any;
|
|
25
26
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
27
|
readOnly?: boolean | undefined;
|
|
28
|
+
elementRef?: ((element: Element | null) => void) | undefined;
|
|
27
29
|
})[];
|
|
28
30
|
static defaultProps: {
|
|
29
31
|
readOnly: boolean;
|
|
@@ -50,7 +52,10 @@ declare class Editable extends Component<EditableProps> {
|
|
|
50
52
|
handleEditButtonFocus: (event: any) => void;
|
|
51
53
|
handleEditButtonBlur: (event: any) => void;
|
|
52
54
|
handleEditButtonClick: (event: any) => void;
|
|
55
|
+
ref: Element | null;
|
|
56
|
+
handleContainerRef: (el: Element | null) => void;
|
|
53
57
|
getContainerProps: (props?: {}) => {
|
|
58
|
+
ref: (el: Element | null) => void;
|
|
54
59
|
onMouseOver: (event: any) => void;
|
|
55
60
|
onMouseOut: (event: any) => void;
|
|
56
61
|
onMouseDown: ((event: any) => void) | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Editable/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;GAKG;AACH,cAAM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Editable/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;GAKG;AACH,cAAM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,SAAS;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;MAGlB;IAED,KAAK;;;MAGJ;IAED,UAAU,OAAO;IACjB,cAAc,OAAO;gBAGT,KAAK,KAAA;IASjB,iBAAiB;IAKjB,oBAAoB;IAGpB,kBAAkB,CAAC,SAAS,KAAA;IAmB5B,WAAW;IAWX,SAAS;IAOT,SAAS;IAUT,aAAa,uBAIZ;IAGD,mBAAmB,uBAMlB;IAGD,kBAAkB,uBAOjB;IAGD,eAAe,uBAMd;IAGD,cAAc,uBAEb;IAGD,qBAAqB,uBAEpB;IAGD,oBAAoB,uBAEnB;IAGD,qBAAqB,uBAEpB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,kBAAkB,OAAQ,OAAO,GAAG,IAAI,UAQvC;IAGD,iBAAiB;kBAXS,OAAO,GAAG,IAAI;;;;;;MAsBvC;IAED,cAAc;;;MAMb;IAGD,cAAc,sBAWb;IAED,kBAAkB;;;;;;;MAajB;IAED,MAAM;CAeP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -7,6 +7,7 @@ declare type EditableOwnProps = {
|
|
|
7
7
|
value?: any;
|
|
8
8
|
onChange?: (...args: any[]) => any;
|
|
9
9
|
readOnly?: boolean;
|
|
10
|
+
elementRef?: (element: Element | null) => void;
|
|
10
11
|
};
|
|
11
12
|
declare type PropKeys = keyof EditableOwnProps;
|
|
12
13
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Editable/props.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACrC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE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laceEdit extends Component<InPlaceEditProps> {
|
|
|
41
41
|
inline: boolean;
|
|
42
42
|
editButtonPlacement: string;
|
|
43
43
|
};
|
|
44
|
+
ref: Element | null;
|
|
45
|
+
handleRef: (el: Element | null) => void;
|
|
44
46
|
constructor(props: any);
|
|
45
47
|
componentDidMount(): void;
|
|
46
48
|
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InPlaceEdit/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAOrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;GAIG;AACH,cACM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAC3C,MAAM,CAAC,SAAS;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;MAKlB;gBAGW,KAAK,KAAA;IASjB,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAMjD,mBAAmB,oBAGlB;IAGD,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE;;;;;KAAA;IAoBlD,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;;KAAA;IAK/B,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE;;;KAAA;IASvC,MAAM,CAAC,uBAAuB;;;;;iCAuB7B;IAED,SAAS;;;;;0BAiCR;IAED,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InP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