@tivio/sdk-react 2.1.0 → 2.1.1-alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/README.md +3 -0
  2. package/coverage/clover.xml +113 -0
  3. package/coverage/lcov-report/base.css +224 -0
  4. package/coverage/lcov-report/block-navigation.js +79 -0
  5. package/coverage/lcov-report/favicon.png +0 -0
  6. package/coverage/lcov-report/index.html +126 -0
  7. package/coverage/lcov-report/prettify.css +1 -0
  8. package/coverage/lcov-report/prettify.js +2 -0
  9. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  10. package/coverage/lcov-report/sorter.js +170 -0
  11. package/coverage/lcov-report/src/components/TivioProvider.tsx.html +227 -0
  12. package/coverage/lcov-report/src/components/TivioWidget.tsx.html +203 -0
  13. package/coverage/lcov-report/src/components/TivioWidgetError.tsx.html +122 -0
  14. package/coverage/lcov-report/src/components/TivioWidgetLoader.tsx.html +116 -0
  15. package/coverage/lcov-report/src/components/index.html +156 -0
  16. package/coverage/lcov-report/src/conf.ts.html +239 -0
  17. package/coverage/lcov-report/src/index.html +111 -0
  18. package/coverage/lcov-report/src/services/bundleLoader.ts.html +698 -0
  19. package/coverage/lcov-report/src/services/dependencyResolver.ts.html +212 -0
  20. package/coverage/lcov-report/src/services/index.html +141 -0
  21. package/coverage/lcov-report/src/services/logger.ts.html +365 -0
  22. package/coverage/lcov-report/src/services/packageLoader.ts.html +194 -0
  23. package/coverage/lcov-report/src/services/pubSub.ts.html +242 -0
  24. package/coverage/lcov-report/src/services/settings.ts.html +218 -0
  25. package/coverage/lcov-report/src/setupTests.ts.html +158 -0
  26. package/coverage/lcov.info +175 -0
  27. package/dist/index.js +1 -1
  28. package/package.json +5 -4
  29. package/scripts/prepublish.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-alpha1",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "source": "src/index.ts",
@@ -14,7 +14,8 @@
14
14
  "start": "yarn run clean && webpack -w --config=webpack.config.dev.js",
15
15
  "test": "jest --config=./jest.config.js --coverage",
16
16
  "clean": "rm -rf dist",
17
- "prepublishOnly": "yarn && rm -rf ./dist && yarn run build"
17
+ "prepublishOnly": "yarn && yarn ts-node ./scripts/prepublish.ts && yarn clean && yarn run build",
18
+ "publish:alpha": "npm publish --tag alpha"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "firebase": "^8.2.3",
@@ -24,6 +25,7 @@
24
25
  "styled-components": "^5.2.1"
25
26
  },
26
27
  "dependencies": {
28
+ "@tivio/common": "1.1.17",
27
29
  "@sentry/browser": "^6.1.0",
28
30
  "mobx-react": "^7.1.0"
29
31
  },
@@ -55,7 +57,6 @@
55
57
  "typescript": "^4.1.3",
56
58
  "webpack": "^5.15.0",
57
59
  "webpack-cli": "^4.4.0",
58
- "webpack-merge": "^5.7.3",
59
- "@tivio/common": "*"
60
+ "webpack-merge": "^5.7.3"
60
61
  }
61
62
  }
@@ -0,0 +1,16 @@
1
+ import {
2
+ execCommand,
3
+ } from '@tivio/build-utils'
4
+
5
+ console.info('Publishing latest @tivio/common...')
6
+
7
+ execCommand('yarn --cwd ../common pub;')
8
+
9
+ console.info('Updating version of @tivio/common dependency in package.json...')
10
+
11
+ const tivioCommonPackageJson = require('../../common/package.json')
12
+
13
+ // Using sed instead of fs.write because it does not change the order
14
+ // of the other line
15
+ // eslint-disable-next-line no-useless-escape
16
+ execCommand(`sed -i 's#"@tivio/common":.*#"@tivio/common": "${tivioCommonPackageJson.version}",#g' package.json`)