Skip to content

Commit 3d4d235

Browse files
refactor: Rename js-sdk imports
1 parent 15843e0 commit 3d4d235

File tree

12 files changed

+1391
-1348
lines changed

12 files changed

+1391
-1348
lines changed

package-lock.json

Lines changed: 1377 additions & 1334 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
],
7979
"dependencies": {
8080
"pubsub-js": "^1.9.4",
81-
"test_notification": "^1.0.20"
81+
"@sirenapp/js-sdk": "^1.0.0"
8282
}
8383
}

src/components/closeIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { type ReactElement } from 'react';
22
import { StyleSheet, TouchableOpacity, View } from 'react-native';
33

4-
import type { NotificationDataType } from 'test_notification/dist/esm/types';
4+
import type { NotificationDataType } from '@sirenapp/js-sdk/dist/esm/types';
55

66
import type { SirenStyleProps } from '../types';
77

src/components/sirenInbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React, { type ReactElement, useEffect, useMemo, useState, useRef } from '
22
import { FlatList, StyleSheet, View } from 'react-native';
33

44
import PubSub from 'pubsub-js';
5-
import type { Siren } from 'test_notification';
6-
import type { NotificationDataType, SirenErrorType } from 'test_notification/dist/esm/types';
5+
import type { Siren } from '@sirenapp/js-sdk';
6+
import type { NotificationDataType, SirenErrorType } from '@sirenapp/js-sdk/dist/esm/types';
77

88
import Card from './card';
99
import EmptyWindow from './emptyWindow';

src/components/sirenInboxIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
22
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
33

44
import PubSub from 'pubsub-js';
5-
import type { UnviewedCountReturnResponse } from 'test_notification/dist/esm/types';
5+
import type { UnviewedCountReturnResponse } from '@sirenapp/js-sdk/dist/esm/types';
66

77
import { useSirenContext } from './sirenProvider';
88
import type { SirenInboxIconProps } from '../types';

src/components/sirenProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { createContext, useContext, useEffect, useState } from 'react';
22

33
import PubSub from 'pubsub-js';
4-
import { Siren } from 'test_notification';
4+
import { Siren } from '@sirenapp/js-sdk';
55
import type {
66
InitConfigType,
77
NotificationDataType,
88
NotificationsApiResponse,
99
SirenErrorType,
1010
UnviewedCountApiResponse,
11-
} from 'test_notification/dist/esm/types';
11+
} from '@sirenapp/js-sdk/dist/esm/types';
1212

1313
import type { SirenProviderConfigProps } from '../types';
1414
import { isNonEmptyArray, logger } from '../utils/commonUtils';

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DimensionValue, TextStyle, ViewStyle } from 'react-native';
22

3-
import type { NotificationDataType, SirenErrorType } from 'test_notification/dist/esm/types';
3+
import type { NotificationDataType, SirenErrorType } from '@sirenapp/js-sdk/dist/esm/types';
44
/**
55
* Defines the configuration options for the Siren Notification Window component.
66
* @typedef {Object} SirenInboxProps

src/utils/commonUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NotificationDataType } from 'test_notification/dist/esm/types';
1+
import type { NotificationDataType } from '@sirenapp/js-sdk/dist/esm/types';
22

33
import { defaultStyles, eventTypes, levelLogFns, LogLevel, ThemeMode } from './constants';
44
import type { SirenStyleProps, StyleProps, ThemeProps } from '../types';

tests/components/card.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { fireEvent, render } from '@testing-library/react-native';
33
import Card from '../../src/components/card';
44
import type { SirenStyleProps } from '../../src/types';
5-
import type { NotificationDataType } from 'test_notification/dist/esm/types';
5+
import type { NotificationDataType } from '@sirenapp/js-sdk/dist/esm/types';
66

77
describe('Card Component', () => {
88
const notification: NotificationDataType = {

tests/components/sirenNotificationIcon.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { render } from '@testing-library/react-native';
33
import { Image } from 'react-native';
4-
import type { Siren } from 'test_notification';
4+
import type { Siren } from '@sirenapp/js-sdk';
55

66
import { SirenInboxIcon } from '../../src';
77
import type { Theme } from '../../src/types';

0 commit comments

Comments
 (0)