Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next major version/merge in app #10430

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
8befa77
migrating POC
calebpollman Jun 29, 2021
d922257
Merge branch 'main' into in-app-messages-poc
calebpollman Jul 21, 2021
f1af169
clean up some references to analytics in the notifications directory
calebpollman Jul 21, 2021
82ae29e
removed InAppMessagesContext, minor clean up
calebpollman Jul 22, 2021
2e18742
Merge pull request #1 from calebpollman/in-app-poc-migration
calebpollman Jul 22, 2021
066a9b0
add boolean check for determining whether analytic events should be e…
calebpollman Jul 22, 2021
dfaaaf7
Merge pull request #2 from calebpollman/conditionally-emit-analytic-e…
calebpollman Jul 22, 2021
9902c3c
removed some unused types
calebpollman Jul 23, 2021
2e472b9
Merge pull request #3 from calebpollman/remove-unused-types
calebpollman Jul 23, 2021
16c8583
Merge branch 'main' into in-app-messages
calebpollman Jul 26, 2021
0103f0a
refactor: Updated pinpoint provider (#5)
cshfang Jul 27, 2021
b4b068d
feature: add clearStoredInAppMessages method
calebpollman Jul 28, 2021
d98c869
Merge pull request #6 from calebpollman/add-clear-stored-messages
calebpollman Jul 30, 2021
6b4f4e7
Merge branch 'main' into in-app-messages
calebpollman Jul 30, 2021
812d81a
feat: Add initial set of in-app message filters (#7)
cshfang Aug 4, 2021
8d9f78e
Add quiet time (#8)
cshfang Aug 4, 2021
494cb2b
feat: Add session tracking
Aug 2, 2021
8ee09d1
Merge branch 'main' into in-app-messages
calebpollman Aug 10, 2021
afa3a39
Add logic for display caps
Aug 24, 2021
0566c4c
Update type to be more specific
Aug 24, 2021
ca05111
Address comments
Aug 24, 2021
9e8de9f
Merge pull request #9 from cshfang/add-session-cap
calebpollman Aug 24, 2021
b2e40b2
refactor: Remove AsyncStorage from category
Aug 24, 2021
e642df4
Remove AsyncStorage dependency from package.json
Aug 24, 2021
9b70eb7
Don't parse JSON on null getItem result
Aug 24, 2021
54c31c4
Set initialized to true only if init is successful
Aug 26, 2021
f89105a
Merge pull request #10 from cshfang/remove-asyncstorage
calebpollman Aug 26, 2021
da1caa5
add notifications package to aws-amplify dependencies
calebpollman Aug 26, 2021
c9a873b
Merge branch 'main' into in-app-messages
calebpollman Sep 1, 2021
cea7c57
Merge branch 'in-app-messages' into update-aws-amplify-deps
calebpollman Sep 1, 2021
a3a8f53
Merge pull request #11 from calebpollman/update-aws-amplify-deps
calebpollman Sep 1, 2021
29c77c2
fix: Add memoization to filtering (#12)
cshfang Sep 2, 2021
63bfd5f
update InAppMessage type
calebpollman Sep 2, 2021
64536a8
Merge pull request #13 from calebpollman/update-in-app-types
calebpollman Sep 2, 2021
ff0c9c7
fix merge conflicts
calebpollman Sep 14, 2021
2f36bd1
add initial InAppMessagingContext type and context, InAppMessagingPro…
calebpollman Sep 14, 2021
ae31871
update error message in useInAppMessaging
calebpollman Sep 14, 2021
d0c4bd8
Merge pull request #14 from calebpollman/add-in-app-messages-context
calebpollman Sep 14, 2021
0fa4050
remove @types/react-native (#15)
calebpollman Sep 21, 2021
b0082dd
fix merge conflicts
calebpollman Sep 21, 2021
8755507
Merge branch 'main' into in-app-messages
calebpollman Sep 22, 2021
fa8caf6
chore: Replace temporary Pinpoint client (#16)
cshfang Sep 22, 2021
28aa5b5
remove unneccessary updates caused during Notifications category deve…
calebpollman Sep 22, 2021
5ec04d0
add .watchmanconfig to .gitignore
calebpollman Sep 22, 2021
22f436d
Merge pull request #17 from calebpollman/clean-up
calebpollman Sep 22, 2021
d326073
add @aws-amplify/cache to externals in rollup.config.js of aws-amplif…
calebpollman Sep 22, 2021
7bc0f7d
updates required to allow unit tests to pass
calebpollman Sep 23, 2021
88a2b16
Merge pull request #18 from calebpollman/clean-up
calebpollman Sep 23, 2021
3f2bc1a
Merge branch 'main' into in-app-messages
Sep 23, 2021
3f57e23
chore(in-app-message): Normalize in-app message schema
Sep 24, 2021
5ec0805
Update sync to be a void function rather than return a non-normalized…
Sep 28, 2021
55c6358
Update InAppMessageButton type to require title and action
Sep 28, 2021
c49f50f
Merge pull request #1 from cshfang/normalize-message-schema
cshfang Sep 28, 2021
85cbf4d
fix(in-app-messaging): conditionally call inAppMessagesHandler
calebpollman Oct 1, 2021
d4b5a7c
Merge pull request #2 from calebpollman/conditionally-call-in-app-mes…
cshfang Oct 1, 2021
005c7d1
Merge branch 'main' into real-branch
Oct 7, 2021
a77f9be
Address comments - update package dependencies/config
Oct 6, 2021
2d713dd
Update Notifications to InAppMessaging
Oct 6, 2021
8121256
Remove InAppMessages from normalized content
Oct 6, 2021
92c3f3c
Remove uuid from memory if cached uuid is explicitly removed
Oct 6, 2021
e0b7a6c
Add extended TTL to avoid uuid being deleted
Oct 6, 2021
43b2c7b
Remove provider specific logic from category
Oct 7, 2021
f43265a
Updated API names to latest proposal. Removed inconsistent disable co…
Oct 7, 2021
e5cc5cd
Enable analytic event hub broadcasting by default if InAppMessaging i…
Oct 7, 2021
fc3349c
Remove stored count eviction
Oct 8, 2021
0017add
Merge branch 'in-app-messaging/main' into in-app-messages
cshfang Oct 12, 2021
1278ad0
Merge branch 'in-app-messaging/main' into in-app-messages
Oct 13, 2021
67d1bdd
Move InAppMessaging into a sub-category under Notifications
Oct 13, 2021
9dca1d8
Address PR comments
Oct 13, 2021
c78ce59
Merge pull request #6 from cshfang/sub-categorize-in-app-messaging
cshfang Oct 13, 2021
49e6810
Update dependencies
Oct 13, 2021
2f724d4
Address PR comments
Oct 13, 2021
0a59ea2
Merge pull request #8946 from cshfang/in-app-messages
cshfang Oct 13, 2021
d409462
fix(in-app-messaging): update broken snapshot in aws-amplify package …
calebpollman Oct 14, 2021
a42d317
fix(in-app-messaging): remove nesting of config in config (#9033)
calebpollman Oct 15, 2021
e976d36
Update message handlers to be categorical API allowing multiple liste…
Oct 8, 2021
3bf80c8
Update messages received handler to the same listener pattern as mess…
Oct 8, 2021
672574d
Align message event API verb tense
Oct 8, 2021
53290e5
Use spread instead of assign for provider
Oct 15, 2021
6df7521
Consolidate notifier functions and rename listener event types to ove…
Oct 15, 2021
88102b7
Address PR comments
Oct 19, 2021
f1429fc
Address PR comment - update config
Oct 19, 2021
5233ca0
feat(in-app-messaging): add InAppMessageDisplay and useInAppMessage (…
calebpollman Oct 19, 2021
853f66c
fix merge conflicts
calebpollman Oct 19, 2021
e54b198
Merge branch 'in-app-messaging/main' into in-app-messaging/enable-mul…
Oct 19, 2021
736f3b3
Export InAppMessageButton from subcategory
Oct 19, 2021
547391b
Export InAppMessageButton from categoryindex
Oct 19, 2021
87e1f84
Merge pull request #9044 from cshfang/in-app-messaging/enable-multi-l…
cshfang Oct 21, 2021
a0be490
fix merge conflicts
calebpollman Oct 21, 2021
b347ce1
chore(In-app-messaging): lint updates (#9070)
calebpollman Oct 21, 2021
2946198
Update react native directories to be cased correctly (#9071)
cshfang Oct 21, 2021
1c1a270
chore: Update message received API to return a single message instead…
cshfang Oct 21, 2021
580359a
chore: Update InAppMessagingProvider with quick fix to work with onMe…
cshfang Oct 22, 2021
63e9ded
chore(in-app-messaging): aws-amplify-react-native dep updates (#9073)
calebpollman Oct 22, 2021
c4df4fa
fix(in-app-messaging): prevent reassignment linting error (#9077)
calebpollman Oct 22, 2021
db8e8e4
chore: Extract content to messages only if there is conten… (#9085)
cshfang Oct 22, 2021
a7e6bd5
chore(in-app-messaging): restructure UI types (#9092)
calebpollman Oct 26, 2021
b8c9928
feat(in-app-messaging): add IconButton and Paragraph feature UI compo…
calebpollman Oct 26, 2021
2c1618c
feat(in-app-messaging): add Button UI component (#9093)
calebpollman Oct 26, 2021
fa14890
chore: Add identifyUser API (#9103)
cshfang Oct 26, 2021
46dc3da
feat(in-app-messaging): add util hooks (#9111)
calebpollman Oct 27, 2021
f5ff575
Merge branch 'main' into in-app-messaging/main
calebpollman Oct 27, 2021
64a4090
feat(in-app-messaging): update InAppMessagingDisplay and useInAppMess…
calebpollman Oct 27, 2021
c4b84d3
chore: Update dev depencies (#9126)
cshfang Oct 28, 2021
8a6bd99
feat(in-app-messaging): add BannerMessage UI component (#9124)
calebpollman Oct 28, 2021
a14d082
feat(in-app-messaging): add FullScreenMessage component (#9130)
calebpollman Oct 29, 2021
ed41f0c
chore: Don't allow adding an already added plugin (#9139)
cshfang Nov 1, 2021
9f0e4fc
feat(in-app-messaging): refactor hooks & integrate notify handlers (#…
calebpollman Nov 3, 2021
62c9029
chore: Forward Pinpoint campaign custom data as message metadata (#9164)
cshfang Nov 5, 2021
eceb477
feat(in-app-messaging): refactor useInAppMessageStyle to useMessagePr…
calebpollman Nov 5, 2021
7d726f2
chore(in-app-messaging): add in-app messaging publish command (#9163)
calebpollman Nov 5, 2021
2d4539b
fix merge conflict
calebpollman Nov 5, 2021
9cd4145
chore: Update dependency versions (#9169)
cshfang Nov 5, 2021
8ed3bd6
chore: Add uuid as a dependency (#9170)
cshfang Nov 5, 2021
d9b380a
Merge branch 'main' into in-app-messaging/main
calebpollman Nov 8, 2021
dcee89a
Merge branch 'main' into in-app-messaging/main
calebpollman Nov 9, 2021
3f5829f
feat(in-app-messaging): add Modal to MessageWrapper (#9184)
calebpollman Nov 9, 2021
2bf08e8
fix(in-app-messaging): prevent extraneous setImageDimensions call (#9…
calebpollman Nov 9, 2021
8cc2a90
chore: update interaction enums to string enums (#9207)
cshfang Nov 12, 2021
66a8ea2
fix: Update Analytics to report session start/stop over Hub (#9220)
cshfang Nov 15, 2021
953939e
fix: Update config typing (#9222)
cshfang Nov 15, 2021
7d38772
chore: Run prettier through package (#9223)
cshfang Nov 15, 2021
3bf7708
Merge branch 'main' into in-app-messaging/main
calebpollman Nov 16, 2021
44507bd
chore(in-app-messaging): upgrade internal dependency versions (#9228)
calebpollman Nov 16, 2021
3745f7c
chore(in-app-messaging): remove Paragraph component (#9227)
calebpollman Nov 16, 2021
bb5c002
feat(in-app-messaging): add default and support for custom feedback o…
calebpollman Nov 16, 2021
95a98fd
chore: Convert subcategory in config to PascalCase (#9233)
cshfang Nov 17, 2021
8ca87d6
chore(in-app-messaging): revert pretty-quick formatting changes in da…
calebpollman Nov 17, 2021
72e99b9
chore: Update two APIs to rethrow errors (#9232)
cshfang Nov 17, 2021
91ef04d
feat(in-app-messaging): handle Carousel and Modal layouts (#9240)
calebpollman Nov 17, 2021
5d3718f
chore(in-app-messaging): audit in-app messaging feature files for lic…
calebpollman Nov 18, 2021
be7573a
fix: Bug fix for cap enforcement (#9243)
cshfang Nov 18, 2021
fa2cafa
Merge branch 'main' into in-app-messaging/main
calebpollman Nov 18, 2021
770278b
chore(in-app-messaging): upgrade internal dependency versions (#9246)
calebpollman Nov 18, 2021
35251c5
chore(in-app-messaging): use in-app-messaging tag for Notifications a…
calebpollman Nov 19, 2021
887aab1
Merge branch 'main' into in-app-messaging/main
calebpollman Nov 19, 2021
74d739b
chore(in-app-messaging): Update dependencies back to semvers (#9271)
cshfang Nov 22, 2021
591c40a
Merge branch 'main' into in-app-messaging/main
calebpollman Nov 30, 2021
0a86073
chore(in-app-messaging): add unit testing for component util hooks (#…
calebpollman Dec 1, 2021
fcf5480
chore(in-app-messaging): merge in-app-messaging/staging to in-app-mes…
calebpollman Dec 20, 2021
e572fbb
Merge branch 'main' into in-app-messaging/main
calebpollman Jan 7, 2022
c4d5c5c
Merge branch 'main' into in-app-messaging/main
calebpollman Jan 31, 2022
5bba396
chore(in-app-messaging): update copyright years of in app messaging f…
calebpollman Feb 2, 2022
9b33c04
chore(in-app-messaging): add in-app messaging component and context u…
calebpollman Feb 7, 2022
ca74edb
chore(in-app-messaging): bump versions (#9669)
cshfang Mar 3, 2022
20ff5fa
Merge branch 'in-app-messaging/main' into in-app-messaging/staging
Mar 11, 2022
5e454ad
feat(in-app-messaging): Add carousel support (#9711)
cshfang Mar 23, 2022
c63d818
chore(in-app-messaging): Add unit tests for carousel (#9748)
cshfang Apr 1, 2022
a54edf5
fix(in-app-messaging): prevent reuse of image dimension object betwee…
calebpollman Apr 19, 2022
b6763bd
Merge branch 'main' into in-app-messaging/main
calebpollman May 7, 2022
d17a6bf
Merge branch 'in-app-messaging/main' into in-app-messaging/staging
calebpollman May 9, 2022
6c60f27
chore(in-app-messaging): update Notification category amplify depeden…
calebpollman May 9, 2022
85f2ada
fix(in-app-messaging): revert side effect lintstaged updates (#9890)
calebpollman May 9, 2022
12fddc3
chore(in-app-messaging): add useDeviceOrientation hook (#9881)
calebpollman May 9, 2022
7caa08c
feat(in-app-messaging): Add modal UI component (#9712)
Samaritan1011001 May 10, 2022
7636d31
fix: replace unused constant in the test file (#9894)
Samaritan1011001 May 11, 2022
6cd8d45
chore(in-app-messaging): refactor InAppMessaging UI components to han…
calebpollman May 13, 2022
932b339
Merge branch 'main' into in-app-messaging/staging
calebpollman May 20, 2022
d075448
Merge branch 'main' into in-app-messaging/main
calebpollman May 21, 2022
f01b6ca
Merge branch 'in-app-messaging/staging' into in-app-messaging/main
calebpollman May 23, 2022
3322097
chore(in-app-messaging): version bump (#9928)
calebpollman May 23, 2022
c5f3b75
fix(in-app-messaging): Disable web session tracker when in non-browse…
cshfang Jun 22, 2022
b6c42cb
Merge branch 'main' into in-app-messaging/main
Jun 23, 2022
1ac10ce
Merge branch 'in-app-messaging/staging' into in-app-messaging/main
Jun 23, 2022
d042ce9
chore(in-app-messaging): version bump (#10021)
cshfang Jun 24, 2022
fc590d1
Merge main into in-app-messaging/main (#10264)
cshfang Aug 29, 2022
295aa96
In app messaging/remove react native UI (#10425)
cshfang Oct 5, 2022
705324a
Merge branch 'in-app-messaging/main' into next-major-version/merge-in…
Oct 5, 2022
80b9ea0
chore(in-app-messaging): version bump
Oct 5, 2022
ddc2882
Merge branch 'next-major-version/5' into next-major-version/merge-in-app
cshfang Oct 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,7 @@ releasable_branches: &releasable_branches
- ui-components/main
- 1.0-stable
- geo/main
- in-app-messaging/main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this & the associated script in package.json still?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not but I left it for now since other features are still there too

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this stay in?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need this anymore but I left it for now since other merged features (like geo) are still there too. We can purge it all later at the same time if we want/need.

- next-major-version/5

test_browsers: &test_browsers
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"publish:1.0-stable": "lerna publish --conventional-commits --yes --dist-tag=stable-1.0 --message 'chore(release): Publish [ci skip]' --no-verify-access",
"publish:ui-components/main": "lerna publish --canary --force-publish \"*\" --yes --dist-tag=ui-preview --preid=ui-preview --exact --no-verify-access",
"publish:verdaccio": "lerna publish --no-push --canary minor --dist-tag=unstable --preid=unstable --exact --force-publish --yes --no-verify-access",
"publish:geo/main": "lerna publish --canary --force-publish \"*\" --yes --dist-tag=geo --preid=geo --exact --no-verify-access"
"publish:geo/main": "lerna publish --canary --force-publish \"*\" --yes --dist-tag=geo --preid=geo --exact --no-verify-access",
"publish:in-app-messaging/main": "lerna publish --canary --force-publish \"*\" --yes --dist-tag=in-app-messaging --preid=in-app-messaging --exact --no-verify-access"
},
"husky": {
"hooks": {
Expand Down
83 changes: 53 additions & 30 deletions packages/analytics/__tests__/Analytics.test.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
/*
* Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
jest.mock('../src/vendor/dom-utils', () => {
return {
delegate: jest.fn(),
};
});

import {
ClientDevice,
Parser,
ConsoleLogger as Logger,
Credentials,
} from '@aws-amplify/core';
import { AnalyticsOptions, EventAttributes, EventMetrics } from '../src/types';
import { ClientDevice, Parser, Hub } from '@aws-amplify/core';
import { AnalyticsClass as Analytics } from '../src/Analytics';
import AWSAnalyticsProvider from '../src/Providers/AWSPinpointProvider';

const options: AnalyticsOptions = {
appId: 'appId',
platform: 'platform',
clientId: 'clientId',
region: 'region',
};

const credentials = {
accessKeyId: 'accessKeyId',
sessionToken: 'sessionToken',
secretAccessKey: 'secretAccessKey',
identityId: 'identityId',
authenticated: true,
};

jest.useFakeTimers();

const record_spyon = jest
Expand All @@ -37,7 +28,12 @@ const record_spyon = jest
return handlers.resolve();
});

const hubSpy = jest.spyOn(Hub, 'dispatch');

describe('Analytics test', () => {
beforeEach(() => {
jest.clearAllMocks();
});
describe('configure test', () => {
test('happy case with default parser', () => {
const analytics = new Analytics();
Expand Down Expand Up @@ -83,6 +79,16 @@ describe('Analytics test', () => {
analytics.configure({ mock: 'value' });

await analytics.startSession();
expect(hubSpy).toBeCalledWith(
'analytics',
{
event: 'record',
data: { name: '_session.start' },
message: 'Recording Analytics session start event',
},
'Analytics',
expect.anything()
);
expect(record_spyon).toBeCalled();
});
});
Expand All @@ -95,6 +101,16 @@ describe('Analytics test', () => {
analytics.configure({ mock: 'value' });

await analytics.stopSession();
expect(hubSpy).toBeCalledWith(
'analytics',
{
event: 'record',
data: { name: '_session.stop' },
message: 'Recording Analytics session stop event',
},
'Analytics',
expect.anything()
);
expect(record_spyon).toBeCalled();
});
});
Expand All @@ -105,16 +121,23 @@ describe('Analytics test', () => {
const provider = new AWSAnalyticsProvider();
analytics.addPluggable(provider);
analytics.configure({ mock: 'value' });

await analytics.record({
const event = {
name: 'event',
attributes: {
key: 'value',
},
metrics: {
metric: 123,
attributes: { key: 'value' },
metrics: { metric: 123 },
};

await analytics.record(event);
expect(hubSpy).toBeCalledWith(
'analytics',
{
event: 'record',
data: event,
message: 'Recording Analytics event',
},
});
'Analytics',
expect.anything()
);
expect(record_spyon).toBeCalled();
});
});
Expand Down
23 changes: 21 additions & 2 deletions packages/analytics/src/Analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,15 @@ export class AnalyticsClass {
* @return - A promise which resolves if buffer doesn't overflow
*/
public async startSession(provider?: string) {
const params = { event: { name: '_session.start' }, provider };
const event = { name: '_session.start' };
const params = { event, provider };

dispatchAnalyticsEvent(
'record',
event,
'Recording Analytics session start event'
);

return this._sendEvent(params);
}

Expand All @@ -227,7 +235,15 @@ export class AnalyticsClass {
* @return - A promise which resolves if buffer doesn't overflow
*/
public async stopSession(provider?: string) {
const params = { event: { name: '_session.stop' }, provider };
const event = { name: '_session.stop' };
const params = { event, provider };

dispatchAnalyticsEvent(
'record',
event,
'Recording Analytics session stop event'
);

return this._sendEvent(params);
}

Expand Down Expand Up @@ -276,6 +292,9 @@ export class AnalyticsClass {
} else {
params = { event, provider: providerOrAttributes };
}

dispatchAnalyticsEvent('record', params.event, 'Recording Analytics event');

return this._sendEvent(params);
}

Expand Down
1 change: 1 addition & 0 deletions packages/aws-amplify-angular/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default {
'aws-amplify',
'@ionic/angular',
'@aws-amplify/core',
'@aws-amplify/cache',
],
plugins: [
nodeResolve({ preferBuiltins: false, modulesOnly: true }),
Expand Down
1 change: 1 addition & 0 deletions packages/aws-amplify/__tests__/exports-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('aws-amplify', () => {
"PubSub",
"Cache",
"Interactions",
"Notifications",
"a",
"button",
"signInButton",
Expand Down
1 change: 1 addition & 0 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@aws-amplify/datastore": "3.12.12",
"@aws-amplify/geo": "1.3.18",
"@aws-amplify/interactions": "4.1.3",
"@aws-amplify/notifications": "1.0.0",
"@aws-amplify/predictions": "4.0.55",
"@aws-amplify/pubsub": "4.5.5",
"@aws-amplify/storage": "4.5.8",
Expand Down
1 change: 1 addition & 0 deletions packages/aws-amplify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export {
export { PubSub } from '@aws-amplify/pubsub';
export { BrowserStorageCache as Cache } from '@aws-amplify/cache';
export { Interactions } from '@aws-amplify/interactions';
export { Notifications } from '@aws-amplify/notifications';
export * from '@aws-amplify/ui';
export { XR } from '@aws-amplify/xr';
export { Predictions } from '@aws-amplify/predictions';
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Amplify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class AmplifyClass {
Predictions = null;
DataStore = null;
Geo = null;
Notifications = null;

Logger = LoggerClass;
ServiceWorker = null;
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export interface AmplifyConfig {
Storage?: object;
Cache?: object;
Geo?: object;
Notifications?: {
InAppMessaging?: object;
};
ssr?: boolean;
}

Expand Down
10 changes: 10 additions & 0 deletions packages/notifications/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
__mocks__/**
__tests__/**
Authenticator_Architecture.png
docs/**
jsDoc.config.json
node_modules/**
README.md
.vscode/**
.DS_Store
*.log
Empty file.
Loading