tooly-powerdoc-renderer 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/PageContent/Components/Columns.d.ts +7 -0
- package/build/PageContent/Components/Columns.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/Icons.d.ts +4 -0
- package/build/PageContent/Components/Elements/Icons.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/Popup.d.ts +15 -0
- package/build/PageContent/Components/Elements/Popup.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/Slider.d.ts +19 -0
- package/build/PageContent/Components/Elements/Slider.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/SliderArrows.d.ts +18 -0
- package/build/PageContent/Components/Elements/SliderArrows.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/SliderPointers.d.ts +15 -0
- package/build/PageContent/Components/Elements/SliderPointers.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/helpers.d.ts +11 -0
- package/build/PageContent/Components/Elements/helpers.d.ts.map +1 -0
- package/build/PageContent/Components/Elements/useWindowSize.d.ts +6 -0
- package/build/PageContent/Components/Elements/useWindowSize.d.ts.map +1 -0
- package/build/PageContent/Components/EmbedScript.d.ts +3 -0
- package/build/PageContent/Components/EmbedScript.d.ts.map +1 -0
- package/build/PageContent/Components/Expander.d.ts +9 -0
- package/build/PageContent/Components/Expander.d.ts.map +1 -0
- package/build/PageContent/Components/Gallery.d.ts +3 -0
- package/build/PageContent/Components/Gallery.d.ts.map +1 -0
- package/build/PageContent/Components/Heading.d.ts +3 -0
- package/build/PageContent/Components/Heading.d.ts.map +1 -0
- package/build/PageContent/Components/InlineItems.d.ts +8 -0
- package/build/PageContent/Components/InlineItems.d.ts.map +1 -0
- package/build/PageContent/Components/List.d.ts +3 -0
- package/build/PageContent/Components/List.d.ts.map +1 -0
- package/build/PageContent/Components/MediaFiles.d.ts +3 -0
- package/build/PageContent/Components/MediaFiles.d.ts.map +1 -0
- package/build/PageContent/Components/Panel.d.ts +7 -0
- package/build/PageContent/Components/Panel.d.ts.map +1 -0
- package/build/PageContent/Components/Paragraph.d.ts +4 -0
- package/build/PageContent/Components/Paragraph.d.ts.map +1 -0
- package/build/PageContent/Components/Table.d.ts +3 -0
- package/build/PageContent/Components/Table.d.ts.map +1 -0
- package/build/PageContent/Components/Tiles.d.ts +18 -0
- package/build/PageContent/Components/Tiles.d.ts.map +1 -0
- package/build/PageContent/Components/common.d.ts +11 -0
- package/build/PageContent/Components/common.d.ts.map +1 -0
- package/build/PageContent/PageComponents.d.ts +19 -0
- package/build/PageContent/PageComponents.d.ts.map +1 -0
- package/build/PageContent/PageContent.d.ts +9 -0
- package/build/PageContent/PageContent.d.ts.map +1 -0
- package/build/PageContent/RenderingContext.d.ts +167 -0
- package/build/PageContent/RenderingContext.d.ts.map +1 -0
- package/build/PageContent/index.d.ts +9 -0
- package/build/PageContent/index.d.ts.map +1 -0
- package/build/PageContent/types.d.ts +52 -0
- package/build/PageContent/types.d.ts.map +1 -0
- package/build/index.d.ts +7 -0
- package/build/index.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContentBlock, PageContent as PageContentT } from '../types';
|
|
2
|
+
interface Props extends ContentBlock {
|
|
3
|
+
columns_content?: PageContentT[];
|
|
4
|
+
}
|
|
5
|
+
export declare const Columns: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=Columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Columns.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAgCrE,UAAU,KAAM,SAAQ,YAAY;IAClC,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,OAAO,UAAW,KAAK,qDAcnC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IconSettings } from "../../types";
|
|
2
|
+
export declare const maskIconCss: (img: string, color: string, w: number, h: number) => import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const maskIconCssFromSettings: (icon: IconSettings, color: string, scale?: number) => import("@emotion/utils").SerializedStyles;
|
|
4
|
+
//# sourceMappingURL=Icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/Icons.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,WAAW,QAAS,MAAM,SAAS,MAAM,KAAK,MAAM,KAAK,MAAM,8CAQ3E,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,YAAY,SAAS,MAAM,UAAS,MAAM,8CACpB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
close: () => void;
|
|
5
|
+
noCloseButton?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const PopupWrapperOut: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: React.ElementType<any> | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
isActive?: boolean | undefined;
|
|
12
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export declare const Popup: (props: React.PropsWithChildren<Props>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=Popup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAuCD,eAAO,MAAM,eAAe;;;;;qFAyB3B,CAAC;AAiBF,eAAO,MAAM,KAAK,UAAW,MAAM,iBAAiB,CAAC,KAAK,CAAC,qDAc1D,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IRenderingContextTheme } from '../../RenderingContext';
|
|
3
|
+
export interface SliderItemCssProps {
|
|
4
|
+
windowWidth?: number;
|
|
5
|
+
nItems: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const sliderItemCss: (props: SliderItemCssProps, theme: IRenderingContextTheme) => import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const sliderItemCssNoFullWidth: (props: SliderItemCssProps, theme: IRenderingContextTheme) => import("@emotion/utils").SerializedStyles;
|
|
9
|
+
interface Props<T> {
|
|
10
|
+
items?: T[];
|
|
11
|
+
gap?: string;
|
|
12
|
+
ItemComponent: React.ComponentType<T>;
|
|
13
|
+
}
|
|
14
|
+
export declare const Slider: <T extends {
|
|
15
|
+
title: string;
|
|
16
|
+
_id: string | number;
|
|
17
|
+
}>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAkC,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAYhG,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAaD,eAAO,MAAM,aAAa,UAAW,kBAAkB,SAAS,sBAAsB,8CAyBrF,CAAA;AAED,eAAO,MAAM,wBAAwB,UAAW,kBAAkB,SAAS,sBAAsB,8CAIhG,CAAA;AA6FD,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,MAAM;WAAuB,MAAM;SAAO,MAAM,GAAG,MAAM;uEAgCrE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Arrow: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
direction: "backward" | "forward";
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
8
|
+
export declare const ArrowsWrapper: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
interface Props {
|
|
13
|
+
goNext: () => void;
|
|
14
|
+
goPrev: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const SliderArrows: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=SliderArrows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderArrows.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/SliderArrows.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,KAAK;;;;eAAyB,UAAU,GAAG,SAAS;qHAKhE,CAAC;AAGF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,UAAW,KAAK,qDAOxC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SliderPointersWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
interface Props {
|
|
7
|
+
items: {
|
|
8
|
+
title?: string;
|
|
9
|
+
}[];
|
|
10
|
+
activeItemIdx: number;
|
|
11
|
+
setActiveItemIdx: (idx: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const SliderPointers: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=SliderPointers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderPointers.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/SliderPointers.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,qBAAqB;;;yGAYjC,CAAC;AAEF,UAAU,KAAK;IACb,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,qDAW1C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const isExternalLink: (link: string | undefined) => boolean | "" | undefined;
|
|
2
|
+
export declare const createLinkProps: (link: string | undefined, forceNewTab?: boolean) => {
|
|
3
|
+
href: string | undefined;
|
|
4
|
+
target: string;
|
|
5
|
+
rel: string;
|
|
6
|
+
} | {
|
|
7
|
+
href: string | undefined;
|
|
8
|
+
target?: undefined;
|
|
9
|
+
rel?: undefined;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,SAAU,MAAM,GAAG,SAAS,6BAAoC,CAAC;AAE5F,eAAO,MAAM,eAAe,SAAU,MAAM,GAAG,SAAS,gBAAgB,OAAO;;;;;;;;CAE7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../../../src/PageContent/Components/Elements/useWindowSize.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;WAC8B,MAAM;YAAU,MAAM;iBAAe,MAAM;CAuBlG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbedScript.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/EmbedScript.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,WAAW,UAAW,YAAY,qDAK9C,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContentBlock, PageContent as PageContentT } from '../types';
|
|
2
|
+
interface Props extends ContentBlock {
|
|
3
|
+
content?: PageContentT;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Expander: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Expander.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Expander.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Expander.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAKrE,UAAU,KAAM,SAAQ,YAAY;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgED,eAAO,MAAM,QAAQ,UAAW,KAAK,qDAYpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Gallery.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAwExC,eAAO,MAAM,OAAO,UAAW,YAAY,qDAyC1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,OAAO,UAAW,YAAY,qDAO1C,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Leaf } from '../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: Leaf[];
|
|
4
|
+
}
|
|
5
|
+
export declare const LeafElement: (props: Leaf) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const InlineItems: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=InlineItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineItems.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/InlineItems.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhC,UAAU,KAAK;IACb,QAAQ,EAAE,IAAI,EAAE,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,UAAW,IAAI,qDA8BtC,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,qDAMvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/List.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,IAAI,UAAW,YAAY,qDAcvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaFiles.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/MediaFiles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,YAAY,EAAE,MAAM,UAAU,CAAC;AAgBxD,eAAO,MAAM,UAAU,UAAW,YAAY,qDAc7C,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContentBlock, PageContent as PageContentT } from '../types';
|
|
2
|
+
interface Props extends ContentBlock {
|
|
3
|
+
content?: PageContentT;
|
|
4
|
+
}
|
|
5
|
+
export declare const Panel: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=Panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAsCrE,UAAU,KAAM,SAAQ,YAAY;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,KAAK,UAAW,KAAK,qDAIjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Paragraph.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,gBAAgB,aAAc,GAAG,EAAE,QACiE,CAAC;AAElH,eAAO,MAAM,SAAS,UAAW,YAAY,4DAa5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAQ,MAAM,UAAU,CAAC;AA2E9C,eAAO,MAAM,KAAK,UAAW,YAAY,qDAkBxC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ContentBlock } from '../types';
|
|
2
|
+
export interface Tile {
|
|
3
|
+
id: string;
|
|
4
|
+
image_url?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
content?: any;
|
|
7
|
+
link?: string;
|
|
8
|
+
}
|
|
9
|
+
interface Props extends ContentBlock {
|
|
10
|
+
noArrows?: boolean;
|
|
11
|
+
tiles?: Tile[];
|
|
12
|
+
columns?: number;
|
|
13
|
+
link_label?: string;
|
|
14
|
+
no_carousel?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Tiles: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Tiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tiles.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/Tiles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA+KxC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,KAAM,SAAQ,YAAY;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,KAAK,UAAW,KAAK,qDA2DjC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IRenderingContextTheme } from "../RenderingContext";
|
|
3
|
+
import { ContentBlock, CustomField } from "../types";
|
|
4
|
+
export declare const extractCustomBlockFields: (block: ContentBlock) => Record<string, string>;
|
|
5
|
+
export declare const composeCustomBlockFields: (fields: Record<string, any>) => Record<string, CustomField>;
|
|
6
|
+
export declare const OccupyFreeSpace: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const cardStyle: (theme: IRenderingContextTheme) => import("@emotion/utils").SerializedStyles;
|
|
11
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/PageContent/Components/common.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,wBAAwB,UAAW,YAAY,2BAG3D,CAAA;AAED,eAAO,MAAM,wBAAwB,WAAY,OAAO,MAAM,EAAE,GAAG,CAAC,KAAG,OAAO,MAAM,EAAE,WAAW,CAGhG,CAAA;AAED,eAAO,MAAM,eAAe;;;yGAE3B,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,sBAAsB,8CAItD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContentBlock } from "./types";
|
|
3
|
+
export declare const CustomFieldsBlockType = "custom_fields_block";
|
|
4
|
+
export declare const BlockTypeField = "block_type";
|
|
5
|
+
export declare const createEmptyCustomBlockComponent: (customType: string) => {
|
|
6
|
+
type: string;
|
|
7
|
+
fields: {
|
|
8
|
+
a: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
children: {
|
|
14
|
+
text: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
export type PageComponentType = React.ComponentType<ContentBlock>;
|
|
18
|
+
export declare const PageComponents: Record<string, PageComponentType>;
|
|
19
|
+
//# sourceMappingURL=PageComponents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageComponents.d.ts","sourceRoot":"","sources":["../../src/PageContent/PageComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAYvC,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,eAAO,MAAM,cAAc,eAAe,CAAC;AAG3C,eAAO,MAAM,+BAA+B,eAAgB,MAAM;;;;;;;;;;;CAIhE,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAY5D,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PageContent as PageContentT } from './types';
|
|
2
|
+
import { PageComponentType } from './PageComponents';
|
|
3
|
+
interface Props {
|
|
4
|
+
content?: PageContentT;
|
|
5
|
+
customComponents?: Record<string, PageComponentType>;
|
|
6
|
+
}
|
|
7
|
+
export declare const PageContent: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=PageContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageContent.d.ts","sourceRoot":"","sources":["../../src/PageContent/PageContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,WAAW,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAyD,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG5G,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CACtD;AAkBD,eAAO,MAAM,WAAW,UAAW,KAAK,qDAoBvC,CAAA"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import React, { ComponentType, PropsWithChildren } from "react";
|
|
2
|
+
import { PageComponentType } from "./PageComponents";
|
|
3
|
+
import { Leaf, MediaFile } from "./types";
|
|
4
|
+
export declare const DefaultSizes: {
|
|
5
|
+
screen: {
|
|
6
|
+
s: number;
|
|
7
|
+
sm: number;
|
|
8
|
+
m: number;
|
|
9
|
+
l: number;
|
|
10
|
+
};
|
|
11
|
+
sides: {
|
|
12
|
+
l: string;
|
|
13
|
+
m: string;
|
|
14
|
+
s: string;
|
|
15
|
+
};
|
|
16
|
+
zIndex: {
|
|
17
|
+
popup: number;
|
|
18
|
+
};
|
|
19
|
+
card: {
|
|
20
|
+
shadow: string;
|
|
21
|
+
borderRadius: string;
|
|
22
|
+
};
|
|
23
|
+
slider: {
|
|
24
|
+
gap: {
|
|
25
|
+
s: string;
|
|
26
|
+
m: string;
|
|
27
|
+
l: string;
|
|
28
|
+
};
|
|
29
|
+
disableFullWidth: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const DefaultMediaBreakpoints: {
|
|
33
|
+
s: string;
|
|
34
|
+
sm: string;
|
|
35
|
+
m: string;
|
|
36
|
+
l: string;
|
|
37
|
+
xl: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const DefaultTheme: {
|
|
40
|
+
colors: {
|
|
41
|
+
primary: string;
|
|
42
|
+
secondary: string;
|
|
43
|
+
background: string;
|
|
44
|
+
panelBackground: string;
|
|
45
|
+
borderInPanel: string;
|
|
46
|
+
border: string;
|
|
47
|
+
boxShadow: string;
|
|
48
|
+
popupOverlay: string;
|
|
49
|
+
};
|
|
50
|
+
icons: {
|
|
51
|
+
drop_down: {
|
|
52
|
+
icon: string;
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
};
|
|
56
|
+
arrow_left: {
|
|
57
|
+
icon: string;
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
};
|
|
61
|
+
arrow_right_long: {
|
|
62
|
+
icon: string;
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
close: {
|
|
67
|
+
icon: string;
|
|
68
|
+
width: number;
|
|
69
|
+
height: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export interface IRenderingContext {
|
|
74
|
+
device: typeof DefaultMediaBreakpoints;
|
|
75
|
+
sizes: typeof DefaultSizes;
|
|
76
|
+
theme: typeof DefaultTheme;
|
|
77
|
+
mediaFilePath: (mf: MediaFile) => string;
|
|
78
|
+
customComponents?: Record<string, PageComponentType>;
|
|
79
|
+
customLeaf?: ComponentType<Leaf>;
|
|
80
|
+
}
|
|
81
|
+
export declare const DefaultRenderingContext: {
|
|
82
|
+
device: {
|
|
83
|
+
s: string;
|
|
84
|
+
sm: string;
|
|
85
|
+
m: string;
|
|
86
|
+
l: string;
|
|
87
|
+
xl: string;
|
|
88
|
+
};
|
|
89
|
+
sizes: {
|
|
90
|
+
screen: {
|
|
91
|
+
s: number;
|
|
92
|
+
sm: number;
|
|
93
|
+
m: number;
|
|
94
|
+
l: number;
|
|
95
|
+
};
|
|
96
|
+
sides: {
|
|
97
|
+
l: string;
|
|
98
|
+
m: string;
|
|
99
|
+
s: string;
|
|
100
|
+
};
|
|
101
|
+
zIndex: {
|
|
102
|
+
popup: number;
|
|
103
|
+
};
|
|
104
|
+
card: {
|
|
105
|
+
shadow: string;
|
|
106
|
+
borderRadius: string;
|
|
107
|
+
};
|
|
108
|
+
slider: {
|
|
109
|
+
gap: {
|
|
110
|
+
s: string;
|
|
111
|
+
m: string;
|
|
112
|
+
l: string;
|
|
113
|
+
};
|
|
114
|
+
disableFullWidth: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
theme: {
|
|
118
|
+
colors: {
|
|
119
|
+
primary: string;
|
|
120
|
+
secondary: string;
|
|
121
|
+
background: string;
|
|
122
|
+
panelBackground: string;
|
|
123
|
+
borderInPanel: string;
|
|
124
|
+
border: string;
|
|
125
|
+
boxShadow: string;
|
|
126
|
+
popupOverlay: string;
|
|
127
|
+
};
|
|
128
|
+
icons: {
|
|
129
|
+
drop_down: {
|
|
130
|
+
icon: string;
|
|
131
|
+
width: number;
|
|
132
|
+
height: number;
|
|
133
|
+
};
|
|
134
|
+
arrow_left: {
|
|
135
|
+
icon: string;
|
|
136
|
+
width: number;
|
|
137
|
+
height: number;
|
|
138
|
+
};
|
|
139
|
+
arrow_right_long: {
|
|
140
|
+
icon: string;
|
|
141
|
+
width: number;
|
|
142
|
+
height: number;
|
|
143
|
+
};
|
|
144
|
+
close: {
|
|
145
|
+
icon: string;
|
|
146
|
+
width: number;
|
|
147
|
+
height: number;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
mediaFilePath: (mf: MediaFile) => string;
|
|
152
|
+
};
|
|
153
|
+
export type IRenderingContextTheme = IRenderingContext["theme"] & {
|
|
154
|
+
device: typeof DefaultMediaBreakpoints;
|
|
155
|
+
sizes: typeof DefaultSizes;
|
|
156
|
+
};
|
|
157
|
+
export declare const RenderingContext: React.Context<IRenderingContext>;
|
|
158
|
+
export declare const useRenderingContext: () => IRenderingContext;
|
|
159
|
+
interface ProviderProps {
|
|
160
|
+
settings?: Partial<Pick<IRenderingContext, "sizes" | "theme" | "mediaFilePath">>;
|
|
161
|
+
customComponents?: Record<string, PageComponentType>;
|
|
162
|
+
customLeaf?: ComponentType<Leaf>;
|
|
163
|
+
}
|
|
164
|
+
export declare const RenderingContextProvider: (props: PropsWithChildren<ProviderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
165
|
+
export declare const castTheme: (theme: any) => IRenderingContextTheme;
|
|
166
|
+
export {};
|
|
167
|
+
//# sourceMappingURL=RenderingContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderingContext.d.ts","sourceRoot":"","sources":["../../src/PageContent/RenderingContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAA;AAWD,eAAO,MAAM,uBAAuB;;;;;;CAA8C,CAAC;AAGnF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBxB,CAAA;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,OAAO,uBAAuB,CAAC;IACvC,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,aAAa,EAAE,CAAC,EAAE,EAAE,SAAS,KAAK,MAAM,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAId,SAAS;CAC9B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,OAAO,CAAC,GAAG;IAChE,MAAM,EAAE,OAAO,uBAAuB,CAAC;IACvC,KAAK,EAAE,OAAO,YAAY,CAAC;CAC5B,CAAA;AAED,eAAO,MAAM,gBAAgB,kCAAkE,CAAC;AAEhG,eAAO,MAAM,mBAAmB,yBAAqC,CAAC;AAEtE,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC;IACjF,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,wBAAwB,UAAW,kBAAkB,aAAa,CAAC,qDAsB/E,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,GAAG,2BAAoC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PageContent as PageContentT } from './types';
|
|
2
|
+
export * from './PageContent';
|
|
3
|
+
export * from './RenderingContext';
|
|
4
|
+
export * from './Components/InlineItems';
|
|
5
|
+
export * from './Components/Tiles';
|
|
6
|
+
export * from './Components/MediaFiles';
|
|
7
|
+
export * from './Components/Columns';
|
|
8
|
+
export type PageContentType = PageContentT;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/PageContent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACtD,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AAErC,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface CustomField {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MediaFile {
|
|
7
|
+
filename: string;
|
|
8
|
+
space_id: string;
|
|
9
|
+
contenttype: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IconSettings {
|
|
12
|
+
icon: string;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}
|
|
16
|
+
export interface InlineMarks {
|
|
17
|
+
bold?: boolean;
|
|
18
|
+
italic?: boolean;
|
|
19
|
+
underline?: boolean;
|
|
20
|
+
strikethrough?: boolean;
|
|
21
|
+
highlight?: boolean;
|
|
22
|
+
code?: boolean;
|
|
23
|
+
_class?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface Leaf extends InlineMarks {
|
|
26
|
+
text: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ContentBlockBase {
|
|
31
|
+
type: string;
|
|
32
|
+
children: Leaf[];
|
|
33
|
+
fields?: Record<string, CustomField>;
|
|
34
|
+
files?: MediaFile[];
|
|
35
|
+
_class?: string;
|
|
36
|
+
align?: React.CSSProperties["textAlign"];
|
|
37
|
+
}
|
|
38
|
+
export declare const AlignToJustify: {
|
|
39
|
+
center: string;
|
|
40
|
+
left: string;
|
|
41
|
+
right: string;
|
|
42
|
+
justify: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const alignToJustify: (align?: string) => string;
|
|
45
|
+
export type ContentBlock = ContentBlockBase & Record<string, any>;
|
|
46
|
+
export interface PageContent {
|
|
47
|
+
blocks: ContentBlock[];
|
|
48
|
+
}
|
|
49
|
+
export type NotFound = {
|
|
50
|
+
not_found: true;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/PageContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,IAAI,EAAE,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,cAAc;;;;;CAK1B,CAAA;AAED,eAAO,MAAM,cAAc,WAAY,MAAM,WAAuF,CAAC;AAErI,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,QAAQ,GAAG;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,CAAC"}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PageContent as PageContentT } from './PageContent/types';
|
|
2
|
+
export * from './PageContent/PageContent';
|
|
3
|
+
export * from './PageContent/RenderingContext';
|
|
4
|
+
export * from './PageContent/Components/InlineItems';
|
|
5
|
+
export * from './PageContent/Components/common';
|
|
6
|
+
export type PageContentType = PageContentT;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAElE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tooly-powerdoc-renderer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Powerdoc renderer",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "npm run webpack",
|
|
7
|
+
"build": "npm run webpack && npm run declarations",
|
|
8
8
|
"webpack": "rimraf ./build && webpack --config ./webpack.config.ts",
|
|
9
9
|
"prepublishOnly": "npm run build --production",
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"declarations": "tsc --declaration --project tsconfig.lib.json --outDir build/ --emitDeclarationOnly --declarationMap"
|
|
11
12
|
},
|
|
12
13
|
"types": "./build/index.d.ts",
|
|
13
14
|
"author": "aturok",
|