tooly-powerdoc-renderer 0.0.6 → 0.0.8
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/.babelrc +8 -0
- package/build/index.js +1 -585
- package/package.json +7 -1
- package/src/PageContent/index.ts +4 -0
- package/src/index.ts +1 -0
- package/webpack.config.ts +8 -8
- package/build/PageContent/Components/Columns.d.ts +0 -6
- package/build/PageContent/Components/Elements/Icons.d.ts +0 -3
- package/build/PageContent/Components/Elements/Popup.d.ts +0 -14
- package/build/PageContent/Components/Elements/Slider.d.ts +0 -18
- package/build/PageContent/Components/Elements/SliderArrows.d.ts +0 -17
- package/build/PageContent/Components/Elements/SliderPointers.d.ts +0 -14
- package/build/PageContent/Components/Elements/helpers.d.ts +0 -10
- package/build/PageContent/Components/Elements/useWindowSize.d.ts +0 -5
- package/build/PageContent/Components/EmbedScript.d.ts +0 -2
- package/build/PageContent/Components/Expander.d.ts +0 -8
- package/build/PageContent/Components/Gallery.d.ts +0 -2
- package/build/PageContent/Components/Heading.d.ts +0 -2
- package/build/PageContent/Components/InlineItems.d.ts +0 -7
- package/build/PageContent/Components/List.d.ts +0 -2
- package/build/PageContent/Components/MediaFiles.d.ts +0 -2
- package/build/PageContent/Components/Panel.d.ts +0 -6
- package/build/PageContent/Components/Paragraph.d.ts +0 -3
- package/build/PageContent/Components/Table.d.ts +0 -2
- package/build/PageContent/Components/Tiles.d.ts +0 -17
- package/build/PageContent/Components/common.d.ts +0 -10
- package/build/PageContent/PageComponents.d.ts +0 -18
- package/build/PageContent/PageContent.d.ts +0 -8
- package/build/PageContent/RenderingContext.d.ts +0 -166
- package/build/PageContent/index.d.ts +0 -5
- package/build/PageContent/types.d.ts +0 -51
- package/build/index.d.ts +0 -5
- package/build/index.js.LICENSE.txt +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tooly-powerdoc-renderer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Powerdoc renderer",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,10 +13,16 @@
|
|
|
13
13
|
"author": "aturok",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"devDependencies": {
|
|
16
|
+
"@babel/core": "^7.21.8",
|
|
17
|
+
"@babel/preset-env": "^7.21.5",
|
|
18
|
+
"@babel/preset-react": "^7.18.6",
|
|
19
|
+
"@babel/preset-typescript": "^7.21.5",
|
|
16
20
|
"@emotion/react": "^11.8.1",
|
|
17
21
|
"@emotion/styled": "^11.8.1",
|
|
18
22
|
"@types/react": "^17.0.39",
|
|
19
23
|
"@types/webpack": "^5.28.1",
|
|
24
|
+
"babel-loader": "^9.1.2",
|
|
25
|
+
"babel-plugin-emotion": "^11.0.0",
|
|
20
26
|
"react": "^17.0.2",
|
|
21
27
|
"rimraf": "^5.0.0",
|
|
22
28
|
"stream-browserify": "^3.0.0",
|
package/src/PageContent/index.ts
CHANGED
|
@@ -3,4 +3,8 @@ export * from './PageContent';
|
|
|
3
3
|
export * from './RenderingContext';
|
|
4
4
|
export * from './Components/InlineItems';
|
|
5
5
|
|
|
6
|
+
export * from './Components/Tiles';
|
|
7
|
+
export * from './Components/MediaFiles';
|
|
8
|
+
export * from './Components/Columns';
|
|
9
|
+
|
|
6
10
|
export type PageContentType = PageContentT;
|
package/src/index.ts
CHANGED
|
@@ -3,5 +3,6 @@ import { PageContent as PageContentT } from './PageContent/types';
|
|
|
3
3
|
export * from './PageContent/PageContent';
|
|
4
4
|
export * from './PageContent/RenderingContext';
|
|
5
5
|
export * from './PageContent/Components/InlineItems';
|
|
6
|
+
export * from './PageContent/Components/common';
|
|
6
7
|
|
|
7
8
|
export type PageContentType = PageContentT;
|
package/webpack.config.ts
CHANGED
|
@@ -41,17 +41,17 @@ const configuration = {
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
test: /\.ts$/,
|
|
44
|
-
loader: "
|
|
45
|
-
options: {
|
|
46
|
-
|
|
47
|
-
},
|
|
44
|
+
loader: "babel-loader",
|
|
45
|
+
// options: {
|
|
46
|
+
// configFile: "tsconfig.lib.json",
|
|
47
|
+
// },
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
test: /\.tsx$/,
|
|
51
|
-
loader: "
|
|
52
|
-
options: {
|
|
53
|
-
|
|
54
|
-
},
|
|
51
|
+
loader: "babel-loader",
|
|
52
|
+
// options: {
|
|
53
|
+
// configFile: "tsconfig.lib.json",
|
|
54
|
+
// },
|
|
55
55
|
exclude: /node_modules/,
|
|
56
56
|
},
|
|
57
57
|
],
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,18 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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>;
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,166 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
};
|
package/build/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/** @license React v16.13.1
|
|
8
|
-
* react-is.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/** @license React v17.0.2
|
|
17
|
-
* react-jsx-runtime.production.min.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/
|