@instructure/ui-i18n 8.9.1-snapshot.0 → 8.9.2-snapshot.12

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.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-i18n
9
+
6
10
  # [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15)
7
11
 
8
12
  ### Bug Fixes
package/README.md CHANGED
@@ -5,7 +5,6 @@ category: packages
5
5
  ## ui-i18n
6
6
 
7
7
  [![npm][npm]][npm-url] 
8
- [![build-status][build-status]][build-status-url] 
9
8
  [![MIT License][license-badge]][license] 
10
9
  [![Code of Conduct][coc-badge]][coc]
11
10
 
@@ -87,8 +87,11 @@ const bidirectional = decorator(ComposedComponent => {
87
87
  }
88
88
 
89
89
  hoistNonReactStatics(BidirectionalForwardingRef, ComposedComponent);
90
- BidirectionalForwardingRef.defaultProps = ComposedComponent.defaultProps;
91
- BidirectionalForwardingRef.propTypes = ComposedComponent.propTypes;
90
+ BidirectionalForwardingRef.defaultProps = ComposedComponent.defaultProps; // eslint-disable-next-line react/forbid-foreign-prop-types
91
+
92
+ BidirectionalForwardingRef.propTypes = ComposedComponent.propTypes; // @ts-expect-error These static fields exist on InstUI components
93
+
94
+ BidirectionalForwardingRef.allowedProps = ComposedComponent.allowedProps;
92
95
  return BidirectionalForwardingRef;
93
96
  });
94
97
  bidirectional.DIRECTION = DIRECTION;
@@ -75,8 +75,11 @@ const bidirectional = (0, _decorator.decorator)(ComposedComponent => {
75
75
  }
76
76
 
77
77
  (0, _hoistNonReactStatics.default)(BidirectionalForwardingRef, ComposedComponent);
78
- BidirectionalForwardingRef.defaultProps = ComposedComponent.defaultProps;
79
- BidirectionalForwardingRef.propTypes = ComposedComponent.propTypes;
78
+ BidirectionalForwardingRef.defaultProps = ComposedComponent.defaultProps; // eslint-disable-next-line react/forbid-foreign-prop-types
79
+
80
+ BidirectionalForwardingRef.propTypes = ComposedComponent.propTypes; // @ts-expect-error These static fields exist on InstUI components
81
+
82
+ BidirectionalForwardingRef.allowedProps = ComposedComponent.allowedProps;
80
83
  return BidirectionalForwardingRef;
81
84
  });
82
85
  exports.bidirectional = bidirectional;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-i18n",
3
- "version": "8.9.1-snapshot.0+000c779bb",
3
+ "version": "8.9.2-snapshot.12+6231ada93",
4
4
  "description": "Helper components and utilities for internationalization.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,18 +24,18 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.9.1-snapshot.0+000c779bb",
28
- "@instructure/ui-test-utils": "8.9.1-snapshot.0+000c779bb",
27
+ "@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
28
+ "@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93",
29
29
  "@types/hoist-non-react-statics": "^3.3.1"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.13.10",
33
- "@instructure/shared-types": "8.9.1-snapshot.0+000c779bb",
34
- "@instructure/ui-decorator": "8.9.1-snapshot.0+000c779bb",
35
- "@instructure/ui-dom-utils": "8.9.1-snapshot.0+000c779bb",
36
- "@instructure/ui-prop-types": "8.9.1-snapshot.0+000c779bb",
37
- "@instructure/ui-react-utils": "8.9.1-snapshot.0+000c779bb",
38
- "@instructure/ui-utils": "8.9.1-snapshot.0+000c779bb",
33
+ "@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
34
+ "@instructure/ui-decorator": "8.9.2-snapshot.12+6231ada93",
35
+ "@instructure/ui-dom-utils": "8.9.2-snapshot.12+6231ada93",
36
+ "@instructure/ui-prop-types": "8.9.2-snapshot.12+6231ada93",
37
+ "@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
38
+ "@instructure/ui-utils": "8.9.2-snapshot.12+6231ada93",
39
39
  "hoist-non-react-statics": "^3.3.2",
40
40
  "moment-timezone": "^0.5",
41
41
  "prop-types": "^15"
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "sideEffects": false,
50
- "gitHead": "000c779bb16c575bcfeb4a6c71d8cef1d768db01"
50
+ "gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
51
51
  }
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import React, { ComponentClass, ForwardedRef, forwardRef } from 'react'
24
+ import React, { ForwardedRef, forwardRef } from 'react'
25
25
  import { decorator } from '@instructure/ui-decorator'
26
26
  import { DIRECTION, TextDirectionContext } from './TextDirectionContext'
27
27
  import hoistNonReactStatics from 'hoist-non-react-statics'
@@ -72,35 +72,35 @@ type BidirectionalType = {
72
72
  * @module bidirectional
73
73
  * @return The decorator that composes the bidirectional component.
74
74
  */
75
- const bidirectional: BidirectionalType = decorator(
76
- (ComposedComponent: ComponentClass<any>) => {
77
- class BidirectionalComponent extends React.Component<BidirectionalInternalProps> {
78
- render() {
79
- const { forwardedRef, ...rest } = this.props
80
- return (
81
- <TextDirectionContext.Consumer>
82
- {(dir) => (
83
- <ComposedComponent ref={forwardedRef} dir={dir} {...rest} />
84
- )}
85
- </TextDirectionContext.Consumer>
86
- )
87
- }
75
+ const bidirectional: BidirectionalType = decorator((ComposedComponent) => {
76
+ class BidirectionalComponent extends React.Component<BidirectionalInternalProps> {
77
+ render() {
78
+ const { forwardedRef, ...rest } = this.props
79
+ return (
80
+ <TextDirectionContext.Consumer>
81
+ {(dir) => (
82
+ <ComposedComponent ref={forwardedRef} dir={dir} {...rest} />
83
+ )}
84
+ </TextDirectionContext.Consumer>
85
+ )
88
86
  }
87
+ }
89
88
 
90
- const BidirectionalForwardingRef = forwardRef<any, BidirectionalProps>(
91
- (props, ref) => <BidirectionalComponent {...props} forwardedRef={ref} />
92
- )
93
- if (process.env.NODE_ENV !== 'production') {
94
- const displayName =
95
- ComposedComponent.displayName || ComposedComponent.name
96
- BidirectionalForwardingRef.displayName = `BidirectionalForwardingRef(${displayName})`
97
- }
98
- hoistNonReactStatics(BidirectionalForwardingRef, ComposedComponent)
99
- BidirectionalForwardingRef.defaultProps = ComposedComponent.defaultProps
100
- BidirectionalForwardingRef.propTypes = ComposedComponent.propTypes
101
- return BidirectionalForwardingRef
89
+ const BidirectionalForwardingRef = forwardRef<any, BidirectionalProps>(
90
+ (props, ref) => <BidirectionalComponent {...props} forwardedRef={ref} />
91
+ )
92
+ if (process.env.NODE_ENV !== 'production') {
93
+ const displayName = ComposedComponent.displayName || ComposedComponent.name
94
+ BidirectionalForwardingRef.displayName = `BidirectionalForwardingRef(${displayName})`
102
95
  }
103
- ) as BidirectionalType
96
+ hoistNonReactStatics(BidirectionalForwardingRef, ComposedComponent)
97
+ BidirectionalForwardingRef.defaultProps = ComposedComponent.defaultProps
98
+ // eslint-disable-next-line react/forbid-foreign-prop-types
99
+ BidirectionalForwardingRef.propTypes = ComposedComponent.propTypes
100
+ // @ts-expect-error These static fields exist on InstUI components
101
+ BidirectionalForwardingRef.allowedProps = ComposedComponent.allowedProps
102
+ return BidirectionalForwardingRef
103
+ }) as BidirectionalType
104
104
 
105
105
  bidirectional.DIRECTION = DIRECTION
106
106
  export default bidirectional
@@ -1 +1 @@
1
- {"version":3,"file":"bidirectional.d.ts","sourceRoot":"","sources":["../src/bidirectional.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,SAAS,EAAwB,MAAM,wBAAwB,CAAA;AAOxE,oBAAY,kBAAkB,GAAG;IAC/B,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;CACpB,CAAA;AAMD,aAAK,iBAAiB,GAAG;IAEvB,IAAI,CAAC,iBAAiB,EAAE,GAAG,KAAK,GAAG,CAAA;IACnC,SAAS,EAAE,OAAO,SAAS,CAAA;CAC5B,CAAA;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,aAAa,EAAE,iBA4BC,CAAA;AAGtB,eAAe,aAAa,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"bidirectional.d.ts","sourceRoot":"","sources":["../src/bidirectional.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,SAAS,EAAwB,MAAM,wBAAwB,CAAA;AAOxE,oBAAY,kBAAkB,GAAG;IAC/B,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;CACpB,CAAA;AAMD,aAAK,iBAAiB,GAAG;IAEvB,IAAI,CAAC,iBAAiB,EAAE,GAAG,KAAK,GAAG,CAAA;IACnC,SAAS,EAAE,OAAO,SAAS,CAAA;CAC5B,CAAA;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,aAAa,EAAE,iBA4BE,CAAA;AAGvB,eAAe,aAAa,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,CAAA"}