@camunda/camunda-composite-components 0.0.41 → 0.0.42

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.
Files changed (64) hide show
  1. package/README.md +2 -1
  2. package/lib/esm/api/api.d.ts +19 -19
  3. package/lib/esm/api/api.js +65 -67
  4. package/lib/esm/api/endpoints.const.d.ts +12 -12
  5. package/lib/esm/api/endpoints.const.js +24 -25
  6. package/lib/esm/api/jwt.utils.d.ts +3 -3
  7. package/lib/esm/api/jwt.utils.js +23 -21
  8. package/lib/esm/api/notifications.d.ts +64 -35
  9. package/lib/esm/api/notifications.js +168 -159
  10. package/lib/esm/components/c3-empty-state/c3-empty-state.d.ts +8 -2
  11. package/lib/esm/components/c3-empty-state/c3-empty-state.js +58 -17
  12. package/lib/esm/components/c3-empty-state/c3-empty-state.types.d.ts +19 -19
  13. package/lib/esm/components/c3-empty-state/c3-empty-state.types.js +1 -1
  14. package/lib/esm/components/c3-navigation/c3-info-button.d.ts +3 -3
  15. package/lib/esm/components/c3-navigation/c3-info-button.js +13 -5
  16. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +5 -5
  17. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +21 -8
  18. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +5 -5
  19. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +1 -1
  20. package/lib/esm/components/c3-navigation/c3-navigation-appbar.d.ts +3 -3
  21. package/lib/esm/components/c3-navigation/c3-navigation-appbar.js +157 -68
  22. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +5 -5
  23. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +58 -37
  24. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +9 -9
  25. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +56 -33
  26. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +8 -8
  27. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +114 -54
  28. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +70 -60
  29. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +1 -1
  30. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +4 -4
  31. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +142 -88
  32. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.d.ts +5 -5
  33. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.js +105 -51
  34. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +26 -24
  35. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +38 -25
  36. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +5 -5
  37. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +125 -43
  38. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.d.ts +6 -1
  39. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.js +4 -4
  40. package/lib/esm/components/c3-navigation/c3-navigation.d.ts +13 -2
  41. package/lib/esm/components/c3-navigation/c3-navigation.js +210 -88
  42. package/lib/esm/components/c3-navigation/c3-navigation.types.d.ts +69 -63
  43. package/lib/esm/components/c3-navigation/c3-navigation.types.js +1 -1
  44. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +30 -13
  45. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.js +114 -70
  46. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +29 -27
  47. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +118 -90
  48. package/lib/esm/components/c3-navigation/helpers.d.ts +5 -3
  49. package/lib/esm/components/c3-navigation/helpers.js +53 -49
  50. package/lib/esm/components/c3-navigation/index.d.ts +4 -2
  51. package/lib/esm/components/c3-navigation/index.js +3 -3
  52. package/lib/esm/components/c3-navigation/story-helpers.d.ts +23 -18
  53. package/lib/esm/components/c3-navigation/story-helpers.js +189 -186
  54. package/lib/esm/components/c3-navigation/story-templates.d.ts +8 -8
  55. package/lib/esm/components/c3-navigation/story-templates.js +66 -33
  56. package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.d.ts +20 -16
  57. package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.js +9 -4
  58. package/lib/esm/icons/c3-icons.d.ts +7 -5
  59. package/lib/esm/icons/c3-icons.js +82 -14
  60. package/lib/esm/icons/c3-icons.types.d.ts +1 -1
  61. package/lib/esm/icons/c3-icons.types.js +1 -1
  62. package/lib/esm/index.d.ts +14 -9
  63. package/lib/esm/index.js +4 -4
  64. package/package.json +2 -1
@@ -1,25 +1,30 @@
1
1
  /// <reference types="react" />
2
- import { C3NavigationAppProps, C3NavigationElementProps, C3NavigationNavBarProps, C3NavigationProps } from "./c3-navigation.types";
3
- export declare function createAppProps(): C3NavigationAppProps;
2
+ import {
3
+ C3NavigationAppProps,
4
+ C3NavigationElementProps,
5
+ C3NavigationNavBarProps,
6
+ C3NavigationProps,
7
+ } from "./c3-navigation.types"
8
+ export declare function createAppProps(): C3NavigationAppProps
4
9
  export declare function createAppBarProps(options?: {
5
- isOpen?: boolean;
6
- elements?: Array<C3NavigationElementProps>;
7
- }): C3NavigationProps["appBar"];
10
+ isOpen?: boolean
11
+ elements?: Array<C3NavigationElementProps>
12
+ }): C3NavigationProps["appBar"]
8
13
  export declare function createNavBarBarProps(options?: {
9
- elements?: C3NavigationNavBarProps["elements"];
10
- }): C3NavigationNavBarProps;
14
+ elements?: C3NavigationNavBarProps["elements"]
15
+ }): C3NavigationNavBarProps
11
16
  export declare function createInfoSideBarProps(options: {
12
- isOpen: boolean;
13
- preceedingDividerOn2ndElement?: boolean;
14
- }): C3NavigationProps["infoSideBar"];
17
+ isOpen: boolean
18
+ preceedingDividerOn2ndElement?: boolean
19
+ }): C3NavigationProps["infoSideBar"]
15
20
  export declare function createOrgSideBarProps(options: {
16
- isOpen: boolean;
17
- orgCount: number;
18
- }): C3NavigationProps["orgSideBar"];
21
+ isOpen: boolean
22
+ orgCount: number
23
+ }): C3NavigationProps["orgSideBar"]
19
24
  export declare function createUserSideBarProps(options: {
20
- isOpen: boolean;
21
- customSection?: JSX.Element;
22
- }): C3NavigationProps["userSideBar"];
25
+ isOpen: boolean
26
+ customSection?: JSX.Element
27
+ }): C3NavigationProps["userSideBar"]
23
28
  export declare function createNotificationSideBarProps(options: {
24
- isOpen: boolean;
25
- }): C3NavigationProps["notificationSideBar"];
29
+ isOpen: boolean
30
+ }): C3NavigationProps["notificationSideBar"]
@@ -1,200 +1,203 @@
1
- import React from "react";
2
- import { Link } from "@carbon/react";
3
- import { ArrowRight } from "@carbon/react/icons";
1
+ import React from "react"
2
+ import { Link } from "@carbon/react"
3
+ import { ArrowRight } from "@carbon/react/icons"
4
4
  export function createAppProps() {
5
- return {
6
- name: "Console",
7
- ariaLabel: "Camunda Console",
8
- routeProps: {
9
- href: "https://www.camunda.com",
10
- },
11
- };
5
+ return {
6
+ name: "Console",
7
+ ariaLabel: "Camunda Console",
8
+ routeProps: {
9
+ href: "https://www.camunda.com",
10
+ },
11
+ }
12
12
  }
13
13
  export function createAppBarProps(options = {}) {
14
- return {
15
- isOpen: Boolean(options?.isOpen),
16
- elements: options?.elements ?? [
17
- {
18
- key: "console",
19
- label: "Console",
20
- active: true,
21
- },
22
- {
23
- key: "modeler",
24
- label: "Modeler",
25
- active: false,
26
- routeProps: { onClick: () => console.log("Redirecting to Modeler...") },
27
- },
28
- {
29
- key: "operate",
30
- label: "Operate",
31
- active: false,
32
- target: "_blank",
33
- href: "https://camunda.com/",
34
- },
35
- {
36
- key: "tasklist",
37
- label: "Task List",
38
- active: false,
39
- subElements: [
40
- {
41
- key: "cluster-a",
42
- label: "Cluster A",
43
- href: "https://camunda.com/",
44
- target: "_blank",
45
- },
46
- {
47
- key: "cluster-b",
48
- label: "Cluster B",
49
- onClick: () => console.log("Redirecting to Tasklist..."),
50
- },
51
- {
52
- key: "cluster-c",
53
- label: "Cluster C",
54
- routeProps: {
55
- onClick: () => console.log("Redirecting to Tasklist..."),
56
- },
57
- },
58
- ],
59
- },
60
- ],
61
- };
14
+ return {
15
+ isOpen: Boolean(options?.isOpen),
16
+ elements: options?.elements ?? [
17
+ {
18
+ key: "console",
19
+ label: "Console",
20
+ active: true,
21
+ },
22
+ {
23
+ key: "modeler",
24
+ label: "Modeler",
25
+ active: false,
26
+ routeProps: { onClick: () => console.log("Redirecting to Modeler...") },
27
+ },
28
+ {
29
+ key: "operate",
30
+ label: "Operate",
31
+ active: false,
32
+ target: "_blank",
33
+ href: "https://camunda.com/",
34
+ },
35
+ {
36
+ key: "tasklist",
37
+ label: "Task List",
38
+ active: false,
39
+ subElements: [
40
+ {
41
+ key: "cluster-a",
42
+ label: "Cluster A",
43
+ href: "https://camunda.com/",
44
+ target: "_blank",
45
+ },
46
+ {
47
+ key: "cluster-b",
48
+ label: "Cluster B",
49
+ onClick: () => console.log("Redirecting to Tasklist..."),
50
+ },
51
+ {
52
+ key: "cluster-c",
53
+ label: "Cluster C",
54
+ routeProps: {
55
+ onClick: () => console.log("Redirecting to Tasklist..."),
56
+ },
57
+ },
58
+ ],
59
+ },
60
+ ],
61
+ }
62
62
  }
63
63
  export function createNavBarBarProps(options = {}) {
64
- return {
65
- elements: options?.elements ?? [
66
- {
67
- key: "dashboard",
68
- label: "Dashboard",
69
- isCurrentPage: true,
70
- routeProps: {},
71
- },
72
- {
73
- key: "clusters",
74
- label: "Clusters",
75
- isCurrentPage: false,
76
- routeProps: {
77
- onClick: () => console.log("Redirecting to clusters..."),
78
- },
79
- },
80
- ],
81
- orgName: "Camunda",
82
- tags: [
83
- {
84
- key: "stage",
85
- label: "Production",
86
- color: "red",
87
- },
88
- {
89
- key: "githash",
90
- label: "abcdefg",
91
- color: "teal",
92
- },
93
- {
94
- key: "fooTooltip",
95
- label: "I am a tooltip pill",
96
- color: "cool-gray",
97
- tooltip: {
98
- content: (React.createElement("p", null,
99
- "tooltip popover with a",
100
- " ",
101
- React.createElement(Link, { href: "http://camunda.com/" }, "link"))),
102
- buttonLabel: "open the tooltip",
103
- },
104
- },
105
- ],
106
- };
64
+ return {
65
+ elements: options?.elements ?? [
66
+ {
67
+ key: "dashboard",
68
+ label: "Dashboard",
69
+ isCurrentPage: true,
70
+ routeProps: {},
71
+ },
72
+ {
73
+ key: "clusters",
74
+ label: "Clusters",
75
+ isCurrentPage: false,
76
+ routeProps: {
77
+ onClick: () => console.log("Redirecting to clusters..."),
78
+ },
79
+ },
80
+ ],
81
+ orgName: "Camunda",
82
+ tags: [
83
+ {
84
+ key: "stage",
85
+ label: "Production",
86
+ color: "red",
87
+ },
88
+ {
89
+ key: "githash",
90
+ label: "abcdefg",
91
+ color: "teal",
92
+ },
93
+ {
94
+ key: "fooTooltip",
95
+ label: "I am a tooltip pill",
96
+ color: "cool-gray",
97
+ tooltip: {
98
+ content: React.createElement(
99
+ "p",
100
+ null,
101
+ "tooltip popover with a",
102
+ " ",
103
+ React.createElement(Link, { href: "http://camunda.com/" }, "link"),
104
+ ),
105
+ buttonLabel: "open the tooltip",
106
+ },
107
+ },
108
+ ],
109
+ }
107
110
  }
108
111
  export function createInfoSideBarProps(options) {
109
- return {
110
- isOpen: options.isOpen,
111
- onOpen: () => console.log("Opened info sidebar"),
112
- elements: [
113
- {
114
- key: "info1",
115
- label: "Info 1",
116
- },
117
- {
118
- key: "info2",
119
- label: "Info 2",
120
- preceedingDivider: options.preceedingDividerOn2ndElement,
121
- },
122
- ],
123
- version: "8.2.0-alpha2",
124
- };
112
+ return {
113
+ isOpen: options.isOpen,
114
+ onOpen: () => console.log("Opened info sidebar"),
115
+ elements: [
116
+ {
117
+ key: "info1",
118
+ label: "Info 1",
119
+ },
120
+ {
121
+ key: "info2",
122
+ label: "Info 2",
123
+ preceedingDivider: options.preceedingDividerOn2ndElement,
124
+ },
125
+ ],
126
+ version: "8.2.0-alpha2",
127
+ }
125
128
  }
126
129
  export function createOrgSideBarProps(options) {
127
- const elements = [];
128
- for (let i = 0; i < options.orgCount; i++) {
129
- elements.push({
130
- key: `org-${i}`,
131
- label: `Organization ${i}`,
132
- });
133
- }
134
- return {
135
- isOpen: options.isOpen,
136
- customElements: {
137
- activeOrganization: {
138
- activeLabel: "Active Organization",
139
- otherLabel: "Other Organization",
140
- orgName: "Camunda",
141
- action: {
142
- label: "Manage",
143
- onClick: () => console.log("Manage organization"),
144
- },
145
- },
146
- },
147
- elements,
148
- };
130
+ const elements = []
131
+ for (let i = 0; i < options.orgCount; i++) {
132
+ elements.push({
133
+ key: `org-${i}`,
134
+ label: `Organization ${i}`,
135
+ })
136
+ }
137
+ return {
138
+ isOpen: options.isOpen,
139
+ customElements: {
140
+ activeOrganization: {
141
+ activeLabel: "Active Organization",
142
+ otherLabel: "Other Organization",
143
+ orgName: "Camunda",
144
+ action: {
145
+ label: "Manage",
146
+ onClick: () => console.log("Manage organization"),
147
+ },
148
+ },
149
+ },
150
+ elements,
151
+ }
149
152
  }
150
153
  export function createUserSideBarProps(options) {
151
- return {
152
- isOpen: options.isOpen,
153
- customElements: {
154
- customSection: options.customSection,
155
- profile: {
156
- label: "Profile",
157
- user: {
158
- email: "teamcloud@camunda.com",
159
- name: "Team Cloud",
160
- },
161
- },
162
- themeSelector: {
163
- currentTheme: "dark",
164
- onChange: () => console.log("Selected dark theme"),
165
- },
166
- stageToggle: {
167
- prodFeaturesEnabled: true,
168
- toggle: () => console.log("Toggle stage"),
169
- },
170
- },
171
- elements: [
172
- {
173
- key: "cookie",
174
- label: "Cookie Preferences",
175
- },
176
- {
177
- key: "terms",
178
- label: "Terms of use",
179
- },
180
- {
181
- key: "delete",
182
- label: "Delete account",
183
- kind: "danger--ghost",
184
- },
185
- ],
186
- bottomElements: [
187
- {
188
- key: "logout",
189
- label: "Logout",
190
- kind: "ghost",
191
- renderIcon: ArrowRight,
192
- },
193
- ],
194
- };
154
+ return {
155
+ isOpen: options.isOpen,
156
+ customElements: {
157
+ customSection: options.customSection,
158
+ profile: {
159
+ label: "Profile",
160
+ user: {
161
+ email: "teamcloud@camunda.com",
162
+ name: "Team Cloud",
163
+ },
164
+ },
165
+ themeSelector: {
166
+ currentTheme: "dark",
167
+ onChange: () => console.log("Selected dark theme"),
168
+ },
169
+ stageToggle: {
170
+ prodFeaturesEnabled: true,
171
+ toggle: () => console.log("Toggle stage"),
172
+ },
173
+ },
174
+ elements: [
175
+ {
176
+ key: "cookie",
177
+ label: "Cookie Preferences",
178
+ },
179
+ {
180
+ key: "terms",
181
+ label: "Terms of use",
182
+ },
183
+ {
184
+ key: "delete",
185
+ label: "Delete account",
186
+ kind: "danger--ghost",
187
+ },
188
+ ],
189
+ bottomElements: [
190
+ {
191
+ key: "logout",
192
+ label: "Logout",
193
+ kind: "ghost",
194
+ renderIcon: ArrowRight,
195
+ },
196
+ ],
197
+ }
195
198
  }
196
199
  export function createNotificationSideBarProps(options) {
197
- return {
198
- isOpen: options.isOpen,
199
- };
200
+ return {
201
+ isOpen: options.isOpen,
202
+ }
200
203
  }
@@ -1,9 +1,9 @@
1
- import { FC } from "react";
2
- import { C3Navigation } from "./c3-navigation";
3
- import { ComponentStory } from "@storybook/react";
4
- export declare const DefaultTemplate: ComponentStory<typeof C3Navigation>;
1
+ import { FC } from "react"
2
+ import { C3Navigation } from "./c3-navigation"
3
+ import { ComponentStory } from "@storybook/react"
4
+ export declare const DefaultTemplate: ComponentStory<typeof C3Navigation>
5
5
  export declare const SuperUserToggle: FC<{
6
- isActive?: boolean;
7
- onChange?: (newValue: boolean) => void;
8
- }>;
9
- export declare const NavbarWithCustomSection: FC;
6
+ isActive?: boolean
7
+ onChange?: (newValue: boolean) => void
8
+ }>
9
+ export declare const NavbarWithCustomSection: FC
@@ -1,35 +1,68 @@
1
- import React, { useState } from "react";
2
- import { C3Navigation } from "./c3-navigation";
3
- import { createAppBarProps, createAppProps, createNavBarBarProps, createUserSideBarProps, } from "./story-helpers";
4
- import { SwitcherDivider, Toggle } from "@carbon/react";
5
- export const DefaultTemplate = (args) => (React.createElement(React.Fragment, null,
6
- React.createElement(C3Navigation, { ...args }),
7
- React.createElement("div", { id: "main-content" })));
1
+ import React, { useState } from "react"
2
+ import { C3Navigation } from "./c3-navigation"
3
+ import {
4
+ createAppBarProps,
5
+ createAppProps,
6
+ createNavBarBarProps,
7
+ createUserSideBarProps,
8
+ } from "./story-helpers"
9
+ import { SwitcherDivider, Toggle } from "@carbon/react"
10
+ export const DefaultTemplate = (args) =>
11
+ React.createElement(
12
+ React.Fragment,
13
+ null,
14
+ React.createElement(C3Navigation, { ...args }),
15
+ React.createElement("div", { id: "main-content" }),
16
+ )
8
17
  export const SuperUserToggle = ({ isActive, onChange }) => {
9
- return (React.createElement(React.Fragment, null,
10
- React.createElement(SwitcherDivider, null),
11
- React.createElement("div", { style: { padding: ".5rem 1rem" } },
12
- React.createElement(Toggle, { size: "sm", id: "toggle-super-admin-mode", defaultToggled: isActive, onToggle: (superAdminModeActive) => onChange?.(superAdminModeActive), labelText: "Enter super-admin mode", "aria-label": "Enter super-admin mode" }))));
13
- };
18
+ return React.createElement(
19
+ React.Fragment,
20
+ null,
21
+ React.createElement(SwitcherDivider, null),
22
+ React.createElement(
23
+ "div",
24
+ { style: { padding: ".5rem 1rem" } },
25
+ React.createElement(Toggle, {
26
+ size: "sm",
27
+ id: "toggle-super-admin-mode",
28
+ defaultToggled: isActive,
29
+ onToggle: (superAdminModeActive) => onChange?.(superAdminModeActive),
30
+ labelText: "Enter super-admin mode",
31
+ "aria-label": "Enter super-admin mode",
32
+ }),
33
+ ),
34
+ )
35
+ }
14
36
  export const NavbarWithCustomSection = () => {
15
- const [isSuperAdminModeActive, setIsSuperAdminModeActive] = useState(true);
16
- return (React.createElement(React.Fragment, null,
17
- React.createElement(C3Navigation, { app: createAppProps(), appBar: createAppBarProps(), navbar: {
18
- ...createNavBarBarProps(),
19
- tags: isSuperAdminModeActive
20
- ? [
21
- {
22
- key: "superUserMode",
23
- label: "Super-user mode",
24
- color: "high-contrast",
25
- },
26
- ]
27
- : undefined,
28
- }, userSideBar: {
29
- ...createUserSideBarProps({ isOpen: false }),
30
- customElements: {
31
- customSection: (React.createElement(SuperUserToggle, { isActive: isSuperAdminModeActive, onChange: setIsSuperAdminModeActive })),
32
- },
33
- } }),
34
- React.createElement("div", { id: "main-content" })));
35
- };
37
+ const [isSuperAdminModeActive, setIsSuperAdminModeActive] = useState(true)
38
+ return React.createElement(
39
+ React.Fragment,
40
+ null,
41
+ React.createElement(C3Navigation, {
42
+ app: createAppProps(),
43
+ appBar: createAppBarProps(),
44
+ navbar: {
45
+ ...createNavBarBarProps(),
46
+ tags: isSuperAdminModeActive
47
+ ? [
48
+ {
49
+ key: "superUserMode",
50
+ label: "Super-user mode",
51
+ color: "high-contrast",
52
+ },
53
+ ]
54
+ : undefined,
55
+ },
56
+ userSideBar: {
57
+ ...createUserSideBarProps({ isOpen: false }),
58
+ customElements: {
59
+ customSection: React.createElement(SuperUserToggle, {
60
+ isActive: isSuperAdminModeActive,
61
+ onChange: setIsSuperAdminModeActive,
62
+ }),
63
+ },
64
+ },
65
+ }),
66
+ React.createElement("div", { id: "main-content" }),
67
+ )
68
+ }
@@ -1,19 +1,23 @@
1
- import React, { FC, ReactNode } from "react";
2
- import { Endpoints, Stage } from "../../api/endpoints.const";
1
+ import React, { FC, ReactNode } from "react"
2
+ import { Endpoints, Stage } from "../../api/endpoints.const"
3
3
  declare type C3UserConfigurationBase = {
4
- activeOrganizationId: string;
5
- userToken: string;
6
- getNewUserToken: () => Promise<string>;
7
- };
4
+ activeOrganizationId: string
5
+ userToken: string
6
+ getNewUserToken: () => Promise<string>
7
+ }
8
8
  declare type C3UserConfigurationWithEndpoints = C3UserConfigurationBase & {
9
- endpoints: Endpoints;
10
- };
9
+ endpoints: Endpoints
10
+ }
11
11
  declare type C3UserConfigurationWithStage = C3UserConfigurationBase & {
12
- stage: Stage;
13
- };
14
- export declare type C3UserConfiguration = C3UserConfigurationWithEndpoints | C3UserConfigurationWithStage;
15
- export declare const C3UserConfigurationContext: React.Context<C3UserConfiguration | null>;
16
- declare const C3UserConfigurationProvider: FC<C3UserConfiguration & {
17
- children?: ReactNode;
18
- }>;
19
- export default C3UserConfigurationProvider;
12
+ stage: Stage
13
+ }
14
+ export declare type C3UserConfiguration =
15
+ | C3UserConfigurationWithEndpoints
16
+ | C3UserConfigurationWithStage
17
+ export declare const C3UserConfigurationContext: React.Context<C3UserConfiguration | null>
18
+ declare const C3UserConfigurationProvider: FC<
19
+ C3UserConfiguration & {
20
+ children?: ReactNode
21
+ }
22
+ >
23
+ export default C3UserConfigurationProvider
@@ -1,4 +1,9 @@
1
- import React from "react";
2
- export const C3UserConfigurationContext = React.createContext(null);
3
- const C3UserConfigurationProvider = ({ children, ...config }) => (React.createElement(C3UserConfigurationContext.Provider, { value: config }, children));
4
- export default C3UserConfigurationProvider;
1
+ import React from "react"
2
+ export const C3UserConfigurationContext = React.createContext(null)
3
+ const C3UserConfigurationProvider = ({ children, ...config }) =>
4
+ React.createElement(
5
+ C3UserConfigurationContext.Provider,
6
+ { value: config },
7
+ children,
8
+ )
9
+ export default C3UserConfigurationProvider
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { C3IconProps } from "./c3-icons.types";
3
- export declare const C3AppMenuIcon: ({ size }: C3IconProps) => JSX.Element;
4
- export declare const C3NotificationsUnreadIcon: ({ size }: C3IconProps) => JSX.Element;
5
- export declare const C3BellIcon: ({ size }: C3IconProps) => JSX.Element;
6
- export declare const CamundaLogo: () => JSX.Element;
2
+ import { C3IconProps } from "./c3-icons.types"
3
+ export declare const C3AppMenuIcon: ({ size }: C3IconProps) => JSX.Element
4
+ export declare const C3NotificationsUnreadIcon: ({
5
+ size,
6
+ }: C3IconProps) => JSX.Element
7
+ export declare const C3BellIcon: ({ size }: C3IconProps) => JSX.Element
8
+ export declare const CamundaLogo: () => JSX.Element