@canopycanopycanopy/b-ber-reader-react 3.0.8-nav-memo.4 → 3.0.8-next.100
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/dist/index.js +20540 -2
- package/dist/styles.css +2 -1
- package/index.d.ts +1 -1
- package/package.json +20 -55
- package/dist/353.js +0 -1
- package/dist/fonts/CrimsonPro-Regular.ttf +0 -0
- package/dist/fonts/CrimsonPro-SemiBold.ttf +0 -0
- package/dist/fonts/material-icons.woff +0 -0
- package/dist/fonts/material-icons.woff2 +0 -0
- package/dist/index.js.LICENSE.txt +0 -46
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-reader-react",
|
|
3
|
-
"version": "3.0.8-
|
|
3
|
+
"version": "3.0.8-next.100+20b74691",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"clean": "rimraf dist && rimraf stats.json",
|
|
12
|
-
"analyze": "./scripts/analyze.sh",
|
|
13
|
-
"watch": "./scripts/watch.sh",
|
|
14
|
-
"build": "./scripts/build.sh",
|
|
15
|
-
"start": "./scripts/start.sh",
|
|
7
|
+
"version": "node ./scripts/version.js",
|
|
8
|
+
"clean": "rimraf dist",
|
|
9
|
+
"build": "vite build --config vite.config.lib.js",
|
|
10
|
+
"start": "vite --config vite.config.js",
|
|
16
11
|
"test:watch": "jest --watch",
|
|
17
12
|
"test": "jest",
|
|
18
|
-
"webpack": "webpack",
|
|
19
|
-
"webpack-bundle-analyzer": "webpack-bundle-analyzer",
|
|
20
13
|
"bundle": "npm run build && npm pack"
|
|
21
14
|
},
|
|
22
15
|
"author": "Triple Canopy <b-ber@canopycanopycanopy.com> (https://triplecanopy.github.io/)",
|
|
@@ -25,63 +18,35 @@
|
|
|
25
18
|
"access": "public"
|
|
26
19
|
},
|
|
27
20
|
"devDependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.10.4",
|
|
32
|
-
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
|
|
33
|
-
"@babel/plugin-transform-runtime": "^7.10.5",
|
|
34
|
-
"@babel/preset-env": "^7.10.4",
|
|
35
|
-
"@babel/preset-react": "^7.10.4",
|
|
21
|
+
"@testing-library/dom": "^10.4.0",
|
|
22
|
+
"@testing-library/react": "^16.3.0",
|
|
23
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
36
24
|
"autoprefixer": "^9.6.1",
|
|
37
|
-
"babel-eslint": "^8.2.2",
|
|
38
|
-
"babel-loader": "^8.2.3",
|
|
39
25
|
"buffer": "^6.0.3",
|
|
40
26
|
"concurrently": "^3.5.1",
|
|
41
27
|
"core-js": "^3.6.4",
|
|
42
|
-
"css-loader": "^0.28.10",
|
|
43
28
|
"cssnano": "^4.1.10",
|
|
44
|
-
"eslint": "^7.32.0",
|
|
45
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
46
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
|
-
"eslint-plugin-babel": "^4.1.2",
|
|
48
|
-
"eslint-plugin-import": "^2.22.1",
|
|
49
|
-
"eslint-plugin-jsx-a11y": "^6.0.3",
|
|
50
|
-
"eslint-plugin-react": "^7.7.0",
|
|
51
29
|
"express": "^4.17.3",
|
|
52
|
-
"file-loader": "^6.2.0",
|
|
53
30
|
"handlebars": "^4.7.7",
|
|
54
|
-
"
|
|
55
|
-
"jest": "^
|
|
56
|
-
"jest-environment-jsdom": "^
|
|
57
|
-
"jest-environment-jsdom-global": "^1.1.0",
|
|
31
|
+
"jest": "^29.7.0",
|
|
32
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
33
|
+
"jest-environment-jsdom-global": "^4.0.0",
|
|
58
34
|
"material-icons": "^1.0.0",
|
|
59
|
-
"mini-css-extract-plugin": "^1.6.2",
|
|
60
35
|
"nodemon": "^2.0.15",
|
|
61
36
|
"os-browserify": "^0.3.0",
|
|
62
37
|
"postcss": "^7.0.14",
|
|
63
38
|
"postcss-cssnext": "^3.1.0",
|
|
64
39
|
"postcss-import": "^11.1.0",
|
|
65
|
-
"postcss-loader": "^2.1.1",
|
|
66
40
|
"prop-types": "^15.6.1",
|
|
67
|
-
"react-test-renderer": ">=16.4 <=
|
|
41
|
+
"react-test-renderer": ">=16.4 <=19",
|
|
68
42
|
"redux-mock-store": "^1.5.4",
|
|
69
43
|
"resize-observer-polyfill": "^1.5.0",
|
|
70
44
|
"rimraf": "^2.7.1",
|
|
71
|
-
"sass": "^1.
|
|
72
|
-
"sass-loader": "^13.0.2",
|
|
45
|
+
"sass": "^1.70.0",
|
|
73
46
|
"setimmediate": "^1.0.5",
|
|
74
47
|
"stream-browserify": "^3.0.0",
|
|
75
|
-
"style-loader": "^0.20.2",
|
|
76
|
-
"sugarss": "^1.0.1",
|
|
77
48
|
"tar": "^6.1.11",
|
|
78
|
-
"
|
|
79
|
-
"webpack": "^5.74.0",
|
|
80
|
-
"webpack-bundle-analyzer": "^4.6.1",
|
|
81
|
-
"webpack-cleanup-plugin": "^0.5.1",
|
|
82
|
-
"webpack-cli": "^4.10.0",
|
|
83
|
-
"webpack-dev-server": "^4.11.1",
|
|
84
|
-
"webpack-remove-empty-scripts": "^1.0.1",
|
|
49
|
+
"vite": "^8.0.16",
|
|
85
50
|
"xmlhttprequest-ssl": "^2.0.0"
|
|
86
51
|
},
|
|
87
52
|
"dependencies": {
|
|
@@ -96,15 +61,15 @@
|
|
|
96
61
|
"quote": "^0.4.0",
|
|
97
62
|
"react-attr-converter": "^0.3.1",
|
|
98
63
|
"react-player": "^2.10.1",
|
|
99
|
-
"react-redux": "^
|
|
100
|
-
"redux": "^
|
|
101
|
-
"redux-thunk": "^
|
|
64
|
+
"react-redux": "^9.2.0",
|
|
65
|
+
"redux": "^5.0.0",
|
|
66
|
+
"redux-thunk": "^3.1.0",
|
|
102
67
|
"url-search-params-polyfill": "^4.0.0",
|
|
103
68
|
"xml-js": "^1.6.2"
|
|
104
69
|
},
|
|
105
70
|
"peerDependencies": {
|
|
106
|
-
"react": ">=16.2.0 <=
|
|
107
|
-
"react-dom": ">=16.2.0 <=
|
|
71
|
+
"react": ">=16.2.0 <=19",
|
|
72
|
+
"react-dom": ">=16.2.0 <=19"
|
|
108
73
|
},
|
|
109
74
|
"files": [
|
|
110
75
|
"dist",
|
|
@@ -124,5 +89,5 @@
|
|
|
124
89
|
"url": "https://maxwellsimmer.com"
|
|
125
90
|
}
|
|
126
91
|
],
|
|
127
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "20b746918e81513be00a2f04971b00b296850f61"
|
|
128
93
|
}
|
package/dist/353.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkBberReader=self.webpackChunkBberReader||[]).push([[353],{31016:(e,t,r)=>{var a,n=Object.create,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))p.call(e,n)||n===r||i(e,n,{get:()=>t[n],enumerable:!(a=l(t,n))||a.enumerable});return e},d=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),u={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(u,{default:()=>g}),e.exports=(a=u,c(i({},"__esModule",{value:!0}),a));var h=((e,t,r)=>(r=null!=e?n(s(e)):{},c(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(64012));const m="64px",b={};class g extends h.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"state",{image:null}),d(this,"handleKeyPress",(e=>{"Enter"!==e.key&&" "!==e.key||this.props.onClick()}))}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:r}=this.props;e.url===t&&e.light===r||this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:r}){if(!h.default.isValidElement(t))if("string"!=typeof t){if(!b[e])return this.setState({image:null}),window.fetch(r.replace("{url}",e)).then((e=>e.json())).then((t=>{if(t.thumbnail_url&&this.mounted){const r=t.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:r}),b[e]=r}}));this.setState({image:b[e]})}else this.setState({image:t})}render(){const{light:e,onClick:t,playIcon:r,previewTabIndex:a,previewAriaLabel:n}=this.props,{image:i}=this.state,l=h.default.isValidElement(e),o={display:"flex",alignItems:"center",justifyContent:"center"},s={preview:{width:"100%",height:"100%",backgroundImage:i&&!l?`url(${i})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...o},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:m,width:m,height:m,position:l?"absolute":void 0,...o},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},p=h.default.createElement("div",{style:s.shadow,className:"react-player__shadow"},h.default.createElement("div",{style:s.playIcon,className:"react-player__play-icon"}));return h.default.createElement("div",{style:s.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...n?{"aria-label":n}:{}},l?e:null,r||p)}}}}]);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* The buffer module from node.js, for the browser.
|
|
9
|
-
*
|
|
10
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
11
|
-
* @license MIT
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
15
|
-
|
|
16
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
17
|
-
|
|
18
|
-
/*! npm.im/object-fit-images 3.2.4 */
|
|
19
|
-
|
|
20
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @author Jerry Bendy <jerry@icewingcc.com>
|
|
26
|
-
* @licence MIT
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/** @license React v16.13.1
|
|
31
|
-
* react-is.production.min.js
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
/** @license React v17.0.2
|
|
40
|
-
* react-is.production.min.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|