@instructure/ui-editable 8.9.2-snapshot.7 → 8.10.1-snapshot.8

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 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.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-editable
9
+
6
10
  ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-editable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-editable",
3
- "version": "8.9.2-snapshot.7+1a56581cd",
3
+ "version": "8.10.1-snapshot.8+21f46f4e3",
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.9.2-snapshot.7+1a56581cd",
28
- "@instructure/ui-test-utils": "8.9.2-snapshot.7+1a56581cd"
27
+ "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
28
+ "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3"
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.13.10",
32
- "@instructure/console": "8.9.2-snapshot.7+1a56581cd",
33
- "@instructure/emotion": "8.9.2-snapshot.7+1a56581cd",
34
- "@instructure/ui-a11y-content": "8.9.2-snapshot.7+1a56581cd",
35
- "@instructure/ui-buttons": "8.9.2-snapshot.7+1a56581cd",
36
- "@instructure/ui-dom-utils": "8.9.2-snapshot.7+1a56581cd",
37
- "@instructure/ui-flex": "8.9.2-snapshot.7+1a56581cd",
38
- "@instructure/ui-focusable": "8.9.2-snapshot.7+1a56581cd",
39
- "@instructure/ui-icons": "8.9.2-snapshot.7+1a56581cd",
40
- "@instructure/ui-utils": "8.9.2-snapshot.7+1a56581cd",
41
- "@instructure/ui-view": "8.9.2-snapshot.7+1a56581cd",
32
+ "@instructure/console": "8.10.1-snapshot.8+21f46f4e3",
33
+ "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
34
+ "@instructure/ui-a11y-content": "8.10.1-snapshot.8+21f46f4e3",
35
+ "@instructure/ui-buttons": "8.10.1-snapshot.8+21f46f4e3",
36
+ "@instructure/ui-dom-utils": "8.10.1-snapshot.8+21f46f4e3",
37
+ "@instructure/ui-flex": "8.10.1-snapshot.8+21f46f4e3",
38
+ "@instructure/ui-focusable": "8.10.1-snapshot.8+21f46f4e3",
39
+ "@instructure/ui-icons": "8.10.1-snapshot.8+21f46f4e3",
40
+ "@instructure/ui-utils": "8.10.1-snapshot.8+21f46f4e3",
41
+ "@instructure/ui-view": "8.10.1-snapshot.8+21f46f4e3",
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": "1a56581cde6bd3b4f9fe5cd11ae420bd1222fe15"
52
+ "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
53
53
  }
@@ -25,7 +25,7 @@
25
25
  import PropTypes from 'prop-types'
26
26
 
27
27
  import type { PropValidators } from '@instructure/shared-types'
28
- import type { WithStyleProps } from '@instructure/emotion'
28
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
29
29
 
30
30
  type InPlaceEditOwnProps = {
31
31
  renderViewer: (...args: any[]) => any
@@ -45,7 +45,10 @@ type PropKeys = keyof InPlaceEditOwnProps
45
45
 
46
46
  type AllowedPropKeys = Readonly<Array<PropKeys>>
47
47
 
48
- type InPlaceEditProps = InPlaceEditOwnProps & WithStyleProps
48
+ type InPlaceEditProps = InPlaceEditOwnProps &
49
+ WithStyleProps<null, InPlaceEditStyle>
50
+
51
+ type InPlaceEditStyle = ComponentStyle<'inPlaceEdit'>
49
52
 
50
53
  const propTypes: PropValidators<PropKeys> = {
51
54
  /**
@@ -135,5 +138,5 @@ const allowedProps: AllowedPropKeys = [
135
138
  'inline'
136
139
  ]
137
140
 
138
- export type { InPlaceEditProps }
141
+ export type { InPlaceEditProps, InPlaceEditStyle }
139
142
  export { propTypes, allowedProps }
@@ -22,6 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import type { InPlaceEditStyle } from './props'
26
+
25
27
  /**
26
28
  * ---
27
29
  * private: true
@@ -32,7 +34,7 @@
32
34
  * @param {Object} state the state of the component, the style is applied to
33
35
  * @return {Object} The final style object, which will be used in the component
34
36
  */
35
- const generateStyle = () => {
37
+ const generateStyle = (): InPlaceEditStyle => {
36
38
  return {
37
39
  inPlaceEdit: {
38
40
  label: 'inPlaceEdit',
@@ -1,5 +1,5 @@
1
1
  import type { PropValidators } from '@instructure/shared-types';
2
- import type { WithStyleProps } from '@instructure/emotion';
2
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
3
  declare type InPlaceEditOwnProps = {
4
4
  renderViewer: (...args: any[]) => any;
5
5
  renderEditor: (...args: any[]) => any;
@@ -15,9 +15,10 @@ declare type InPlaceEditOwnProps = {
15
15
  };
16
16
  declare type PropKeys = keyof InPlaceEditOwnProps;
17
17
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
18
- declare type InPlaceEditProps = InPlaceEditOwnProps & WithStyleProps;
18
+ declare type InPlaceEditProps = InPlaceEditOwnProps & WithStyleProps<null, InPlaceEditStyle>;
19
+ declare type InPlaceEditStyle = ComponentStyle<'inPlaceEdit'>;
19
20
  declare const propTypes: PropValidators<PropKeys>;
20
21
  declare const allowedProps: AllowedPropKeys;
21
- export type { InPlaceEditProps };
22
+ export type { InPlaceEditProps, InPlaceEditStyle };
22
23
  export { propTypes, allowedProps };
23
24
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InPlaceEdit/props.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,aAAK,mBAAmB,GAAG;IACzB,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACrC,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACrC,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACzC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACrC,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,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,GAAG,cAAc,CAAA;AAE5D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAwEvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAA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AED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,3 +1,4 @@
1
+ import type { InPlaceEditStyle } from './props';
1
2
  /**
2
3
  * ---
3
4
  * private: true
@@ -8,23 +9,6 @@
8
9
  * @param {Object} state the state of the component, the style is applied to
9
10
  * @return {Object} The final style object, which will be used in the component
10
11
  */
11
- declare const generateStyle: () => {
12
- inPlaceEdit: {
13
- label: string;
14
- boxSizing: string;
15
- maxWidth: string;
16
- position: string;
17
- overflow: string;
18
- direction: string;
19
- margin: number;
20
- textDecoration: string;
21
- textAlign: string;
22
- userSelect: string;
23
- touchAction: string;
24
- background: string;
25
- border: string;
26
- outline: string;
27
- };
28
- };
12
+ declare const generateStyle: () => InPlaceEditStyle;
29
13
  export default generateStyle;
30
14
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/InPlaceEdit/styles.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;CAmBlB,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/InPlaceEdit/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,QAAO,gBAmBzB,CAAA;AAED,eAAe,aAAa,CAAA"}