- Compatibility fix (openclipart): Ensure polyfill present; make separate non-modular build (still not integrated as API incomplete)
- Docs: Add compatibility fix to Contributing
This commit is contained in:
@@ -58,6 +58,25 @@ const filesAndReplacements = [
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
input: 'editor/extensions/imagelib/openclipart-es.html',
|
||||||
|
output: 'editor/extensions/imagelib/openclipart.html',
|
||||||
|
replacements: [
|
||||||
|
[
|
||||||
|
'<!DOCTYPE html>',
|
||||||
|
`<!DOCTYPE html>
|
||||||
|
<!-- AUTO-GENERATED FROM imagelib/openclipart-es.html; DO NOT EDIT; use build-html.js to build -->`
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'<script src="../../external/dom-polyfill/dom-polyfill.js"></script>',
|
||||||
|
'<script src="../../../dist/dom-polyfill.js"></script>'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'<script type="module" src="openclipart.js"></script>',
|
||||||
|
'<script defer="defer" src="../../../dist/extensions/imagelib/openclipart.js"></script>'
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
input: 'editor/extensions/imagelib/index-es.html',
|
input: 'editor/extensions/imagelib/index-es.html',
|
||||||
output: 'editor/extensions/imagelib/index.html',
|
output: 'editor/extensions/imagelib/index.html',
|
||||||
|
|||||||
2368
dist/extensions/imagelib/openclipart.js
vendored
Normal file
2368
dist/extensions/imagelib/openclipart.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,7 @@
|
|||||||
- `Security fix: `
|
- `Security fix: `
|
||||||
- `Known regression: `
|
- `Known regression: `
|
||||||
- `Breaking change: `
|
- `Breaking change: `
|
||||||
|
- `Compatibility fix: `
|
||||||
- `Fix: `
|
- `Fix: `
|
||||||
- `Fix (<component>): ` Component may be an extension, locale, etc.
|
- `Fix (<component>): ` Component may be an extension, locale, etc.
|
||||||
- `Forward compatibility enhancement: `
|
- `Forward compatibility enhancement: `
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>-</title>
|
<title>-</title>
|
||||||
<link rel="icon" type="image/png" href="../../images/logo.png"/>
|
<link rel="icon" type="image/png" href="../../images/logo.png"/>
|
||||||
|
<script src="../../external/dom-polyfill/dom-polyfill.js"></script>
|
||||||
<script src="../../external/babel-polyfill/polyfill.min.js"></script>
|
<script src="../../external/babel-polyfill/polyfill.min.js"></script>
|
||||||
<script type="module" src="openclipart.js"></script>
|
<script type="module" src="openclipart.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
15
editor/extensions/imagelib/openclipart.html
Normal file
15
editor/extensions/imagelib/openclipart.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<!-- AUTO-GENERATED FROM imagelib/openclipart-es.html; DO NOT EDIT; use build-html.js to build -->
|
||||||
|
<html lang="en" dir="ltr">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>-</title>
|
||||||
|
<link rel="icon" type="image/png" href="../../images/logo.png"/>
|
||||||
|
<script src="../../../dist/dom-polyfill.js"></script>
|
||||||
|
<script src="../../external/babel-polyfill/polyfill.min.js"></script>
|
||||||
|
<script defer="defer" src="../../../dist/extensions/imagelib/openclipart.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -83,6 +83,8 @@ async function processResults (url) {
|
|||||||
// Todo: Pass to our API
|
// Todo: Pass to our API
|
||||||
}
|
}
|
||||||
}}, [
|
}}, [
|
||||||
|
// If we wanted interactive versions despite security risk:
|
||||||
|
// ['object', {data: svgURL, type: 'image/svg+xml'}]
|
||||||
['img', {src: svgURL, style: `width: ${imgHW}; height: ${imgHW};`}]
|
['img', {src: svgURL, style: `width: ${imgHW}; height: ${imgHW};`}]
|
||||||
]],
|
]],
|
||||||
['b', [title]],
|
['b', [title]],
|
||||||
|
|||||||
15
package-lock.json
generated
15
package-lock.json
generated
@@ -698,6 +698,16 @@
|
|||||||
"babel-runtime": "^6.22.0"
|
"babel-runtime": "^6.22.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"babel-plugin-transform-builtin-extend": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/babel-plugin-transform-builtin-extend/-/babel-plugin-transform-builtin-extend-1.1.2.tgz",
|
||||||
|
"integrity": "sha1-Xpb+z1i4+h7XTvytiEdbKvPJEW4=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"babel-runtime": "^6.2.0",
|
||||||
|
"babel-template": "^6.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"babel-plugin-transform-es2015-arrow-functions": {
|
"babel-plugin-transform-es2015-arrow-functions": {
|
||||||
"version": "6.22.0",
|
"version": "6.22.0",
|
||||||
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
|
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
|
||||||
@@ -5599,9 +5609,8 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"query-result": {
|
"query-result": {
|
||||||
"version": "0.2.0",
|
"version": "git+https://github.com/WebReflection/query-result.git#98ee572b7a62d8eb30a367e5b6d1fc953c8684ce",
|
||||||
"resolved": "https://registry.npmjs.org/query-result/-/query-result-0.2.0.tgz",
|
"from": "git+https://github.com/WebReflection/query-result.git",
|
||||||
"integrity": "sha512-IYS3H3bctALxk93tgZP7GOSRdsUr/o5rOzzFqZOohX5WNQ3XMQn+pkC7vyVA6bBwDOG0M1mKy8MVhIDkwBS67w==",
|
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"qunit": {
|
"qunit": {
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "6.26.3",
|
"babel-core": "6.26.3",
|
||||||
"babel-plugin-external-helpers": "^6.22.0",
|
"babel-plugin-external-helpers": "^6.22.0",
|
||||||
|
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
||||||
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
||||||
"babel-polyfill": "^6.26.0",
|
"babel-polyfill": "^6.26.0",
|
||||||
"babel-preset-env": "^1.7.0",
|
"babel-preset-env": "^1.7.0",
|
||||||
@@ -74,7 +75,7 @@
|
|||||||
"opn-cli": "^3.1.0",
|
"opn-cli": "^3.1.0",
|
||||||
"promise-fs": "^1.3.0",
|
"promise-fs": "^1.3.0",
|
||||||
"qr-manipulation": "^0.7.0",
|
"qr-manipulation": "^0.7.0",
|
||||||
"query-result": "^0.2.0",
|
"query-result": "https://github.com/WebReflection/query-result",
|
||||||
"qunit": "^2.6.2",
|
"qunit": "^2.6.2",
|
||||||
"rollup": "0.66.2",
|
"rollup": "0.66.2",
|
||||||
"rollup-plugin-babel": "^3.0.7",
|
"rollup-plugin-babel": "^3.0.7",
|
||||||
|
|||||||
@@ -106,6 +106,20 @@ export default [
|
|||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
input: 'editor/extensions/imagelib/openclipart.js',
|
||||||
|
output: {
|
||||||
|
format: 'iife',
|
||||||
|
file: 'dist/extensions/imagelib/openclipart.js'
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
babel({
|
||||||
|
plugins: ['transform-object-rest-spread', ['babel-plugin-transform-builtin-extend', {
|
||||||
|
globals: ['Array']
|
||||||
|
}]]
|
||||||
|
})
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
input: 'editor/external/dom-polyfill/dom-polyfill.js',
|
input: 'editor/external/dom-polyfill/dom-polyfill.js',
|
||||||
output: {
|
output: {
|
||||||
|
|||||||
Reference in New Issue
Block a user