@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.
@@ -1,2 +1 @@
1
1
  export * from './progress-bar';
2
- export * from './cover-image-preview';
@@ -1,3 +1,3 @@
1
1
  import { type IPublishArticleFormProps } from './publish-article-form.types';
2
- declare const PublishArticleForm: ({ id, values, setShowImagePicker, functions, meta, gtm, }: IPublishArticleFormProps) => import("react/jsx-runtime").JSX.Element;
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;