@knapsack/renderer-webpack-base 4.69.10--canary.4745.042d9e2.0 → 4.69.10--canary.4799.f75f6f2.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/index.d.mts +3 -0
- package/dist/client/index.d.mts.map +1 -0
- package/dist/client/index.mjs +2 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/client/renderer-webpack-client.d.mts +78 -0
- package/dist/client/renderer-webpack-client.d.mts.map +1 -1
- package/dist/client/renderer-webpack-client.mjs +132 -111
- package/dist/client/renderer-webpack-client.mjs.map +1 -1
- package/dist/client/utils.d.mts +2 -0
- package/dist/client/utils.d.mts.map +1 -0
- package/dist/client/utils.mjs +13 -0
- package/dist/client/utils.mjs.map +1 -0
- package/dist/create-js-import-entry.d.ts +1 -1
- package/dist/create-js-import-entry.d.ts.map +1 -1
- package/dist/create-js-import-entry.js +5 -7
- package/dist/create-js-import-entry.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/renderer-webpack-base.d.ts +2 -1
- package/dist/renderer-webpack-base.d.ts.map +1 -1
- package/dist/renderer-webpack-base.js +2 -4
- package/dist/renderer-webpack-base.js.map +1 -1
- package/dist/types.d.ts +40 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +17 -16
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":"index.d.mts","sourceRoot":"","sources":["../../src/client/index.mts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/client/index.mts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
@@ -1,2 +1,80 @@
|
|
1
|
+
import { KsRendererClientMeta } from '@knapsack/types';
|
2
|
+
import { KsJsImport } from '../types.js';
|
3
|
+
type ImportedModules<ExportedComponentType> = {
|
4
|
+
[id: string]: () => Promise<EsModuleObject<ExportedComponentType>>;
|
5
|
+
};
|
6
|
+
type AllAvailableImports = KsJsImport[];
|
7
|
+
/** The result of `import`-ing a module */
|
8
|
+
type EsModuleObject<ExportedType = unknown> = {
|
9
|
+
default?: ExportedType;
|
10
|
+
[key: string]: ExportedType;
|
11
|
+
};
|
12
|
+
type GetKsJsImportParam = {
|
13
|
+
type: 'pattern-template';
|
14
|
+
patternId: string;
|
15
|
+
templateId: string;
|
16
|
+
} | {
|
17
|
+
type: 'pattern-template-demo';
|
18
|
+
patternId: string;
|
19
|
+
templateId: string;
|
20
|
+
demoId: string;
|
21
|
+
} | {
|
22
|
+
type: 'extra';
|
23
|
+
name: string;
|
24
|
+
};
|
25
|
+
type GetKsJsImportPatternParam = {
|
26
|
+
patternId: string;
|
27
|
+
templateId: string;
|
28
|
+
demoId?: string;
|
29
|
+
};
|
30
|
+
/**
|
31
|
+
* This is `window.knapsack` inside the renderer client: the iframe container for renderer components
|
32
|
+
*/
|
33
|
+
export interface KsRendererClientGlobal<ExportedComponentType = unknown, RendererMetaType extends Record<string, unknown> = Record<string, unknown>, RendererMethods extends Record<string, unknown> = Record<string, unknown>> {
|
34
|
+
typeName: 'KsRendererClientGlobal';
|
35
|
+
importedModules: ImportedModules<ExportedComponentType>;
|
36
|
+
rendererMeta: RendererMetaType;
|
37
|
+
rendererMethods: RendererMethods;
|
38
|
+
meta: KsRendererClientMeta;
|
39
|
+
allAvailableImports: AllAvailableImports;
|
40
|
+
getImport: (opt: GetKsJsImportParam) => Promise<{
|
41
|
+
name: string;
|
42
|
+
/** Most likely a component */
|
43
|
+
value: ExportedComponentType;
|
44
|
+
}>;
|
45
|
+
getImports: (imports: GetKsJsImportParam[]) => Promise<{
|
46
|
+
[importName: string]: ExportedComponentType;
|
47
|
+
}>;
|
48
|
+
getPatternImport: (opt: GetKsJsImportPatternParam) => Promise<{
|
49
|
+
name: string;
|
50
|
+
/** Most likely a component */
|
51
|
+
value: ExportedComponentType;
|
52
|
+
}>;
|
53
|
+
getExtraImport: (opt: {
|
54
|
+
name: string;
|
55
|
+
}) => Promise<{
|
56
|
+
name: string;
|
57
|
+
/** Most likely a component */
|
58
|
+
value: ExportedComponentType;
|
59
|
+
}>;
|
60
|
+
getAllImports: (opt: {
|
61
|
+
patterns: GetKsJsImportPatternParam[];
|
62
|
+
extras?: {
|
63
|
+
name: string;
|
64
|
+
}[];
|
65
|
+
}) => Promise<{
|
66
|
+
[importName: string]: ExportedComponentType;
|
67
|
+
}>;
|
68
|
+
}
|
69
|
+
export declare function getKsRendererClientGlobal<ExportedComponentType, RendererMetaType extends Record<string, unknown>,
|
70
|
+
/**
|
71
|
+
* Any extra properties or methods placed on the window.knapsack object by the renderer in a `<script>` tag
|
72
|
+
*/
|
73
|
+
RendererMethods extends Record<string, unknown>>({ rendererMetaScriptTagId }: {
|
74
|
+
rendererMetaScriptTagId: string;
|
75
|
+
}): KsRendererClientGlobal<ExportedComponentType, RendererMetaType, RendererMethods>;
|
76
|
+
export declare function showUiToastMsg({ msg }: {
|
77
|
+
msg: string;
|
78
|
+
}): void;
|
1
79
|
export {};
|
2
80
|
//# sourceMappingURL=renderer-webpack-client.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-webpack-client.d.mts","sourceRoot":"","sources":["../../src/client/renderer-webpack-client.mts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"renderer-webpack-client.d.mts","sourceRoot":"","sources":["../../src/client/renderer-webpack-client.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EAGrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAWzC,KAAK,eAAe,CAAC,qBAAqB,IAAI;IAC5C,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,OAAO,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC;CACpE,CAAC;AACF,KAAK,mBAAmB,GAAG,UAAU,EAAE,CAAC;AAExC,0CAA0C;AAC1C,KAAK,cAAc,CAAC,YAAY,GAAG,OAAO,IAAI;IAC5C,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;CAC7B,CAAC;AAEF,KAAK,kBAAkB,GACnB;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,GACD;IACE,IAAI,EAAE,uBAAuB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd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b,8BAA8B;QAC9B,KAAK,EAAE,qBAAqB,CAAC;KAC9B,CAAC,CAAC;IACH,aAAa,EAAE,CAAC,GAAG,EAAE;QACnB,QAAQ,EAAE,yBAAyB,EAAE,CAAC;QACtC,MAAM,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KAC7B,KAAK,OAAO,CAAC;QACZ,CAAC,UAAU,EAAE,MAAM,GAAG,qBAAqB,CAAC;KAC7C,CAAC,CAAC;CACJ;AAeD,wBAAgB,yBAAyB,CACvC,qBAAqB,EACrB,gBAAgB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;AAChD;;GAEG;AACH,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/C,EAAE,uBAAuB,EAAE,EAAE;IAAE,uBAAuB,EAAE,MAAM,CAAA;CAAE,GAiK7C,sBAAsB,CACvC,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,CAChB,CACF;AAED,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,QAYtD"}
|
@@ -1,32 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import { isObject, ksRendererClientMetaId, } from '@knapsack/types';
|
2
|
+
import { getJsonFromScriptTag } from './utils.mjs';
|
3
|
+
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
4
|
+
if (!isBrowser) {
|
5
|
+
throw new Error('Cannot get KsRendererClientGlobal in a non-browser environment');
|
4
6
|
}
|
5
|
-
const { allAvailableImports, importedModules } = window
|
6
|
-
.knapsack;
|
7
|
-
if (!isKsJsImports(allAvailableImports)) {
|
8
|
-
throw new Error(`The object "window.knapsack.allAvailableImports" is not a valid "KsJsImports"`);
|
9
|
-
}
|
10
|
-
if (!isKsRendererClientGlobalImportedModules(importedModules)) {
|
11
|
-
throw new Error(`The object "window.knapsack.importedModules" is not a valid "KsRendererClientGlobalImportedModules"`);
|
12
|
-
}
|
13
|
-
const findImport = (opt) => {
|
14
|
-
return allAvailableImports.find((imp) => {
|
15
|
-
if (imp.type === 'pattern-template' && opt.type === 'pattern-template') {
|
16
|
-
return (opt.patternId === imp.patternId && opt.templateId === imp.templateId);
|
17
|
-
}
|
18
|
-
if (imp.type === 'pattern-template-demo' &&
|
19
|
-
opt.type === 'pattern-template-demo') {
|
20
|
-
return (opt.patternId === imp.patternId &&
|
21
|
-
opt.templateId === imp.templateId &&
|
22
|
-
opt.demoId === imp.demoId);
|
23
|
-
}
|
24
|
-
if (imp.type === 'extra' && opt.type === 'extra') {
|
25
|
-
return opt.name === imp.importInfo.name;
|
26
|
-
}
|
27
|
-
return false;
|
28
|
-
});
|
29
|
-
};
|
30
7
|
const createErrorName = (opt) => {
|
31
8
|
switch (opt.type) {
|
32
9
|
case 'extra':
|
@@ -39,99 +16,143 @@ const createErrorName = (opt) => {
|
|
39
16
|
return JSON.stringify(opt);
|
40
17
|
}
|
41
18
|
};
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if (!theImport) {
|
46
|
-
throw new Error(`No import found for ${createErrorName(opt)}`);
|
19
|
+
export function getKsRendererClientGlobal({ rendererMetaScriptTagId }) {
|
20
|
+
if (!isObject(window?.knapsack)) {
|
21
|
+
throw new Error(`Could not find "window.knapsack"`);
|
47
22
|
}
|
48
|
-
const {
|
49
|
-
|
50
|
-
|
51
|
-
throw new Error(`No "${importInfo.path}" module found for ${JSON.stringify(opt)}`);
|
23
|
+
const { allAvailableImports, importedModules, ...rendererMethods } = window.knapsack;
|
24
|
+
if (!Array.isArray(allAvailableImports)) {
|
25
|
+
throw new Error(`The object "window.knapsack.allAvailableImports" is not a valid "KsJsImports"`);
|
52
26
|
}
|
53
|
-
|
54
|
-
|
55
|
-
throw new Error(`No module found for ${JSON.stringify(opt)}`);
|
27
|
+
if (!isObject(importedModules)) {
|
28
|
+
throw new Error(`The object "window.knapsack.importedModules" is not a valid "KsRendererClientGlobalImportedModules"`);
|
56
29
|
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
name: importInfo.name,
|
62
|
-
};
|
63
|
-
case 'default': {
|
64
|
-
const item = mod.default;
|
65
|
-
if (!item) {
|
66
|
-
throw new Error(`No default export found for ${JSON.stringify(opt)}`);
|
30
|
+
const findImport = (opt) => {
|
31
|
+
return allAvailableImports.find((imp) => {
|
32
|
+
if (imp.type === 'pattern-template' && opt.type === 'pattern-template') {
|
33
|
+
return (opt.patternId === imp.patternId && opt.templateId === imp.templateId);
|
67
34
|
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
35
|
+
if (imp.type === 'pattern-template-demo' &&
|
36
|
+
opt.type === 'pattern-template-demo') {
|
37
|
+
return (opt.patternId === imp.patternId &&
|
38
|
+
opt.templateId === imp.templateId &&
|
39
|
+
opt.demoId === imp.demoId);
|
40
|
+
}
|
41
|
+
if (imp.type === 'extra' && opt.type === 'extra') {
|
42
|
+
return opt.name === imp.importInfo.name;
|
43
|
+
}
|
44
|
+
return false;
|
45
|
+
});
|
46
|
+
};
|
47
|
+
const getImport = async (opt) => {
|
48
|
+
const theImport = findImport(opt);
|
49
|
+
if (!theImport) {
|
50
|
+
throw new Error(`No import found for ${createErrorName(opt)}`);
|
51
|
+
}
|
52
|
+
const { importInfo } = theImport;
|
53
|
+
const getModule = importedModules[importInfo.path];
|
54
|
+
if (!getModule) {
|
55
|
+
throw new Error(`No "${importInfo.path}" module found for ${JSON.stringify(opt)}`);
|
56
|
+
}
|
57
|
+
const mod = await getModule();
|
58
|
+
if (!mod) {
|
59
|
+
throw new Error(`No module found for ${JSON.stringify(opt)}`);
|
72
60
|
}
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
61
|
+
switch (importInfo.type) {
|
62
|
+
case 'all':
|
63
|
+
return {
|
64
|
+
value: mod,
|
65
|
+
name: importInfo.name,
|
66
|
+
};
|
67
|
+
case 'default': {
|
68
|
+
const item = mod.default;
|
69
|
+
if (!item) {
|
70
|
+
throw new Error(`No default export found for ${JSON.stringify(opt)}`);
|
71
|
+
}
|
72
|
+
return {
|
73
|
+
value: item,
|
74
|
+
name: importInfo.name,
|
75
|
+
};
|
76
|
+
}
|
77
|
+
case 'named': {
|
78
|
+
const { name } = importInfo;
|
79
|
+
const item = mod[name];
|
80
|
+
if (!item) {
|
81
|
+
throw new Error(`No named export, ${name}, found for ${JSON.stringify(opt)}`);
|
82
|
+
}
|
83
|
+
return {
|
84
|
+
value: item,
|
85
|
+
name,
|
86
|
+
};
|
87
|
+
}
|
88
|
+
default: {
|
89
|
+
throw new Error(`Unknown import type`);
|
78
90
|
}
|
79
|
-
return {
|
80
|
-
value: item,
|
81
|
-
name,
|
82
|
-
};
|
83
91
|
}
|
84
|
-
|
85
|
-
|
92
|
+
};
|
93
|
+
const getPatternImport = async ({ patternId, templateId, demoId, }) => {
|
94
|
+
if (demoId) {
|
95
|
+
return getImport({
|
96
|
+
type: 'pattern-template-demo',
|
97
|
+
patternId,
|
98
|
+
templateId,
|
99
|
+
demoId,
|
100
|
+
});
|
86
101
|
}
|
87
|
-
}
|
88
|
-
};
|
89
|
-
const getPatternImport = async ({ patternId, templateId, demoId, }) => {
|
90
|
-
if (demoId) {
|
91
102
|
return getImport({
|
92
|
-
type: 'pattern-template
|
103
|
+
type: 'pattern-template',
|
93
104
|
patternId,
|
94
105
|
templateId,
|
95
|
-
demoId,
|
96
106
|
});
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
},
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
},
|
134
|
-
}
|
135
|
-
|
136
|
-
|
107
|
+
};
|
108
|
+
const getExtraImport = async ({ name, }) => getImport({ type: 'extra', name });
|
109
|
+
const meta = getJsonFromScriptTag(ksRendererClientMetaId);
|
110
|
+
const rendererMeta = getJsonFromScriptTag(rendererMetaScriptTagId);
|
111
|
+
const knapsack = {
|
112
|
+
typeName: 'KsRendererClientGlobal',
|
113
|
+
allAvailableImports,
|
114
|
+
importedModules,
|
115
|
+
meta,
|
116
|
+
rendererMeta,
|
117
|
+
rendererMethods,
|
118
|
+
getImport,
|
119
|
+
getPatternImport,
|
120
|
+
getExtraImport,
|
121
|
+
getAllImports: async ({ patterns, extras = [] }) => {
|
122
|
+
const imported = await Promise.all([
|
123
|
+
...patterns.map(getPatternImport),
|
124
|
+
...extras.map(getExtraImport),
|
125
|
+
]);
|
126
|
+
return imported.reduce((cur, { name, value }) => {
|
127
|
+
if (cur[name]) {
|
128
|
+
throw new Error(`Duplicate import name: ${name}`);
|
129
|
+
}
|
130
|
+
cur[name] = value;
|
131
|
+
return cur;
|
132
|
+
}, {});
|
133
|
+
},
|
134
|
+
getImports: async (importsToGet) => {
|
135
|
+
const imported = await Promise.all(importsToGet.map(getImport));
|
136
|
+
return imported.reduce((cur, { name, value }) => {
|
137
|
+
if (cur[name]) {
|
138
|
+
throw new Error(`Duplicate import name: ${name}`);
|
139
|
+
}
|
140
|
+
cur[name] = value;
|
141
|
+
return cur;
|
142
|
+
}, {});
|
143
|
+
},
|
144
|
+
};
|
145
|
+
return knapsack;
|
146
|
+
}
|
147
|
+
export function showUiToastMsg({ msg }) {
|
148
|
+
const hasParentWindow = window.parent !== window;
|
149
|
+
if (!hasParentWindow)
|
150
|
+
return;
|
151
|
+
window.parent.postMessage({
|
152
|
+
// search for this string in the UI to find where we receive the message and then send the toast
|
153
|
+
type: 'ksRendererClient.showToast',
|
154
|
+
msg,
|
155
|
+
feedbackType: 'info',
|
156
|
+
}, '*');
|
157
|
+
}
|
137
158
|
//# sourceMappingURL=renderer-webpack-client.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-webpack-client.mjs","sourceRoot":"","sources":["../../src/client/renderer-webpack-client.mts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"renderer-webpack-client.mjs","sourceRoot":"","sources":["../../src/client/renderer-webpack-client.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,sBAAsB,GAEvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,MAAM,SAAS,GACb,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW,CAAC;AAE1E,IAAI,CAAC,SAAS,EAAE,CAAC;IACf,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;AACJ,CAAC;AA4ED,MAAM,eAAe,GAAG,CAAC,GAAuB,EAAU,EAAE;IAC1D,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,UAAU,GAAG,CAAC,IAAI,GAAG,CAAC;QAC/B,KAAK,kBAAkB;YACrB,OAAO,YAAY,GAAG,CAAC,SAAS,gBAAgB,GAAG,CAAC,UAAU,GAAG,CAAC;QACpE,KAAK,uBAAuB;YAC1B,OAAO,YAAY,GAAG,CAAC,SAAS,gBAAgB,GAAG,CAAC,UAAU,YAAY,GAAG,CAAC,MAAM,GAAG,CAAC;QAC1F;YACE,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAOvC,EAAE,uBAAuB,EAAuC;IAChE,IAAI,CAAC,QAAQ,CAAE,MAAc,EAAE,QAAQ,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC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AC,WAAW,CACvB;QACE,gGAAgG;QAChG,IAAI,EAAE,4BAA4B;QAClC,GAAG;QACH,YAAY,EAAE,MAAM;KACS,EAC/B,GAAG,CACJ,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../../src/client/utils.mts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAUrD"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export function getJsonFromScriptTag(id) {
|
2
|
+
const scriptTag = document.getElementById(id);
|
3
|
+
if (!scriptTag) {
|
4
|
+
throw new Error(`Script tag with id "${id}" not found`);
|
5
|
+
}
|
6
|
+
try {
|
7
|
+
return JSON.parse(scriptTag.innerText);
|
8
|
+
}
|
9
|
+
catch (e) {
|
10
|
+
throw new Error(`Error parsing JSON from script tag with id "${id}": ${e}`);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=utils.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../../src/client/utils.mts"],"names":[],"mappings":"AAAA,MAAM,UAAU,oBAAoB,CAAI,EAAU;IAChD,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;IAC1D,CAAC;IACD,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,+CAA+C,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-js-import-entry.d.ts","sourceRoot":"","sources":["../src/create-js-import-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"create-js-import-entry.d.ts","sourceRoot":"","sources":["../src/create-js-import-entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,CAkB5D"}
|
@@ -6,19 +6,17 @@ function getEntryString(imports) {
|
|
6
6
|
...new Set(imports.map((i) => i.importInfo.path)),
|
7
7
|
];
|
8
8
|
return `
|
9
|
-
|
9
|
+
const allAvailableImports = ${JSON.stringify(imports, null, ' ')};
|
10
10
|
|
11
|
-
const
|
12
|
-
|
13
|
-
const importedModules: KsRendererClientGlobal['importedModules'] = {
|
11
|
+
const importedModules = {
|
14
12
|
${importedModulePaths
|
15
13
|
.map((path) => `'${path}': () => import('${path}'),`)
|
16
14
|
.join('\n')}
|
17
15
|
};
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
window.knapsack = window.knapsack || {};
|
18
|
+
window.knapsack.allAvailableImports = allAvailableImports;
|
19
|
+
window.knapsack.importedModules = importedModules;
|
22
20
|
`;
|
23
21
|
}
|
24
22
|
//# sourceMappingURL=create-js-import-entry.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-js-import-entry.js","sourceRoot":"","sources":["../src/create-js-import-entry.ts"],"names":[],"mappings":";;AAEA,
|
1
|
+
{"version":3,"file":"create-js-import-entry.js","sourceRoot":"","sources":["../src/create-js-import-entry.ts"],"names":[],"mappings":";;AAEA,wCAkBC;AAlBD,SAAgB,cAAc,CAAC,OAAqB;IAClD,MAAM,mBAAmB,GAAG;QAC1B,GAAG,IAAI,GAAG,CAAS,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC1D,CAAC;IAEF,OAAO;8BACqB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC;;;IAG7D,mBAAmB;SAClB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,oBAAoB,IAAI,KAAK,CAAC;SACpD,IAAI,CAAC,IAAI,CAAC;;;;;;CAMd,CAAC;AACF,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./renderer-webpack-base"), exports);
|
18
|
+
__exportStar(require("./types"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,0CAAwB"}
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { RendererId } from '@knapsack/types';
|
2
2
|
import { RendererBase, type Renderable } from '@knapsack/app/renderers';
|
3
3
|
import { Configuration as WebpackConfig } from 'webpack';
|
4
|
+
import { KsJsImport } from './types';
|
4
5
|
export declare abstract class RendererWebpackBase extends RendererBase {
|
5
6
|
#private;
|
6
7
|
private webpack;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-webpack-base.d.ts","sourceRoot":"","sources":["../src/renderer-webpack-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"renderer-webpack-base.d.ts","sourceRoot":"","sources":["../src/renderer-webpack-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAgBxE,OAAgB,EAEd,aAAa,IAAI,aAAa,EAG/B,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA8BrC,8BAAsB,mBAAoB,SAAQ,YAAY;;IAC5D,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAkB;IAGzC,OAAO,CAAC,YAAY,CAAW;IAC/B,OAAO,CAAC,aAAa,CAAS;gBAIlB,EACV,EAAE,EACF,SAAS,EACT,QAAQ,EACR,aAAkB,EAClB,YAAiB,GAClB,EAAE;QACD,EAAE,EAAE,UAAU,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB;IAoBc,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAkB7D,OAAO,CACpB,GAAG,EAAE,UAAU,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,IAAI,CAAC;IAehB;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O,EAAE,EAAE;QAAE,OAAO,EAAE,UAAU,EAAE,CAAA;KAAE,GAAG;QAC7D,OAAO,EAAE,UAAU,EAAE,CAAC;QACtB,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,wBAAwB;QACxB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,oBAAoB,EAAE,OAAO,CAAC;KAC/B;IAiCD,uBAAuB,CAAC,EACtB,OAAO,EAAE,gBAAgB,GAC1B,EAAE;QACD,OAAO,EAAE,UAAU,EAAE,CAAC;KACvB,GAAG;QACF,IAAI,EAAE,MAAM,CAAC;QACb,wBAAwB;QACxB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,oBAAoB,EAAE,OAAO,CAAC;QAC9B,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B;CAqEF;AAED,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,mBAAmB,CAAC"}
|
@@ -25,8 +25,6 @@ const path_1 = require("path");
|
|
25
25
|
const webpack_1 = __importDefault(require("webpack"));
|
26
26
|
const webpack_manifest_plugin_1 = require("webpack-manifest-plugin");
|
27
27
|
const create_js_import_entry_1 = require("./create-js-import-entry");
|
28
|
-
const clientFile = (0, path_1.join)(__dirname, './client/renderer-webpack-client.mjs');
|
29
|
-
(0, file_utils_1.assertFileExists)(clientFile);
|
30
28
|
/**
|
31
29
|
* Used in `webpackConfig.entry` as a key
|
32
30
|
* Also used to get the assets generated from this entry
|
@@ -80,7 +78,7 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
80
78
|
app_1.log.info(`Using WebPack v${this.webpackVersion.majorVersion}`, null, this.id);
|
81
79
|
this.publicPath = `/${(0, path_1.relative)(this.cacheDir, this.outputDir)}/`;
|
82
80
|
__classPrivateFieldSet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, (0, path_1.join)(this.outputDir, 'webpack-asset-paths.json'), "f");
|
83
|
-
this.entryFilePath = (0, path_1.join)(this.outputDir, 'ks-pattern-import-global-setup.
|
81
|
+
this.entryFilePath = (0, path_1.join)(this.outputDir, 'ks-pattern-import-global-setup.js');
|
84
82
|
}
|
85
83
|
async hydrate(opt) {
|
86
84
|
await super.hydrate(opt);
|
@@ -262,7 +260,7 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
262
260
|
],
|
263
261
|
},
|
264
262
|
entry: {
|
265
|
-
[wpEntryMainId]: [this.entryFilePath,
|
263
|
+
[wpEntryMainId]: [this.entryFilePath, ...this.extraScripts],
|
266
264
|
},
|
267
265
|
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
268
266
|
externals: {},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-webpack-base.js","sourceRoot":"","sources":["../src/renderer-webpack-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,uCAAoD;AACpD,uDAAwE;AACxE,qDAO8B;AAC9B,2CAKyB;AACzB,yEAAyE;AACzE,+BAAkD;AAClD,sDAKiB;AACjB,qEAAkF;AAClF,qEAA0D;AAE1D,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,sCAAsC,CAAC,CAAC;AAC3E,IAAA,6BAAgB,EAAC,UAAU,CAAC,CAAC;AAE7B;;;GAGG;AACH,MAAM,aAAa,GAAG,MAAM,CAAC;AAI7B,SAAS,gBAAgB,CACvB,OAA0C;IAE1C,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QACtC,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACtE,OAAO,MAAM,CAAC,WAAW,CACvB,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,E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AAC,IAAI,CAAC,GAAG,CAAC,YAAY,UAAU,IAAI;aACxD,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QAEL,OAAO;YACL,IAAI,EAAE,IAAA,2BAAc,EAAC;gBACnB,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC9C,IAAI,EAAE,cAAc;aACrB,CAAC;YACF,YAAY;YACZ,oBAAoB,EAAE,IAAA,8BAAsB,EAAC,YAAY,CAAC;YAC1D,cAAc,EAAE,IAAA,oCAA4B,EAAC,YAAY,CAAC;SAC3D,CAAC;IACJ,CAAC;CACF;AAlmBD,kDAkmBC"}
|
package/dist/types.d.ts
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* Information about JS imports that can describe how to import a module in these ways:
|
3
|
+
* - `import { Foo, Bar } from './foo';`
|
4
|
+
* - `import * as Foo from './foo';`
|
5
|
+
* - `import Foo from './foo';`
|
6
|
+
*
|
7
|
+
* Used in Webpack-based renderers
|
8
|
+
*/
|
9
|
+
export type KsJsImportInfo = {
|
10
|
+
type: 'default';
|
11
|
+
/** import name from 'path'; */
|
12
|
+
name: string;
|
13
|
+
path: string;
|
14
|
+
} | {
|
15
|
+
type: 'named';
|
16
|
+
path: string;
|
17
|
+
/** import { name } from 'path'; */
|
18
|
+
name: string;
|
19
|
+
} | {
|
20
|
+
type: 'all';
|
21
|
+
path: string;
|
22
|
+
/** import * as name from 'path'; */
|
23
|
+
name: string;
|
24
|
+
};
|
25
|
+
export type KsJsImport = {
|
26
|
+
type: 'pattern-template';
|
27
|
+
patternId: string;
|
28
|
+
templateId: string;
|
29
|
+
importInfo: KsJsImportInfo;
|
30
|
+
} | {
|
31
|
+
type: 'pattern-template-demo';
|
32
|
+
patternId: string;
|
33
|
+
templateId: string;
|
34
|
+
demoId: string;
|
35
|
+
importInfo: KsJsImportInfo;
|
36
|
+
} | {
|
37
|
+
type: 'extra';
|
38
|
+
importInfo: KsJsImportInfo;
|
39
|
+
};
|
40
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GACtB;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEN,MAAM,MAAM,UAAU,GAClB;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,cAAc,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,uBAAuB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAC"}
|
package/dist/types.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-webpack-base",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.69.10--canary.
|
4
|
+
"version": "4.69.10--canary.4799.f75f6f2.0",
|
5
5
|
"type": "commonjs",
|
6
|
-
"main": "dist/index.js",
|
7
|
-
"types": "dist/index.d.ts",
|
8
6
|
"exports": {
|
9
7
|
".": {
|
10
8
|
"types": "./dist/index.d.ts",
|
11
|
-
"
|
9
|
+
"default": "./dist/index.js"
|
10
|
+
},
|
11
|
+
"./client": {
|
12
|
+
"types": "./dist/client/index.d.mts",
|
13
|
+
"default": "./dist/client/index.mjs"
|
12
14
|
},
|
13
15
|
"./package": "./package.json",
|
14
16
|
"./package.json": "./package.json"
|
@@ -21,27 +23,26 @@
|
|
21
23
|
"test": "time ava"
|
22
24
|
},
|
23
25
|
"dependencies": {
|
24
|
-
"@knapsack/app": "4.69.10--canary.
|
25
|
-
"@knapsack/babel-config-starter": "4.69.10--canary.
|
26
|
-
"@knapsack/file-utils": "4.69.10--canary.
|
27
|
-
"@knapsack/types": "4.69.10--canary.
|
28
|
-
"@knapsack/utils": "4.69.10--canary.
|
29
|
-
"babel-loader": "^9.1
|
26
|
+
"@knapsack/app": "4.69.10--canary.4799.f75f6f2.0",
|
27
|
+
"@knapsack/babel-config-starter": "4.69.10--canary.4799.f75f6f2.0",
|
28
|
+
"@knapsack/file-utils": "4.69.10--canary.4799.f75f6f2.0",
|
29
|
+
"@knapsack/types": "4.69.10--canary.4799.f75f6f2.0",
|
30
|
+
"@knapsack/utils": "4.69.10--canary.4799.f75f6f2.0",
|
31
|
+
"babel-loader": "^9.2.1",
|
30
32
|
"webpack": "^5.94.0",
|
31
33
|
"webpack-manifest-plugin": "^4.1.1"
|
32
34
|
},
|
33
35
|
"devDependencies": {
|
34
|
-
"@knapsack/eslint-config-starter": "4.69.10--canary.
|
35
|
-
"@knapsack/prettier-config": "4.69.10--canary.
|
36
|
-
"@knapsack/test-ava": "4.69.10--canary.
|
37
|
-
"@knapsack/typescript-config-starter": "4.69.10--canary.
|
36
|
+
"@knapsack/eslint-config-starter": "4.69.10--canary.4799.f75f6f2.0",
|
37
|
+
"@knapsack/prettier-config": "4.69.10--canary.4799.f75f6f2.0",
|
38
|
+
"@knapsack/test-ava": "4.69.10--canary.4799.f75f6f2.0",
|
39
|
+
"@knapsack/typescript-config-starter": "4.69.10--canary.4799.f75f6f2.0",
|
38
40
|
"@types/estree": "^1.0.5",
|
39
41
|
"@types/node": "^20.16.5",
|
40
42
|
"@types/webpack": "^5.28.5",
|
41
43
|
"@types/webpack-manifest-plugin": "^3.0.8",
|
42
44
|
"ava": "^6.1.3",
|
43
45
|
"eslint": "^8.57.0",
|
44
|
-
"execa": "^5.1.1",
|
45
46
|
"typescript": "^5.5.4"
|
46
47
|
},
|
47
48
|
"license": "GPL-2.0-or-later",
|
@@ -53,5 +54,5 @@
|
|
53
54
|
"directory": "apps/client/libs/renderer-webpack-base",
|
54
55
|
"type": "git"
|
55
56
|
},
|
56
|
-
"gitHead": "
|
57
|
+
"gitHead": "f75f6f2e917abd665ac9ac2fcdd76f0b66b3008b"
|
57
58
|
}
|