@sprig-technologies/sprig-browser 2.20.0 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/LICENSE.md +176 -0
  2. package/index.d.ts +160 -0
  3. package/index.js +680 -0
  4. package/package.json +10 -12
  5. package/dist/index.cjs +0 -687
  6. package/dist/index.cjs.map +0 -1
  7. package/dist/index.d.ts +0 -3
  8. package/dist/index.js +0 -6580
  9. package/dist/index.js.map +0 -1
  10. package/dist/sprig-browser/index.d.ts +0 -168
  11. package/dist/src/constants/css.d.ts +0 -43
  12. package/dist/src/constants/sprigEvents.d.ts +0 -62
  13. package/dist/src/constants/sprigRecordingEvents.d.ts +0 -40
  14. package/dist/src/controller/OptimizelyIntegration.d.ts +0 -40
  15. package/dist/src/controller/Queue.d.ts +0 -18
  16. package/dist/src/controller/controller.d.ts +0 -9
  17. package/dist/src/controller/iframe.d.ts +0 -17
  18. package/dist/src/helpers/Deferred.d.ts +0 -9
  19. package/dist/src/helpers/conflicting_widgets/index.d.ts +0 -4
  20. package/dist/src/helpers/conflicting_widgets/intercom.d.ts +0 -2
  21. package/dist/src/helpers/document.d.ts +0 -6
  22. package/dist/src/helpers/eventEmitter.d.ts +0 -85
  23. package/dist/src/helpers/general.d.ts +0 -9
  24. package/dist/src/helpers/network.d.ts +0 -15
  25. package/dist/src/types/card.d.ts +0 -292
  26. package/dist/src/types/config.d.ts +0 -232
  27. package/dist/src/types/event.d.ts +0 -18
  28. package/dist/src/types/global.d.ts +0 -179
  29. package/dist/src/view/app.d.ts +0 -3
  30. package/dist/src/view/cards/consentLegalCard.d.ts +0 -6
  31. package/dist/src/view/cards/index.d.ts +0 -10
  32. package/dist/src/view/cards/likertCard/index.d.ts +0 -1
  33. package/dist/src/view/cards/likertCard/likertCard.d.ts +0 -6
  34. package/dist/src/view/cards/likertCard/likertOption.d.ts +0 -16
  35. package/dist/src/view/cards/multipleChoice/baseMultiChoiceCard.d.ts +0 -15
  36. package/dist/src/view/cards/multipleChoice/index.d.ts +0 -2
  37. package/dist/src/view/cards/multipleChoice/multiSelectCard.d.ts +0 -5
  38. package/dist/src/view/cards/multipleChoice/singleSelectCard.d.ts +0 -5
  39. package/dist/src/view/cards/npsCard.d.ts +0 -8
  40. package/dist/src/view/cards/openTextCard.d.ts +0 -6
  41. package/dist/src/view/cards/recordedTask/actions.d.ts +0 -21
  42. package/dist/src/view/cards/recordedTask/card.d.ts +0 -5
  43. package/dist/src/view/cards/recordedTask/components.d.ts +0 -37
  44. package/dist/src/view/cards/recordedTask/constants.d.ts +0 -5
  45. package/dist/src/view/cards/recordedTask/helpers.d.ts +0 -6
  46. package/dist/src/view/cards/recordedTask/index.d.ts +0 -1
  47. package/dist/src/view/cards/recordedTask/store.d.ts +0 -24
  48. package/dist/src/view/cards/textUrlPromptCard.d.ts +0 -6
  49. package/dist/src/view/cards/thanksCard.d.ts +0 -5
  50. package/dist/src/view/cards/types.d.ts +0 -34
  51. package/dist/src/view/cards/uploadingCard.d.ts +0 -5
  52. package/dist/src/view/cards/videoVoiceCard.d.ts +0 -6
  53. package/dist/src/view/components/header.d.ts +0 -8
  54. package/dist/src/view/components/index.d.ts +0 -3
  55. package/dist/src/view/components/mobileEmbedView.d.ts +0 -19
  56. package/dist/src/view/components/select.d.ts +0 -25
  57. package/dist/src/view/footer.d.ts +0 -2
  58. package/dist/src/view/helpers/card.d.ts +0 -6
  59. package/dist/src/view/helpers/getAttributedUrl.d.ts +0 -6
  60. package/dist/src/view/helpers/skipLogicHelpers.d.ts +0 -34
  61. package/dist/src/view/hooks/index.d.ts +0 -1
  62. package/dist/src/view/hooks/useAutoSize.d.ts +0 -2
  63. package/dist/src/view/logo.d.ts +0 -5
  64. package/dist/src/view/recorder/recorder.d.ts +0 -2
  65. package/dist/src/view/store.d.ts +0 -2
  66. package/dist/src/view/view.d.ts +0 -6
  67. package/dist/style.css +0 -1
package/package.json CHANGED
@@ -1,17 +1,10 @@
1
1
  {
2
2
  "name": "@sprig-technologies/sprig-browser",
3
+ "version": "2.20.1",
3
4
  "description": "npm package for the sprig web sdk",
4
- "type": "module",
5
- "files": [
6
- "dist"
7
- ],
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- "import": "./dist/index.js",
11
- "require": "./dist/index.cjs"
12
- },
5
+ "browser": "index.js",
13
6
  "scripts": {
14
- "build": "tsc && vite build --mode $mode"
7
+ "test": "test"
15
8
  },
16
9
  "repository": {
17
10
  "type": "git",
@@ -26,5 +19,10 @@
26
19
  },
27
20
  "homepage": "https://docs.sprig.com/docs/web-javascript",
28
21
  "license": "See LICENSE file",
29
- "version": "2.20.0"
30
- }
22
+ "browserslist": [
23
+ ">0.2%",
24
+ "not dead",
25
+ "not ie <= 11",
26
+ "not op_mini all"
27
+ ]
28
+ }