@knapsack/renderer-webpack-base 4.69.9--canary.4768.997c53b.0 → 4.69.9--canary.011c229.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/dist/client/renderer-webpack-client.d.mts +0 -78
- package/dist/client/renderer-webpack-client.d.mts.map +1 -1
- package/dist/client/renderer-webpack-client.mjs +111 -132
- package/dist/client/renderer-webpack-client.mjs.map +1 -1
- 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 +7 -5
- package/dist/create-js-import-entry.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/renderer-webpack-base.d.ts +1 -2
- package/dist/renderer-webpack-base.d.ts.map +1 -1
- package/dist/renderer-webpack-base.js +4 -2
- package/dist/renderer-webpack-base.js.map +1 -1
- package/package.json +15 -16
- package/dist/client/index.d.mts +0 -3
- package/dist/client/index.d.mts.map +0 -1
- package/dist/client/index.mjs +0 -2
- package/dist/client/index.mjs.map +0 -1
- package/dist/client/utils.d.mts +0 -2
- package/dist/client/utils.d.mts.map +0 -1
- package/dist/client/utils.mjs +0 -13
- package/dist/client/utils.mjs.map +0 -1
- package/dist/types.d.ts +0 -40
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# v4.69.8 (Thu Sep 12 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- refactor Renderers for cleaner types [#4746](https://github.com/knapsack-labs/app-monorepo/pull/4746) ([@EvanLovely](https://github.com/EvanLovely))
|
6
|
+
|
7
|
+
#### Authors: 1
|
8
|
+
|
9
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
10
|
+
|
11
|
+
---
|
12
|
+
|
1
13
|
# v4.69.7 (Wed Sep 11 2024)
|
2
14
|
|
3
15
|
#### 🐛 Bug Fix
|
@@ -1,80 +1,2 @@
|
|
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;
|
79
1
|
export {};
|
80
2
|
//# 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":""}
|
@@ -1,9 +1,32 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
if (!isBrowser) {
|
5
|
-
throw new Error('Cannot get KsRendererClientGlobal in a non-browser environment');
|
1
|
+
import { isKsJsImports, isKsRendererClientGlobalImportedModules, isObject, } from '@knapsack/types';
|
2
|
+
if (!isObject(window.knapsack)) {
|
3
|
+
throw new Error(`Could not find "window.knapsack"`);
|
6
4
|
}
|
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
|
+
};
|
7
30
|
const createErrorName = (opt) => {
|
8
31
|
switch (opt.type) {
|
9
32
|
case 'extra':
|
@@ -16,143 +39,99 @@ const createErrorName = (opt) => {
|
|
16
39
|
return JSON.stringify(opt);
|
17
40
|
}
|
18
41
|
};
|
19
|
-
|
20
|
-
|
21
|
-
|
42
|
+
// don't use `function` keyword as that hoists to top of file above our type assertions
|
43
|
+
const getImport = async (opt) => {
|
44
|
+
const theImport = findImport(opt);
|
45
|
+
if (!theImport) {
|
46
|
+
throw new Error(`No import found for ${createErrorName(opt)}`);
|
22
47
|
}
|
23
|
-
const {
|
24
|
-
|
25
|
-
|
48
|
+
const { importInfo } = theImport;
|
49
|
+
const getModule = importedModules[importInfo.path];
|
50
|
+
if (!getModule) {
|
51
|
+
throw new Error(`No "${importInfo.path}" module found for ${JSON.stringify(opt)}`);
|
26
52
|
}
|
27
|
-
|
28
|
-
|
53
|
+
const mod = await getModule();
|
54
|
+
if (!mod) {
|
55
|
+
throw new Error(`No module found for ${JSON.stringify(opt)}`);
|
29
56
|
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
57
|
+
switch (importInfo.type) {
|
58
|
+
case 'all':
|
59
|
+
return {
|
60
|
+
value: mod,
|
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)}`);
|
34
67
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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)}`);
|
68
|
+
return {
|
69
|
+
value: item,
|
70
|
+
name: importInfo.name,
|
71
|
+
};
|
60
72
|
}
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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`);
|
73
|
+
case 'named': {
|
74
|
+
const { name } = importInfo;
|
75
|
+
const item = mod[name];
|
76
|
+
if (!item) {
|
77
|
+
throw new Error(`No named export, ${name}, found for ${JSON.stringify(opt)}`);
|
90
78
|
}
|
79
|
+
return {
|
80
|
+
value: item,
|
81
|
+
name,
|
82
|
+
};
|
91
83
|
}
|
92
|
-
|
93
|
-
|
94
|
-
if (demoId) {
|
95
|
-
return getImport({
|
96
|
-
type: 'pattern-template-demo',
|
97
|
-
patternId,
|
98
|
-
templateId,
|
99
|
-
demoId,
|
100
|
-
});
|
84
|
+
default: {
|
85
|
+
throw new Error(`Unknown import type`);
|
101
86
|
}
|
87
|
+
}
|
88
|
+
};
|
89
|
+
const getPatternImport = async ({ patternId, templateId, demoId, }) => {
|
90
|
+
if (demoId) {
|
102
91
|
return getImport({
|
103
|
-
type: 'pattern-template',
|
92
|
+
type: 'pattern-template-demo',
|
104
93
|
patternId,
|
105
94
|
templateId,
|
95
|
+
demoId,
|
106
96
|
});
|
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
|
-
|
137
|
-
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
},
|
144
|
-
}
|
145
|
-
|
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
|
-
}
|
97
|
+
}
|
98
|
+
return getImport({
|
99
|
+
type: 'pattern-template',
|
100
|
+
patternId,
|
101
|
+
templateId,
|
102
|
+
});
|
103
|
+
};
|
104
|
+
const getExtraImport = async ({ name, }) => getImport({ type: 'extra', name });
|
105
|
+
const knapsack = {
|
106
|
+
typeName: 'KsRendererClientGlobal',
|
107
|
+
allAvailableImports,
|
108
|
+
importedModules,
|
109
|
+
getImport,
|
110
|
+
getPatternImport,
|
111
|
+
getExtraImport,
|
112
|
+
getAllImports: async ({ patterns, extras = [] }) => {
|
113
|
+
const imported = await Promise.all([
|
114
|
+
...patterns.map(getPatternImport),
|
115
|
+
...extras.map(getExtraImport),
|
116
|
+
]);
|
117
|
+
return imported.reduce((cur, { name, value }) => {
|
118
|
+
if (cur[name]) {
|
119
|
+
throw new Error(`Duplicate import name: ${name}`);
|
120
|
+
}
|
121
|
+
cur[name] = value;
|
122
|
+
return cur;
|
123
|
+
}, {});
|
124
|
+
},
|
125
|
+
getImports: async (importsToGet) => {
|
126
|
+
const imported = await Promise.all(importsToGet.map(getImport));
|
127
|
+
return imported.reduce((cur, { name, value }) => {
|
128
|
+
if (cur[name]) {
|
129
|
+
throw new Error(`Duplicate import name: ${name}`);
|
130
|
+
}
|
131
|
+
cur[name] = value;
|
132
|
+
return cur;
|
133
|
+
}, {});
|
134
|
+
},
|
135
|
+
};
|
136
|
+
window.knapsack = knapsack;
|
158
137
|
//# 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,EAEL,aAAa,EACb,uCAAuC,EACvC,QAAQ,GAET,MAAM,iBAAiB,CAAC;AAIzB,IAAI,CAAC,QAAQ,CAAE,MAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACtD,CAAC;AACD,MAAM,EAAE,mBAAmB,EAAE,eAAe,EAAE,GAAI,MAAc;KAC7D,QAGF,CAAC;AACF,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACxC,MAAM,IAAI,KAAK,CACb,+EAA+E,CAChF,CAAC;AACJ,CAAC;AACD,IAAI,CAAC,uCAAuC,CAAC,eAAe,CAAC,EAAE,CAAC;IAC9D,MAAM,IAAI,KAAK,CACb,qGAAqG,CACtG,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,GAAmB,EAAc,EAAE;IACrD,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QACtC,IAAI,GAAG,CAAC,IAAI,KAAK,kBAAkB,IAAI,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAAE,CAAC;YACvE,OAAO,CACL,GAAG,CAAC,SAAS,KAAK,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG,CAAC,UAAU,CACrE,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CAAC,CAAC;YACpD,CAAC;YACD,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;YAClB,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAA6B,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE;QACjC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;QAChE,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YAC9C,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACd,MAAM,IAAI,KAAK,CAAC,0BAA0B,IAAI,EAAE,CAAC,CAAC;YACpD,CAAC;YACD,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;YAClB,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAA6B,CAAC,CAAC;IACpC,CAAC;CACF,CAAC;AAED,MAAc,CAAC,QAAQ,GAAG,QAAQ,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,
|
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,iBAAiB,CAAC;AAE7C,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,CAwB5D"}
|
@@ -6,17 +6,19 @@ function getEntryString(imports) {
|
|
6
6
|
...new Set(imports.map((i) => i.importInfo.path)),
|
7
7
|
];
|
8
8
|
return `
|
9
|
-
|
9
|
+
import type { KsRendererClientGlobal } from '@knapsack/types';
|
10
10
|
|
11
|
-
const
|
11
|
+
const allAvailableImports: KsRendererClientGlobal['allAvailableImports'] = ${JSON.stringify(imports, null, ' ')};
|
12
|
+
|
13
|
+
const importedModules: KsRendererClientGlobal['importedModules'] = {
|
12
14
|
${importedModulePaths
|
13
15
|
.map((path) => `'${path}': () => import('${path}'),`)
|
14
16
|
.join('\n')}
|
15
17
|
};
|
16
18
|
|
17
|
-
window
|
18
|
-
window.knapsack.allAvailableImports = allAvailableImports;
|
19
|
-
window.knapsack.importedModules = importedModules;
|
19
|
+
(window as any).knapsack = {};
|
20
|
+
(window as any).knapsack.allAvailableImports = allAvailableImports;
|
21
|
+
(window as any).knapsack.importedModules = importedModules;
|
20
22
|
`;
|
21
23
|
}
|
22
24
|
//# 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,wCAwBC;AAxBD,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;;;6EAGoE,IAAI,CAAC,SAAS,CACvF,OAAO,EACP,IAAI,EACJ,IAAI,CACL;;;IAGC,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"}
|
package/dist/index.js
CHANGED
@@ -15,5 +15,4 @@ 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);
|
19
18
|
//# 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"}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { RendererId } from '@knapsack/types';
|
1
|
+
import { KsJsImport, 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';
|
5
4
|
export declare abstract class RendererWebpackBase extends RendererBase {
|
6
5
|
#private;
|
7
6
|
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,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"renderer-webpack-base.d.ts","sourceRoot":"","sources":["../src/renderer-webpack-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,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EAAE,MAAM,EAAE,CAAC;KAC1B;CAqEF;AAED,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,mBAAmB,CAAC"}
|
@@ -25,6 +25,8 @@ 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);
|
28
30
|
/**
|
29
31
|
* Used in `webpackConfig.entry` as a key
|
30
32
|
* Also used to get the assets generated from this entry
|
@@ -78,7 +80,7 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
78
80
|
app_1.log.info(`Using WebPack v${this.webpackVersion.majorVersion}`, null, this.id);
|
79
81
|
this.publicPath = `/${(0, path_1.relative)(this.cacheDir, this.outputDir)}/`;
|
80
82
|
__classPrivateFieldSet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, (0, path_1.join)(this.outputDir, 'webpack-asset-paths.json'), "f");
|
81
|
-
this.entryFilePath = (0, path_1.join)(this.outputDir, 'ks-pattern-import-global-setup.
|
83
|
+
this.entryFilePath = (0, path_1.join)(this.outputDir, 'ks-pattern-import-global-setup.ts');
|
82
84
|
}
|
83
85
|
async hydrate(opt) {
|
84
86
|
await super.hydrate(opt);
|
@@ -260,7 +262,7 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
260
262
|
],
|
261
263
|
},
|
262
264
|
entry: {
|
263
|
-
[wpEntryMainId]: [this.entryFilePath, ...this.extraScripts],
|
265
|
+
[wpEntryMainId]: [this.entryFilePath, clientFile, ...this.extraScripts],
|
264
266
|
},
|
265
267
|
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
266
268
|
externals: {},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-webpack-base.js","sourceRoot":"","sources":["../src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CACF;AAlmBD,kDAkmBC"}
|
package/package.json
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-webpack-base",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.69.9--canary.
|
4
|
+
"version": "4.69.9--canary.011c229.0",
|
5
5
|
"type": "commonjs",
|
6
|
+
"main": "dist/index.js",
|
7
|
+
"types": "dist/index.d.ts",
|
6
8
|
"exports": {
|
7
9
|
".": {
|
8
10
|
"types": "./dist/index.d.ts",
|
9
|
-
"
|
10
|
-
},
|
11
|
-
"./client": {
|
12
|
-
"types": "./dist/client/index.d.mts",
|
13
|
-
"default": "./dist/client/index.mjs"
|
11
|
+
"require": "./dist/index.js"
|
14
12
|
},
|
15
13
|
"./package": "./package.json",
|
16
14
|
"./package.json": "./package.json"
|
@@ -23,26 +21,27 @@
|
|
23
21
|
"test": "time ava"
|
24
22
|
},
|
25
23
|
"dependencies": {
|
26
|
-
"@knapsack/app": "4.69.9--canary.
|
27
|
-
"@knapsack/babel-config-starter": "4.69.9--canary.
|
28
|
-
"@knapsack/file-utils": "4.69.9--canary.
|
29
|
-
"@knapsack/types": "4.69.9--canary.
|
30
|
-
"@knapsack/utils": "4.69.9--canary.
|
24
|
+
"@knapsack/app": "4.69.9--canary.011c229.0",
|
25
|
+
"@knapsack/babel-config-starter": "4.69.9--canary.011c229.0",
|
26
|
+
"@knapsack/file-utils": "4.69.9--canary.011c229.0",
|
27
|
+
"@knapsack/types": "4.69.9--canary.011c229.0",
|
28
|
+
"@knapsack/utils": "4.69.9--canary.011c229.0",
|
31
29
|
"babel-loader": "^9.1.3",
|
32
30
|
"webpack": "^5.94.0",
|
33
31
|
"webpack-manifest-plugin": "^4.1.1"
|
34
32
|
},
|
35
33
|
"devDependencies": {
|
36
|
-
"@knapsack/eslint-config-starter": "4.69.9--canary.
|
37
|
-
"@knapsack/prettier-config": "4.69.9--canary.
|
38
|
-
"@knapsack/test-ava": "4.69.9--canary.
|
39
|
-
"@knapsack/typescript-config-starter": "4.69.9--canary.
|
34
|
+
"@knapsack/eslint-config-starter": "4.69.9--canary.011c229.0",
|
35
|
+
"@knapsack/prettier-config": "4.69.9--canary.011c229.0",
|
36
|
+
"@knapsack/test-ava": "4.69.9--canary.011c229.0",
|
37
|
+
"@knapsack/typescript-config-starter": "4.69.9--canary.011c229.0",
|
40
38
|
"@types/estree": "^1.0.5",
|
41
39
|
"@types/node": "^20.16.5",
|
42
40
|
"@types/webpack": "^5.28.5",
|
43
41
|
"@types/webpack-manifest-plugin": "^3.0.8",
|
44
42
|
"ava": "^6.1.3",
|
45
43
|
"eslint": "^8.57.0",
|
44
|
+
"execa": "^5.1.1",
|
46
45
|
"typescript": "^5.5.4"
|
47
46
|
},
|
48
47
|
"license": "GPL-2.0-or-later",
|
@@ -54,5 +53,5 @@
|
|
54
53
|
"directory": "apps/client/libs/renderer-webpack-base",
|
55
54
|
"type": "git"
|
56
55
|
},
|
57
|
-
"gitHead": "
|
56
|
+
"gitHead": "011c2299709b81055e8f3a7258aa5e4b015a3023"
|
58
57
|
}
|
package/dist/client/index.d.mts
DELETED
@@ -1 +0,0 @@
|
|
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"}
|
package/dist/client/index.mjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/client/index.mts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/dist/client/utils.d.mts
DELETED
@@ -1 +0,0 @@
|
|
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"}
|
package/dist/client/utils.mjs
DELETED
@@ -1,13 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
package/dist/types.d.ts
DELETED
@@ -1,40 +0,0 @@
|
|
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
|
package/dist/types.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
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
DELETED
package/dist/types.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|