@canopycanopycanopy/b-ber-reader-react 3.0.8-next.61 → 3.0.8-next.97
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 +19350 -2
- package/dist/styles.css +2 -1
- package/index.d.ts +1 -1
- package/package.json +11 -49
- 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 -38
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-reader-react",
|
|
3
|
-
"version": "3.0.8-next.
|
|
3
|
+
"version": "3.0.8-next.97+2e9748e6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"prepublish": "npm test",
|
|
8
|
-
"preversion": "npm test",
|
|
9
7
|
"version": "node ./scripts/version.js",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"analyze": "./scripts/analyze.sh",
|
|
14
|
-
"watch": "./scripts/watch.sh",
|
|
15
|
-
"build": "./scripts/build.sh",
|
|
16
|
-
"start": "./scripts/start.sh",
|
|
8
|
+
"clean": "rimraf dist",
|
|
9
|
+
"build": "vite build --config vite.config.lib.js",
|
|
10
|
+
"start": "vite --config vite.config.js",
|
|
17
11
|
"test:watch": "jest --watch",
|
|
18
12
|
"test": "jest",
|
|
19
|
-
"webpack": "webpack",
|
|
20
|
-
"webpack-bundle-analyzer": "webpack-bundle-analyzer",
|
|
21
13
|
"bundle": "npm run build && npm pack"
|
|
22
14
|
},
|
|
23
15
|
"author": "Triple Canopy <b-ber@canopycanopycanopy.com> (https://triplecanopy.github.io/)",
|
|
@@ -26,65 +18,35 @@
|
|
|
26
18
|
"access": "public"
|
|
27
19
|
},
|
|
28
20
|
"devDependencies": {
|
|
29
|
-
"@babel/cli": "^7.10.5",
|
|
30
|
-
"@babel/core": "^7.10.5",
|
|
31
|
-
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
32
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.10.4",
|
|
33
|
-
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
|
|
34
|
-
"@babel/plugin-transform-runtime": "^7.10.5",
|
|
35
|
-
"@babel/preset-env": "^7.10.4",
|
|
36
|
-
"@babel/preset-react": "^7.10.4",
|
|
37
21
|
"@testing-library/dom": "^10.4.0",
|
|
38
22
|
"@testing-library/react": "^16.3.0",
|
|
23
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
39
24
|
"autoprefixer": "^9.6.1",
|
|
40
|
-
"babel-eslint": "^8.2.2",
|
|
41
|
-
"babel-loader": "^8.2.3",
|
|
42
25
|
"buffer": "^6.0.3",
|
|
43
26
|
"concurrently": "^3.5.1",
|
|
44
27
|
"core-js": "^3.6.4",
|
|
45
|
-
"css-loader": "^0.28.10",
|
|
46
28
|
"cssnano": "^4.1.10",
|
|
47
|
-
"eslint": "^7.32.0",
|
|
48
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
49
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
50
|
-
"eslint-plugin-babel": "^4.1.2",
|
|
51
|
-
"eslint-plugin-import": "^2.22.1",
|
|
52
|
-
"eslint-plugin-jsx-a11y": "^6.0.3",
|
|
53
|
-
"eslint-plugin-react": "^7.7.0",
|
|
54
29
|
"express": "^4.17.3",
|
|
55
|
-
"file-loader": "^6.2.0",
|
|
56
30
|
"handlebars": "^4.7.7",
|
|
57
|
-
"
|
|
58
|
-
"jest": "^
|
|
59
|
-
"jest-environment-jsdom": "^
|
|
60
|
-
"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",
|
|
61
34
|
"material-icons": "^1.0.0",
|
|
62
|
-
"mini-css-extract-plugin": "^1.6.2",
|
|
63
35
|
"nodemon": "^2.0.15",
|
|
64
36
|
"os-browserify": "^0.3.0",
|
|
65
37
|
"postcss": "^7.0.14",
|
|
66
38
|
"postcss-cssnext": "^3.1.0",
|
|
67
39
|
"postcss-import": "^11.1.0",
|
|
68
|
-
"postcss-loader": "^2.1.1",
|
|
69
40
|
"prop-types": "^15.6.1",
|
|
70
41
|
"react-test-renderer": ">=16.4 <=19",
|
|
71
42
|
"redux-mock-store": "^1.5.4",
|
|
72
43
|
"resize-observer-polyfill": "^1.5.0",
|
|
73
44
|
"rimraf": "^2.7.1",
|
|
74
|
-
"sass": "^1.
|
|
75
|
-
"sass-loader": "^13.0.2",
|
|
45
|
+
"sass": "^1.70.0",
|
|
76
46
|
"setimmediate": "^1.0.5",
|
|
77
47
|
"stream-browserify": "^3.0.0",
|
|
78
|
-
"style-loader": "^0.20.2",
|
|
79
|
-
"sugarss": "^1.0.1",
|
|
80
48
|
"tar": "^6.1.11",
|
|
81
|
-
"
|
|
82
|
-
"webpack": "^5.74.0",
|
|
83
|
-
"webpack-bundle-analyzer": "^4.6.1",
|
|
84
|
-
"webpack-cleanup-plugin": "^0.5.1",
|
|
85
|
-
"webpack-cli": "^4.10.0",
|
|
86
|
-
"webpack-dev-server": "^4.11.1",
|
|
87
|
-
"webpack-remove-empty-scripts": "^1.0.1",
|
|
49
|
+
"vite": "^8.0.16",
|
|
88
50
|
"xmlhttprequest-ssl": "^2.0.0"
|
|
89
51
|
},
|
|
90
52
|
"dependencies": {
|
|
@@ -127,5 +89,5 @@
|
|
|
127
89
|
"url": "https://maxwellsimmer.com"
|
|
128
90
|
}
|
|
129
91
|
],
|
|
130
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "2e9748e6f00446cd35dc8f933e049d8200fc24dd"
|
|
131
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,38 +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
|
-
/**
|
|
31
|
-
* @license React
|
|
32
|
-
* use-sync-external-store-with-selector.production.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/
|