@instructure/ui-simple-select 8.10.3-snapshot.13 → 8.10.3-snapshot.22
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/es/SimpleSelect/__examples__/SimpleSelect.examples.js +2 -6
- package/lib/SimpleSelect/__examples__/SimpleSelect.examples.js +2 -6
- package/package.json +15 -15
- package/src/SimpleSelect/Group/props.ts +6 -2
- package/src/SimpleSelect/Option/props.ts +6 -2
- package/src/SimpleSelect/__examples__/SimpleSelect.examples.tsx +0 -2
- package/src/SimpleSelect/index.tsx +0 -1
- package/src/SimpleSelect/props.ts +10 -3
- package/types/SimpleSelect/Group/props.d.ts +2 -2
- package/types/SimpleSelect/Group/props.d.ts.map +1 -1
- package/types/SimpleSelect/Option/props.d.ts +2 -2
- package/types/SimpleSelect/Option/props.d.ts.map +1 -1
- package/types/SimpleSelect/__examples__/SimpleSelect.examples.d.ts.map +1 -1
- package/types/SimpleSelect/index.d.ts +2 -2
- package/types/SimpleSelect/index.d.ts.map +1 -1
- package/types/SimpleSelect/props.d.ts +3 -3
- package/types/SimpleSelect/props.d.ts.map +1 -1
|
@@ -48,9 +48,7 @@ export default {
|
|
|
48
48
|
id: "0",
|
|
49
49
|
value: "0",
|
|
50
50
|
key: "0"
|
|
51
|
-
}, "Item not in a group"),
|
|
52
|
-
/*#__PURE__*/
|
|
53
|
-
React.createElement(SimpleSelect.Group, {
|
|
51
|
+
}, "Item not in a group"), /*#__PURE__*/React.createElement(SimpleSelect.Group, {
|
|
54
52
|
id: "1",
|
|
55
53
|
renderLabel: "Group one",
|
|
56
54
|
key: "1"
|
|
@@ -58,9 +56,7 @@ export default {
|
|
|
58
56
|
id: "2",
|
|
59
57
|
value: "2",
|
|
60
58
|
key: "2"
|
|
61
|
-
}, "Grouped item one")),
|
|
62
|
-
/*#__PURE__*/
|
|
63
|
-
React.createElement(SimpleSelect.Group, {
|
|
59
|
+
}, "Grouped item one")), /*#__PURE__*/React.createElement(SimpleSelect.Group, {
|
|
64
60
|
id: "3",
|
|
65
61
|
renderLabel: "Group two",
|
|
66
62
|
key: "3"
|
|
@@ -59,9 +59,7 @@ var _default = {
|
|
|
59
59
|
id: "0",
|
|
60
60
|
value: "0",
|
|
61
61
|
key: "0"
|
|
62
|
-
}, "Item not in a group"),
|
|
63
|
-
/*#__PURE__*/
|
|
64
|
-
_react.default.createElement(_SimpleSelect.SimpleSelect.Group, {
|
|
62
|
+
}, "Item not in a group"), /*#__PURE__*/_react.default.createElement(_SimpleSelect.SimpleSelect.Group, {
|
|
65
63
|
id: "1",
|
|
66
64
|
renderLabel: "Group one",
|
|
67
65
|
key: "1"
|
|
@@ -69,9 +67,7 @@ var _default = {
|
|
|
69
67
|
id: "2",
|
|
70
68
|
value: "2",
|
|
71
69
|
key: "2"
|
|
72
|
-
}, "Grouped item one")),
|
|
73
|
-
/*#__PURE__*/
|
|
74
|
-
_react.default.createElement(_SimpleSelect.SimpleSelect.Group, {
|
|
70
|
+
}, "Grouped item one")), /*#__PURE__*/_react.default.createElement(_SimpleSelect.SimpleSelect.Group, {
|
|
75
71
|
id: "3",
|
|
76
72
|
renderLabel: "Group two",
|
|
77
73
|
key: "3"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-simple-select",
|
|
3
|
-
"version": "8.10.3-snapshot.
|
|
3
|
+
"version": "8.10.3-snapshot.22+f96f8c48e",
|
|
4
4
|
"description": "A component for standard select element behavior.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.10.3-snapshot.
|
|
29
|
-
"@instructure/ui-form-field": "8.10.3-snapshot.
|
|
30
|
-
"@instructure/ui-position": "8.10.3-snapshot.
|
|
31
|
-
"@instructure/ui-prop-types": "8.10.3-snapshot.
|
|
32
|
-
"@instructure/ui-react-utils": "8.10.3-snapshot.
|
|
33
|
-
"@instructure/ui-select": "8.10.3-snapshot.
|
|
34
|
-
"@instructure/ui-testable": "8.10.3-snapshot.
|
|
35
|
-
"@instructure/uid": "8.10.3-snapshot.
|
|
28
|
+
"@instructure/console": "8.10.3-snapshot.22+f96f8c48e",
|
|
29
|
+
"@instructure/ui-form-field": "8.10.3-snapshot.22+f96f8c48e",
|
|
30
|
+
"@instructure/ui-position": "8.10.3-snapshot.22+f96f8c48e",
|
|
31
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
32
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
33
|
+
"@instructure/ui-select": "8.10.3-snapshot.22+f96f8c48e",
|
|
34
|
+
"@instructure/ui-testable": "8.10.3-snapshot.22+f96f8c48e",
|
|
35
|
+
"@instructure/uid": "8.10.3-snapshot.22+f96f8c48e",
|
|
36
36
|
"prop-types": "^15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.10.3-snapshot.
|
|
40
|
-
"@instructure/ui-color-utils": "8.10.3-snapshot.
|
|
41
|
-
"@instructure/ui-icons": "8.10.3-snapshot.
|
|
42
|
-
"@instructure/ui-test-locator": "8.10.3-snapshot.
|
|
43
|
-
"@instructure/ui-test-utils": "8.10.3-snapshot.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.22+f96f8c48e",
|
|
40
|
+
"@instructure/ui-color-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
41
|
+
"@instructure/ui-icons": "8.10.3-snapshot.22+f96f8c48e",
|
|
42
|
+
"@instructure/ui-test-locator": "8.10.3-snapshot.22+f96f8c48e",
|
|
43
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.22+f96f8c48e"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.8 <=17"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f96f8c48efab7806609098e1f00a6953b2884601"
|
|
53
53
|
}
|
|
@@ -28,7 +28,10 @@ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
|
28
28
|
|
|
29
29
|
import { Option } from '../Option'
|
|
30
30
|
|
|
31
|
-
import type {
|
|
31
|
+
import type {
|
|
32
|
+
OtherHTMLAttributes,
|
|
33
|
+
PropValidators
|
|
34
|
+
} from '@instructure/shared-types'
|
|
32
35
|
|
|
33
36
|
type SimpleSelectGroupOwnProps = {
|
|
34
37
|
renderLabel: React.ReactNode | ((...args: any[]) => any)
|
|
@@ -38,7 +41,8 @@ type PropKeys = keyof SimpleSelectGroupOwnProps
|
|
|
38
41
|
|
|
39
42
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
40
43
|
|
|
41
|
-
type SimpleSelectGroupProps = SimpleSelectGroupOwnProps
|
|
44
|
+
type SimpleSelectGroupProps = SimpleSelectGroupOwnProps &
|
|
45
|
+
OtherHTMLAttributes<SimpleSelectGroupOwnProps>
|
|
42
46
|
|
|
43
47
|
const propTypes: PropValidators<PropKeys> = {
|
|
44
48
|
/**
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
import React from 'react'
|
|
25
25
|
import PropTypes from 'prop-types'
|
|
26
26
|
|
|
27
|
-
import type {
|
|
27
|
+
import type {
|
|
28
|
+
OtherHTMLAttributes,
|
|
29
|
+
PropValidators
|
|
30
|
+
} from '@instructure/shared-types'
|
|
28
31
|
|
|
29
32
|
type SimpleSelectOptionOwnProps = {
|
|
30
33
|
id: string
|
|
@@ -38,7 +41,8 @@ type PropKeys = keyof SimpleSelectOptionOwnProps
|
|
|
38
41
|
|
|
39
42
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
40
43
|
|
|
41
|
-
type SimpleSelectOptionProps = SimpleSelectOptionOwnProps
|
|
44
|
+
type SimpleSelectOptionProps = SimpleSelectOptionOwnProps &
|
|
45
|
+
OtherHTMLAttributes<SimpleSelectOptionOwnProps>
|
|
42
46
|
|
|
43
47
|
const propTypes: PropValidators<PropKeys> = {
|
|
44
48
|
/**
|
|
@@ -48,13 +48,11 @@ export default {
|
|
|
48
48
|
<SimpleSelect.Option id="0" value="0" key="0">
|
|
49
49
|
Item not in a group
|
|
50
50
|
</SimpleSelect.Option>,
|
|
51
|
-
// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.
|
|
52
51
|
<SimpleSelect.Group id="1" renderLabel="Group one" key="1">
|
|
53
52
|
<SimpleSelect.Option id="2" value="2" key="2">
|
|
54
53
|
Grouped item one
|
|
55
54
|
</SimpleSelect.Option>
|
|
56
55
|
</SimpleSelect.Group>,
|
|
57
|
-
// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.
|
|
58
56
|
<SimpleSelect.Group id="3" renderLabel="Group two" key="3">
|
|
59
57
|
<SimpleSelect.Option id="4" value="4" key="4">
|
|
60
58
|
Grouped item two
|
|
@@ -359,7 +359,6 @@ class SimpleSelect extends Component<SimpleSelectProps> {
|
|
|
359
359
|
return (
|
|
360
360
|
<Select.Option
|
|
361
361
|
id={id}
|
|
362
|
-
// @ts-expect-error FIXME:
|
|
363
362
|
value={value}
|
|
364
363
|
key={option.key || id}
|
|
365
364
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'highlightedOptionId' does not exist on t... Remove this comment to see the full error message
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import React from 'react'
|
|
25
|
+
import React, { InputHTMLAttributes } from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
28
|
import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
@@ -33,7 +33,10 @@ import { Group } from './Group'
|
|
|
33
33
|
import { Option } from './Option'
|
|
34
34
|
|
|
35
35
|
import type { FormMessage } from '@instructure/ui-form-field'
|
|
36
|
-
import type {
|
|
36
|
+
import type {
|
|
37
|
+
OtherHTMLAttributes,
|
|
38
|
+
PropValidators
|
|
39
|
+
} from '@instructure/shared-types'
|
|
37
40
|
import type {
|
|
38
41
|
PlacementPropValues,
|
|
39
42
|
PositionConstraint,
|
|
@@ -75,7 +78,11 @@ type PropKeys = keyof SimpleSelectOwnProps
|
|
|
75
78
|
|
|
76
79
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
77
80
|
|
|
78
|
-
type SimpleSelectProps = SimpleSelectOwnProps
|
|
81
|
+
type SimpleSelectProps = SimpleSelectOwnProps &
|
|
82
|
+
OtherHTMLAttributes<
|
|
83
|
+
SimpleSelectOwnProps,
|
|
84
|
+
InputHTMLAttributes<SimpleSelectOwnProps>
|
|
85
|
+
>
|
|
79
86
|
|
|
80
87
|
const propTypes: PropValidators<PropKeys> = {
|
|
81
88
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
2
|
+
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
3
3
|
declare type SimpleSelectGroupOwnProps = {
|
|
4
4
|
renderLabel: React.ReactNode | ((...args: any[]) => any);
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
declare type PropKeys = keyof SimpleSelectGroupOwnProps;
|
|
8
8
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
9
|
-
declare type SimpleSelectGroupProps = SimpleSelectGroupOwnProps
|
|
9
|
+
declare type SimpleSelectGroupProps = SimpleSelectGroupOwnProps & OtherHTMLAttributes<SimpleSelectGroupOwnProps>;
|
|
10
10
|
declare const propTypes: PropValidators<PropKeys>;
|
|
11
11
|
declare const allowedProps: AllowedPropKeys;
|
|
12
12
|
export type { SimpleSelectGroupProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/Group/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/Group/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AACD,aAAK,QAAQ,GAAG,MAAM,yBAAyB,CAAA;AAE/C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,sBAAsB,GAAG,yBAAyB,GACrD,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;AAEhD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CASvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAA6C,CAAA;AAEjE,YAAY,EAAE,sBAAsB,EAAE,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
2
|
+
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
3
3
|
declare type SimpleSelectOptionOwnProps = {
|
|
4
4
|
id: string;
|
|
5
5
|
value: string | number;
|
|
@@ -10,7 +10,7 @@ declare type SimpleSelectOptionOwnProps = {
|
|
|
10
10
|
};
|
|
11
11
|
declare type PropKeys = keyof SimpleSelectOptionOwnProps;
|
|
12
12
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
13
|
-
declare type SimpleSelectOptionProps = SimpleSelectOptionOwnProps
|
|
13
|
+
declare type SimpleSelectOptionProps = SimpleSelectOptionOwnProps & OtherHTMLAttributes<SimpleSelectOptionOwnProps>;
|
|
14
14
|
declare const propTypes: PropValidators<PropKeys>;
|
|
15
15
|
declare const allowedProps: AllowedPropKeys;
|
|
16
16
|
export type { SimpleSelectOptionProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/Option/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/Option/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,0BAA0B,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC/D,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AACD,aAAK,QAAQ,GAAG,MAAM,0BAA0B,CAAA;AAEhD,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,uBAAuB,GAAG,0BAA0B,GACvD,mBAAmB,CAAC,0BAA0B,CAAC,CAAA;AAEjD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAyBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAOnB,CAAA;AAED,YAAY,EAAE,uBAAuB,EAAE,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleSelect.examples.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/__examples__/SimpleSelect.examples.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AA2BA,
|
|
1
|
+
{"version":3,"file":"SimpleSelect.examples.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/__examples__/SimpleSelect.examples.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AA2BA,wBAsDC"}
|
|
@@ -20,7 +20,7 @@ declare class SimpleSelect extends Component<SimpleSelectProps> {
|
|
|
20
20
|
size?: "small" | "medium" | "large" | undefined;
|
|
21
21
|
assistiveText?: string | undefined;
|
|
22
22
|
placeholder?: string | undefined;
|
|
23
|
-
interaction?: "
|
|
23
|
+
interaction?: "disabled" | "enabled" | "readonly" | undefined;
|
|
24
24
|
isRequired?: boolean | undefined;
|
|
25
25
|
isInline?: boolean | undefined;
|
|
26
26
|
width?: string | undefined;
|
|
@@ -50,7 +50,7 @@ declare class SimpleSelect extends Component<SimpleSelectProps> {
|
|
|
50
50
|
size?: "small" | "medium" | "large" | undefined;
|
|
51
51
|
assistiveText?: string | undefined;
|
|
52
52
|
placeholder?: string | undefined;
|
|
53
|
-
interaction?: "
|
|
53
|
+
interaction?: "disabled" | "enabled" | "readonly" | undefined;
|
|
54
54
|
isRequired?: boolean | undefined;
|
|
55
55
|
isInline?: boolean | undefined;
|
|
56
56
|
width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AM,KAAA;IAgDnB,WAAW,CAAC,KAAK,KAAA;IAajB,MAAM;CAuEP;AAED,OAAO,EAAE,YAAY,EAAE,CAAA;AACvB,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
2
|
import type { FormMessage } from '@instructure/ui-form-field';
|
|
3
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
3
|
+
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
4
4
|
import type { PlacementPropValues, PositionConstraint, PositionMountNode } from '@instructure/ui-position';
|
|
5
5
|
declare type SimpleSelectOwnProps = {
|
|
6
6
|
renderLabel: React.ReactNode | ((...args: any[]) => any);
|
|
@@ -34,7 +34,7 @@ declare type SimpleSelectOwnProps = {
|
|
|
34
34
|
};
|
|
35
35
|
declare type PropKeys = keyof SimpleSelectOwnProps;
|
|
36
36
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
37
|
-
declare type SimpleSelectProps = SimpleSelectOwnProps
|
|
37
|
+
declare type SimpleSelectProps = SimpleSelectOwnProps & OtherHTMLAttributes<SimpleSelectOwnProps, InputHTMLAttributes<SimpleSelectOwnProps>>;
|
|
38
38
|
declare const propTypes: PropValidators<PropKeys>;
|
|
39
39
|
declare const allowedProps: AllowedPropKeys;
|
|
40
40
|
export type { SimpleSelectProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SimpleSelect/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SimpleSelect/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAUlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAA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