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

feat(SSR): withSSRContext #6146

Merged
merged 112 commits into from
Sep 2, 2020
Merged

Conversation

ericclemmons
Copy link
Contributor

@ericclemmons ericclemmons commented Jun 23, 2020

Issue #, if available: #5435

This is an ☂️ PR that combines #5710 & #5450 to validate a withServerContext utility that scopes categories (e.g. Auth, and DataStore) to a single request.

  • feat(@aws-amplify/auth): UniversalStorage for SSR #5710

  • feat(@aws-amplify/datastore): Support SSR #5450

  • Add withSSRContext(context) for new Auth & DataStore instances.

  • Should DataStore's sync be scoped to this @manueliglesias?

  • Set UniversalStorage adapter for Auth.

  • Amplify.* properties are registered once.

  • Rename withServerContext to withSSRContext

  • Revert 123e90c

  • Publish to a tag (e.g. preview) for testing.

  • Notify customers in how to install & use.

  • Fix references to await Auth.* that should use this.amplify.Auth or this.Credentials in DataStore's subscription.ts and GraphqlAPI.ts.

  • Change Post.fromJSON to DataStore.fromJSON(Post, initialData.posts)

  • Wait 2-4 weeks for incorporating customer feedback.

  • Fix bug where federated sign in doesn't immediately set cookies.

  • Passing test suite (makes more sense to solve this after changes)

  • Ship to latest

  • Update docs with Next.js “framework support”.

    • Note that import { Auth } is still entirely valid usage for SSR, so existing docs may not require huge changes.
    • However, authenticated requests will require withSSRContext usage, so this may be more of a callout/alert, similar to React Native special instructions.

Auth Example:

import { Amplify } from "aws-amplify"
import awsconfig from '../src/aws-exports'

Amplify.configure(awsconfig)

// On the client, `Auth` is configured to be "SSR-aware"
const { Auth } = withServerContext()

export default function Home({ user }) {
  if (!user) {
	return <Authenticator />
  }

  return <h1>Howdy, {user.attributes.email}!</h1>	
}

export const getServerSideProps: GetServerSideProps = async (context) => {
  // Server gets an instance of Auth scoped to this request (including cookies)
  const { Auth } = withServerContext(context)

  let user = null

  try {
    user = await Auth.currentAuthenticatedUser()
  } catch (error) {
	// Usually "not authenticated
    console.error(error)
  }

  return {
    props: {
      user: JSON.parse(JSON.stringify(user)),
    },
  }
}

DataStore Example:

import { Amplify, withServerContext } from 'aws-amplify';
import awsConfig from '../src/aws-exports';
import { Post, PostStatus } from '../src/models';

Amplify.configure(awsConfig);

export async function getServerSideProps(context) {
  const { DataStore, serializeModel } = withSSRContext(context);
  cosnt posts = await DataStore.query(Post)
  
  return {
    props: {
      posts: serializeModel(posts)
    }
  }
}

const { DataStore, deserializeModel } = withSSRContext();

function Page(initialData) {
  const [posts] = useState(deserializeModel(Post, initialData.posts));
  

I put logging into each DataStore and storage class to confirm new instantiations took place:

[ event ] build page: /
[ wait ]  compiling ...
[ info ]  bundled successfully, waiting for typecheck results...
[ ready ] compiled successfully - ready on http://localhost:3000
NEW DataStore
NEW DataStore
NEW AsyncStorage
NEW StorageClass
NEW ExclusiveStorage
NEW AsyncStorage
NEW AsyncStorageDatabase
[ event ] build page: /next/dist/pages/_error
[ wait ]  compiling ...
[ info ]  bundled successfully, waiting for typecheck results...
The schema has already been initialized


NEW PAGE ...

The schema has already been initialized
NEW DataStore
NEW StorageClass
NEW ExclusiveStorage
NEW AsyncStorage
NEW AsyncStorageDatabase


ANOTHER REFRESH

NEW DataStore
NEW StorageClass
NEW ExclusiveStorage
NEW AsyncStorage
NEW AsyncStorageDatabase

Between refreshes, the client will see (because it uses IndexedDB):

NEW DataStore
NEW StorageClass
NEW ExclusiveStorage

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

HMR will re-run imports, so sideEffects have to be graceful
…auth

# Conflicts:
#	packages/core/package.json
…datastore

# Conflicts:
#	packages/core/src/Util/Reachability.ts
#	packages/datastore/package.json
#	packages/datastore/src/datastore/datastore.ts
Argument of type '{ online: boolean; }' is not assignable to parameter of type 'Observable<NetworkStatus> | ObservableLike<NetworkStatus> | ArrayLike<NetworkStatus>'.
  Object literal may only specify known properties, and 'online' does not exist in type 'Observable<NetworkStatus> | ObservableLike<NetworkStatus> | ArrayLike<NetworkStatus>'.ts(2345)
Copy link
Contributor

@elorzafe elorzafe left a comment

Choose a reason for hiding this comment

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

👍 Thanks @ericclemmons !

@ericclemmons ericclemmons merged commit 1cb1afd into aws-amplify:main Sep 2, 2020
@ericclemmons ericclemmons deleted the next-amplify branch September 2, 2020 17:14
wlee221 added a commit that referenced this pull request Sep 3, 2020
* feat(@aws-amplify/ui-components): Add Chatbot UI to main (#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: #5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* feat(SSR): withSSRContext (#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
wlee221 added a commit that referenced this pull request Sep 3, 2020
* feat(@aws-amplify/ui-components): Add Chatbot UI to main (#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: #5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* Bump aws-sdk to gamma.v8

* Bump v7 to v8

* Add missing config for predictions test

* feat(SSR): withSSRContext (#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
wlee221 added a commit that referenced this pull request Sep 8, 2020
* feat(@aws-amplify/ui-components): Add ChatBot Component

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

* chore: Sync ui-components/main with main (#6724)

* feat(@aws-amplify/ui-components): Add Chatbot UI to main (#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: #5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* feat(SSR): withSSRContext (#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* deps: Bump aws-sdk to v8 (#6720)

* feat(@aws-amplify/ui-components): Add Chatbot UI to main (#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: #5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* Bump aws-sdk to gamma.v8

* Bump v7 to v8

* Add missing config for predictions test

* feat(SSR): withSSRContext (#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* Remove duplicate test keys

* Use tabs

* Use correct amplify version

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
nubpro pushed a commit to nubpro/amplify-js that referenced this pull request Oct 2, 2020
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
nubpro pushed a commit to nubpro/amplify-js that referenced this pull request Oct 2, 2020
* feat(@aws-amplify/ui-components): Add ChatBot Component

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (aws-amplify#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (aws-amplify#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (aws-amplify#6678)

* chore: Sync ui-components/main with main (aws-amplify#6724)

* feat(@aws-amplify/ui-components): Add Chatbot UI to main (aws-amplify#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: aws-amplify#5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (aws-amplify#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (aws-amplify#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (aws-amplify#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (aws-amplify#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* feat(SSR): withSSRContext (aws-amplify#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (aws-amplify#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (aws-amplify#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (aws-amplify#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* deps: Bump aws-sdk to v8 (aws-amplify#6720)

* feat(@aws-amplify/ui-components): Add Chatbot UI to main (aws-amplify#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: aws-amplify#5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (aws-amplify#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (aws-amplify#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (aws-amplify#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (aws-amplify#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* Bump aws-sdk to gamma.v8

* Bump v7 to v8

* Add missing config for predictions test

* feat(SSR): withSSRContext (aws-amplify#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (aws-amplify#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (aws-amplify#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (aws-amplify#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* Remove duplicate test keys

* Use tabs

* Use correct amplify version

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
iartemiev added a commit that referenced this pull request Oct 13, 2020
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
iartemiev added a commit that referenced this pull request Oct 13, 2020
* feat(@aws-amplify/ui-components): Add ChatBot Component

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

* chore: Sync ui-components/main with main (#6724)

* feat(@aws-amplify/ui-components): Add Chatbot UI to main (#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: #5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* feat(SSR): withSSRContext (#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* deps: Bump aws-sdk to v8 (#6720)

* feat(@aws-amplify/ui-components): Add Chatbot UI to main (#6684)

* feat(@aws-amplify/ui-components): Add ChatBot Component

Fixes: #5024

* amplify-chatbot initial import

* Use interface and comment out test

* Expose additional css variables and add icon variant to button

* Update snapshot

* Clean up code

* Remove unused test case

* Add snapshot testing

* Apply comments from @ashika01

* Rename --icon-color to --icon-fill

* Remove unused class css

* Update css for compatibility with existing components

* Set default height

* Integrate Interactions text message

* Update snapshots

* Simplify code

* Add audiorecorder and integrate voice chat

* Use interface over type

* Reorder functions and add byte descriptions

* Add loading animation

* Update interaction types

* Scroll to bottom

* set methods private

* Rename css class

* Update snapshot

* Add error handling and reorder functions

* Refactor error handling

* Refactor chatbot functions

* Cleanup

* Update snapshot

* Expose width css variable from amplify-button

* px to rem

* Expose width and height variable; Control height at top level

* Add header slot

* Add listening animation

* Cleanup

* Update angular module

* Move visualization to helper and downsample data array

* Separate animation scss

* Remove console.logs

* Control width / height at host; expose message colors

* Use I18n with strings

* Fix typo

* Use enum for chat state

* Revert width back to 100%

* Rename updateProps to validateProps

* Separate out interaction enum strings

* Move MIME type string to constants file

* Use async/await pattern in recorder.ts

* Check isBrowser and add silence props

* Separate init from recorder for async control

* Remove fieldId

* Add try catch around Interactions.send

* Remove requestId

* Update snapshot

* Expose Interactions types

* Remove duplicate logic

* Use enum to describe where the message is from

* Clean up css and set enum value

* Add slot description

* Simplify import

* Default noop to visualizer

* Comment AudioRecorder and separate constants

* Update snapshot

* Reorder css

* Enable conversationModeOn prop

* Update packages/amplify-ui-components/src/common/audio-control/helper.ts

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Move error strings to translations

* Remove trailing comma

* Wrap audioContext resume with error logger

* Try catch `resume` and make startRecording async

* Use callback based decode for safari

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* ci: enable preview release from ui-components/main (#6648)

* Enable publish from ui-preview branch

* Revert checkout

Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* fix(@aws-amplify/ui-components): Update scss and reset chat state upon finish  (#6652)

* Move width/height control to container level

* Add min-height to footer

* Reset chat state upon session finish

* Remove trailing comma

* Handle error based on whether it's recoverable or not

* Put a different placeholder if only voice is enabled

* Make dot color customizable

* Fix typo in translations

* Let users stop audio and remove speaking chat state

* Add --amplify-blue as bg chat color

* Remove console.error

* ci: add interactions integ test (#6678)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.3.5
 - @aws-amplify/ui-angular@0.3.0
 - @aws-amplify/ui-components@0.7.0
 - @aws-amplify/ui-react@0.2.16
 - @aws-amplify/ui-storybook@0.2.16
 - @aws-amplify/ui-vue@0.2.15
 - @aws-amplify/analytics@3.2.8
 - @aws-amplify/api-graphql@1.1.7
 - @aws-amplify/api-rest@1.1.7
 - @aws-amplify/api@3.1.24
 - @aws-amplify/auth@3.3.6
 - aws-amplify-angular@5.0.25
 - aws-amplify-react@4.2.0
 - aws-amplify@3.0.25
 - @aws-amplify/cache@3.1.24
 - @aws-amplify/core@3.4.7
 - @aws-amplify/datastore@2.2.11
 - @aws-amplify/interactions@3.2.0
 - @aws-amplify/predictions@3.1.24
 - @aws-amplify/pubsub@3.0.25
 - @aws-amplify/pushnotification@3.1.11
 - @aws-amplify/storage@3.2.14
 - @aws-amplify/xr@2.1.24

* chore(release): update version.ts [ci skip]

* fix(amazon-cognito-identity-js): add "none" to sameSite possible values (#6682)

* add none to cookiesStorage sameSite possible values

* add sameSite = none to the valid values

* update ICookieStorageData interface

update ICookieStorageData to support sameSite = 'none'

* Update packages/amazon-cognito-identity-js/src/CookieStorage.js

Co-authored-by: Alex Hinson <alexmhinson@gmail.com>

* Bump aws-sdk to gamma.v8

* Bump v7 to v8

* Add missing config for predictions test

* feat(SSR): withSSRContext (#6146)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* fix(@aws-amplify/datastore): DataStore regression with AsyncStorage (#6712)

* Remove DataStore from defaultModules until 100 subscription bug is fixed

* Use factory pattern for InMemoryStore to work with AsyncStorage

* Fix AsyncStorage test

* chore: preparing release

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@4.4.0
 - @aws-amplify/ui-angular@0.4.0
 - @aws-amplify/ui-components@0.8.0
 - @aws-amplify/ui-react@0.2.17
 - @aws-amplify/ui-storybook@0.2.17
 - @aws-amplify/ui-vue@0.2.16
 - @aws-amplify/analytics@3.3.0
 - @aws-amplify/api-graphql@1.2.0
 - @aws-amplify/api-rest@1.2.0
 - @aws-amplify/api@3.2.0
 - @aws-amplify/auth@3.4.0
 - aws-amplify-angular@5.0.26
 - aws-amplify-react@4.2.1
 - aws-amplify@3.1.0
 - @aws-amplify/cache@3.1.25
 - @aws-amplify/core@3.5.0
 - @aws-amplify/datastore@2.3.0
 - @aws-amplify/interactions@3.3.0
 - @aws-amplify/predictions@3.2.0
 - @aws-amplify/pubsub@3.1.0
 - @aws-amplify/pushnotification@3.2.0
 - @aws-amplify/storage@3.3.0
 - @aws-amplify/xr@2.2.0

* chore(release): update version.ts [ci skip]

* fix: Integration tests will retry "yarn install" (#6709)

* Remove isomorphic-ws & ws from SSR DataStore usage (#6719)

Bypassing PR steps since this is considered a hot-fix. CI on main will still be validation for release.

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* Remove duplicate test keys

* Use tabs

* Use correct amplify version

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: Jordan Ranz <jordanmranz@gmail.com>
Co-authored-by: elorzafe <elorzafe@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Mohamed Djelaili <meddjelaili.me@gmail.com>
Co-authored-by: Alex Hinson <alexmhinson@gmail.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
SSR Issues related to Server Side Rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants