@instructure/ui-view 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/View/index.js +6 -9
- package/lib/View/index.js +6 -9
- package/package.json +14 -14
- package/src/ContextView/index.tsx +1 -4
- package/src/ContextView/props.ts +4 -2
- package/src/View/index.tsx +7 -10
- package/src/View/props.ts +4 -1
- package/types/ContextView/index.d.ts +1 -2
- package/types/ContextView/index.d.ts.map +1 -1
- package/types/ContextView/props.d.ts +2 -2
- package/types/ContextView/props.d.ts.map +1 -1
- package/types/View/index.d.ts +1 -10
- package/types/View/index.d.ts.map +1 -1
- package/types/View/props.d.ts +2 -2
- package/types/View/props.d.ts.map +1 -1
package/es/View/index.js
CHANGED
|
@@ -55,15 +55,12 @@ let View = (_dec = bidirectional(), _dec2 = withStyle(generateStyle, generateCom
|
|
|
55
55
|
// View.allowedProps in the method matches the View.allowedProps that will be called in
|
|
56
56
|
// the consumers. Otherwise the discrepancy could cause unexpected props being
|
|
57
57
|
// allowed through.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* @param Component The component whose props are processed.
|
|
65
|
-
* Only needed for debug logging in non-production builds.
|
|
66
|
-
*/
|
|
58
|
+
// Removes View's own props from the given object. Automatically excludes the
|
|
59
|
+
// following props: 'theme', 'children', 'className', 'style', 'styles',
|
|
60
|
+
// 'makeStyles', 'themeOverride'
|
|
61
|
+
// @param props the object to process
|
|
62
|
+
// @param Component The component whose props are processed.
|
|
63
|
+
// Only needed for debug logging in non-production builds.
|
|
67
64
|
constructor(props) {
|
|
68
65
|
super(props);
|
|
69
66
|
this.spanMarginVerified = void 0;
|
package/lib/View/index.js
CHANGED
|
@@ -54,15 +54,12 @@ let View = (_dec = (0, _bidirectional.bidirectional)(), _dec2 = (0, _emotion.wit
|
|
|
54
54
|
// View.allowedProps in the method matches the View.allowedProps that will be called in
|
|
55
55
|
// the consumers. Otherwise the discrepancy could cause unexpected props being
|
|
56
56
|
// allowed through.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* @param Component The component whose props are processed.
|
|
64
|
-
* Only needed for debug logging in non-production builds.
|
|
65
|
-
*/
|
|
57
|
+
// Removes View's own props from the given object. Automatically excludes the
|
|
58
|
+
// following props: 'theme', 'children', 'className', 'style', 'styles',
|
|
59
|
+
// 'makeStyles', 'themeOverride'
|
|
60
|
+
// @param props the object to process
|
|
61
|
+
// @param Component The component whose props are processed.
|
|
62
|
+
// Only needed for debug logging in non-production builds.
|
|
66
63
|
constructor(props) {
|
|
67
64
|
super(props);
|
|
68
65
|
this.spanMarginVerified = void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-view",
|
|
3
|
-
"version": "8.10.3-snapshot.
|
|
3
|
+
"version": "8.10.3-snapshot.22+f96f8c48e",
|
|
4
4
|
"description": "A component for basic styles including spacing, sizing, borders, display, positioning, and focus states.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.10.3-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.10.3-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.10.3-snapshot.
|
|
31
|
-
"@instructure/ui-color-utils": "8.10.3-snapshot.
|
|
32
|
-
"@instructure/ui-dom-utils": "8.10.3-snapshot.
|
|
33
|
-
"@instructure/ui-i18n": "8.10.3-snapshot.
|
|
34
|
-
"@instructure/ui-position": "8.10.3-snapshot.
|
|
35
|
-
"@instructure/ui-prop-types": "8.10.3-snapshot.
|
|
36
|
-
"@instructure/ui-react-utils": "8.10.3-snapshot.
|
|
28
|
+
"@instructure/console": "8.10.3-snapshot.22+f96f8c48e",
|
|
29
|
+
"@instructure/emotion": "8.10.3-snapshot.22+f96f8c48e",
|
|
30
|
+
"@instructure/shared-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
31
|
+
"@instructure/ui-color-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
32
|
+
"@instructure/ui-dom-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
33
|
+
"@instructure/ui-i18n": "8.10.3-snapshot.22+f96f8c48e",
|
|
34
|
+
"@instructure/ui-position": "8.10.3-snapshot.22+f96f8c48e",
|
|
35
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
36
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
37
37
|
"prop-types": "^15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-babel-preset": "8.10.3-snapshot.
|
|
41
|
-
"@instructure/ui-test-utils": "8.10.3-snapshot.
|
|
42
|
-
"@instructure/ui-themes": "8.10.3-snapshot.
|
|
40
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.22+f96f8c48e",
|
|
41
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
42
|
+
"@instructure/ui-themes": "8.10.3-snapshot.22+f96f8c48e"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8 <=17"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f96f8c48efab7806609098e1f00a6953b2884601"
|
|
52
52
|
}
|
|
@@ -27,7 +27,6 @@ import { Component } from 'react'
|
|
|
27
27
|
|
|
28
28
|
import { jsx, withStyle } from '@instructure/emotion'
|
|
29
29
|
import { omitProps } from '@instructure/ui-react-utils'
|
|
30
|
-
import { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
31
30
|
|
|
32
31
|
import { View } from '../View'
|
|
33
32
|
|
|
@@ -43,9 +42,7 @@ category: components
|
|
|
43
42
|
**/
|
|
44
43
|
|
|
45
44
|
@withStyle(generateStyle, generateComponentTheme)
|
|
46
|
-
class ContextView extends Component<
|
|
47
|
-
ContextViewProps & OtherHTMLAttributes<ContextViewProps>
|
|
48
|
-
> {
|
|
45
|
+
class ContextView extends Component<ContextViewProps> {
|
|
49
46
|
static readonly componentId = 'ContextView'
|
|
50
47
|
static allowedProps = allowedProps
|
|
51
48
|
static propTypes = propTypes
|
package/src/ContextView/props.ts
CHANGED
|
@@ -31,7 +31,8 @@ import { PositionPropTypes } from '@instructure/ui-position'
|
|
|
31
31
|
import type {
|
|
32
32
|
AsElementType,
|
|
33
33
|
PropValidators,
|
|
34
|
-
ContextViewTheme
|
|
34
|
+
ContextViewTheme,
|
|
35
|
+
OtherHTMLAttributes
|
|
35
36
|
} from '@instructure/shared-types'
|
|
36
37
|
import type { PlacementPropValues } from '@instructure/ui-position'
|
|
37
38
|
import type {
|
|
@@ -67,7 +68,8 @@ type PropKeys = keyof ContextViewOwnProps
|
|
|
67
68
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
68
69
|
|
|
69
70
|
type ContextViewProps = ContextViewOwnProps &
|
|
70
|
-
WithStyleProps<ContextViewTheme, ContextViewStyle>
|
|
71
|
+
WithStyleProps<ContextViewTheme, ContextViewStyle> &
|
|
72
|
+
OtherHTMLAttributes<ContextViewOwnProps>
|
|
71
73
|
|
|
72
74
|
type ContextViewStyle = ComponentStyle<
|
|
73
75
|
| 'contextView'
|
package/src/View/index.tsx
CHANGED
|
@@ -35,7 +35,6 @@ import {
|
|
|
35
35
|
passthroughProps
|
|
36
36
|
} from '@instructure/ui-react-utils'
|
|
37
37
|
import { jsx, withStyle } from '@instructure/emotion'
|
|
38
|
-
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
39
38
|
|
|
40
39
|
import generateStyle from './styles'
|
|
41
40
|
import generateComponentTheme from './theme'
|
|
@@ -55,7 +54,7 @@ API:
|
|
|
55
54
|
**/
|
|
56
55
|
@bidirectional()
|
|
57
56
|
@withStyle(generateStyle, generateComponentTheme)
|
|
58
|
-
class View extends Component<ViewProps
|
|
57
|
+
class View extends Component<ViewProps> {
|
|
59
58
|
static componentId = 'View'
|
|
60
59
|
static allowedProps = allowedProps
|
|
61
60
|
static propTypes = propTypes
|
|
@@ -79,14 +78,12 @@ class View extends Component<ViewProps & OtherHTMLAttributes<ViewProps>> {
|
|
|
79
78
|
// the consumers. Otherwise the discrepancy could cause unexpected props being
|
|
80
79
|
// allowed through.
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* Only needed for debug logging in non-production builds.
|
|
89
|
-
*/
|
|
81
|
+
// Removes View's own props from the given object. Automatically excludes the
|
|
82
|
+
// following props: 'theme', 'children', 'className', 'style', 'styles',
|
|
83
|
+
// 'makeStyles', 'themeOverride'
|
|
84
|
+
// @param props the object to process
|
|
85
|
+
// @param Component The component whose props are processed.
|
|
86
|
+
// Only needed for debug logging in non-production builds.
|
|
90
87
|
static omitViewProps = (
|
|
91
88
|
props: Record<string, any>,
|
|
92
89
|
Component: ComponentType<any>
|
package/src/View/props.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { ThemeablePropTypes } from '@instructure/emotion'
|
|
|
31
31
|
|
|
32
32
|
import type {
|
|
33
33
|
AsElementType,
|
|
34
|
+
OtherHTMLAttributes,
|
|
34
35
|
PropValidators,
|
|
35
36
|
ViewTheme
|
|
36
37
|
} from '@instructure/shared-types'
|
|
@@ -185,7 +186,9 @@ type ViewOwnProps = {
|
|
|
185
186
|
|
|
186
187
|
type PropKeys = keyof ViewOwnProps
|
|
187
188
|
|
|
188
|
-
type ViewProps = ViewOwnProps &
|
|
189
|
+
type ViewProps = ViewOwnProps &
|
|
190
|
+
WithStyleProps<ViewTheme, ViewStyle> &
|
|
191
|
+
OtherHTMLAttributes<ViewOwnProps>
|
|
189
192
|
|
|
190
193
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
191
194
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { jsx } from '@instructure/emotion';
|
|
4
|
-
import { OtherHTMLAttributes } from '@instructure/shared-types';
|
|
5
4
|
import type { ContextViewProps } from './props';
|
|
6
5
|
/**
|
|
7
6
|
---
|
|
8
7
|
category: components
|
|
9
8
|
---
|
|
10
9
|
**/
|
|
11
|
-
declare class ContextView extends Component<ContextViewProps
|
|
10
|
+
declare class ContextView extends Component<ContextViewProps> {
|
|
12
11
|
static readonly componentId = "ContextView";
|
|
13
12
|
static allowedProps: readonly (keyof {
|
|
14
13
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ContextView/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAa,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ContextView/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAa,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;GAIG;AAEH,cACM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAC3C,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;MAWlB;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAED,MAAM;CA0DP;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AsElementType, PropValidators, ContextViewTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { AsElementType, PropValidators, ContextViewTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { PlacementPropValues } from '@instructure/ui-position';
|
|
4
4
|
import type { Shadow, Spacing, Stacking, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
5
5
|
declare type ContextViewOwnProps = {
|
|
@@ -23,7 +23,7 @@ declare type ContextViewOwnProps = {
|
|
|
23
23
|
};
|
|
24
24
|
declare type PropKeys = keyof ContextViewOwnProps;
|
|
25
25
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
26
|
-
declare type ContextViewProps = ContextViewOwnProps & WithStyleProps<ContextViewTheme, ContextViewStyle>;
|
|
26
|
+
declare type ContextViewProps = ContextViewOwnProps & WithStyleProps<ContextViewTheme, ContextViewStyle> & OtherHTMLAttributes<ContextViewOwnProps>;
|
|
27
27
|
declare type ContextViewStyle = ComponentStyle<'contextView' | 'contextView__content' | 'contextView__arrow' | 'arrowSize' | 'arrowBorderWidth'>;
|
|
28
28
|
declare const propTypes: PropValidators<PropKeys>;
|
|
29
29
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ContextView/props.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,CAAC,EAAE,QAAQ,CAAA;IACnB,SAAS,CAAC,EAAE,mBAAmB,CAAA;CAChC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,mBAAmB,CAAA;AAEzC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,gBAAgB,GAAG,mBAAmB,GACzC,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,GAClD,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;AAE1C,aAAK,gBAAgB,GAAG,cAAc,CAClC,aAAa,GACb,sBAAsB,GACtB,oBAAoB,GACpB,WAAW,GACX,kBAAkB,CACrB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAmEvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAkBnB,CAAA;AAED,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/View/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component, ComponentType } from 'react';
|
|
3
3
|
import { jsx } from '@instructure/emotion';
|
|
4
|
-
import type { OtherHTMLAttributes } from '@instructure/shared-types';
|
|
5
4
|
import type { ViewProps } from './props';
|
|
6
5
|
/**
|
|
7
6
|
---
|
|
@@ -13,7 +12,7 @@ API:
|
|
|
13
12
|
@module View
|
|
14
13
|
|
|
15
14
|
**/
|
|
16
|
-
declare class View extends Component<ViewProps
|
|
15
|
+
declare class View extends Component<ViewProps> {
|
|
17
16
|
static componentId: string;
|
|
18
17
|
static allowedProps: readonly (keyof {
|
|
19
18
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
@@ -96,14 +95,6 @@ declare class View extends Component<ViewProps & OtherHTMLAttributes<ViewProps>>
|
|
|
96
95
|
readonly focusColor: "info";
|
|
97
96
|
readonly shouldAnimateFocus: true;
|
|
98
97
|
};
|
|
99
|
-
/**
|
|
100
|
-
* Removes View's own props from the given object. Automatically excludes the
|
|
101
|
-
* following props: 'theme', 'children', 'className', 'style', 'styles',
|
|
102
|
-
* 'makeStyles', 'themeOverride'
|
|
103
|
-
* @param props the object to process
|
|
104
|
-
* @param Component The component whose props are processed.
|
|
105
|
-
* Only needed for debug logging in non-production builds.
|
|
106
|
-
*/
|
|
107
98
|
static omitViewProps: (props: Record<string, any>, Component: ComponentType<any>) => Record<string, any>;
|
|
108
99
|
private spanMarginVerified;
|
|
109
100
|
private _element?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/View/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAWhD,OAAO,EAAE,GAAG,EAAa,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/View/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAWhD,OAAO,EAAE,GAAG,EAAa,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;GASG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,WAAW,SAAS;IAC3B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;MAUT;IAgBV,MAAM,CAAC,aAAa,UACX,OAAO,MAAM,EAAE,GAAG,CAAC,aACf,cAAc,GAAG,CAAC,yBAiB9B;IAED,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,CAAgB;gBAErB,KAAK,EAAE,SAAS;IAK5B,iBAAiB;IAIjB,kBAAkB;IAoDlB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,gBAAgB,OAAQ,OAAO,GAAG,IAAI,UAMrC;IAED,MAAM;CA4CP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
package/types/View/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AsElementType, PropValidators, ViewTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { AsElementType, OtherHTMLAttributes, PropValidators, ViewTheme } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, Spacing, BorderWidth, BorderRadii, Shadow, Stacking, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type ViewOwnProps = {
|
|
5
5
|
/**
|
|
@@ -119,7 +119,7 @@ declare type ViewOwnProps = {
|
|
|
119
119
|
cursor?: any;
|
|
120
120
|
};
|
|
121
121
|
declare type PropKeys = keyof ViewOwnProps;
|
|
122
|
-
declare type ViewProps = ViewOwnProps & WithStyleProps<ViewTheme, ViewStyle>;
|
|
122
|
+
declare type ViewProps = ViewOwnProps & WithStyleProps<ViewTheme, ViewStyle> & OtherHTMLAttributes<ViewOwnProps>;
|
|
123
123
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
124
124
|
declare type ViewStyle = ComponentStyle<'view' | 'inlineStyles'>;
|
|
125
125
|
declare const propTypes: PropValidators<PropKeys>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/View/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,SAAS,EACV,MAAM,2B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