react-use-intercom

☎️ React Intercom integration without the hassle, powered by hooks.

MIT License

Downloads
1.2M
Stars
324
Committers
24

Bot releases are hidden (Show)

react-use-intercom - v1.1.1

Published by devrnt about 4 years ago

Changelog

This result in a production bundle without the (development) logs. As well as a bundlesize reduction of 0.28kB

Commits

  • Merge pull request #101 from devrnt/chore/babel-plugin-dev-expressions 3171829
  • chore: only show logs in development mode 2219254
  • Merge pull request #100 from devrnt/dependabot/npm_and_yarn/types/react-16.9.50 1d99688
  • chore(deps-dev): bump @types/react from 16.9.49 to 16.9.50 04d3d75
  • Merge pull request #97 from devrnt/dependabot/npm_and_yarn/cypress-5.3.0 1525d17
  • Merge pull request #98 from devrnt/dependabot/npm_and_yarn/testing-library/react-hooks-3.4.2 fc60186
  • chore(deps-dev): bump @testing-library/react-hooks from 3.4.1 to 3.4.2 3428f86
  • chore(deps-dev): bump cypress from 5.2.0 to 5.3.0 3e6d76f
  • Merge pull request #95 from devrnt/dependabot/npm_and_yarn/tsdx-0.14.0 d67ffde
  • test: update jest config 7a3639a
  • chore(deps-dev): bump tsdx from 0.13.3 to 0.14.0 21eeec7
  • Merge pull request #94 from devrnt/dependabot/npm_and_yarn/typescript-4.0.3 12ba3b5
  • chore(deps-dev): bump typescript from 4.0.2 to 4.0.3 faf6b7e
  • Merge pull request #93 from devrnt/dependabot/npm_and_yarn/cypress-5.2.0 213569d
  • Merge pull request #92 from devrnt/dependabot/npm_and_yarn/testing-library/react-11.0.4 aaebb6e
  • chore(deps-dev): bump cypress from 5.1.0 to 5.2.0 be5cf3f
  • chore(deps-dev): bump @testing-library/react from 11.0.2 to 11.0.4 6fd5239
  • Merge pull request #91 from devrnt/dependabot/npm_and_yarn/husky-4.3.0 11a1e3c
  • chore(deps-dev): bump husky from 4.2.5 to 4.3.0 ec59afe
  • Merge pull request #90 from devrnt/dependabot/npm_and_yarn/testing-library/react-11.0.2 ebcd5f0
  • chore(deps-dev): bump @testing-library/react from 11.0.0 to 11.0.2 b2d64ec
  • Merge pull request #89 from devrnt/dependabot/npm_and_yarn/testing-library/react-11.0.0 5b4d78b
  • Merge pull request #88 from devrnt/dependabot/npm_and_yarn/bl-4.0.3 af6c839
  • chore(deps-dev): bump @testing-library/react from 10.4.9 to 11.0.0 f08f24a
  • chore(deps): bump bl from 4.0.2 to 4.0.3 e891004
  • Merge pull request #87 from devrnt/dependabot/npm_and_yarn/cypress-5.1.0 593df14
  • Merge pull request #86 from devrnt/dependabot/npm_and_yarn/types/react-16.9.49 34251a5
  • Merge pull request #85 from devrnt/dependabot/npm_and_yarn/types/jsdom-16.2.4 7fec17e
  • chore(deps-dev): bump cypress from 5.0.0 to 5.1.0 bbb1a9f
  • chore(deps-dev): bump @types/react from 16.9.48 to 16.9.49 fe62636
  • chore(deps-dev): bump @types/jsdom from 16.2.3 to 16.2.4 666e9cb
  • Merge pull request #84 from devrnt/dependabot/npm_and_yarn/np-6.5.0 d0f6c14
  • chore(deps-dev): bump np from 6.4.0 to 6.5.0 4364cb9
  • Merge pull request #83 from devrnt/dependabot/npm_and_yarn/types/react-16.9.48 2b43d15
  • chore(deps-dev): bump @types/react from 16.9.47 to 16.9.48 6e46520
  • Merge pull request #82 from devrnt/dependabot/npm_and_yarn/types/react-16.9.47 2160bf0
  • chore(deps-dev): bump @types/react from 16.9.46 to 16.9.47 52b3c6a
  • Merge pull request #81 from devrnt/dependabot/npm_and_yarn/tsdx-0.13.3 e6b858d
  • Merge pull request #80 from devrnt/dependabot/npm_and_yarn/cypress-5.0.0 c19e0e2
  • chore: upgrade tsdx dbfd205
  • chore: add tsconfig for cypress c6c869e
  • chore: add schema in cypress config 90f153c
  • chore(deps-dev): bump tsdx from 0.13.2 to 0.13.3 32f89a1
  • Merge pull request #79 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.9 b6b054c
  • Merge pull request #78 from devrnt/dependabot/npm_and_yarn/typescript-4.0.2 4957760
  • chore(deps-dev): bump cypress from 4.12.1 to 5.0.0 edec1f7
  • chore(deps-dev): bump @testing-library/react from 10.4.8 to 10.4.9 ae26dca
  • chore(deps-dev): bump typescript from 3.9.7 to 4.0.2 9beb6a0

https://github.com/devrnt/react-use-intercom/compare/v1.1.0...v1.1.1

react-use-intercom - v1.1.0

Published by devrnt about 4 years ago

Changelog

  • Add safeguard against SSR environments (thanks @willviles #68)
  • Allow customAttributes to be passed to company records (thanks @willviles #69)

Commits

  • docs: add ssr safeguard feature in readme f3d8963
  • Merge pull request #68 from willviles/fix/ssr 5b0f3c2
  • chore: move SSR environment check to api 762fea5
  • Merge pull request #74 from devrnt/dependabot/npm_and_yarn/np-6.4.0 ed691e9
  • Merge pull request #76 from devrnt/dependabot/npm_and_yarn/types/react-16.9.46 a129090
  • chore(deps-dev): bump @types/react from 16.9.45 to 16.9.46 5a8abb8
  • chore(deps-dev): bump np from 6.3.2 to 6.4.0 471951f
  • Merge pull request #73 from devrnt/dependabot/npm_and_yarn/types/react-16.9.45 045f8a5
  • Merge pull request #75 from devrnt/dependabot/npm_and_yarn/jsdom-16.4.0 d587f90
  • chore(deps-dev): bump jsdom from 16.3.0 to 16.4.0 4b5ff9f
  • chore(deps-dev): bump @types/react from 16.9.44 to 16.9.45 a85a2f1
  • Merge pull request #72 from devrnt/dependabot/npm_and_yarn/tslib-2.0.1 b3e161d
  • chore(deps-dev): bump tslib from 2.0.0 to 2.0.1 88c24ab
  • Merge pull request #71 from devrnt/dependabot/npm_and_yarn/cypress-4.12.1 0a5a9b4
  • chore(deps-dev): bump cypress from 4.12.0 to 4.12.1 1eea939
  • Merge pull request #69 from willviles/fix/custom-company-attributes d13a5ad
  • Merge pull request #70 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.8 d82f56d
  • chore(deps-dev): bump @testing-library/react from 10.4.7 to 10.4.8 5cad615
  • fix: allows customAttributes to be passed to company records e7e98d8
  • fix: safeguards against SSR environments without access to window 91bed0f
  • Merge pull request #67 from devrnt/dependabot/npm_and_yarn/example/elliptic-6.5.3 ad277f0
  • chore: upgrade packages 2783a01
  • chore: upgrade packages in playground 34cee1e
  • chore(deps): bump elliptic from 6.5.2 to 6.5.3 in /example fc1a002
  • Merge pull request #66 from devrnt/dependabot/npm_and_yarn/types/react-16.9.44 53ae6cb
  • chore(deps-dev): bump @types/react from 16.9.43 to 16.9.44 47a40ff
  • Merge pull request #64 from devrnt/dependabot/npm_and_yarn/cypress-4.11.0 68eb4c2
  • Merge pull request #65 from devrnt/dependabot/npm_and_yarn/testing-library/react-hooks-3.4.1 03010fa
  • chore(deps-dev): bump @testing-library/react-hooks from 3.3.0 to 3.4.1 01910c0
  • chore(deps-dev): bump cypress from 4.10.0 to 4.11.0 6bb86be
  • Merge pull request #63 from devrnt/dependabot/npm_and_yarn/example/lodash-4.17.19 093ad88
  • chore(deps): bump lodash from 4.17.15 to 4.17.19 in /example 110ab52
  • Merge pull request #62 from devrnt/dependabot/npm_and_yarn/typescript-3.9.7 d2953b1
  • Merge pull request #61 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.7 1d88913
  • chore(deps-dev): bump typescript from 3.9.6 to 3.9.7 256f900
  • chore(deps-dev): bump @testing-library/react from 10.4.6 to 10.4.7 af468d9
  • Merge pull request #60 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.6 26f485f
  • chore(deps-dev): bump @testing-library/react from 10.4.5 to 10.4.6 a89117a
  • Merge pull request #59 from devrnt/dependabot/npm_and_yarn/types/react-16.9.43 1e6f109
  • Merge pull request #58 from devrnt/dependabot/npm_and_yarn/np-6.3.2 e5529c3
  • chore(deps-dev): bump @types/react from 16.9.41 to 16.9.43 810335b
  • chore(deps-dev): bump np from 6.3.1 to 6.3.2 f9d54e0
  • fix: update source url in example 7d741a1
  • docs: update anchor link for api section ef52a15

https://github.com/devrnt/react-use-intercom/compare/v1.0.0...v1.1.0

react-use-intercom - v1.0.0

Published by devrnt over 4 years ago

🎉 Stable release is here!

Although react-use-intercom has been stable since v0.1.0 this is the first major release without any breaking changes.

Changelog

  • Update README.md with logo
  • Update example playground with logo
  • Improve overall logging in react-use-intercom

Commits

  • Merge pull request #57 from devrnt/docs/logo aeee90e
  • chore: add favicon in example 287f432
  • chore: add logo and source code image in example e093672
  • Merge pull request #56 from devrnt/docs/logo 81a057b
  • Merge pull request #55 from devrnt/refactor/improve-logging-and-cleanup 0aa7493
  • docs: add logo to readme 62d1af6
  • chore: rename intercom api and use default export 8c3bdca
  • chore: add extra logging for should initialize c92a055
  • chore: use logger in intercom api 0ff754c

https://github.com/devrnt/react-use-intercom/compare/v0.4.0...v1.0.0

react-use-intercom - v0.4.0

Published by devrnt over 4 years ago

Changelog

  • Add new option shouldInitialize in IntercomProvider. This indicates if the Intercom should be initialized. Can be used in multistaged environment, like when there is no need to initialize the Intercom in development.

Commits

  • feat: add should initialize option 798bdb0
  • Merge pull request #54 from devrnt/dependabot/npm_and_yarn/jsdom-16.3.0 bc64f5f
  • Merge pull request #53 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.5 fae4193
  • Merge pull request #52 from devrnt/dependabot/npm_and_yarn/np-6.3.1 41818f2
  • Merge pull request #51 from devrnt/dependabot/npm_and_yarn/cypress-4.10.0 dd44f45
  • chore(deps-dev): bump jsdom from 16.2.2 to 16.3.0 2613980
  • chore(deps-dev): bump @testing-library/react from 10.4.4 to 10.4.5 5f2f6cf
  • chore(deps-dev): bump np from 6.3.0 to 6.3.1 db17328
  • chore(deps-dev): bump cypress from 4.9.0 to 4.10.0 a0b2c4f
  • Merge pull request #49 from devrnt/dependabot/npm_and_yarn/np-6.3.0 764f781
  • Merge pull request #50 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.4 5c0402f
  • chore(deps-dev): bump @testing-library/react from 10.4.3 to 10.4.4 9772ab4
  • chore(deps-dev): bump np from 6.2.5 to 6.3.0 6bcdd6c
  • Merge pull request #48 from devrnt/dependabot/npm_and_yarn/typescript-3.9.6 badcd88
  • chore(deps-dev): bump typescript from 3.9.5 to 3.9.6 c895d1b

https://github.com/devrnt/react-use-intercom/compare/v0.3.1...v0.4.0

react-use-intercom - v0.3.1

Published by devrnt over 4 years ago

Changes

  • Update README.md
  • Upgrade dev dependencies

Commits

  • chore: upgrade dependencies 479e785
  • Merge pull request #44 from devrnt/dependabot/npm_and_yarn/cypress-4.9.0 d7d1670
  • Merge pull request #46 from devrnt/dependabot/npm_and_yarn/types/react-16.9.41 34ee641
  • Merge pull request #47 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.4.3 f59f37d
  • chore(deps-dev): bump @testing-library/react from 10.3.0 to 10.4.3 8fc95fc
  • chore(deps-dev): bump @types/react from 16.9.38 to 16.9.41 4d86491
  • chore(deps-dev): bump cypress from 4.8.0 to 4.9.0 71aaa06
  • Merge pull request #42 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.3.0 895c552
  • Merge pull request #43 from devrnt/dependabot/npm_and_yarn/types/react-16.9.38 a1d2ddf
  • chore(deps-dev): bump @types/react from 16.9.36 to 16.9.38 50c60fe
  • chore(deps-dev): bump @testing-library/react from 10.2.1 to 10.3.0 379d018
  • Merge pull request #41 from devrnt/dependabot/npm_and_yarn/types/react-16.9.36 b01511e
  • chore(deps-dev): bump @types/react from 16.9.35 to 16.9.36 46bba6b
  • docs: update intercom provider example 1369b23
  • docs: add download badge in readme 34ed284
  • Merge pull request #38 from devrnt/dependabot/npm_and_yarn/np-6.2.4 5d93105
  • Merge pull request #39 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.2.1 2d7854e
  • Merge pull request #40 from devrnt/dependabot/npm_and_yarn/cypress-4.8.0 2282cc3
  • chore(deps-dev): bump cypress from 4.7.0 to 4.8.0 b92bf56
  • chore(deps-dev): bump @testing-library/react from 10.2.0 to 10.2.1 da702ed
  • chore(deps-dev): bump np from 6.2.3 to 6.2.4 e6a367d
  • Merge pull request #37 from devrnt/development 5ab9119
  • Merge pull request #34 from devrnt/dependabot/npm_and_yarn/typescript-3.9.5 5704845
  • Merge pull request #36 from devrnt/dependabot/npm_and_yarn/testing-library/react-hooks-3.3.0 1b0d779
  • Merge pull request #35 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.2.0 d574f19
  • chore(deps-dev): bump @testing-library/react-hooks from 3.2.1 to 3.3.0 0f8ffce
  • chore(deps-dev): bump @testing-library/react from 10.1.0 to 10.2.0 edf5a60
  • chore(deps-dev): bump typescript from 3.9.3 to 3.9.5 18fd28c
  • Merge pull request #33 from devrnt/development bde08ff
  • Merge pull request #32 from devrnt/dependabot/npm_and_yarn/testing-library/react-10.1.0 424189d
  • chore(deps-dev): bump @testing-library/react from 10.0.4 to 10.1.0 2a4b5d5
  • Merge pull request #29 from devrnt/development 41170c1
  • Merge pull request #28 from devrnt/dependabot/npm_and_yarn/cypress-4.7.0 977cf15
  • chore(deps-dev): bump cypress from 4.6.0 to 4.7.0 90fbbfc
  • chore: update peer dependencies e944438

https://github.com/devrnt/react-use-intercom/compare/v0.3.0...v0.3.1

react-use-intercom -

Published by devrnt over 4 years ago

Changes

  • Drastically reduce rerenders of the IntercomProvider.
  • Reduce bundlesize a bit.
  • Update and add troubleshoot section in README.md.

Commits

  • Merge pull request #27 from devrnt/development 002a5ea
  • Merge pull request #26 from devrnt/feature/avoid-rerenders 75b9906
  • chore: avoid provider rerenders bed044b
  • Merge pull request #25 from devrnt/refactor/react-namespace-imports e42a959
  • refactor: use namespace imports in config 9ebed3a
  • refactor: use react namespace imports d8e2ad0
  • chore: update tsconfig efebea3
  • Merge pull request #24 from devrnt/development 112520b
  • docs: add troubleshoot section in readme 883ab5d
  • docs: add some extra remarks in readme 00115dc
  • docs: update description in readme d7ab804

https://github.com/devrnt/react-use-intercom/compare/v0.2.0...v0.3.0

react-use-intercom -

Published by devrnt over 4 years ago

Changes

If you previously used custom attributes:
Pass your custom attributes to the customAttributes property in the boot and/or update method from useIntercom.
Remark - you should pass you raw custom attributes, that means snake cased. In other words how you pass them to customAttributes is how Intercom will receive them (snake cased).

Example

const { boot, update } = useIntercom();

boot({ 
 name: 'Russo',
 // Intercom will receive the raw key, so don't use camel casing here. 
 // Intercom wants their keys snake cased
 customAttributes: { custom_attribute_key: 'hi there' }
});

update({ 
 name: 'Ossur',
 // Intercom will receive the raw key, so don't use camel casing here. 
 // Intercom wants their keys snake cased
 customAttributes: { custom_attribute_key: 'bye there' }
});

Commits

  • Merge pull request #23 from devrnt/development 0c8f1e4
  • chore: upgrade typescript and cypress 6c31430
  • Merge branch 'development' of github.com:devrnt/react-use-intercom into development ea60b8e
  • Merge pull request #20 from devrnt/dependabot/npm_and_yarn/cypress-4.6.0 dbab06e
  • docs: update intercom props in readme 82561f2
  • Merge pull request #18 from devrnt/dependabot/npm_and_yarn/typescript-3.9.3 f928980
  • docs: add snyk badge to readme aa0fcd9
  • Merge pull request #22 from devrnt/development a016397
  • Merge pull request #21 from devrnt/fix/custom-attributes 566bcf5
  • docs: add intercom props section bb7bc71
  • chore: increase delay in visitor id test 34c955b
  • test: add e2e mapper tests 4fa0efc
  • fix: pass custom attribute to intercom b26aba4
  • chore: prepare playground for mapper tests 0c99edb
  • chore: add custom attribute to data attributes 8ea0daf
  • chore(deps-dev): bump cypress from 4.5.0 to 4.6.0 360d7f3
  • chore(deps-dev): bump typescript from 3.9.2 to 3.9.3 ad4beb8
  • Merge pull request #15 from devrnt/development 7eddfe9
  • Merge pull request #14 from devrnt/feature/error-handling 48b26b5
  • chore: improve error logging in intercom provider 7d84437
  • docs: add tour playground in readme 34528ad
  • chore: update tour id in playground 27764a7
  • Merge pull request #12 from devrnt/development 90177ed
  • Merge pull request #10 from devrnt/docs/playground-tour 032c2c0
  • chore: add page with intercom tour in playground 03c6630
  • Merge pull request #9 from devrnt/test/provider-callbacks 15ceccb
  • test: add provider with event callbacks 11eb162
  • chore: update cypress base url 9c7d80d
  • chore: add provider with events in example 56b9c7e
  • chore: update context listener types 98e0bd5
  • chore: add release script d3df88b
  • chore: add bundlesize script 2ac4791
  • chore: add homepage in package ad2f8fc

https://github.com/devrnt/react-use-intercom/compare/v0.1.2...v0.2.0

react-use-intercom -

Published by devrnt over 4 years ago

  • chore: update package info 23525d0
  • docs: update playground url 18c8d90
  • docs: update feature request template 29015c8
  • docs: update bug report template 2e3f4e9
  • docs: add playground url to readme 5985bb1
  • chore: add working example playground 535fb4d
  • chore: add deploy to github page workflow 086c6c9

https://github.com/devrnt/react-use-intercom/compare/v0.1.1...v0.1.2