@apolitical/component-library 4.1.0-beta.7 → 4.1.0

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,5 +1,7 @@
1
1
  import { DiscussionCreateContentFunction, IDiscussionContent } from './../../discussion';
2
2
  export interface IDiscussionForm {
3
+ /** A unique ID for the form */
4
+ id?: string;
3
5
  /** Information about the content being created/edited */
4
6
  content: IDiscussionContent;
5
7
  /** If the user has permission to interact with the form, e.g. if they're a member of the community */
@@ -47,5 +49,5 @@ export interface IDiscussionForm {
47
49
  /** The language to use for the text */
48
50
  locale?: string;
49
51
  }
50
- declare const Form: ({ content, userHasPermissions, meta, placeholder, maxLength, forceShow, functions, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
52
+ declare const Form: ({ id, content, userHasPermissions, meta, placeholder, maxLength, forceShow, functions, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
51
53
  export default Form;
@@ -0,0 +1,97 @@
1
+ export declare const html: {
2
+ paragraph: {
3
+ type: string;
4
+ children: {
5
+ text: string;
6
+ }[];
7
+ }[];
8
+ link: {
9
+ type: string;
10
+ children: ({
11
+ text: string;
12
+ type?: undefined;
13
+ link?: undefined;
14
+ children?: undefined;
15
+ } | {
16
+ type: string;
17
+ link: string;
18
+ children: {
19
+ text: string;
20
+ }[];
21
+ text?: undefined;
22
+ })[];
23
+ }[];
24
+ bold: {
25
+ type: string;
26
+ children: ({
27
+ text: string;
28
+ bold?: undefined;
29
+ } | {
30
+ bold: boolean;
31
+ text: string;
32
+ })[];
33
+ }[];
34
+ italic: {
35
+ type: string;
36
+ children: ({
37
+ text: string;
38
+ italic?: undefined;
39
+ } | {
40
+ italic: boolean;
41
+ text: string;
42
+ })[];
43
+ }[];
44
+ strikethrough: {
45
+ type: string;
46
+ children: ({
47
+ text: string;
48
+ strikeThrough?: undefined;
49
+ } | {
50
+ strikeThrough: boolean;
51
+ text: string;
52
+ })[];
53
+ }[];
54
+ blockquote: {
55
+ type: string;
56
+ children: {
57
+ type: string;
58
+ children: {
59
+ text: string;
60
+ }[];
61
+ }[];
62
+ }[];
63
+ ulList: {
64
+ type: string;
65
+ children: {
66
+ type: string;
67
+ children: {
68
+ type: string;
69
+ children: {
70
+ text: string;
71
+ }[];
72
+ }[];
73
+ }[];
74
+ }[];
75
+ olList: {
76
+ type: string;
77
+ children: {
78
+ type: string;
79
+ children: {
80
+ type: string;
81
+ children: {
82
+ text: string;
83
+ }[];
84
+ }[];
85
+ }[];
86
+ }[];
87
+ };
88
+ export declare const text: {
89
+ paragraph: string;
90
+ link: string;
91
+ bold: string;
92
+ italic: string;
93
+ strikethrough: string;
94
+ blockquote: string;
95
+ ulList: string;
96
+ olList: string;
97
+ };
@@ -0,0 +1,3 @@
1
+ import { Descendant } from 'slate';
2
+ declare const doSerialize: (value: Descendant[]) => string;
3
+ export default doSerialize;
@@ -1 +1,2 @@
1
1
  export { default as serialize } from './serialize';
2
+ export { default as doSerialize } from './do-serialize';
@@ -2,6 +2,7 @@ export * from './buttons';
2
2
  export * from './divider';
3
3
  export * from './image-container';
4
4
  export * from './link';
5
+ export * from './portal';
5
6
  export * from './progress-tracker';
6
7
  export * from './responsive-image';
7
8
  export * from './return-to-nav-button';
@@ -0,0 +1 @@
1
+ export { default as Portal } from './portal';
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ declare const Portal: ({ children }: {
3
+ children?: ReactNode;
4
+ }) => import("react").ReactPortal | null;
5
+ export default Portal;
package/helpers/intl.d.ts CHANGED
@@ -302,6 +302,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
302
302
  footer_legal_terms: string;
303
303
  footer_legal_cookie: string;
304
304
  footer_legal_accessibility: string;
305
+ footer_legal_ai: string;
305
306
  footer_legal_dataProtection: string;
306
307
  footer_legal_euDataProtection: string;
307
308
  footer_contact: string;