@apolitical/component-library 6.6.22-1064.0 → 6.6.22
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/form/types/publish-article-form/components/index.d.ts +0 -1
- package/form/types/publish-article-form/publish-article-form.d.ts +1 -1
- package/form/types/publish-article-form/publish-article-form.types.d.ts +0 -15
- package/helpers/intl.d.ts +0 -3
- package/index.js +38 -38
- package/index.mjs +3381 -3437
- package/package.json +1 -1
- package/style.css +1 -1
- package/form/types/publish-article-form/components/cover-image-preview/cover-image-preview.d.ts +0 -15
- package/form/types/publish-article-form/components/cover-image-preview/index.d.ts +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type IPublishArticleFormProps } from './publish-article-form.types';
|
|
2
|
-
declare const PublishArticleForm: ({ id, values,
|
|
2
|
+
declare const PublishArticleForm: ({ id, values, functions, meta, gtm, }: IPublishArticleFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PublishArticleForm;
|
|
@@ -12,22 +12,11 @@ export declare enum ArticleTags {
|
|
|
12
12
|
TransportAndInfrastructure = "topic_TransportAndInfrastructure",
|
|
13
13
|
WorkingAndTheEconomy = "topic_WorkAndTheEconomy"
|
|
14
14
|
}
|
|
15
|
-
export interface ICoverImage {
|
|
16
|
-
title?: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
url: string;
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
color?: string;
|
|
22
|
-
authorName: string;
|
|
23
|
-
authorLink: string;
|
|
24
|
-
}
|
|
25
15
|
export interface IPublishArticleFormValues {
|
|
26
16
|
title: string;
|
|
27
17
|
subtitle: string;
|
|
28
18
|
body: string;
|
|
29
19
|
tags: ArticleTags[];
|
|
30
|
-
coverImage: ICoverImage;
|
|
31
20
|
}
|
|
32
21
|
export interface IPublishArticleFormProps {
|
|
33
22
|
/** A unique ID for the form */
|
|
@@ -42,8 +31,6 @@ export interface IPublishArticleFormProps {
|
|
|
42
31
|
body?: string;
|
|
43
32
|
/** The tags of the form */
|
|
44
33
|
tags?: ArticleTags[];
|
|
45
|
-
/** The cover image */
|
|
46
|
-
coverImage?: ICoverImage;
|
|
47
34
|
};
|
|
48
35
|
/** The functions to handle the form */
|
|
49
36
|
functions?: {
|
|
@@ -54,8 +41,6 @@ export interface IPublishArticleFormProps {
|
|
|
54
41
|
/** A function to call when there's an error with the form */
|
|
55
42
|
onFailure?: () => void;
|
|
56
43
|
};
|
|
57
|
-
/** Toggle the image picker */
|
|
58
|
-
setShowImagePicker: (showImagePicker: boolean) => void;
|
|
59
44
|
/** Metadata about the form */
|
|
60
45
|
meta?: {
|
|
61
46
|
/** Whether the form is rendered in an overlay */
|
package/helpers/intl.d.ts
CHANGED
|
@@ -295,7 +295,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
295
295
|
publishArticleForm_body_label: string;
|
|
296
296
|
publishArticleForm_body_placeholder: string;
|
|
297
297
|
publishArticleForm_tags_label: string;
|
|
298
|
-
publishArticleForm_cover_image_label: string;
|
|
299
298
|
publishArticleForm__tags_topic_CitiesAndLocalGovernment: string;
|
|
300
299
|
publishArticleForm__tags_topic_Climate: string;
|
|
301
300
|
publishArticleForm__tags_topic_DigitalAndData: string;
|
|
@@ -319,8 +318,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
319
318
|
publishArticleForm_error_underMinLength: string;
|
|
320
319
|
publishArticleForm_error_loggedOut: string;
|
|
321
320
|
publishArticleForm_progressBar: string;
|
|
322
|
-
publishArticleForm_selectImage_button: string;
|
|
323
|
-
publishArticleForm_replaceImage_button: string;
|
|
324
321
|
ratings_text: string;
|
|
325
322
|
ratings_stars: string;
|
|
326
323
|
ratings_low: string;
|