@khanacademy/wonder-blocks-form 3.1.13 → 4.0.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 CHANGED
@@ -1,5 +1,36 @@
1
1
  # @khanacademy/wonder-blocks-form
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1ca4d7e3]
12
+ - @khanacademy/wonder-blocks-clickable@3.0.0
13
+ - @khanacademy/wonder-blocks-color@2.0.0
14
+ - @khanacademy/wonder-blocks-core@5.0.0
15
+ - @khanacademy/wonder-blocks-icon@2.0.0
16
+ - @khanacademy/wonder-blocks-layout@2.0.0
17
+ - @khanacademy/wonder-blocks-spacing@4.0.0
18
+ - @khanacademy/wonder-blocks-typography@2.0.0
19
+
20
+ ## 3.1.14
21
+
22
+ ### Patch Changes
23
+
24
+ - b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
25
+ - Updated dependencies [b5ba5568]
26
+ - @khanacademy/wonder-blocks-clickable@2.4.8
27
+ - @khanacademy/wonder-blocks-color@1.2.3
28
+ - @khanacademy/wonder-blocks-core@4.9.1
29
+ - @khanacademy/wonder-blocks-icon@1.2.40
30
+ - @khanacademy/wonder-blocks-layout@1.4.19
31
+ - @khanacademy/wonder-blocks-spacing@3.0.7
32
+ - @khanacademy/wonder-blocks-typography@1.1.41
33
+
3
34
  ## 3.1.13
4
35
 
5
36
  ### Patch Changes
@@ -22,5 +22,5 @@ declare type Props = {
22
22
  */
23
23
  declare export default class CheckboxCore extends React.Component<Props> {
24
24
  handleChange: () => void;
25
- render(): React.Element<>;
25
+ render(): React.Element<any>;
26
26
  }
@@ -99,5 +99,5 @@ declare export default class CheckboxGroup
99
99
  extends React.Component<CheckboxGroupProps>
100
100
  {
101
101
  handleChange(changedValue: string, originalCheckedState: boolean): void;
102
- render(): React.Element<>;
102
+ render(): React.Element<any>;
103
103
  }
@@ -102,5 +102,5 @@ declare export default class Checkbox
102
102
  extends React.Component<ChoiceComponentProps>
103
103
  {
104
104
  static defaultProps: DefaultProps;
105
- render(): React.Element<>;
105
+ render(): React.Element<any>;
106
106
  }
@@ -96,5 +96,5 @@ declare export default class ChoiceInternal extends React.Component<Props> {
96
96
  getChoiceCoreComponent(): typeof RadioCore | typeof CheckboxCore;
97
97
  getLabel(): React.Node;
98
98
  getDescription(id?: string): React.Node;
99
- render(): React.Element<>;
99
+ render(): React.Element<any>;
100
100
  }
@@ -157,5 +157,5 @@ declare type DefaultProps = {
157
157
  declare export default class Choice extends React.Component<Props> {
158
158
  static defaultProps: DefaultProps;
159
159
  getChoiceComponent(variant?: string | null): typeof Radio | typeof Checkbox;
160
- render(): React.Element<>;
160
+ render(): React.Element<any>;
161
161
  }
@@ -60,5 +60,5 @@ declare export default class FieldHeading extends React.Component<Props> {
60
60
  renderLabel(): React.Node;
61
61
  maybeRenderDescription(): React.Node | null | void;
62
62
  maybeRenderError(): React.Node | null | void;
63
- render(): React.Element<>;
63
+ render(): React.Element<any>;
64
64
  }
@@ -175,13 +175,10 @@ declare class LabeledTextField
175
175
  handleValidate: (errorMessage?: string | null | void) => mixed;
176
176
  handleFocus: (event: React.FocusEvent<HTMLInputElement>) => mixed;
177
177
  handleBlur: (event: React.FocusEvent<HTMLInputElement>) => mixed;
178
- render(): React.Element<>;
178
+ render(): React.Element<any>;
179
179
  }
180
180
  declare type ExportProps = $Diff<
181
- JSX.LibraryManagedAttributes<
182
- typeof LabeledTextField,
183
- React.ComponentProps<typeof LabeledTextField>
184
- >,
181
+ React.ElementConfig<typeof LabeledTextField>,
185
182
  { forwardedRef: any }
186
183
  >;
187
184
  /**
@@ -22,5 +22,5 @@ declare type Props = {
22
22
  */
23
23
  declare export default class RadioCore extends React.Component<Props> {
24
24
  handleChange: () => void;
25
- render(): React.Element<>;
25
+ render(): React.Element<any>;
26
26
  }
@@ -100,5 +100,5 @@ declare export default class RadioGroup
100
100
  extends React.Component<RadioGroupProps>
101
101
  {
102
102
  handleChange(changedValue: string): void;
103
- render(): React.Element<>;
103
+ render(): React.Element<any>;
104
104
  }
@@ -88,5 +88,5 @@ declare export default class Radio
88
88
  extends React.Component<ChoiceComponentProps>
89
89
  {
90
90
  static defaultProps: DefaultProps;
91
- render(): React.Element<>;
91
+ render(): React.Element<any>;
92
92
  }
@@ -153,13 +153,10 @@ declare class TextField extends React.Component<PropsWithForwardRef, State> {
153
153
  handleChange: (event: React.ChangeEvent<HTMLInputElement>) => mixed;
154
154
  handleFocus: (event: React.FocusEvent<HTMLInputElement>) => mixed;
155
155
  handleBlur: (event: React.FocusEvent<HTMLInputElement>) => mixed;
156
- render(): React.Element<>;
156
+ render(): React.Element<any>;
157
157
  }
158
158
  declare type ExportProps = $Diff<
159
- JSX.LibraryManagedAttributes<
160
- typeof TextField,
161
- React.ComponentProps<typeof TextField>
162
- >,
159
+ React.ElementConfig<typeof TextField>,
163
160
  { forwardedRef: any }
164
161
  >;
165
162
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-form",
3
- "version": "3.1.13",
3
+ "version": "4.0.0",
4
4
  "design": "v1",
5
5
  "description": "Form components for Wonder Blocks.",
6
6
  "main": "dist/index.js",
@@ -16,19 +16,19 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.18.6",
19
- "@khanacademy/wonder-blocks-clickable": "^2.4.7",
20
- "@khanacademy/wonder-blocks-color": "^1.2.2",
21
- "@khanacademy/wonder-blocks-core": "^4.9.0",
22
- "@khanacademy/wonder-blocks-icon": "^1.2.39",
23
- "@khanacademy/wonder-blocks-layout": "^1.4.18",
24
- "@khanacademy/wonder-blocks-spacing": "^3.0.6",
25
- "@khanacademy/wonder-blocks-typography": "^1.1.40"
19
+ "@khanacademy/wonder-blocks-clickable": "^3.0.0",
20
+ "@khanacademy/wonder-blocks-color": "^2.0.0",
21
+ "@khanacademy/wonder-blocks-core": "^5.0.0",
22
+ "@khanacademy/wonder-blocks-icon": "^2.0.0",
23
+ "@khanacademy/wonder-blocks-layout": "^2.0.0",
24
+ "@khanacademy/wonder-blocks-spacing": "^4.0.0",
25
+ "@khanacademy/wonder-blocks-typography": "^2.0.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "aphrodite": "^1.2.5",
29
29
  "react": "16.14.0"
30
30
  },
31
31
  "devDependencies": {
32
- "wb-dev-build-settings": "^0.7.3"
32
+ "wb-dev-build-settings": "^0.8.0"
33
33
  }
34
34
  }