@parameter1/base-cms-marko-web 2.81.0 → 2.91.0
Sign up to get free protection for your applications and to get access to all the features.
- package/browser/index.js +1 -11
- package/browser/vue.js +0 -3
- package/components/browser-component.marko.js +2 -2
- package/components/document/components/body-wrapper.marko.js +2 -2
- package/components/document/components/error.marko.js +2 -2
- package/components/document/components/live-reload.marko.js +2 -2
- package/components/document/container.marko.js +2 -2
- package/components/document/index.marko.js +2 -2
- package/components/element/index.marko.js +2 -2
- package/components/load-more/index.marko.js +2 -2
- package/components/load-more/trigger.marko.js +2 -2
- package/components/page/container.marko.js +2 -2
- package/components/page/description.marko.js +2 -2
- package/components/page/layouts/default.marko.js +2 -2
- package/components/page/metadata/components/common.marko.js +2 -2
- package/components/page/metadata/default.marko.js +2 -2
- package/components/page/rel-canonical.marko.js +2 -2
- package/components/page/title.marko.js +2 -2
- package/components/page/wrapper.marko.js +2 -2
- package/package.json +2 -7
- package/browser/apollo.js +0 -12
package/browser/index.js
CHANGED
@@ -4,11 +4,8 @@ import Vue from './vue';
|
|
4
4
|
import Components from './components';
|
5
5
|
import EventBus from './event-bus';
|
6
6
|
|
7
|
-
const apollo = () => import(/* webpackChunkName: "apollo" */ './apollo');
|
8
|
-
|
9
7
|
const components = {};
|
10
8
|
const providers = {};
|
11
|
-
const requiresApollo = {};
|
12
9
|
const listeners = {};
|
13
10
|
|
14
11
|
const load = async ({
|
@@ -21,26 +18,19 @@ const load = async ({
|
|
21
18
|
if (!el || !name) throw new Error('A Vue component name and element must be provided.');
|
22
19
|
const Component = components[name];
|
23
20
|
if (!Component) throw new Error(`No Vue component found for '${name}'`);
|
24
|
-
let apolloProvider;
|
25
|
-
if (requiresApollo[name]) {
|
26
|
-
const { default: provider } = await apollo();
|
27
|
-
apolloProvider = provider;
|
28
|
-
}
|
29
21
|
const component = new Vue({
|
30
22
|
provide: providers[name],
|
31
|
-
apolloProvider,
|
32
23
|
render: h => h(Component, { props, on: { ...on, ...listeners[name] } }),
|
33
24
|
});
|
34
25
|
component.$mount(el, hydrate);
|
35
26
|
};
|
36
27
|
|
37
|
-
const register = async (name, Component, { provide,
|
28
|
+
const register = async (name, Component, { provide, on } = {}) => {
|
38
29
|
if (!name) throw new Error('A Vue component name must be provided.');
|
39
30
|
if (components[name]) throw new Error(`A Vue component already exists for '${name}'`);
|
40
31
|
components[name] = Component;
|
41
32
|
providers[name] = provide;
|
42
33
|
listeners[name] = on;
|
43
|
-
if (withApollo) requiresApollo[name] = true;
|
44
34
|
};
|
45
35
|
|
46
36
|
/**
|
package/browser/vue.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/browser-component.marko",
|
6
6
|
marko_component = require("./browser-component.marko"),
|
7
7
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
8
|
module_defaultValue = require("@parameter1/base-cms-marko-core/utils/default-value"),
|
@@ -73,7 +73,7 @@ marko_template._ = marko_renderer(render, {
|
|
73
73
|
}, marko_component);
|
74
74
|
|
75
75
|
marko_template.meta = {
|
76
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
76
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/browser-component.marko",
|
77
77
|
component: "./browser-component.marko",
|
78
78
|
tags: [
|
79
79
|
"@parameter1/base-cms-marko-core/components/resolve.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/document/components/body-wrapper.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
8
8
|
marko_attrs = require("marko/src/runtime/html/helpers/attrs");
|
@@ -29,5 +29,5 @@ marko_template._ = marko_renderer(render, {
|
|
29
29
|
});
|
30
30
|
|
31
31
|
marko_template.meta = {
|
32
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
32
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/document/components/body-wrapper.marko"
|
33
33
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/document/components/error.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_isDev = require("../../../utils/is-dev"),
|
8
8
|
isDev = module_isDev.default || module_isDev,
|
@@ -77,7 +77,7 @@ marko_template._ = marko_renderer(render, {
|
|
77
77
|
});
|
78
78
|
|
79
79
|
marko_template.meta = {
|
80
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
80
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/document/components/error.marko",
|
81
81
|
tags: [
|
82
82
|
"../../page/title.marko",
|
83
83
|
"../../page/wrapper.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/document/components/live-reload.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_isDev = require("../../../utils/is-dev"),
|
8
8
|
isDev = module_isDev.default || module_isDev,
|
@@ -26,5 +26,5 @@ marko_template._ = marko_renderer(render, {
|
|
26
26
|
});
|
27
27
|
|
28
28
|
marko_template.meta = {
|
29
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
29
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/document/components/live-reload.marko"
|
30
30
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/document/container.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -47,7 +47,7 @@ marko_template._ = marko_renderer(render, {
|
|
47
47
|
});
|
48
48
|
|
49
49
|
marko_template.meta = {
|
50
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
50
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/document/container.marko",
|
51
51
|
tags: [
|
52
52
|
"../page/container.marko"
|
53
53
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/document/index.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -106,7 +106,7 @@ marko_template._ = marko_renderer(render, {
|
|
106
106
|
});
|
107
107
|
|
108
108
|
marko_template.meta = {
|
109
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
109
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/document/index.marko",
|
110
110
|
tags: [
|
111
111
|
"./container.marko",
|
112
112
|
"./components/live-reload.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/element/index.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -43,5 +43,5 @@ marko_template._ = marko_renderer(render, {
|
|
43
43
|
});
|
44
44
|
|
45
45
|
marko_template.meta = {
|
46
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
46
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/element/index.marko"
|
47
47
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/load-more/index.marko",
|
6
6
|
marko_component = require("./index.marko"),
|
7
7
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
8
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
@@ -108,7 +108,7 @@ marko_template._ = marko_renderer(render, {
|
|
108
108
|
}, marko_component);
|
109
109
|
|
110
110
|
marko_template.meta = {
|
111
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
111
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/load-more/index.marko",
|
112
112
|
component: "./",
|
113
113
|
tags: [
|
114
114
|
"../browser-component.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/load-more/trigger.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
marko_web_browser_component_template = require("../browser-component.marko"),
|
8
8
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
@@ -33,7 +33,7 @@ marko_template._ = marko_renderer(render, {
|
|
33
33
|
});
|
34
34
|
|
35
35
|
marko_template.meta = {
|
36
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
36
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/load-more/trigger.marko",
|
37
37
|
tags: [
|
38
38
|
"../browser-component.marko"
|
39
39
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/container.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/container.marko"
|
46
46
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/description.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
8
8
|
|
@@ -22,5 +22,5 @@ marko_template._ = marko_renderer(render, {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
marko_template.meta = {
|
25
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
25
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/description.marko"
|
26
26
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/layouts/default.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
marko_web_default_page_metadata_template = require("../metadata/default.marko"),
|
8
8
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
@@ -54,7 +54,7 @@ marko_template._ = marko_renderer(render, {
|
|
54
54
|
});
|
55
55
|
|
56
56
|
marko_template.meta = {
|
57
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
57
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/layouts/default.marko",
|
58
58
|
tags: [
|
59
59
|
"../metadata/default.marko"
|
60
60
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/metadata/components/common.marko",
|
6
6
|
marko_component = require("./common.marko"),
|
7
7
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
8
|
marko_web_page_title_template = require("../../title.marko"),
|
@@ -98,7 +98,7 @@ marko_template._ = marko_renderer(render, {
|
|
98
98
|
}, marko_component);
|
99
99
|
|
100
100
|
marko_template.meta = {
|
101
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
101
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/metadata/components/common.marko",
|
102
102
|
component: "./common.marko",
|
103
103
|
tags: [
|
104
104
|
"../../title.marko",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/metadata/default.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
common_template = require("./components/common.marko"),
|
8
8
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
@@ -22,7 +22,7 @@ marko_template._ = marko_renderer(render, {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
marko_template.meta = {
|
25
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
25
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/metadata/default.marko",
|
26
26
|
tags: [
|
27
27
|
"./components/common.marko"
|
28
28
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/rel-canonical.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -38,5 +38,5 @@ marko_template._ = marko_renderer(render, {
|
|
38
38
|
});
|
39
39
|
|
40
40
|
marko_template.meta = {
|
41
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
41
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/rel-canonical.marko"
|
42
42
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/title.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/title.marko"
|
46
46
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$2.81.0/components/page/wrapper.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
56
56
|
});
|
57
57
|
|
58
58
|
marko_template.meta = {
|
59
|
-
id: "/@parameter1/base-cms-marko-web$2.
|
59
|
+
id: "/@parameter1/base-cms-marko-web$2.81.0/components/page/wrapper.marko",
|
60
60
|
tags: [
|
61
61
|
"../element"
|
62
62
|
]
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parameter1/base-cms-marko-web",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.91.0",
|
4
4
|
"description": "Core Marko+Express components for BaseCMS websites",
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
6
6
|
"main": "index.js",
|
@@ -26,10 +26,6 @@
|
|
26
26
|
"@parameter1/base-cms-tenant-context": "^2.0.0",
|
27
27
|
"@parameter1/base-cms-utils": "^2.75.1",
|
28
28
|
"@parameter1/base-cms-web-common": "^2.80.0",
|
29
|
-
"apollo-cache-inmemory": "^1.6.6",
|
30
|
-
"apollo-client": "^2.6.10",
|
31
|
-
"apollo-link": "^1.2.14",
|
32
|
-
"apollo-link-http": "^1.5.17",
|
33
29
|
"cookie-parser": "^1.4.5",
|
34
30
|
"express": "^4.17.1",
|
35
31
|
"express-http-proxy": "^1.6.2",
|
@@ -41,7 +37,6 @@
|
|
41
37
|
"marko": "~4.20.0",
|
42
38
|
"moment": "^2.29.1",
|
43
39
|
"vue": "^2.6.14",
|
44
|
-
"vue-apollo": "^3.0.8",
|
45
40
|
"vue-server-renderer": "^2.6.14",
|
46
41
|
"whatwg-fetch": "^3.6.1"
|
47
42
|
},
|
@@ -51,5 +46,5 @@
|
|
51
46
|
"publishConfig": {
|
52
47
|
"access": "public"
|
53
48
|
},
|
54
|
-
"gitHead": "
|
49
|
+
"gitHead": "62a26a8491adc489e6218c3665b91b5b8e5ccdc0"
|
55
50
|
}
|
package/browser/apollo.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import VueApollo from 'vue-apollo';
|
2
|
-
import { ApolloClient } from 'apollo-client';
|
3
|
-
import { createHttpLink } from 'apollo-link-http';
|
4
|
-
import { InMemoryCache } from 'apollo-cache-inmemory';
|
5
|
-
import fragmentMatcher from '@parameter1/base-cms-graphql-fragment-types/fragment-matcher';
|
6
|
-
|
7
|
-
export default new VueApollo({
|
8
|
-
defaultClient: new ApolloClient({
|
9
|
-
link: createHttpLink({ uri: '/__graphql' }),
|
10
|
-
cache: new InMemoryCache({ fragmentMatcher }),
|
11
|
-
}),
|
12
|
-
});
|