@jobber/components-native 0.80.0 → 0.80.1-upgrade-to-628d7fc.9

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.
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { AtlantisThemeContextProviderProps, AtlantisThemeContextValue } from "./types";
2
- export declare function AtlantisThemeContextProvider({ children, dangerouslyOverrideTheme, }: AtlantisThemeContextProviderProps): JSX.Element;
3
+ export declare function AtlantisThemeContextProvider({ children, dangerouslyOverrideTheme, }: AtlantisThemeContextProviderProps): React.JSX.Element;
3
4
  export declare function useAtlantisTheme(): AtlantisThemeContextValue;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { useSizeStyles } from "./Glimmer.size.style";
2
3
  import { useShapeStyles } from "./Glimmer.shape.style";
3
4
  export type GlimmerShapes = keyof ReturnType<typeof useShapeStyles>;
@@ -26,5 +27,5 @@ interface GlimmerProps {
26
27
  }
27
28
  export declare const GLIMMER_TEST_ID = "ATL-Glimmer";
28
29
  export declare const GLIMMER_SHINE_TEST_ID = "ATL-Glimmer-Shine";
29
- export declare function Glimmer({ width, shape, size, timing, }: GlimmerProps): JSX.Element;
30
+ export declare function Glimmer({ width, shape, size, timing, }: GlimmerProps): React.JSX.Element;
30
31
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  interface ProgressBarSteppedProps {
2
3
  readonly total: number;
3
4
  readonly current: number;
@@ -5,5 +6,5 @@ interface ProgressBarSteppedProps {
5
6
  readonly loading?: boolean;
6
7
  readonly inProgress?: number;
7
8
  }
8
- export declare function ProgressBarStepped({ total, current, color, loading, inProgress, }: ProgressBarSteppedProps): JSX.Element;
9
+ export declare function ProgressBarStepped({ total, current, color, loading, inProgress, }: ProgressBarSteppedProps): React.JSX.Element;
9
10
  export {};
package/jestSetup.js CHANGED
@@ -33,5 +33,6 @@ jest.mock("react-native-reanimated", () => {
33
33
  FadeIn: {
34
34
  duration: () => undefined,
35
35
  },
36
+ useEvent: () => ({ listeners: [] }),
36
37
  };
37
38
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.80.0",
3
+ "version": "0.80.1-upgrade-to-628d7fc.9+628d7fce",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -80,5 +80,5 @@
80
80
  "react-native-safe-area-context": "^4.5.2",
81
81
  "react-native-svg": ">=12.0.0"
82
82
  },
83
- "gitHead": "2a7c200ed284bace9d37382de5b7c4b5eda007f1"
83
+ "gitHead": "628d7fce6ac350b6413ea59704847aef6f1cf062"
84
84
  }
@@ -545,7 +545,7 @@ describe("Form", () => {
545
545
  });
546
546
 
547
547
  describe("Safe Area", () => {
548
- it("does render a safe area when there's a saveButtonOffset is provided", () => {
548
+ it("does render a safe area when there's NO saveButtonOffset provided", () => {
549
549
  const { getByTestId } = render(<FormTest onSubmit={onSubmitMock} />);
550
550
 
551
551
  expect(getByTestId("ATL-FormSafeArea")).toBeDefined();
package/src/Form/Form.tsx CHANGED
@@ -138,6 +138,7 @@ function InternalForm<T extends FieldValues, S>({
138
138
 
139
139
  const styles = useStyles();
140
140
 
141
+ // Comment to trigger build
141
142
  return (
142
143
  <FormProvider {...formMethods}>
143
144
  <>
@@ -11,7 +11,7 @@ exports[`renders a Switch with defaultValue false 1`] = `
11
11
  }
12
12
  collapsable={false}
13
13
  disabled={false}
14
- handlerTag={4}
14
+ handlerTag={-1}
15
15
  handlerType="NativeViewGestureHandler"
16
16
  onChange={[Function]}
17
17
  onGestureHandlerEvent={[Function]}
@@ -47,7 +47,7 @@ exports[`renders a Switch with defaultValue true 1`] = `
47
47
  }
48
48
  collapsable={false}
49
49
  disabled={false}
50
- handlerTag={2}
50
+ handlerTag={-1}
51
51
  handlerType="NativeViewGestureHandler"
52
52
  onChange={[Function]}
53
53
  onGestureHandlerEvent={[Function]}
@@ -83,7 +83,7 @@ exports[`renders a Switch with value false 1`] = `
83
83
  }
84
84
  collapsable={false}
85
85
  disabled={false}
86
- handlerTag={3}
86
+ handlerTag={-1}
87
87
  handlerType="NativeViewGestureHandler"
88
88
  onChange={[Function]}
89
89
  onGestureHandlerEvent={[Function]}
@@ -119,7 +119,7 @@ exports[`renders a Switch with value true 1`] = `
119
119
  }
120
120
  collapsable={false}
121
121
  disabled={false}
122
- handlerTag={1}
122
+ handlerTag={-1}
123
123
  handlerType="NativeViewGestureHandler"
124
124
  onChange={[Function]}
125
125
  onGestureHandlerEvent={[Function]}
@@ -155,7 +155,7 @@ exports[`renders a disabled Switch with value false 1`] = `
155
155
  }
156
156
  collapsable={false}
157
157
  disabled={true}
158
- handlerTag={6}
158
+ handlerTag={-1}
159
159
  handlerType="NativeViewGestureHandler"
160
160
  onChange={[Function]}
161
161
  onGestureHandlerEvent={[Function]}
@@ -191,7 +191,7 @@ exports[`renders a disabled Switch with value true 1`] = `
191
191
  }
192
192
  collapsable={false}
193
193
  disabled={true}
194
- handlerTag={5}
194
+ handlerTag={-1}
195
195
  handlerType="NativeViewGestureHandler"
196
196
  onChange={[Function]}
197
197
  onGestureHandlerEvent={[Function]}