@knapsack/renderer-react 4.70.0--canary.3797.b249674.0 → 4.70.0--canary.4821.e250df4.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { RendererWebpackBase, Renderer, KsJsImport } from '@knapsack/renderer-webpack-base';
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
- import { KnapsackRenderParams } from '@knapsack/app/types';
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
  /**
@@ -24,15 +23,15 @@ declare class KnapsackReactRenderer extends RendererWebpackBase implements Rende
24
23
  id?: RendererId;
25
24
  });
26
25
  init: Renderer['init'];
26
+ hydrate: Renderer['hydrate'];
27
27
  getMeta: Renderer['getMeta'];
28
28
  changeCase: Renderer['changeCase'];
29
29
  createWebpackConfig: RendererWebpackBase['createWebpackConfig'];
30
- getJsImports: RendererWebpackBase['getJsImports'];
31
- prepClientRenderResults({ usage, demoApp, imports: xImports, renderOptions: { pattern, template, demo }, }: {
30
+ prepClientRenderResults({ usage, demoApp, importMap, renderOptions: { demo, state, patternId, templateId }, }: {
32
31
  usage: string;
33
32
  demoApp: string;
34
- imports: KsJsImport[];
35
- renderOptions: KnapsackRenderParams;
33
+ importMap: KsJsImportMap;
34
+ renderOptions: Parameters<Renderer['render']>[0];
36
35
  }): ReturnType<Renderer['render']>;
37
36
  render: Renderer['render'];
38
37
  getUsageAndImports: RendererWebpackBase['getUsageAndImports'];