@canopycanopycanopy/b-ber-grammar-vimeo 3.0.8-nav-memo.0 → 3.0.8-nav-memo.1
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/helpers.js +2 -4
- package/dist/index.js +2 -3
- package/package.json +7 -7
package/dist/helpers.js
CHANGED
|
@@ -21,11 +21,10 @@ var _lodash = _interopRequireDefault(require("lodash.isundefined"));
|
|
|
21
21
|
// filter when building the query string for Vimeo embeds, and for filtering the
|
|
22
22
|
// vimeo/vimeo-inline's directive attributes that appear in the rendered HTML
|
|
23
23
|
// (such as class names).
|
|
24
|
-
const bBerAttributes = {
|
|
24
|
+
const bBerAttributes = exports.bBerAttributes = {
|
|
25
25
|
classes: true,
|
|
26
26
|
aspectratio: true
|
|
27
27
|
};
|
|
28
|
-
exports.bBerAttributes = bBerAttributes;
|
|
29
28
|
const ensureBoolean = val => val === 'yes';
|
|
30
29
|
const ensureMatch = (name, re) => val => {
|
|
31
30
|
if (!re.test(val)) {
|
|
@@ -35,7 +34,7 @@ const ensureMatch = (name, re) => val => {
|
|
|
35
34
|
}
|
|
36
35
|
return val;
|
|
37
36
|
};
|
|
38
|
-
const vimeoAttributesTransformer = {
|
|
37
|
+
const vimeoAttributesTransformer = exports.vimeoAttributesTransformer = {
|
|
39
38
|
autopause: ensureBoolean,
|
|
40
39
|
autoplay: ensureBoolean,
|
|
41
40
|
background: ensureBoolean,
|
|
@@ -55,7 +54,6 @@ const vimeoAttributesTransformer = {
|
|
|
55
54
|
title: ensureBoolean,
|
|
56
55
|
transparent: ensureBoolean
|
|
57
56
|
};
|
|
58
|
-
exports.vimeoAttributesTransformer = vimeoAttributesTransformer;
|
|
59
57
|
const transformAttributes = (obj, transformer) => {
|
|
60
58
|
var _context;
|
|
61
59
|
const nextObj = (0, _reduce.default)(_context = (0, _entries.default)(obj)).call(_context, (acc, [key, val]) => {
|
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ const render = ({
|
|
|
121
121
|
throw new Error(`Something went wrong parsing [${args.source}] in [${context.fileName}]`);
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
-
var _default = {
|
|
124
|
+
var _default = exports.default = {
|
|
125
125
|
plugin: _bBerParserFigure.default,
|
|
126
126
|
name: 'vimeo',
|
|
127
127
|
renderer: ({
|
|
@@ -136,5 +136,4 @@ var _default = {
|
|
|
136
136
|
context
|
|
137
137
|
})
|
|
138
138
|
})
|
|
139
|
-
};
|
|
140
|
-
exports.default = _default;
|
|
139
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-grammar-vimeo",
|
|
3
|
-
"version": "3.0.8-nav-memo.
|
|
3
|
+
"version": "3.0.8-nav-memo.1+b6642a50",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"rimraf": "^2.7.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@canopycanopycanopy/b-ber-grammar-attributes": "3.0.8-nav-memo.
|
|
29
|
-
"@canopycanopycanopy/b-ber-lib": "3.0.8-nav-memo.
|
|
30
|
-
"@canopycanopycanopy/b-ber-logger": "3.0.8-nav-memo.
|
|
31
|
-
"@canopycanopycanopy/b-ber-parser-figure": "3.0.8-nav-memo.
|
|
32
|
-
"@canopycanopycanopy/b-ber-shapes-directives": "3.0.8-nav-memo.
|
|
28
|
+
"@canopycanopycanopy/b-ber-grammar-attributes": "3.0.8-nav-memo.1+b6642a50",
|
|
29
|
+
"@canopycanopycanopy/b-ber-lib": "3.0.8-nav-memo.1+b6642a50",
|
|
30
|
+
"@canopycanopycanopy/b-ber-logger": "3.0.8-nav-memo.1+b6642a50",
|
|
31
|
+
"@canopycanopycanopy/b-ber-parser-figure": "3.0.8-nav-memo.1+b6642a50",
|
|
32
|
+
"@canopycanopycanopy/b-ber-shapes-directives": "3.0.8-nav-memo.1+b6642a50",
|
|
33
33
|
"fs-extra": "^8.1.0",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
35
35
|
"lodash.isundefined": "^3.0.1",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"url": "https://maxwellsimmer.com"
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "b6642a50841814fcec9d10d0d2111c1673c80c44"
|
|
56
56
|
}
|