@knapsack/renderer-react 4.69.13--canary.4739.37477c8.0 → 4.69.13--canary.4821.ae550c0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/dist/client/init.js +33 -44
- package/dist/client/init.js.map +1 -1
- package/dist/client/init.mjs +33 -49
- package/dist/client/init.mjs.map +1 -1
- package/dist/demo-wrapper.d.mts +1 -2
- package/dist/demo-wrapper.d.ts +1 -2
- package/dist/index.d.mts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +137 -166
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +142 -170
- package/dist/index.mjs.map +1 -1
- package/dist/types-CivTHEEo.d.mts +10 -0
- package/dist/types-CivTHEEo.d.ts +10 -0
- package/package.json +13 -13
- package/dist/types-D2eCZXsg.d.mts +0 -13
- package/dist/types-D2eCZXsg.d.ts +0 -13
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
# v4.69.12 (Thu Sep 26 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- Merge branch 'latest' into feature/ksp-5560-replace-schema-forms-in-content-blocks ([@GormanDesign](https://github.com/GormanDesign))
|
6
|
+
|
7
|
+
#### 🏠 Internal
|
8
|
+
|
9
|
+
- Remove unused types [#4819](https://github.com/knapsack-labs/app-monorepo/pull/4819) ([@greylabel](https://github.com/greylabel))
|
10
|
+
- chore(deps): update dependency @types/react to ^18.3.9 [#4851](https://github.com/knapsack-labs/app-monorepo/pull/4851) ([@renovate[bot]](https://github.com/renovate[bot]))
|
11
|
+
- chore(deps): update dependency @types/node to ^20.16.6 [#4846](https://github.com/knapsack-labs/app-monorepo/pull/4846) ([@renovate[bot]](https://github.com/renovate[bot]))
|
12
|
+
|
13
|
+
#### Authors: 3
|
14
|
+
|
15
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
16
|
+
- Grant Gaudet ([@greylabel](https://github.com/greylabel))
|
17
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
18
|
+
|
19
|
+
---
|
20
|
+
|
1
21
|
# v4.69.11 (Fri Sep 20 2024)
|
2
22
|
|
3
23
|
#### 🐛 Bug Fix
|
package/dist/client/init.js
CHANGED
@@ -24,59 +24,48 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
24
24
|
|
25
25
|
// src/client/init.tsx
|
26
26
|
var import_react = __toESM(require("react"));
|
27
|
-
var
|
28
|
-
|
29
|
-
// src/client/ks-utils.ts
|
30
|
-
var import_client = require("@knapsack/renderer-webpack-base/client");
|
27
|
+
var import_client = __toESM(require("react-dom/client"));
|
28
|
+
var import_client2 = require("@knapsack/renderer-webpack-base/client");
|
31
29
|
|
32
30
|
// src/types.ts
|
33
31
|
var rendererMetaScriptTagId = "ks-react-meta";
|
34
32
|
|
35
|
-
// src/client/ks-utils.ts
|
36
|
-
var {
|
37
|
-
allAvailableImports,
|
38
|
-
getAllImports,
|
39
|
-
getExtraImport,
|
40
|
-
getImport,
|
41
|
-
getImports,
|
42
|
-
getPatternImport,
|
43
|
-
importedModules,
|
44
|
-
meta,
|
45
|
-
rendererMeta,
|
46
|
-
rendererMethods
|
47
|
-
} = (0, import_client.getKsRendererClientGlobal)({
|
48
|
-
rendererMetaScriptTagId
|
49
|
-
});
|
50
|
-
|
51
33
|
// src/client/init.tsx
|
52
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
53
35
|
async function init() {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
36
|
+
try {
|
37
|
+
const {
|
38
|
+
getNeededImports,
|
39
|
+
getExtraImports,
|
40
|
+
rendererMeta: { disableReactStrictMode, demoWrapperProps },
|
41
|
+
rendererMethods: { getDemoApp }
|
42
|
+
} = (0, import_client2.getKsRendererClientUtils)({
|
43
|
+
rendererMetaScriptTagId
|
44
|
+
});
|
45
|
+
const [neededImports, { DemoWrapper, ErrorCatcher }] = await Promise.all([
|
46
|
+
getNeededImports(),
|
47
|
+
getExtraImports()
|
48
|
+
]);
|
49
|
+
const root = document.getElementById("render-root");
|
50
|
+
if (!root) {
|
51
|
+
throw new Error("No root element found");
|
52
|
+
}
|
53
|
+
const demoComponents = neededImports;
|
54
|
+
const DemoApp = getDemoApp(demoComponents);
|
55
|
+
const app = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorCatcher, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DemoWrapper, { ...demoWrapperProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DemoApp, {}) }) });
|
56
|
+
import_client.default.createRoot(root).render(
|
57
|
+
disableReactStrictMode ? app : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.StrictMode, { children: app })
|
58
|
+
);
|
59
|
+
} catch (e) {
|
60
|
+
console.error(e);
|
61
|
+
const errorElement = document.createElement("div");
|
62
|
+
errorElement.innerHTML = `
|
77
63
|
<h1>Error</h1>
|
78
64
|
<p>${e.message}</p>
|
79
65
|
`;
|
80
|
-
|
66
|
+
document.body.appendChild(errorElement);
|
67
|
+
}
|
81
68
|
}
|
69
|
+
__name(init, "init");
|
70
|
+
init();
|
82
71
|
//# sourceMappingURL=init.js.map
|
package/dist/client/init.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/client/init.tsx","../../src/
|
1
|
+
{"version":3,"sources":["../../src/client/init.tsx","../../src/types.ts"],"sourcesContent":["/// <reference lib=\"dom\" />\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { getKsRendererClientUtils } from '@knapsack/renderer-webpack-base/client';\nimport {\n rendererMetaScriptTagId,\n type KsReactMeta,\n type Component,\n type RendererMethods,\n} from '../types';\n\nasync function init() {\n try {\n const {\n getNeededImports,\n getExtraImports,\n rendererMeta: { disableReactStrictMode, demoWrapperProps },\n rendererMethods: { getDemoApp },\n } = getKsRendererClientUtils<Component, KsReactMeta, RendererMethods>({\n rendererMetaScriptTagId,\n });\n const [neededImports, { DemoWrapper, ErrorCatcher }] = await Promise.all([\n getNeededImports(),\n getExtraImports(),\n ]);\n const root = document.getElementById('render-root');\n if (!root) {\n throw new Error('No root element found');\n }\n const demoComponents = neededImports;\n const DemoApp = getDemoApp(demoComponents);\n const app = (\n <ErrorCatcher>\n <DemoWrapper {...demoWrapperProps}>\n <DemoApp />\n </DemoWrapper>\n </ErrorCatcher>\n );\n\n ReactDOM.createRoot(root).render(\n disableReactStrictMode ? app : <React.StrictMode>{app}</React.StrictMode>,\n );\n } catch (e) {\n console.error(e);\n // create html element with error message\n const errorElement = document.createElement('div');\n errorElement.innerHTML = `\n <h1>Error</h1>\n <p>${e.message}</p>\n `;\n document.body.appendChild(errorElement);\n }\n}\n\ninit();\n","import type { Demo, Except } from '@knapsack/types';\nimport type { ComponentType } from 'react';\nimport type { RendererMetaBase } from '@knapsack/renderer-webpack-base/client';\n\nexport type Component = ComponentType<Record<string, unknown>>;\n\nexport type DemoWrapperProps = {\n children: React.ReactNode;\n // patternsUsed: {\n // patternId: string;\n // templateId: string;\n // demoId?: string;\n // }[];\n demo: Demo;\n patternId: string;\n templateId: string;\n};\n\n/**\n * Found as JSON in HTML `#ks-react-meta`\n */\nexport type KsReactMeta = {\n disableReactStrictMode: boolean;\n demo: Demo;\n demoWrapperProps: Except<DemoWrapperProps, 'children'>;\n} & RendererMetaBase<'DemoWrapper' | 'ErrorCatcher'>;\n\nexport const rendererMetaScriptTagId = 'ks-react-meta';\n\nexport type RendererMethods = {\n getDemoApp: (components: Record<string, Component>) => Component;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,mBAAkB;AAClB,oBAAqB;AACrB,IAAAA,iBAAyC;;;ACwBlC,IAAM,0BAA0B;;;ADO7B;AAvBV,eAAe,OAAO;AACpB,MAAI;AACF,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA,cAAc,EAAE,wBAAwB,iBAAiB;AAAA,MACzD,iBAAiB,EAAE,WAAW;AAAA,IAChC,QAAI,yCAAkE;AAAA,MACpE;AAAA,IACF,CAAC;AACD,UAAM,CAAC,eAAe,EAAE,aAAa,aAAa,CAAC,IAAI,MAAM,QAAQ,IAAI;AAAA,MACvE,iBAAiB;AAAA,MACjB,gBAAgB;AAAA,IAClB,CAAC;AACD,UAAM,OAAO,SAAS,eAAe,aAAa;AAClD,QAAI,CAAC,MAAM;AACT,YAAM,IAAI,MAAM,uBAAuB;AAAA,IACzC;AACA,UAAM,iBAAiB;AACvB,UAAM,UAAU,WAAW,cAAc;AACzC,UAAM,MACJ,4CAAC,gBACC,sDAAC,eAAa,GAAG,kBACf,sDAAC,WAAQ,GACX,GACF;AAGF,kBAAAC,QAAS,WAAW,IAAI,EAAE;AAAA,MACxB,yBAAyB,MAAM,4CAAC,aAAAC,QAAM,YAAN,EAAkB,eAAI;AAAA,IACxD;AAAA,EACF,SAAS,GAAG;AACV,YAAQ,MAAM,CAAC;AAEf,UAAM,eAAe,SAAS,cAAc,KAAK;AACjD,iBAAa,YAAY;AAAA;AAAA,SAEpB,EAAE,OAAO;AAAA;AAEd,aAAS,KAAK,YAAY,YAAY;AAAA,EACxC;AACF;AAzCe;AA2Cf,KAAK;","names":["import_client","ReactDOM","React"]}
|
package/dist/client/init.mjs
CHANGED
@@ -23,67 +23,51 @@ var init_types = __esm({
|
|
23
23
|
}
|
24
24
|
});
|
25
25
|
|
26
|
-
// src/client/ks-utils.ts
|
27
|
-
import { getKsRendererClientGlobal } from "@knapsack/renderer-webpack-base/client";
|
28
|
-
var allAvailableImports, getAllImports, getExtraImport, getImport, getImports, getPatternImport, importedModules, meta, rendererMeta, rendererMethods;
|
29
|
-
var init_ks_utils = __esm({
|
30
|
-
"src/client/ks-utils.ts"() {
|
31
|
-
init_esm_shims();
|
32
|
-
init_types();
|
33
|
-
({
|
34
|
-
allAvailableImports,
|
35
|
-
getAllImports,
|
36
|
-
getExtraImport,
|
37
|
-
getImport,
|
38
|
-
getImports,
|
39
|
-
getPatternImport,
|
40
|
-
importedModules,
|
41
|
-
meta,
|
42
|
-
rendererMeta,
|
43
|
-
rendererMethods
|
44
|
-
} = getKsRendererClientGlobal({
|
45
|
-
rendererMetaScriptTagId
|
46
|
-
}));
|
47
|
-
}
|
48
|
-
});
|
49
|
-
|
50
26
|
// src/client/init.tsx
|
51
27
|
import React from "react";
|
52
28
|
import ReactDOM from "react-dom/client";
|
29
|
+
import { getKsRendererClientUtils } from "@knapsack/renderer-webpack-base/client";
|
53
30
|
import { jsx } from "react/jsx-runtime";
|
54
31
|
var require_init = __commonJS({
|
55
32
|
"src/client/init.tsx"() {
|
56
33
|
init_esm_shims();
|
57
|
-
|
34
|
+
init_types();
|
58
35
|
async function init() {
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
36
|
+
try {
|
37
|
+
const {
|
38
|
+
getNeededImports,
|
39
|
+
getExtraImports,
|
40
|
+
rendererMeta: { disableReactStrictMode, demoWrapperProps },
|
41
|
+
rendererMethods: { getDemoApp }
|
42
|
+
} = getKsRendererClientUtils({
|
43
|
+
rendererMetaScriptTagId
|
44
|
+
});
|
45
|
+
const [neededImports, { DemoWrapper, ErrorCatcher }] = await Promise.all([
|
46
|
+
getNeededImports(),
|
47
|
+
getExtraImports()
|
48
|
+
]);
|
49
|
+
const root = document.getElementById("render-root");
|
50
|
+
if (!root) {
|
51
|
+
throw new Error("No root element found");
|
52
|
+
}
|
53
|
+
const demoComponents = neededImports;
|
54
|
+
const DemoApp = getDemoApp(demoComponents);
|
55
|
+
const app = /* @__PURE__ */ jsx(ErrorCatcher, { children: /* @__PURE__ */ jsx(DemoWrapper, { ...demoWrapperProps, children: /* @__PURE__ */ jsx(DemoApp, {}) }) });
|
56
|
+
ReactDOM.createRoot(root).render(
|
57
|
+
disableReactStrictMode ? app : /* @__PURE__ */ jsx(React.StrictMode, { children: app })
|
58
|
+
);
|
59
|
+
} catch (e) {
|
60
|
+
console.error(e);
|
61
|
+
const errorElement = document.createElement("div");
|
62
|
+
errorElement.innerHTML = `
|
82
63
|
<h1>Error</h1>
|
83
64
|
<p>${e.message}</p>
|
84
65
|
`;
|
85
|
-
|
66
|
+
document.body.appendChild(errorElement);
|
67
|
+
}
|
86
68
|
}
|
69
|
+
__name(init, "init");
|
70
|
+
init();
|
87
71
|
}
|
88
72
|
});
|
89
73
|
export default require_init();
|
package/dist/client/init.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.43.8_@types+node@20.16.6__@swc+core@1.3.57_@swc+helpers_iqa4vqpgdlzwuubzthdmdz7nfe/node_modules/tsup/assets/esm_shims.js","../../src/types.ts","../../src/client/
|
1
|
+
{"version":3,"sources":["../../../../../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.43.8_@types+node@20.16.6__@swc+core@1.3.57_@swc+helpers_iqa4vqpgdlzwuubzthdmdz7nfe/node_modules/tsup/assets/esm_shims.js","../../src/types.ts","../../src/client/init.tsx"],"sourcesContent":["// Shim globals in esm bundle\nimport { fileURLToPath } from 'url'\nimport path from 'path'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n","import type { Demo, Except } from '@knapsack/types';\nimport type { ComponentType } from 'react';\nimport type { RendererMetaBase } from '@knapsack/renderer-webpack-base/client';\n\nexport type Component = ComponentType<Record<string, unknown>>;\n\nexport type DemoWrapperProps = {\n children: React.ReactNode;\n // patternsUsed: {\n // patternId: string;\n // templateId: string;\n // demoId?: string;\n // }[];\n demo: Demo;\n patternId: string;\n templateId: string;\n};\n\n/**\n * Found as JSON in HTML `#ks-react-meta`\n */\nexport type KsReactMeta = {\n disableReactStrictMode: boolean;\n demo: Demo;\n demoWrapperProps: Except<DemoWrapperProps, 'children'>;\n} & RendererMetaBase<'DemoWrapper' | 'ErrorCatcher'>;\n\nexport const rendererMetaScriptTagId = 'ks-react-meta';\n\nexport type RendererMethods = {\n getDemoApp: (components: Record<string, Component>) => Component;\n};\n","/// <reference lib=\"dom\" />\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { getKsRendererClientUtils } from '@knapsack/renderer-webpack-base/client';\nimport {\n rendererMetaScriptTagId,\n type KsReactMeta,\n type Component,\n type RendererMethods,\n} from '../types';\n\nasync function init() {\n try {\n const {\n getNeededImports,\n getExtraImports,\n rendererMeta: { disableReactStrictMode, demoWrapperProps },\n rendererMethods: { getDemoApp },\n } = getKsRendererClientUtils<Component, KsReactMeta, RendererMethods>({\n rendererMetaScriptTagId,\n });\n const [neededImports, { DemoWrapper, ErrorCatcher }] = await Promise.all([\n getNeededImports(),\n getExtraImports(),\n ]);\n const root = document.getElementById('render-root');\n if (!root) {\n throw new Error('No root element found');\n }\n const demoComponents = neededImports;\n const DemoApp = getDemoApp(demoComponents);\n const app = (\n <ErrorCatcher>\n <DemoWrapper {...demoWrapperProps}>\n <DemoApp />\n </DemoWrapper>\n </ErrorCatcher>\n );\n\n ReactDOM.createRoot(root).render(\n disableReactStrictMode ? app : <React.StrictMode>{app}</React.StrictMode>,\n );\n } catch (e) {\n console.error(e);\n // create html element with error message\n const errorElement = document.createElement('div');\n errorElement.innerHTML = `\n <h1>Error</h1>\n <p>${e.message}</p>\n `;\n document.body.appendChild(errorElement);\n }\n}\n\ninit();\n"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACAA,IA2Ba;AA3Bb;AAAA;AAAA;AA2BO,IAAM,0BAA0B;AAAA;AAAA;;;AC1BvC,OAAO,WAAW;AAClB,OAAO,cAAc;AACrB,SAAS,gCAAgC;AA+B/B;AAlCV;AAAA;AAAA;AAIA;AAOA,mBAAe,OAAO;AACpB,UAAI;AACF,cAAM;AAAA,UACJ;AAAA,UACA;AAAA,UACA,cAAc,EAAE,wBAAwB,iBAAiB;AAAA,UACzD,iBAAiB,EAAE,WAAW;AAAA,QAChC,IAAI,yBAAkE;AAAA,UACpE;AAAA,QACF,CAAC;AACD,cAAM,CAAC,eAAe,EAAE,aAAa,aAAa,CAAC,IAAI,MAAM,QAAQ,IAAI;AAAA,UACvE,iBAAiB;AAAA,UACjB,gBAAgB;AAAA,QAClB,CAAC;AACD,cAAM,OAAO,SAAS,eAAe,aAAa;AAClD,YAAI,CAAC,MAAM;AACT,gBAAM,IAAI,MAAM,uBAAuB;AAAA,QACzC;AACA,cAAM,iBAAiB;AACvB,cAAM,UAAU,WAAW,cAAc;AACzC,cAAM,MACJ,oBAAC,gBACC,8BAAC,eAAa,GAAG,kBACf,8BAAC,WAAQ,GACX,GACF;AAGF,iBAAS,WAAW,IAAI,EAAE;AAAA,UACxB,yBAAyB,MAAM,oBAAC,MAAM,YAAN,EAAkB,eAAI;AAAA,QACxD;AAAA,MACF,SAAS,GAAG;AACV,gBAAQ,MAAM,CAAC;AAEf,cAAM,eAAe,SAAS,cAAc,KAAK;AACjD,qBAAa,YAAY;AAAA;AAAA,SAEpB,EAAE,OAAO;AAAA;AAEd,iBAAS,KAAK,YAAY,YAAY;AAAA,MACxC;AAAA,IACF;AAzCe;AA2Cf,SAAK;AAAA;AAAA;","names":[]}
|
package/dist/demo-wrapper.d.mts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { D as DemoWrapperProps } from './types-
|
2
|
+
import { D as DemoWrapperProps } from './types-CivTHEEo.mjs';
|
3
3
|
import '@knapsack/types';
|
4
|
-
import '@knapsack/app/types';
|
5
4
|
|
6
5
|
declare const DemoWrapper: ({ children }: DemoWrapperProps) => react_jsx_runtime.JSX.Element;
|
7
6
|
|
package/dist/demo-wrapper.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { D as DemoWrapperProps } from './types-
|
2
|
+
import { D as DemoWrapperProps } from './types-CivTHEEo.js';
|
3
3
|
import '@knapsack/types';
|
4
|
-
import '@knapsack/app/types';
|
5
4
|
|
6
5
|
declare const DemoWrapper: ({ children }: DemoWrapperProps) => react_jsx_runtime.JSX.Element;
|
7
6
|
|
package/dist/index.d.mts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import { RendererWebpackBase, Renderer,
|
1
|
+
import { RendererWebpackBase, Renderer, KsJsImportMap } from '@knapsack/renderer-webpack-base';
|
2
2
|
import { Renderable } from '@knapsack/app/renderers';
|
3
3
|
import { RendererId } from '@knapsack/types';
|
4
|
-
|
5
|
-
export { D as DemoWrapperProps } from './types-D2eCZXsg.mjs';
|
4
|
+
export { D as DemoWrapperProps } from './types-CivTHEEo.mjs';
|
6
5
|
|
7
6
|
declare class KnapsackReactRenderer extends RendererWebpackBase implements Renderable {
|
8
7
|
/**
|
@@ -27,12 +26,11 @@ declare class KnapsackReactRenderer extends RendererWebpackBase implements Rende
|
|
27
26
|
getMeta: Renderer['getMeta'];
|
28
27
|
changeCase: Renderer['changeCase'];
|
29
28
|
createWebpackConfig: RendererWebpackBase['createWebpackConfig'];
|
30
|
-
|
31
|
-
prepClientRenderResults({ usage, demoApp, imports: xImports, renderOptions: { pattern, template, demo }, }: {
|
29
|
+
prepClientRenderResults({ usage, demoApp, importMap, renderOptions: { demo, state, patternId, templateId }, }: {
|
32
30
|
usage: string;
|
33
31
|
demoApp: string;
|
34
|
-
|
35
|
-
renderOptions:
|
32
|
+
importMap: KsJsImportMap;
|
33
|
+
renderOptions: Parameters<Renderer['render']>[0];
|
36
34
|
}): ReturnType<Renderer['render']>;
|
37
35
|
render: Renderer['render'];
|
38
36
|
getUsageAndImports: RendererWebpackBase['getUsageAndImports'];
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import { RendererWebpackBase, Renderer,
|
1
|
+
import { RendererWebpackBase, Renderer, KsJsImportMap } from '@knapsack/renderer-webpack-base';
|
2
2
|
import { Renderable } from '@knapsack/app/renderers';
|
3
3
|
import { RendererId } from '@knapsack/types';
|
4
|
-
|
5
|
-
export { D as DemoWrapperProps } from './types-D2eCZXsg.js';
|
4
|
+
export { D as DemoWrapperProps } from './types-CivTHEEo.js';
|
6
5
|
|
7
6
|
declare class KnapsackReactRenderer extends RendererWebpackBase implements Renderable {
|
8
7
|
/**
|
@@ -27,12 +26,11 @@ declare class KnapsackReactRenderer extends RendererWebpackBase implements Rende
|
|
27
26
|
getMeta: Renderer['getMeta'];
|
28
27
|
changeCase: Renderer['changeCase'];
|
29
28
|
createWebpackConfig: RendererWebpackBase['createWebpackConfig'];
|
30
|
-
|
31
|
-
prepClientRenderResults({ usage, demoApp, imports: xImports, renderOptions: { pattern, template, demo }, }: {
|
29
|
+
prepClientRenderResults({ usage, demoApp, importMap, renderOptions: { demo, state, patternId, templateId }, }: {
|
32
30
|
usage: string;
|
33
31
|
demoApp: string;
|
34
|
-
|
35
|
-
renderOptions:
|
32
|
+
importMap: KsJsImportMap;
|
33
|
+
renderOptions: Parameters<Renderer['render']>[0];
|
36
34
|
}): ReturnType<Renderer['render']>;
|
37
35
|
render: Renderer['render'];
|
38
36
|
getUsageAndImports: RendererWebpackBase['getUsageAndImports'];
|