@knapsack/renderer-vue 4.69.9--canary.32dcae2.0 → 4.69.10--canary.4739.305bd52.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/dist/client/init.d.mts +2 -0
- package/dist/client/init.d.mts.map +1 -0
- package/dist/{renderer-vue-client.js → client/init.mjs} +13 -8
- package/dist/client/init.mjs.map +1 -0
- package/dist/renderer-vue.d.ts.map +1 -1
- package/dist/renderer-vue.js +13 -1
- package/dist/renderer-vue.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +15 -11
- package/dist/renderer-vue-client.d.ts +0 -2
- package/dist/renderer-vue-client.d.ts.map +0 -1
- package/dist/renderer-vue-client.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
# v4.69.9 (Sat Sep 14 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- refactor Renderer clients [#4768](https://github.com/knapsack-labs/app-monorepo/pull/4768) ([@EvanLovely](https://github.com/EvanLovely))
|
6
|
+
|
7
|
+
#### 🏠 Internal
|
8
|
+
|
9
|
+
- update template stage ui [#4763](https://github.com/knapsack-labs/app-monorepo/pull/4763) ([@GormanDesign](https://github.com/GormanDesign))
|
10
|
+
- add spacing under form feedback banner [#4747](https://github.com/knapsack-labs/app-monorepo/pull/4747) ([@GormanDesign](https://github.com/GormanDesign))
|
11
|
+
|
12
|
+
#### Authors: 2
|
13
|
+
|
14
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
15
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
16
|
+
|
17
|
+
---
|
18
|
+
|
1
19
|
# v4.69.8 (Thu Sep 12 2024)
|
2
20
|
|
3
21
|
#### 🐛 Bug Fix
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"init.d.mts","sourceRoot":"","sources":["../../src/client/init.mts"],"names":[],"mappings":""}
|
@@ -1,11 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { getKsRendererClientGlobal } from '@knapsack/renderer-webpack-base/client';
|
2
|
+
import {
|
3
|
+
// https://vuejs.org/guide/essentials/application.html
|
4
|
+
createApp,
|
5
|
+
// https://vuejs.org/guide/components/async.html
|
6
|
+
defineAsyncComponent, } from 'vue';
|
7
|
+
import { rendererMetaScriptTagId } from '../types.js';
|
8
|
+
const { importedModules, allAvailableImports } = getKsRendererClientGlobal({
|
9
|
+
rendererMetaScriptTagId,
|
10
|
+
});
|
6
11
|
const components = allAvailableImports.reduce((cur, { importInfo: { name, path } }) => {
|
7
12
|
const it = importedModules[path];
|
8
|
-
cur[name] =
|
13
|
+
cur[name] = defineAsyncComponent(it);
|
9
14
|
return cur;
|
10
15
|
}, {});
|
11
16
|
const el = document.getElementById('render-root');
|
@@ -17,7 +22,7 @@ if (!el) {
|
|
17
22
|
document.body.appendChild(msgEl);
|
18
23
|
}
|
19
24
|
else {
|
20
|
-
const app =
|
25
|
+
const app = createApp({
|
21
26
|
components,
|
22
27
|
});
|
23
28
|
app.mount('#render-root');
|
@@ -25,4 +30,4 @@ else {
|
|
25
30
|
// just for debugging & curiousity
|
26
31
|
window.ksVueApp = app;
|
27
32
|
}
|
28
|
-
//# sourceMappingURL=
|
33
|
+
//# sourceMappingURL=init.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"init.mjs","sourceRoot":"","sources":["../../src/client/init.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO;AACL,sDAAsD;AACtD,SAAS;AAET,gDAAgD;AAChD,oBAAoB,GACrB,MAAM,KAAK,CAAC;AACb,OAAO,EAAa,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEjE,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,GAAG,yBAAyB,CAIxE;IACA,uBAAuB;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,mBAAmB,CAAC,MAAM,CAC3C,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;IACtC,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACjC,GAAG,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACrC,OAAO,GAAG,CAAC;AACb,CAAC,EACD,EAAiE,CAClE,CAAC;AAEF,MAAM,EAAE,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;AAClD,IAAI,CAAC,EAAE,EAAE,CAAC;IACR,MAAM,GAAG,GACP,+EAA+E,CAAC;IAClF,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;KAAM,CAAC;IACN,MAAM,GAAG,GAAG,SAAS,CAAC;QACpB,UAAU;KACX,CAAC,CAAC;IAEH,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1B,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE5B,kCAAkC;IACjC,MAAc,CAAC,QAAQ,GAAG,GAAG,CAAC;AACjC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-vue.d.ts","sourceRoot":"","sources":["../src/renderer-vue.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"renderer-vue.d.ts","sourceRoot":"","sources":["../src/renderer-vue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,QAAQ,EAET,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,UAAU,EAA6B,MAAM,yBAAyB,CAAC;AA4BhF,qBAAa,mBACX,SAAQ,mBACR,YAAW,UAAU;IAErB,gBAAgB,EAAE,OAAO,CAAC;gBACd,EACV,aAAa,EACb,gBAAwB,GACzB,GAAE;QACD,aAAa,CAAC,EAAE,qBAAqB,CACnC,OAAO,mBAAmB,CAC3B,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QACtB;;;;WAIG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;KACvB;IAYG,mBAAmB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAuC3D;IAEO,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,CAOzC;IAEF,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CA8ExB;IAEF,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAgJ3D;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAoCxD;IAEF,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAwBzB;IAEH,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,CAS9B;CACH"}
|
package/dist/renderer-vue.js
CHANGED
@@ -12,6 +12,7 @@ const babel_config_starter_1 = require("@knapsack/babel-config-starter");
|
|
12
12
|
const path_1 = require("path");
|
13
13
|
const utils_2 = require("./utils");
|
14
14
|
const infer_spec_1 = require("./infer-spec");
|
15
|
+
const types_2 = require("./types");
|
15
16
|
const { pkg } = (0, file_utils_1.findUpPkgJson)(__dirname);
|
16
17
|
const gitRoot = (0, file_utils_1.findGitRoot)();
|
17
18
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
@@ -23,7 +24,7 @@ class KnapsackVueRenderer extends renderer_webpack_base_1.RendererWebpackBase {
|
|
23
24
|
language: 'vue',
|
24
25
|
extension: '.vue',
|
25
26
|
webpackConfig,
|
26
|
-
extraScripts: [
|
27
|
+
extraScripts: ['@knapsack/renderer-vue/client'],
|
27
28
|
});
|
28
29
|
this.createWebpackConfig = () => {
|
29
30
|
const config = super.createWebpackConfig();
|
@@ -56,6 +57,10 @@ class KnapsackVueRenderer extends renderer_webpack_base_1.RendererWebpackBase {
|
|
56
57
|
options: babel_config_starter_1.basicWebpackBabelConfig,
|
57
58
|
});
|
58
59
|
config.plugins.push(new vue_loader_1.VueLoaderPlugin());
|
60
|
+
config.resolve.alias = {
|
61
|
+
...config.resolve.alias,
|
62
|
+
vue: 'vue/dist/vue.esm-bundler.js',
|
63
|
+
};
|
59
64
|
return config;
|
60
65
|
};
|
61
66
|
this.changeCase = (str) => {
|
@@ -74,8 +79,15 @@ class KnapsackVueRenderer extends renderer_webpack_base_1.RendererWebpackBase {
|
|
74
79
|
if (!isDeclaredVarsUnique) {
|
75
80
|
throw new Error(`imports are not unique: ${nameCollisions.join(', ')}`);
|
76
81
|
}
|
82
|
+
const meta = {
|
83
|
+
imports,
|
84
|
+
demo: opt.demo,
|
85
|
+
patternId: opt.pattern.id,
|
86
|
+
templateId: opt.template.id,
|
87
|
+
};
|
77
88
|
let usageDocs = usage;
|
78
89
|
const code = `
|
90
|
+
<script type="application/json" id="${types_2.rendererMetaScriptTagId}">${JSON.stringify(meta)}</script>
|
79
91
|
${this.createHtmlTagsForAssetPaths({
|
80
92
|
assets: this.getWebpackAssetPaths(),
|
81
93
|
// If we don't have `<script async>` tags and we put this below the `div#render-root` then renderering happens but the iFrame is too narrow. Not sure why using a `setTimeout` around `new Vue()` or putting this below `div#render-root` doesn't work, but this does
|
package/dist/renderer-vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-vue.js","sourceRoot":"","sources":["../src/renderer-vue.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"renderer-vue.js","sourceRoot":"","sources":["../src/renderer-vue.ts"],"names":[],"mappings":";;;AAAA,2EAIyC;AACzC,uCAAoC;AACpC,uDAAgF;AAChF,2CAKyB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,eAAe,EAAE,IAAI;YACrB,qBAAqB,EAAE,IAAI;YAC3B,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,mBAAmB,EAAE,IAAI;YACzB,6BAA6B,EAAE,IAAI;YACnC,mBAAmB,EAAE;gBACnB,IAAI,EAAE,+CAA+C;gBACrD,IAAI,EAAE;oBACJ,UAAU,EAAE,KAAK;oBACjB,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE,EAAE;qBACf;oBACD,KAAK,EAAE;wBACL,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;qBAC9B;iBACF;aACF;SACF,CAAC,CAAC;QAEH,cAAS,GAA0B,KAAK,EAAE,EACxC,QAAQ,EACR,YAAY,GAIb,EAAmC,EAAE;YACpC,MAAM,IAAI,GAAG,MAAM,IAAA,iCAAoB,EAAC,YAAY,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;QAjWA,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;CAgWF;AA5XD,kDA4XC"}
|
package/dist/types.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { Demo } from '@knapsack/types';
|
2
|
+
import type { KsJsImport } from '@knapsack/renderer-webpack-base';
|
3
|
+
/**
|
4
|
+
* Found as JSON in HTML `#ks-vue-meta`
|
5
|
+
*/
|
6
|
+
export type KsVueMeta = {
|
7
|
+
imports: KsJsImport[];
|
8
|
+
demo: Demo;
|
9
|
+
patternId: string;
|
10
|
+
templateId: string;
|
11
|
+
};
|
12
|
+
export declare const rendererMetaScriptTagId = "ks-vue-meta";
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,gBAAgB,CAAC"}
|
package/dist/types.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAaa,QAAA,uBAAuB,GAAG,aAAa,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-vue",
|
3
3
|
"description": "Render Vue",
|
4
|
-
"version": "4.69.
|
4
|
+
"version": "4.69.10--canary.4739.305bd52.0",
|
5
5
|
"main": "dist/renderer-vue.js",
|
6
6
|
"types": "dist/renderer-vue.d.ts",
|
7
7
|
"exports": {
|
@@ -9,6 +9,10 @@
|
|
9
9
|
"types": "./dist/renderer-vue.d.ts",
|
10
10
|
"require": "./dist/renderer-vue.js"
|
11
11
|
},
|
12
|
+
"./client": {
|
13
|
+
"types": "./dist/client/init.d.mts",
|
14
|
+
"default": "./dist/client/init.mjs"
|
15
|
+
},
|
12
16
|
"./package": "./package.json",
|
13
17
|
"./package.json": "./package.json",
|
14
18
|
"./prototype-template.vue": "./prototype-template.vue"
|
@@ -24,12 +28,12 @@
|
|
24
28
|
},
|
25
29
|
"author": "Knapsack (https://www.knapsack.cloud)",
|
26
30
|
"dependencies": {
|
27
|
-
"@knapsack/app": "4.69.
|
28
|
-
"@knapsack/babel-config-starter": "4.69.
|
29
|
-
"@knapsack/file-utils": "4.69.
|
30
|
-
"@knapsack/renderer-webpack-base": "4.69.
|
31
|
-
"@knapsack/types": "4.69.
|
32
|
-
"@knapsack/utils": "4.69.
|
31
|
+
"@knapsack/app": "4.69.10--canary.4739.305bd52.0",
|
32
|
+
"@knapsack/babel-config-starter": "4.69.10--canary.4739.305bd52.0",
|
33
|
+
"@knapsack/file-utils": "4.69.10--canary.4739.305bd52.0",
|
34
|
+
"@knapsack/renderer-webpack-base": "4.69.10--canary.4739.305bd52.0",
|
35
|
+
"@knapsack/types": "4.69.10--canary.4739.305bd52.0",
|
36
|
+
"@knapsack/utils": "4.69.10--canary.4739.305bd52.0",
|
33
37
|
"@vue/compiler-sfc": "^3.5.4",
|
34
38
|
"babel-loader": "^9.1.3",
|
35
39
|
"css-loader": "^6.11.0",
|
@@ -42,9 +46,9 @@
|
|
42
46
|
"vue-style-loader": "^4.1.3"
|
43
47
|
},
|
44
48
|
"devDependencies": {
|
45
|
-
"@knapsack/eslint-config-starter": "4.69.
|
46
|
-
"@knapsack/test-ava": "4.69.
|
47
|
-
"@knapsack/typescript-config-starter": "4.69.
|
49
|
+
"@knapsack/eslint-config-starter": "4.69.10--canary.4739.305bd52.0",
|
50
|
+
"@knapsack/test-ava": "4.69.10--canary.4739.305bd52.0",
|
51
|
+
"@knapsack/typescript-config-starter": "4.69.10--canary.4739.305bd52.0",
|
48
52
|
"@types/fs-extra": "^11.0.4",
|
49
53
|
"@types/lodash": "^4.17.5",
|
50
54
|
"ava": "^6.1.3",
|
@@ -59,5 +63,5 @@
|
|
59
63
|
"directory": "apps/client/renderers/renderer-vue",
|
60
64
|
"type": "git"
|
61
65
|
},
|
62
|
-
"gitHead": "
|
66
|
+
"gitHead": "305bd523394250784af1f90d46345a3d7d86c698"
|
63
67
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderer-vue-client.d.ts","sourceRoot":"","sources":["../src/renderer-vue-client.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderer-vue-client.js","sourceRoot":"","sources":["../src/renderer-vue-client.ts"],"names":[],"mappings":";;AAAA,2CAA4D;AAC5D,6BAMa;AAEb,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,GAC9D,IAAA,iCAAyB,GAAa,CAAC;AAEzC,MAAM,UAAU,GAAG,mBAAmB,CAAC,MAAM,CAC3C,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE;IACtC,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACjC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAA,0BAAoB,EAAC,EAAE,CAAC,CAAC;IACrC,OAAO,GAAG,CAAC;AACb,CAAC,EACD,EAAiE,CAClE,CAAC;AAEF,MAAM,EAAE,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;AAClD,IAAI,CAAC,EAAE,EAAE,CAAC;IACR,MAAM,GAAG,GACP,+EAA+E,CAAC;IAClF,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;KAAM,CAAC;IACN,MAAM,GAAG,GAAG,IAAA,eAAS,EAAC;QACpB,UAAU;KACX,CAAC,CAAC;IAEH,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1B,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE5B,kCAAkC;IACjC,MAAc,CAAC,QAAQ,GAAG,GAAG,CAAC;AACjC,CAAC"}
|