From e2d8ff93c03085ad189537a62a22532b5fe3d58e Mon Sep 17 00:00:00 2001 From: Dylan Depass Date: Mon, 6 Mar 2023 11:22:31 -0500 Subject: [PATCH] fix: export PageTemplate --- src/PageTemplate.ts | 2 +- src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PageTemplate.ts b/src/PageTemplate.ts index a3c10af..3e09cb9 100644 --- a/src/PageTemplate.ts +++ b/src/PageTemplate.ts @@ -18,7 +18,7 @@ * @param decorate The decorate method of the component * @returns A fully decorated element for rendering in storybook */ -export function Template(loadPage: any, args: any, context: any, decorate: any) { +export function PageTemplate(loadPage: any, args: any, context: any, decorate: any) { const parser = new DOMParser(); const body = document.createElement('body'); const { parameters } = context; diff --git a/src/index.ts b/src/index.ts index cb86de8..bec7a45 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,10 +11,12 @@ */ import { BlockTemplate } from './BlockTemplate'; +import { PageTemplate } from './PageTemplate'; import { sourceDecorator } from './decorators/sourceDecorator'; // make it work with --isolatedModules export default {}; export { BlockTemplate as FranklinTemplate }; export { BlockTemplate as FranklinBlock }; +export { PageTemplate as FranklinPage }; export { sourceDecorator as FranklinSourceDecorator };