@alveole/components 1.3.2 → 1.3.5

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,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as Application from 'expo-application';
3
3
  import Constants from 'expo-constants';
4
- import { checkForUpdate, startUpdate } from 'expo-in-app-updates';
4
+ import * as ExpoInAppUpdates from 'expo-in-app-updates';
5
5
  import React from 'react';
6
6
  import { AppState, Linking, Platform } from 'react-native';
7
7
  import { UpdateRequired } from '../UpdateRequired';
@@ -49,10 +49,10 @@ export const AppUpdateProvider = (props) => {
49
49
  return;
50
50
  lastCheckedAt.current = now;
51
51
  try {
52
- const { updateAvailable } = await checkForUpdate();
52
+ const { updateAvailable } = await ExpoInAppUpdates.checkForUpdate();
53
53
  if (updateAvailable) {
54
54
  if (Platform.OS === 'android') {
55
- await startUpdate(true);
55
+ await ExpoInAppUpdates.startUpdate(true);
56
56
  // If we reach here the immediate update was cancelled or failed → fallback to screen
57
57
  }
58
58
  dispatch({ type: 'UPDATE_REQUIRED' });
@@ -1,2 +1,2 @@
1
- export declare const ALVEOLE_COMPONENTS_VERSION: "1.3.2";
1
+ export declare const ALVEOLE_COMPONENTS_VERSION: "1.3.5";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const ALVEOLE_COMPONENTS_VERSION = "1.3.2";
1
+ export const ALVEOLE_COMPONENTS_VERSION = "1.3.5";
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Avatar/Avatar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAenB,CAAC"}
1
+ {"version":3,"file":"Avatar.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Avatar/Avatar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAiBnB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { makeStyles } from '@alveole/theme';
2
2
  export const useStyles = makeStyles(({ color, text, radius }) => ({
3
3
  avatar: {
4
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
4
5
  backgroundColor: color.dark.background['contrast-grey'],
5
6
  },
6
7
  carre: {
@@ -8,6 +9,7 @@ export const useStyles = makeStyles(({ color, text, radius }) => ({
8
9
  },
9
10
  fallbackText: {
10
11
  ...text['Corps de texte'].MD.Medium,
12
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
11
13
  color: color.dark.text['default-grey'],
12
14
  display: 'flex',
13
15
  justifyContent: 'center',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/components",
3
- "version": "1.3.2",
3
+ "version": "1.3.5",
4
4
  "description": "Shared UI components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",