@bigbinary/neeto-media-recorder 1.0.1 → 1.0.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-media-recorder",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A package to simplify the media capturing process",
5
5
  "repository": "git@github.com:bigbinary/neeto-media-recorder.git",
6
6
  "license": "MIT",
@@ -10,6 +10,12 @@
10
10
  },
11
11
  "./constants": {
12
12
  "import": "./constants.js"
13
+ },
14
+ "./core": {
15
+ "import": "./core.js"
16
+ },
17
+ "./utils": {
18
+ "import": "./utils.js"
13
19
  }
14
20
  },
15
21
  "scripts": {
@@ -24,10 +30,15 @@
24
30
  "yarn": ">=1.22"
25
31
  },
26
32
  "files": [
33
+ "index.js",
34
+ "index.js.map",
27
35
  "constants.js",
28
36
  "constants.js.map",
29
- "index.js",
30
- "index.js.map"
37
+ "core.js",
38
+ "core.js.map",
39
+ "utils.js",
40
+ "utils.js.map",
41
+ "src/translations"
31
42
  ],
32
43
  "lint-staged": {
33
44
  "**/*.{js,jsx,json,mjs}": [
@@ -43,34 +54,31 @@
43
54
  "@babel/preset-react": "7.16.7",
44
55
  "@babel/preset-typescript": "^7.18.6",
45
56
  "@babel/runtime": "^7.19.0",
57
+ "@babel/traverse": "^7.23.5",
46
58
  "@babel/types": "^7.20.7",
47
59
  "@bigbinary/babel-preset-neeto": "1.0.3",
48
60
  "@bigbinary/neeto-cist": "^1.0.2",
49
61
  "@bigbinary/neeto-commons-frontend": "2.1.29",
50
- "@honeybadger-io/react": "2.0.1",
62
+ "@bigbinary/neeto-icons": "1.17.6",
63
+ "@bigbinary/neeto-media-recorder": "latest",
64
+ "@bigbinary/neeto-molecules": "1.1.69",
65
+ "@bigbinary/neetoui": "5.2.41",
51
66
  "@rollup/plugin-alias": "^3.1.9",
52
67
  "@rollup/plugin-babel": "^5.3.1",
53
68
  "@rollup/plugin-commonjs": "^25.0.5",
54
69
  "@rollup/plugin-json": "^4.1.0",
55
70
  "@rollup/plugin-node-resolve": "^13.3.0",
56
71
  "@rollup/plugin-replace": "5.0.2",
57
- "@svgr/rollup": "^6.2.1",
58
- "antd": "4.24.3",
59
- "autoprefixer": "^10.4.13",
60
72
  "axios": "0.27.2",
61
73
  "babel-loader": "^8.2.5",
62
74
  "babel-plugin-dynamic-import-node": "^2.3.3",
63
- "babel-plugin-istanbul": "^6.1.1",
64
75
  "babel-plugin-js-logger": "1.0.17",
65
76
  "babel-plugin-macros": "3.1.0",
66
77
  "babel-plugin-preval": "^5.1.0",
67
78
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
68
79
  "babel-preset-react": "6.24.1",
69
80
  "babel-preset-typescript": "^7.0.0-alpha.19",
70
- "css-loader": "4.3.0",
71
- "cypress": "11.2.0",
72
- "dayjs": "1.11.1",
73
- "dompurify": "3.0.3",
81
+ "classnames": "^2.3.2",
74
82
  "eslint": "8.14.0",
75
83
  "eslint-config-prettier": "8.5.0",
76
84
  "eslint-plugin-import": "2.26.0",
@@ -84,50 +92,37 @@
84
92
  "husky": "^7.0.4",
85
93
  "i18next": "22.5.1",
86
94
  "i18next-browser-languagedetector": "^7.1.0",
87
- "immer": "^10.0.3",
88
95
  "js-logger": "^1.6.1",
89
96
  "lint-staged": "^12.3.7",
90
- "mixpanel-browser": "^2.45.0",
91
- "mousetrap": "^1.6.5",
92
- "mousetrap-global-bind": "^1.1.0",
93
- "nock": "^13.3.2",
94
- "platform": "1.3.6",
95
- "postcss": "^8.4.17",
96
- "postcss-import": "^15.0.0",
97
- "postcss-loader": "^7.0.1",
98
- "postcss-preset-env": "7.8.2",
99
97
  "prettier": "2.6.2",
100
98
  "prettier-plugin-tailwindcss": "0.1.10",
101
- "qs": "^6.11.0",
102
99
  "ramda": "^0.29.0",
103
100
  "react": "^17.0.2",
104
101
  "react-dom": "17.0.2",
105
- "react-helmet": "^6.1.0",
106
102
  "react-i18next": "12.3.1",
107
103
  "react-query": "^3.39.2",
108
104
  "react-router-dom": "5.3.1",
109
- "remark-parse": "^10.0.1",
110
105
  "rollup": "^2.76.0",
111
106
  "rollup-plugin-analyzer": "^4.0.0",
112
107
  "rollup-plugin-cleaner": "^1.0.0",
113
108
  "rollup-plugin-peer-deps-external": "^2.2.4",
114
109
  "rollup-plugin-styles": "^4.0.0",
115
- "sass": "^1.58.1",
116
- "sass-loader": "10.0.2",
117
110
  "tailwindcss": "npm:@tailwindcss/postcss7-compat",
118
111
  "zustand": "4.3.2"
119
112
  },
120
113
  "peerDependencies": {
121
114
  "@bigbinary/neeto-cist": "latest",
122
115
  "@bigbinary/neeto-commons-frontend": "latest",
123
- "@honeybadger-io/react": "2.0.1",
116
+ "@bigbinary/neeto-icons": "1.17.6",
117
+ "@bigbinary/neeto-media-recorder": "latest",
118
+ "@bigbinary/neeto-molecules": "1.1.69",
119
+ "@bigbinary/neetoui": "5.2.41",
124
120
  "axios": "0.27.2",
121
+ "classnames": "^2.3.2",
125
122
  "js-logger": "^1.6.1",
126
- "qs": "^6.11.0",
127
123
  "ramda": "^0.29.0",
128
124
  "react": "^17.0.2",
129
125
  "react-dom": "17.0.2",
130
- "react-helmet": "^6.1.0",
131
126
  "react-i18next": "12.3.1",
132
127
  "react-query": "^3.39.2",
133
128
  "react-router-dom": "5.3.1",
@@ -0,0 +1,33 @@
1
+ {
2
+ "neetoMediaRecorder": {
3
+ "common": {
4
+ "leaveSite": "Leave site?"
5
+ },
6
+ "record": {
7
+ "title": "Record",
8
+ "discardingVideo": "Don't leave this page. Please wait while the recording is being discarded.",
9
+ "chromeFlagsMissingMessage": "You need to set certain chrome flags for recording to work locally in Chrome. To know more refer <Button>this doc</Button>.",
10
+ "doNotLeaveThePage": "Don't close the tab or leave the page.",
11
+ "inProgress": "Recording in progress.",
12
+ "permissionDeniedMessage": "Permission denied by the browser. To continue, please click 'Record,' select the screen, and grant permission for the audio device.",
13
+ "preparingVideo": "Don't leave this page. Please wait while the video is being uploaded",
14
+ "copyToClipboard": "Copy recording public URL",
15
+ "startsIn": "Get ready, the recording will begin in...",
16
+ "grantPermissionMessage": "Select the screen, and grant permission for the audio device.",
17
+ "discard": "Discard",
18
+ "stop": "Stop",
19
+ "resume": "Resume",
20
+ "pause": "Pause",
21
+ "restart": "Restart",
22
+ "restartConfirmation": {
23
+ "title": "Restart recording?",
24
+ "message": "You are restarting the recording. This will result in the current recording being discarded. This can't be undone."
25
+ },
26
+ "discardConfirmation": {
27
+ "title": "Discard recording?",
28
+ "message": "You are discarding the current recording. This can't be undone."
29
+ }
30
+ },
31
+ "unsupportedBrowser": "Unfortunately, this feature is unavailable because the current browser does not support screen capturing."
32
+ }
33
+ }
@@ -0,0 +1,3 @@
1
+ import en from "./en.json";
2
+
3
+ export { en };
package/utils.js ADDED
@@ -0,0 +1,11 @@
1
+ var sleep = function sleep(delay) {
2
+ return new Promise(function (resolve) {
3
+ return setTimeout(resolve, delay);
4
+ });
5
+ };
6
+ var generatePublicUrl = function generatePublicUrl(id) {
7
+ return "".concat(window.location.origin, "/watch/").concat(id);
8
+ };
9
+
10
+ export { generatePublicUrl, sleep };
11
+ //# sourceMappingURL=utils.js.map
package/utils.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["src/utils/index.js"],"sourcesContent":["export const sleep = delay =>\n new Promise(resolve => setTimeout(resolve, delay));\n\nexport const generatePublicUrl = id => `${window.location.origin}/watch/${id}`;\n"],"names":["sleep","delay","Promise","resolve","setTimeout","generatePublicUrl","id","concat","window","location","origin"],"mappings":"IAAaA,KAAK,GAAG,SAARA,KAAKA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACxB,IAAIC,OAAO,CAAC,UAAAC,OAAO,EAAA;AAAA,IAAA,OAAIC,UAAU,CAACD,OAAO,EAAEF,KAAK,CAAC,CAAA;GAAC,CAAA,CAAA;AAAA,EAAA;IAEvCI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,EAAE,EAAA;EAAA,OAAAC,EAAAA,CAAAA,MAAA,CAAOC,MAAM,CAACC,QAAQ,CAACC,MAAM,EAAA,SAAA,CAAA,CAAAH,MAAA,CAAUD,EAAE,CAAA,CAAA;AAAA;;;;"}