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

Release/2.0.0 alpha.1 #11

Closed
wants to merge 150 commits into from
Closed

Release/2.0.0 alpha.1 #11

wants to merge 150 commits into from

Commits on May 7, 2021

  1. Initial commit

    Gerben-T committed May 7, 2021
    Configuration menu
    Copy the full SHA
    735533b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … feature/configuration
    Gerben-T committed May 7, 2021
    Configuration menu
    Copy the full SHA
    f094d3f View commit details
    Browse the repository at this point in the history
  3. Initial commit

    Gerben-T committed May 7, 2021
    Configuration menu
    Copy the full SHA
    bbd1459 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2021

  1. Configuration menu
    Copy the full SHA
    aebd9cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6a6752 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0689aaa View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/feature/configuration' into feat…

    …ure/components
    
    # Conflicts:
    #	.babelrc
    #	.eslintrc.json
    #	.idea/inspectionProfiles/Project_Default.xml
    #	package-lock.json
    #	package.json
    #	src/App.jsx
    gydotitulaer committed May 12, 2021
    Configuration menu
    Copy the full SHA
    68a4ba2 View commit details
    Browse the repository at this point in the history
  5. Add Api abstraction layer

    This abstraction layer is the base layer which contains all the Api calls done with fetch().
    Gerben-T committed May 12, 2021
    Configuration menu
    Copy the full SHA
    8843133 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ef3bf49 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a8dbde3 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … feature/apiCode
    
    � Conflicts:
    �	.babelrc
    �	.eslintrc.json
    �	.gitignore
    �	.idea/inspectionProfiles/Project_Default.xml
    �	README.md
    �	index.html
    �	package-lock.json
    �	package.json
    �	src/App.jsx
    �	src/index.jsx
    Gerben-T committed May 19, 2021
    Configuration menu
    Copy the full SHA
    5f6500e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce2a796 View commit details
    Browse the repository at this point in the history
  3. Fix ESLint issues, especially no-invalid-this

    no-invalid-this had to be replaced by @babel/no-invalid-this, otherwise it would show false positives in arrow functions
    Gerben-T committed May 19, 2021
    Configuration menu
    Copy the full SHA
    f752627 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2021

  1. Configuration menu
    Copy the full SHA
    327c4bc View commit details
    Browse the repository at this point in the history
  2. Innitial commit for:

    Announcement
    Image.jsx
    ImageViewer.jsx
    ReplyActions.jsx
    
    Removed
    MarkdownText.jsx
    
    Changed:
    Arrow functions and removed binds
    Disabled Image.jsx (not required in first version)
    gydotitulaer committed May 20, 2021
    Configuration menu
    Copy the full SHA
    68de614 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' of https://github.com/parley-messaging/web-library

     into feature/components
    
    � Conflicts:
    �	.eslintrc.json
    �	.idea/inspectionProfiles/Project_Default.xml
    �	.idea/vcs.xml
    �	README.md
    �	index.html
    �	package-lock.json
    �	package.json
    �	src/App.jsx
    �	src/index.jsx
    gydotitulaer committed May 20, 2021
    Configuration menu
    Copy the full SHA
    36302a1 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2021

  1. Configuration menu
    Copy the full SHA
    7c8f9fc View commit details
    Browse the repository at this point in the history
  2. Remove babel presets that are handled automatically in Parcel beta 3

    https://v2.parceljs.org/blog/beta3/
    
    Had to install a plugin for eslint otherwise it showed errors because it is missing je react-preset
    Gerben-T committed May 21, 2021
    Configuration menu
    Copy the full SHA
    484af4c View commit details
    Browse the repository at this point in the history
  3. Working on build targets

    Gerben-T committed May 21, 2021
    Configuration menu
    Copy the full SHA
    42ec683 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    24a4606 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. Configuration menu
    Copy the full SHA
    c638c3a View commit details
    Browse the repository at this point in the history
  2. Add CSP

    Gerben-T committed May 26, 2021
    Configuration menu
    Copy the full SHA
    93ea2a3 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feature/components' of github.com:parley-messaging/web-…

    …library into feature/strictCSP
    
    � Conflicts:
    �	index.html
    Gerben-T committed May 26, 2021
    Configuration menu
    Copy the full SHA
    b5300fa View commit details
    Browse the repository at this point in the history
  4. Merge branch 'feature/build' of github.com:parley-messaging/web-libra…

    …ry into feature/strictCSP
    
    � Conflicts:
    �	package-lock.json
    �	package.json
    �	src/ui/App.jsx
    Gerben-T committed May 26, 2021
    Configuration menu
    Copy the full SHA
    d020c36 View commit details
    Browse the repository at this point in the history
  5. Pulled from /components

    Gerben-T committed May 26, 2021
    Configuration menu
    Copy the full SHA
    d1eb7df View commit details
    Browse the repository at this point in the history
  6. Pulled from /build

    Gerben-T committed May 26, 2021
    Configuration menu
    Copy the full SHA
    c3cde7e View commit details
    Browse the repository at this point in the history
  7. Create index.html with CSP

    Gerben-T committed May 26, 2021
    Configuration menu
    Copy the full SHA
    766953c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    32a1088 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2021

  1. Configuration menu
    Copy the full SHA
    af8e5ad View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Configuration menu
    Copy the full SHA
    2020840 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2021

  1. Implement PollingService in ApiEventTarget

    And demo this in the example application
    Gerben-T committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    d4decbd View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … feature/polling
    
    � Conflicts:
    �	cypress/.eslintrc.json
    �	cypress/plugins/index.js
    �	cypress/support/index.js
    �	package-lock.json
    �	package.json
    �	src/Api/Api.js
    �	src/Api/ApiEventTarget.js
    �	src/App.jsx
    �	src/Configuration.jsx
    �	src/EventLog.jsx
    �	src/MessageList.jsx
    �	src/Messaging.jsx
    Gerben-T committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    c5cb84f View commit details
    Browse the repository at this point in the history
  2. Implement Polling Service in UI (because we don't use the logic in Ap…

    …iEventTarget anymore)
    Gerben-T committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    349f58f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    09326a4 View commit details
    Browse the repository at this point in the history
  4. Fix regex

    Gerben-T committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    39ace3b View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2021

  1. Remove duplicated files

    Gerben-T committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    603dfee View commit details
    Browse the repository at this point in the history
  2. Remove duplicated files

    Gerben-T committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    8002228 View commit details
    Browse the repository at this point in the history
  3. Only stop(& restart) the polling interval when we go on to the next i…

    …nterval
    
    If we keep the current interval there is no need to stop and restart..
    Gerben-T committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    f93b17b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    66322fd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    861fa5a View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. Merge remote-tracking branch 'origin/master' into feature/polling

    # Conflicts:
    #	src/Messaging.jsx
    daanleenders committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    961e4f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Rename stuff & fix issue with currentIntervalAmount being greater t…

    …han the max
    
    Also fixed last test for polling; it didn't stop after `resolve()` so it needed a `return`
    Gerben-T committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    bb4cb01 View commit details
    Browse the repository at this point in the history
  2. Remove config const for polling tests and let each test define their own

    also lowered the intervals for the first test
    Gerben-T committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    f07015a View commit details
    Browse the repository at this point in the history
  3. Use timeouts in Polling

    Gerben-T committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    5a00def View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3922f8 View commit details
    Browse the repository at this point in the history
  5. Rename interfaceTexts.js to tempConfig.js, becuase we will be storing…

    … config values aswell
    
    Also disabled quickreplies
    Gerben-T committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    2db67ca View commit details
    Browse the repository at this point in the history
  6. Start polling when device is subscribed and reset polling when messag…

    …e is sent
    
    Also added; Message sending on submit, Device registration when chat opens, Stop polling on unmount
    Gerben-T committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    4fb4085 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e07f42b View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. Remove comments about implementing stuff later

    We have tickets and that should be enough
    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    58dec5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cf656d View commit details
    Browse the repository at this point in the history
  3. Rename var to timeout

    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    e19669e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3dc8c0a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f423da7 View commit details
    Browse the repository at this point in the history
  6. Forgot a variable

    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    20681a2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fd31dd1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3f147dc View commit details
    Browse the repository at this point in the history
  9. Restart polling when there is focus on the input field

    Also open the chat when there is a new message
    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    498087f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7ac190d View commit details
    Browse the repository at this point in the history
  11. Let Conversation.jsx restart polling when it mounts

    This way you should always see your new messages when the conversation window opens
    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    7403922 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f9f318c View commit details
    Browse the repository at this point in the history
  13. Suppress eslint error

    When i remove this variable the IDEA complains about the override not being the same as the original..
    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    bbca754 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1029825 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a6cb84b View commit details
    Browse the repository at this point in the history
  16. Updating axe-core

    Was hoping this would fix it..
    Gerben-T committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    1c9b021 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Configuration menu
    Copy the full SHA
    a352c75 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Remove auto start of polling in constructor

    Also clear event listeners on stopPolling()
    And fixed tests
    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    88f2b1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3a82aa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aad0305 View commit details
    Browse the repository at this point in the history
  4. Fix scroll to bottom when new messages come in

    Had to compare last id's instead of array lengths because the API gives out max 50 messages..
    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    dde05a8 View commit details
    Browse the repository at this point in the history
  5. Fix typo in test

    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    7996f80 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'feature/polling' of github.com:parley-messaging/web-lib…

    …rary into feature/strictCSP
    
    � Conflicts:
    �	.babelrc
    �	.eslintrc.json
    �	.idea/inspectionProfiles/Project_Default.xml
    �	README.md
    �	index.html
    �	package-lock.json
    �	package.json
    �	src/UI/index.jsx
    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    66b1ef3 View commit details
    Browse the repository at this point in the history
  7. Merge

    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    95493cd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    de41408 View commit details
    Browse the repository at this point in the history
  9. (re)create index CSP file

    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    deba8b3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    07044ef View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e3592fd View commit details
    Browse the repository at this point in the history
  12. Dont check unused vars in args because they can conflict with phpstor…

    …m's "signature mismatch" inspection
    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    8e7eebc View commit details
    Browse the repository at this point in the history
  13. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … feature/strictCSP
    
    � Conflicts:
    �	cypress/integration/polling_spec.js
    �	src/Api/Polling.js
    �	src/UI/App.jsx
    �	src/UI/Buttons/HeaderButton.jsx
    �	src/UI/Chat.jsx
    �	src/UI/Conversation.jsx
    �	src/UI/Launcher.jsx
    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    1e38430 View commit details
    Browse the repository at this point in the history
  14. No need for a variable here

    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    ff04fab View commit details
    Browse the repository at this point in the history
  15. Remove unused npmrc

    Gerben-T committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    8bf5fcb View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    dc38479 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Configuration menu
    Copy the full SHA
    3d02f1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f4df77 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c24cbd6 View commit details
    Browse the repository at this point in the history
  4. Add css to index.html

    Gerben-T committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    9d919de View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b9a32ca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ccd154c View commit details
    Browse the repository at this point in the history
  7. Use css scoped names

    Gerben-T committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    312548e View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. Fix issue with Parcel

    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    e8a3561 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6113ce9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0d919f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    87c7a7d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    05e85c0 View commit details
    Browse the repository at this point in the history
  6. Fix problem where error notification returned a object and not just text

    also added the use of `ApiGenericError` for errors when the API didn't provide one
    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    9b777de View commit details
    Browse the repository at this point in the history
  7. Add context providers

    also handle/show errors in chat
    also remove axe-core (doesn't work and keeps throwing errors)
    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    5eb9778 View commit details
    Browse the repository at this point in the history
  8. Add tests for ui errors

    Gerben-T committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    59bb371 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Working changing language

    Gerben-T committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    393aa6d View commit details
    Browse the repository at this point in the history
  2. No need for contextType

    Gerben-T committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    5eea332 View commit details
    Browse the repository at this point in the history
  3. Make sure fontawesome css is bundled in our css

    so that we don't need to include it separately in the index.html
    Gerben-T committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    855bffe View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Remove axe-core and fix csp

    Gerben-T committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    ce5b191 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. Configuration menu
    Copy the full SHA
    dfc02eb View commit details
    Browse the repository at this point in the history
  2. Make window.parleySettings reactive using Proxies

    also; moved/renamed context.js => Scripts/Context.js
    also; add a Logger for logging stuff with log levels
    Gerben-T committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    13560b5 View commit details
    Browse the repository at this point in the history
  3. When language changes, make sure the interfaceTexts overrides stay th…

    …e same
    
    when overriding interfaceTexts using `window.parleySettings.runOptions.interfaceTexts` and switching language, we don't want your custom overrides to get replaced by the InterfaceText.{language} defaults
    Gerben-T committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    fea4039 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Configuration menu
    Copy the full SHA
    fc28de2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50e1139 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3542aa0 View commit details
    Browse the repository at this point in the history
  4. When infoText setting changes, the UI needs to change as well

    Also; fixed issue where proxy would keep triggering `setState()` after being unmounted
    Also; added eslint plugin to remove unused imports
    Gerben-T committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    4854e68 View commit details
    Browse the repository at this point in the history
  5. When placeholderMessenger setting changes, the UI needs to change as …

    …well
    
    Also; added plugin to disallow `.only` tests
    Gerben-T committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    f274f05 View commit details
    Browse the repository at this point in the history
  6. Add some comments

    Gerben-T committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    2fd3d07 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Change how Proxy works to make it more robust and easier to understand

    Also; renamed v1 props to v2 in InterfaceTexts
    Also; moved some functions around
    Also; added jsdocs
    Also; fixed issue where errorNotfication render gave an error that it didn't exist
    Gerben-T committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    f239f7c View commit details
    Browse the repository at this point in the history
  2. Add workingHours (weekdays) and hideChatOutsideWorkingHours (hideChat…

    …AfterBusinessHours) settings
    
    Also; made them hide the Launcher if we are outside working hours and hideChatxxx is true
    Also; Copied the script from v1 that checks if we are inside/outside working hours
    Gerben-T committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    dcc72dd View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Add mobile recognition

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    328bc5b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/strictCSP' of github.com:parley-messaging/web-l…

    …ibrary into release/2.0.0-alpha.1
    
    � Conflicts:
    �	.eslintrc.json
    �	.postcssrc.json
    �	package-lock.json
    �	package.json
    �	src/UI/App.jsx
    �	src/UI/Buttons/HeaderButton.jsx
    �	src/UI/Launcher.jsx
    �	src/UI/index.jsx
    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    a49a07d View commit details
    Browse the repository at this point in the history
  3. Merge with csp

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    27d045d View commit details
    Browse the repository at this point in the history
  4. Fix building css finally

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    84e1d97 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    74bce62 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'feature/saveDeviceRegistration' of github.com:parley-me…

    …ssaging/web-library into release/2.0.0-alpha.1
    
    � Conflicts:
    �	.postcssrc.json
    �	index.html
    �	index.js
    �	package-lock.json
    �	package.json
    �	src/UI/App.jsx
    �	src/UI/Buttons/HeaderButton.jsx
    �	src/UI/Launcher.jsx
    �	src/UI/index.jsx
    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    45438ba View commit details
    Browse the repository at this point in the history
  7. Add bootstrap through npm

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    eed3f25 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ea91726 View commit details
    Browse the repository at this point in the history
  9. Compare localStorage device information with new one when calling sub…

    …scribeDevice
    
    when they both match, it means we don't have any new data for the api
    so calling it would be a waste of resources.
    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    bbe770a View commit details
    Browse the repository at this point in the history
  10. Add device version to state

    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    8b2a86b View commit details
    Browse the repository at this point in the history
  11. Move parleycdn demo stuff to its own folder

    this way we can call it index.html and the output file will also be called index.html
    Gerben-T committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    f2fab2e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5018f4d View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Configuration menu
    Copy the full SHA
    e3dbdaf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc301a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    01149e9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7474864 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2b83cf6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8410275 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    08f1b02 View commit details
    Browse the repository at this point in the history
  8. Add error color values

    Gerben-T committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    4fa3c50 View commit details
    Browse the repository at this point in the history
  9. Rename public functions

    Gerben-T committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    aa92892 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    36c3f5f View commit details
    Browse the repository at this point in the history
  11. Remove todo comments

    Gerben-T committed Jul 23, 2021
    Configuration menu
    Copy the full SHA
    ef83fcb View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Configuration menu
    Copy the full SHA
    00b1c60 View commit details
    Browse the repository at this point in the history
  2. Fix issue where we wouldn't create a new device when account identifi…

    …cation changes
    
    This was due to the localstorage still containing the device info.
    When we try to subscribe with the same info it will ignore the call because it is a waste of resources if we make the call with nothing new in it.
    Gerben-T committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    317a39e View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Configuration menu
    Copy the full SHA
    34c5156 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0a65f9 View commit details
    Browse the repository at this point in the history
  3. fix Styling Issue after call Triodos (#12)

    * Fixed - Minor styling issues font and color
    Added - Error root styling (was in front-end web library) not in here tho
    Auto - name got added after i did install packages
    
    * Fixed - Prefix in root values
    
    * Fixed - package-lock.json
    
    * Fixed - Duplicate root style
    
    * Fixed - vcs file
    gydotitulaer committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    74e5486 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7cde9e7 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Add aria label for text input

    Also; renamed variables for aria labels to start with "ariaLabel"
    Gerben-T committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    fabfa5f View commit details
    Browse the repository at this point in the history
  2. Add build configurations

    Gerben-T committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    b00180e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    468cc22 View commit details
    Browse the repository at this point in the history
  4. Save account/device identification in localstorage

    This way we can re-subscribe if one of those has changed
    Gerben-T committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    0c55c06 View commit details
    Browse the repository at this point in the history
  5. Create new Api and Polling service when device identification changes

    When device/account identification changes we want te subscribe the (new) device to the (new) account.
    Also; the default value for the deviceIdentification is either; the one saved in storage from previous session OR a new random uuid
    Gerben-T committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    110b680 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. Merge branch 'master' of github.com:parley-messaging/web-library into…

    … release/2.0.0-alpha.1
    
    � Conflicts:
    �	.babelrc
    �	cypress/integration/api-class_spec.js
    �	cypress/integration/ui_spec.js
    �	index.html
    �	package-lock.json
    �	package.json
    �	src/Api/Api.js
    �	src/UI/App.jsx
    �	src/UI/Buttons/HeaderButton.jsx
    �	src/UI/Chat.jsx
    �	src/UI/Chat.module.css
    �	src/UI/Launcher.jsx
    �	src/UI/Launcher.module.css
    �	src/UI/ReplyText.jsx
    �	src/UI/Scripts/Context.js
    �	src/UI/Scripts/WorkingHours.js
    Gerben-T committed Apr 20, 2022
    Configuration menu
    Copy the full SHA
    3869a88 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2c5d03 View commit details
    Browse the repository at this point in the history
  3. Fix some bad merges

    Gerben-T committed Apr 20, 2022
    Configuration menu
    Copy the full SHA
    e97af72 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. Solve merge conflicts from merge: master into v2.0.0-alpha.1 (#25)

    * Add support for strict CSP's (#8)
    
    * Initial commit
    
    * Initial commit
    
    * Use babel-eslint parser to support arrow functions (and other)
    
    * Use babel-eslint parser to support arrow functions (part 2)
    
    * Intitial commit for components
    
    * Add Api abstraction layer
    
    This abstraction layer is the base layer which contains all the Api calls done with fetch().
    
    * Add step comments to EventLog.jsx
    
    * Add some comments to api scripts
    
    * We dont have a release branch anymore (due to creating a new repo)
    
    * Fix ESLint issues, especially no-invalid-this
    
    no-invalid-this had to be replaced by @babel/no-invalid-this, otherwise it would show false positives in arrow functions
    
    * Removed console logs and fixed `curly` rule to be used always
    
    * Innitial commit for:
    Announcement
    Image.jsx
    ImageViewer.jsx
    ReplyActions.jsx
    
    Removed
    MarkdownText.jsx
    
    Changed:
    Arrow functions and removed binds
    Disabled Image.jsx (not required in first version)
    
    * Add build targets to package.json
    
    * Remove babel presets that are handled automatically in Parcel beta 3
    
    https://v2.parceljs.org/blog/beta3/
    
    Had to install a plugin for eslint otherwise it showed errors because it is missing je react-preset
    
    * Working on build targets
    
    * Added .postcssrc for more control over CSS transformations
    
    * Update readme with info about building
    
    * Add CSP
    
    * Pulled from /components
    
    * Pulled from /build
    
    * Create index.html with CSP
    
    * Forgot to load the css stylesheet
    
    * Add Cypress and Polling and first basic test
    
    * Add unit tests for polling mechanism
    
    * Implement PollingService in ApiEventTarget
    
    And demo this in the example application
    
    * Implement Polling Service in UI (because we don't use the logic in ApiEventTarget anymore)
    
    * Add polling test for restartPolling()
    
    * Fix regex
    
    * Remove duplicated files
    
    * Remove duplicated files
    
    * Only stop(& restart) the polling interval when we go on to the next interval
    
    If we keep the current interval there is no need to stop and restart..
    
    * Reset variables when calling restartPolling()
    
    * Remove unneeded dependency with account/deviceIdentification
    
    * Rename stuff & fix issue with `currentIntervalAmount` being greater than the max
    
    Also fixed last test for polling; it didn't stop after `resolve()` so it needed a `return`
    
    * Remove config const for polling tests and let each test define their own
    
    also lowered the intervals for the first test
    
    * Use timeouts in Polling
    
    * Rename message send event to "sent" (past tense)
    
    * Rename interfaceTexts.js to tempConfig.js, becuase we will be storing config values aswell
    
    Also disabled quickreplies
    
    * Start polling when device is subscribed and reset polling when message is sent
    
    Also added; Message sending on submit, Device registration when chat opens, Stop polling on unmount
    
    * Disable input field while sending message to parley
    
    * Remove comments about implementing stuff later
    
    We have tickets and that should be enough
    
    * Use ow package to validate params
    
    * Rename var to timeout
    
    * Remove commented console logs
    
    * Wait for getMessages before continuing the next interval
    
    * Forgot a variable
    
    * Test polling reaction to api events
    
    * Show messages in conversation
    
    * Restart polling when there is focus on the input field
    
    Also open the chat when there is a new message
    
    * Fixed issue in code that finds a new message id
    
    * Let Conversation.jsx restart polling when it mounts
    
    This way you should always see your new messages when the conversation window opens
    
    * Scroll down when there is a new message
    
    * Suppress eslint error
    
    When i remove this variable the IDEA complains about the override not being the same as the original..
    
    * Only render Agent's name once if there are more agent messages
    
    * Refocus input field after sending a message
    
    * Updating axe-core
    
    Was hoping this would fix it..
    
    * Remove auto start of polling in constructor
    
    Also clear event listeners on stopPolling()
    And fixed tests
    
    * Restart polling when page/window receives visibility/focus
    
    * Fix scroll to bottom when new messages come in
    
    Had to compare last id's instead of array lengths because the API gives out max 50 messages..
    
    * Fix typo in test
    
    * Merge
    
    * Only load code-coverage code when in development mode
    
    * (re)create index CSP file
    
    * Turn default imports (css) into namespace imports
    
    https://v2.parceljs.org/languages/postcss/#css-modules-tree-shaking
    
    * Fix issue where CSS was not correctly build in index_CSP.html
    
    * Dont check unused vars in args because they can conflict with phpstorm's "signature mismatch" inspection
    
    * No need for a variable here
    
    * Remove unused npmrc
    
    * Use Parcel nightly for css scope hoisting fix
    
    fix: parcel-bundler/parcel#6489
    Also used parcel's babel presets as defined here: https://v2.parceljs.org/languages/babel/#extending-the-default-babel-config
    
    * Remove idea gitignore (we have our own one)
    
    * Revert change to parley-web-library.iml
    
    * Remove pageVisibilityApi.js, we dont need it anymore
    
    * Make sure fontawesome css is bundled in our css
    
    so that we don't need to include it separately in the index.html
    
    * Remove axe-core and fix csp
    
    * Dont need postcss (installed automatically by Parcel)
    
    * Fix building css finally
    
    Co-authored-by: Gydo Titulaer <gydo.titulaer@tracebuzz.com>
    Co-authored-by: Daan Leenders <daan@tracebuzz.com>
    
    * Save device registration in storage (#9)
    
    * Save device registration in local storage and check it upon `subscribeDevice()`
    
    * Add ability to load settings from window.parleySettings (for now)
    
    * Add start wrapper function for loading the chat in the advanced demo page (for now)
    
    * Add css to index.html
    
    * Use namespace imports for styles
    
    * Use parcel's own babel presets
    
    * Use css scoped names
    
    * Fix issue with Parcel
    
    * Add js for demo page (taken from v1 so not optimized, might also be temporary)
    
    * Only load code coverage on development builds
    
    * Compare localStorage device information with new one when calling subscribeDevice
    
    when they both match, it means we don't have any new data for the api
    so calling it would be a waste of resources.
    
    * Add authorization and language options to demo
    
    # Conflicts:
    #	index.js
    #	parleycdn-demo/index.html
    
    * Add authorization and language options to demo
    
    * Compare authorization before registering device
    
    * Make storage prefix customizable
    
    Somehow is also missed some npm packages so i needed to install those
    
    * Add storage prefix from settings
    
    * Update index.html
    
    Co-authored-by: Daan Leenders <daanleenders@gmail.com>
    
    Co-authored-by: Daan Leenders <daanleenders@gmail.com>
    
    * Implements the configuration (#10)
    
    * Fix problem where error notification returned a object and not just text
    
    also added the use of `ApiGenericError` for errors when the API didn't provide one
    
    * Add context providers
    
    also handle/show errors in chat
    also remove axe-core (doesn't work and keeps throwing errors)
    
    * Add tests for ui errors
    
    * Working changing language
    
    * No need for contextType
    
    * Create test for testing parley settings reactivity
    
    * Make window.parleySettings reactive using Proxies
    
    also; moved/renamed context.js => Scripts/Context.js
    also; add a Logger for logging stuff with log levels
    
    * When language changes, make sure the interfaceTexts overrides stay the same
    
    when overriding interfaceTexts using `window.parleySettings.runOptions.interfaceTexts` and switching language, we don't want your custom overrides to get replaced by the InterfaceText.{language} defaults
    
    * Create new Api instance (and device) when switching roomNumber
    
    * Re-register device when authHeader changes
    
    * Re-register device when userAdditionalInformation changes
    
    * When infoText setting changes, the UI needs to change as well
    
    Also; fixed issue where proxy would keep triggering `setState()` after being unmounted
    Also; added eslint plugin to remove unused imports
    
    * When placeholderMessenger setting changes, the UI needs to change as well
    
    Also; added plugin to disallow `.only` tests
    
    * Add some comments
    
    * Change how Proxy works to make it more robust and easier to understand
    
    Also; renamed v1 props to v2 in InterfaceTexts
    Also; moved some functions around
    Also; added jsdocs
    Also; fixed issue where errorNotfication render gave an error that it didn't exist
    
    * Add workingHours (weekdays) and hideChatOutsideWorkingHours (hideChatAfterBusinessHours) settings
    
    Also; made them hide the Launcher if we are outside working hours and hideChatxxx is true
    Also; Copied the script from v1 that checks if we are inside/outside working hours
    
    * Add mobile recognition
    
    * Add device version to state
    
    * Move country to runOptions layer
    
    * Authorization can't be empty when calling subscribeDevice()
    
    * Fix issue where device version is empty if it didn't have pre-release tags
    
    * Add hide button for error messages
    
    * Default value for error message colors
    
    * Load all interface texts default on construct
    
    * Remove todo comments
    
    * Set stylelint config path to auto-detect
    
    somehow Phpstorm was messing up the path (probably because of a new update..)
    
    * Remove unused css
    
    * Rename referer to referrer if we are talking about anything other than the HTTP header / Api payload
    
    * Remove unused var and remove optional params
    
    * Make sure code coverage and index.html are CSP compliant
    
    * Not sure why Phpstorm deleted this but i don't think it is important
    
    * Data can be null if no messages are found, so it's better if we check if data is set
    
    * Remove eslint rule `prefer-promise-reject-errors`
    
    We don't need to throw an Error here with a stack trace because the API made the error so there is no stack trace that points to the API..
    
    * Return `null` when get messages api call throws an error
    
    * fix typo
    
    * Remove event listener on unmount
    
    * Make the api generic error configurable in the UI
    
    * Make unit tests for working hours script
    
    * Add code coverage for unit test
    
    * Add missing tests so we reach ~99% code coverage
    
    I can't test line 92 on workingHours.js because it checks the current date and to change that i need to change the system time..
    
    * Install light-server to serve code coverage page with live reload
    
    Couldn't use `parcel serve` for this because the index.html page contained multiple assets
    
    * Use array destructuring for readability
    
    * Use `toLocaleString()` so we don't need an extra array
    
    * Make sure office hours are 24/7 otherwise tests will fail
    
    * Add an extra test which tests the `false` part of the `format [day, start, end, false]` office hours format
    
    * Add storagePrefix to state
    
    * Use `componentDidUpdate()` instead of `shouldComponentUpdate()` because it is a better place for these checks
    
    * Ignore stuff we don't need in the repo
    
    * Forgot to change copied test
    
    Also ignore gitlink
    
    * Don't allow falsy values in the `state.messages`, it should always be an array
    
    * Fix some bad merges
    
    * Add functionality that clears your local messages if you don't have access (anymore) to the API
    
    Co-authored-by: Gydo Titulaer <gydo.titulaer@tracebuzz.com>
    Co-authored-by: Daan Leenders <daan@tracebuzz.com>
    Co-authored-by: Daan Leenders <daanleenders@gmail.com>
    4 people committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    169fe9c View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Merge remote-tracking branch 'origin/release/2.0.0-alpha.1' into rele…

    …ase/2.0.0-alpha.1
    
    # Conflicts:
    #	cypress/integration/ui_spec.js
    #	src/UI/Conversation.jsx
    Gerben-T committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    4e38fea View commit details
    Browse the repository at this point in the history