@camunda/camunda-composite-components 0.3.1-rc.8 → 0.4.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.
- package/lib/esm/package.json +114 -0
- package/lib/esm/{api → src/api}/help-center.d.ts +3 -2
- package/lib/esm/{api → src/api}/help-center.js +4 -4
- package/lib/esm/{components → src/components}/c3-help-center/c3-help-center-provider.d.ts +4 -1
- package/lib/esm/{components → src/components}/c3-help-center/c3-help-center-provider.js +8 -9
- package/lib/esm/{components → src/components}/c3-help-center/c3-help-center.js +13 -4
- package/lib/esm/{components → src/components}/c3-help-center/help-center-hint.d.ts +0 -1
- package/lib/esm/{components → src/components}/c3-help-center/help-center-hint.js +6 -7
- package/lib/esm/{components → src/components}/c3-help-center/help-center.js +4 -3
- package/lib/esm/{components → src/components}/c3-help-center/tabs/feedback.js +1 -1
- package/lib/esm/src/components/c3-help-center/tabs/tabContent.d.ts +291 -0
- package/lib/esm/src/components/c3-help-center/tabs/tabContent.js +20 -0
- package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.d.ts +2 -0
- package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.js +22 -0
- package/lib/esm/{components → src/components}/c3-help-center/tile.js +20 -5
- package/lib/esm/{components → src/components}/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +69 -69
- package/lib/esm/{components → src/components}/c3-navigation/story-helpers.js +1 -1
- package/lib/esm/{components → src/components}/c3-onboarding-survey/c3-onboarding-survey.js +1 -0
- package/lib/esm/{components → src/components}/c3-onboarding-survey/onboardingSurvey.js +2 -3
- package/lib/esm/{components → src/components}/styles.d.ts +46 -46
- package/package.json +13 -5
- package/lib/esm/components/c3-help-center/tabs/tabContent.d.ts +0 -19
- package/lib/esm/components/c3-help-center/tabs/tabContent.js +0 -18
- /package/lib/esm/{api → src/api}/api.d.ts +0 -0
- /package/lib/esm/{api → src/api}/api.js +0 -0
- /package/lib/esm/{api → src/api}/endpoints.const.d.ts +0 -0
- /package/lib/esm/{api → src/api}/endpoints.const.js +0 -0
- /package/lib/esm/{api → src/api}/jwt.utils.d.ts +0 -0
- /package/lib/esm/{api → src/api}/jwt.utils.js +0 -0
- /package/lib/esm/{api → src/api}/notifications.d.ts +0 -0
- /package/lib/esm/{api → src/api}/notifications.js +0 -0
- /package/lib/esm/{api → src/api}/profile.d.ts +0 -0
- /package/lib/esm/{api → src/api}/profile.js +0 -0
- /package/lib/esm/{components → src/components}/c3-cluster-tag/c3-cluster-tag.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-cluster-tag/c3-cluster-tag.js +0 -0
- /package/lib/esm/{components → src/components}/c3-cluster-tag/c3-cluster-tag.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-cluster-tag/c3-cluster-tag.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-empty-state/c3-empty-state.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-empty-state/c3-empty-state.js +0 -0
- /package/lib/esm/{components → src/components}/c3-empty-state/c3-empty-state.test.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-empty-state/c3-empty-state.test.js +0 -0
- /package/lib/esm/{components → src/components}/c3-empty-state/c3-empty-state.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-empty-state/c3-empty-state.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/c3-help-center.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/c3-help-center.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/c3-help-center.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/defaultHelpCenterConfig.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/defaultHelpCenterConfig.js +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/help-center.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/recommendations.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/recommendations.js +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/tabs/feedback.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-help-center/tile.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-info-button.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-info-button.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-actions/c3-action-buttons.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-appbar.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-appbar.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/components.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation-sidebar/components.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation.test.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation.test.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-navigation.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-notification-provider/c3-notification-container.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/c3-notification-provider/c3-notification-provider.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/helpers.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/helpers.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/index.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/index.js +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/story-helpers.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/story-templates.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-navigation/story-templates.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/c3-onboarding-survey.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/defaultOnboardingConfig.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/defaultOnboardingConfig.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/dropdownSelect.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/dropdownSelect.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/radioGroupMulti.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/radioGroupMulti.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/radioGroupSingle.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/radioGroupSingle.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/textField.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/elements/textField.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/helpers.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/helpers.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboarding.types.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboarding.types.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboardingModal.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboardingModal.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboardingPage.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboardingPage.js +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/onboardingSurvey.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/step.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-onboarding-survey/step.js +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/authToken.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/authToken.js +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/c3-profile-provider/c3-profile-provider.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/c3-profile-provider/c3-profile-provider.js +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/c3-profile-provider/carbon-theme-provider.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/c3-profile-provider/carbon-theme-provider.js +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/c3-user-configuration-provider.d.ts +0 -0
- /package/lib/esm/{components → src/components}/c3-user-configuration/c3-user-configuration-provider.js +0 -0
- /package/lib/esm/{components → src/components}/styles.js +0 -0
- /package/lib/esm/{components → src/components}/test-utils.d.ts +0 -0
- /package/lib/esm/{components → src/components}/test-utils.js +0 -0
- /package/lib/esm/{icons → src/icons}/c3-icons.d.ts +0 -0
- /package/lib/esm/{icons → src/icons}/c3-icons.js +0 -0
- /package/lib/esm/{icons → src/icons}/c3-icons.types.d.ts +0 -0
- /package/lib/esm/{icons → src/icons}/c3-icons.types.js +0 -0
- /package/lib/esm/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/esm/{index.js → src/index.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ActionableNotification, Stack } from "@carbon/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { HelpCenterTile } from "../tile";
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
export const TAB_TYPES = {
|
|
6
|
+
Grid: "grid",
|
|
7
|
+
Column: "column",
|
|
8
|
+
};
|
|
9
|
+
export const TileWrapper = styled.div `
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
gap: var(--cds-spacing-05);
|
|
14
|
+
`;
|
|
15
|
+
export const TabContent = ({ onboarding, type, origin, tiles, mixpanelTrack }) => {
|
|
16
|
+
return (React.createElement("div", null,
|
|
17
|
+
React.createElement(Stack, null,
|
|
18
|
+
onboarding && onboarding?.complete !== true && (React.createElement(ActionableNotification, { kind: "info", inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: "100%", marginBottom: "1rem" }, actionButtonLabel: "Resume Survey", onActionButtonClick: onboarding.resumeSurvey, title: "Complete the new user survey to see more recommendations", subtitle: "" })),
|
|
19
|
+
React.createElement(TileWrapper, null, tiles.map((tile) => (React.createElement(HelpCenterTile, { origin: origin, tabType: type, tile: tile, mixpanelTrack: mixpanelTrack, key: tile.card_id })))))));
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TileWrapper } from "./tabContent";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { SkeletonPlaceholder } from "@carbon/react";
|
|
5
|
+
const TileOuter = styled.div `
|
|
6
|
+
background: var(--cds-layer-02, #f4f4f4);
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 300px;
|
|
9
|
+
height: 300px;
|
|
10
|
+
padding: 16px;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
gap: 16px;
|
|
14
|
+
`;
|
|
15
|
+
const TileSkeleton = styled(SkeletonPlaceholder) `
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
`;
|
|
19
|
+
export const TabContentSkeleton = () => (React.createElement(TileWrapper, null, Array(6)
|
|
20
|
+
.fill("_")
|
|
21
|
+
.map((_, i) => (React.createElement(TileOuter, { key: `tile-skeleton-${i}-${Math.random() * 10000}` },
|
|
22
|
+
React.createElement(TileSkeleton, null))))));
|
|
@@ -3,6 +3,21 @@ import { ArrowRight } from "@carbon/react/icons";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { TAB_TYPES } from "./tabs/tabContent";
|
|
5
5
|
import ReactMarkdown from "react-markdown";
|
|
6
|
+
import styled from "styled-components";
|
|
7
|
+
const TileHeading = styled.h6 `
|
|
8
|
+
font-size: var(--cds-heading-compact-01-font-size);
|
|
9
|
+
font-weight: var(--cds-heading-compact-01-font-weight);
|
|
10
|
+
line-height: var(--cds-heading-compact-01-line-height);
|
|
11
|
+
letter-spacing: var(--cds-heading-compact-01-letter-spacing);
|
|
12
|
+
`;
|
|
13
|
+
const TileDescription = styled.p `
|
|
14
|
+
height: 50px;
|
|
15
|
+
color: var(--cds-text-secondary);
|
|
16
|
+
`;
|
|
17
|
+
const TileStack = styled.div `
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
`;
|
|
6
21
|
export const HelpCenterTile = ({ tile, tabType, origin, mixpanelTrack }) => {
|
|
7
22
|
const { title, description, timeToComplete, cta, image, link, card_id } = tile;
|
|
8
23
|
if (tabType === TAB_TYPES.Grid) {
|
|
@@ -12,17 +27,17 @@ export const HelpCenterTile = ({ tile, tabType, origin, mixpanelTrack }) => {
|
|
|
12
27
|
}, className: "cds--layer-two" },
|
|
13
28
|
React.createElement(Stack, { orientation: "vertical", gap: 3 },
|
|
14
29
|
React.createElement("img", { src: image, alt: title }),
|
|
15
|
-
React.createElement(
|
|
16
|
-
React.createElement(
|
|
17
|
-
React.createElement(
|
|
30
|
+
React.createElement(TileStack, null,
|
|
31
|
+
React.createElement(TileHeading, null, title),
|
|
32
|
+
React.createElement(TileDescription, null, description),
|
|
18
33
|
React.createElement("div", { style: { marginLeft: "-4px", marginTop: "12px" } }, (() => {
|
|
19
34
|
let content = React.createElement("div", { style: { height: "32px" } });
|
|
20
35
|
if (timeToComplete) {
|
|
21
|
-
content = (React.createElement(Tag, { type: "gray", title: timeToComplete }, timeToComplete));
|
|
36
|
+
content = (React.createElement(Tag, { type: "warm-gray", size: "sm", title: timeToComplete }, timeToComplete));
|
|
22
37
|
}
|
|
23
38
|
return content;
|
|
24
39
|
})()))),
|
|
25
|
-
React.createElement(Button, { as: "a", href: link, target: "_blank", onClick: () => {
|
|
40
|
+
React.createElement(Button, { size: "sm", as: "a", href: link, target: "_blank", onClick: () => {
|
|
26
41
|
mixpanelTrack?.(`helpcenter:click`, {
|
|
27
42
|
from: origin,
|
|
28
43
|
to: card_id,
|
|
@@ -10,17 +10,17 @@ export declare const NotificationTitle: import("styled-components").IStyledCompo
|
|
|
10
10
|
accessKey?: string | undefined;
|
|
11
11
|
autoFocus?: boolean | undefined;
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
contentEditable?: "inherit" | (boolean | "
|
|
13
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
14
14
|
contextMenu?: string | undefined;
|
|
15
15
|
dir?: string | undefined;
|
|
16
|
-
draggable?: (boolean | "
|
|
16
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
17
17
|
hidden?: boolean | undefined;
|
|
18
18
|
id?: string | undefined;
|
|
19
19
|
lang?: string | undefined;
|
|
20
20
|
nonce?: string | undefined;
|
|
21
21
|
placeholder?: string | undefined;
|
|
22
22
|
slot?: string | undefined;
|
|
23
|
-
spellCheck?: (boolean | "
|
|
23
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
24
24
|
style?: React.CSSProperties | undefined;
|
|
25
25
|
tabIndex?: number | undefined;
|
|
26
26
|
title?: string | undefined;
|
|
@@ -50,55 +50,55 @@ export declare const NotificationTitle: import("styled-components").IStyledCompo
|
|
|
50
50
|
results?: number | undefined;
|
|
51
51
|
security?: string | undefined;
|
|
52
52
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
-
inputMode?: "search" | "text" | "none" | "
|
|
53
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
54
54
|
is?: string | undefined;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
|
-
'aria-atomic'?: (boolean | "
|
|
56
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
57
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
58
58
|
'aria-braillelabel'?: string | undefined;
|
|
59
59
|
'aria-brailleroledescription'?: string | undefined;
|
|
60
|
-
'aria-busy'?: (boolean | "
|
|
61
|
-
'aria-checked'?: boolean | "
|
|
60
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
62
62
|
'aria-colcount'?: number | undefined;
|
|
63
63
|
'aria-colindex'?: number | undefined;
|
|
64
64
|
'aria-colindextext'?: string | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "time" | "step" | "
|
|
67
|
+
'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
68
68
|
'aria-describedby'?: string | undefined;
|
|
69
69
|
'aria-description'?: string | undefined;
|
|
70
70
|
'aria-details'?: string | undefined;
|
|
71
|
-
'aria-disabled'?: (boolean | "
|
|
72
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "
|
|
71
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
73
73
|
'aria-errormessage'?: string | undefined;
|
|
74
|
-
'aria-expanded'?: (boolean | "
|
|
74
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
|
-
'aria-grabbed'?: (boolean | "
|
|
77
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "
|
|
78
|
-
'aria-hidden'?: (boolean | "
|
|
79
|
-
'aria-invalid'?: boolean | "
|
|
76
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
78
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
81
81
|
'aria-label'?: string | undefined;
|
|
82
82
|
'aria-labelledby'?: string | undefined;
|
|
83
83
|
'aria-level'?: number | undefined;
|
|
84
84
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
-
'aria-modal'?: (boolean | "
|
|
86
|
-
'aria-multiline'?: (boolean | "
|
|
87
|
-
'aria-multiselectable'?: (boolean | "
|
|
85
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
88
88
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
89
89
|
'aria-owns'?: string | undefined;
|
|
90
90
|
'aria-placeholder'?: string | undefined;
|
|
91
91
|
'aria-posinset'?: number | undefined;
|
|
92
|
-
'aria-pressed'?: boolean | "
|
|
93
|
-
'aria-readonly'?: (boolean | "
|
|
94
|
-
'aria-relevant'?: "text" | "
|
|
95
|
-
'aria-required'?: (boolean | "
|
|
92
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
93
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
95
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
96
96
|
'aria-roledescription'?: string | undefined;
|
|
97
97
|
'aria-rowcount'?: number | undefined;
|
|
98
98
|
'aria-rowindex'?: number | undefined;
|
|
99
99
|
'aria-rowindextext'?: string | undefined;
|
|
100
100
|
'aria-rowspan'?: number | undefined;
|
|
101
|
-
'aria-selected'?: (boolean | "
|
|
101
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
102
102
|
'aria-setsize'?: number | undefined;
|
|
103
103
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
104
104
|
'aria-valuemax'?: number | undefined;
|
|
@@ -282,17 +282,17 @@ export declare const NotificationDescription: import("styled-components").IStyle
|
|
|
282
282
|
accessKey?: string | undefined;
|
|
283
283
|
autoFocus?: boolean | undefined;
|
|
284
284
|
className?: string | undefined;
|
|
285
|
-
contentEditable?: "inherit" | (boolean | "
|
|
285
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
286
286
|
contextMenu?: string | undefined;
|
|
287
287
|
dir?: string | undefined;
|
|
288
|
-
draggable?: (boolean | "
|
|
288
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
289
289
|
hidden?: boolean | undefined;
|
|
290
290
|
id?: string | undefined;
|
|
291
291
|
lang?: string | undefined;
|
|
292
292
|
nonce?: string | undefined;
|
|
293
293
|
placeholder?: string | undefined;
|
|
294
294
|
slot?: string | undefined;
|
|
295
|
-
spellCheck?: (boolean | "
|
|
295
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
296
296
|
style?: React.CSSProperties | undefined;
|
|
297
297
|
tabIndex?: number | undefined;
|
|
298
298
|
title?: string | undefined;
|
|
@@ -322,55 +322,55 @@ export declare const NotificationDescription: import("styled-components").IStyle
|
|
|
322
322
|
results?: number | undefined;
|
|
323
323
|
security?: string | undefined;
|
|
324
324
|
unselectable?: "on" | "off" | undefined;
|
|
325
|
-
inputMode?: "search" | "text" | "none" | "
|
|
325
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
326
326
|
is?: string | undefined;
|
|
327
327
|
'aria-activedescendant'?: string | undefined;
|
|
328
|
-
'aria-atomic'?: (boolean | "
|
|
328
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
329
329
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
330
330
|
'aria-braillelabel'?: string | undefined;
|
|
331
331
|
'aria-brailleroledescription'?: string | undefined;
|
|
332
|
-
'aria-busy'?: (boolean | "
|
|
333
|
-
'aria-checked'?: boolean | "
|
|
332
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
333
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
334
334
|
'aria-colcount'?: number | undefined;
|
|
335
335
|
'aria-colindex'?: number | undefined;
|
|
336
336
|
'aria-colindextext'?: string | undefined;
|
|
337
337
|
'aria-colspan'?: number | undefined;
|
|
338
338
|
'aria-controls'?: string | undefined;
|
|
339
|
-
'aria-current'?: boolean | "time" | "step" | "
|
|
339
|
+
'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
340
340
|
'aria-describedby'?: string | undefined;
|
|
341
341
|
'aria-description'?: string | undefined;
|
|
342
342
|
'aria-details'?: string | undefined;
|
|
343
|
-
'aria-disabled'?: (boolean | "
|
|
344
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "
|
|
343
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
344
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
345
345
|
'aria-errormessage'?: string | undefined;
|
|
346
|
-
'aria-expanded'?: (boolean | "
|
|
346
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
347
347
|
'aria-flowto'?: string | undefined;
|
|
348
|
-
'aria-grabbed'?: (boolean | "
|
|
349
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "
|
|
350
|
-
'aria-hidden'?: (boolean | "
|
|
351
|
-
'aria-invalid'?: boolean | "
|
|
348
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
349
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
350
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
351
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
352
352
|
'aria-keyshortcuts'?: string | undefined;
|
|
353
353
|
'aria-label'?: string | undefined;
|
|
354
354
|
'aria-labelledby'?: string | undefined;
|
|
355
355
|
'aria-level'?: number | undefined;
|
|
356
356
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
357
|
-
'aria-modal'?: (boolean | "
|
|
358
|
-
'aria-multiline'?: (boolean | "
|
|
359
|
-
'aria-multiselectable'?: (boolean | "
|
|
357
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
358
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
359
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
360
360
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
361
361
|
'aria-owns'?: string | undefined;
|
|
362
362
|
'aria-placeholder'?: string | undefined;
|
|
363
363
|
'aria-posinset'?: number | undefined;
|
|
364
|
-
'aria-pressed'?: boolean | "
|
|
365
|
-
'aria-readonly'?: (boolean | "
|
|
366
|
-
'aria-relevant'?: "text" | "
|
|
367
|
-
'aria-required'?: (boolean | "
|
|
364
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
365
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
366
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
367
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
368
368
|
'aria-roledescription'?: string | undefined;
|
|
369
369
|
'aria-rowcount'?: number | undefined;
|
|
370
370
|
'aria-rowindex'?: number | undefined;
|
|
371
371
|
'aria-rowindextext'?: string | undefined;
|
|
372
372
|
'aria-rowspan'?: number | undefined;
|
|
373
|
-
'aria-selected'?: (boolean | "
|
|
373
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
374
374
|
'aria-setsize'?: number | undefined;
|
|
375
375
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
376
376
|
'aria-valuemax'?: number | undefined;
|
|
@@ -554,17 +554,17 @@ export declare const LinkContainer: import("styled-components").IStyledComponent
|
|
|
554
554
|
accessKey?: string | undefined;
|
|
555
555
|
autoFocus?: boolean | undefined;
|
|
556
556
|
className?: string | undefined;
|
|
557
|
-
contentEditable?: "inherit" | (boolean | "
|
|
557
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
558
558
|
contextMenu?: string | undefined;
|
|
559
559
|
dir?: string | undefined;
|
|
560
|
-
draggable?: (boolean | "
|
|
560
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
561
561
|
hidden?: boolean | undefined;
|
|
562
562
|
id?: string | undefined;
|
|
563
563
|
lang?: string | undefined;
|
|
564
564
|
nonce?: string | undefined;
|
|
565
565
|
placeholder?: string | undefined;
|
|
566
566
|
slot?: string | undefined;
|
|
567
|
-
spellCheck?: (boolean | "
|
|
567
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
568
568
|
style?: React.CSSProperties | undefined;
|
|
569
569
|
tabIndex?: number | undefined;
|
|
570
570
|
title?: string | undefined;
|
|
@@ -594,55 +594,55 @@ export declare const LinkContainer: import("styled-components").IStyledComponent
|
|
|
594
594
|
results?: number | undefined;
|
|
595
595
|
security?: string | undefined;
|
|
596
596
|
unselectable?: "on" | "off" | undefined;
|
|
597
|
-
inputMode?: "search" | "text" | "none" | "
|
|
597
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
598
598
|
is?: string | undefined;
|
|
599
599
|
'aria-activedescendant'?: string | undefined;
|
|
600
|
-
'aria-atomic'?: (boolean | "
|
|
600
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
601
601
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
602
602
|
'aria-braillelabel'?: string | undefined;
|
|
603
603
|
'aria-brailleroledescription'?: string | undefined;
|
|
604
|
-
'aria-busy'?: (boolean | "
|
|
605
|
-
'aria-checked'?: boolean | "
|
|
604
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
605
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
606
606
|
'aria-colcount'?: number | undefined;
|
|
607
607
|
'aria-colindex'?: number | undefined;
|
|
608
608
|
'aria-colindextext'?: string | undefined;
|
|
609
609
|
'aria-colspan'?: number | undefined;
|
|
610
610
|
'aria-controls'?: string | undefined;
|
|
611
|
-
'aria-current'?: boolean | "time" | "step" | "
|
|
611
|
+
'aria-current'?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
612
612
|
'aria-describedby'?: string | undefined;
|
|
613
613
|
'aria-description'?: string | undefined;
|
|
614
614
|
'aria-details'?: string | undefined;
|
|
615
|
-
'aria-disabled'?: (boolean | "
|
|
616
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "
|
|
615
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
616
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
617
617
|
'aria-errormessage'?: string | undefined;
|
|
618
|
-
'aria-expanded'?: (boolean | "
|
|
618
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
619
619
|
'aria-flowto'?: string | undefined;
|
|
620
|
-
'aria-grabbed'?: (boolean | "
|
|
621
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "
|
|
622
|
-
'aria-hidden'?: (boolean | "
|
|
623
|
-
'aria-invalid'?: boolean | "
|
|
620
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
621
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
622
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
623
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
624
624
|
'aria-keyshortcuts'?: string | undefined;
|
|
625
625
|
'aria-label'?: string | undefined;
|
|
626
626
|
'aria-labelledby'?: string | undefined;
|
|
627
627
|
'aria-level'?: number | undefined;
|
|
628
628
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
629
|
-
'aria-modal'?: (boolean | "
|
|
630
|
-
'aria-multiline'?: (boolean | "
|
|
631
|
-
'aria-multiselectable'?: (boolean | "
|
|
629
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
630
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
631
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
632
632
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
633
633
|
'aria-owns'?: string | undefined;
|
|
634
634
|
'aria-placeholder'?: string | undefined;
|
|
635
635
|
'aria-posinset'?: number | undefined;
|
|
636
|
-
'aria-pressed'?: boolean | "
|
|
637
|
-
'aria-readonly'?: (boolean | "
|
|
638
|
-
'aria-relevant'?: "text" | "
|
|
639
|
-
'aria-required'?: (boolean | "
|
|
636
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
637
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
638
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
639
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
640
640
|
'aria-roledescription'?: string | undefined;
|
|
641
641
|
'aria-rowcount'?: number | undefined;
|
|
642
642
|
'aria-rowindex'?: number | undefined;
|
|
643
643
|
'aria-rowindextext'?: string | undefined;
|
|
644
644
|
'aria-rowspan'?: number | undefined;
|
|
645
|
-
'aria-selected'?: (boolean | "
|
|
645
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
646
646
|
'aria-setsize'?: number | undefined;
|
|
647
647
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
648
648
|
'aria-valuemax'?: number | undefined;
|
|
@@ -225,5 +225,5 @@ export const createHelpCenterProps = (options) => ({
|
|
|
225
225
|
origin: options?.origin || "console",
|
|
226
226
|
theme: options?.theme,
|
|
227
227
|
autoStartSurvey: options?.autoStartSurvey,
|
|
228
|
-
mixpanelTrack: (event, data) => console.log(`Mixpanel event ${event} tracked: ${data}`),
|
|
228
|
+
mixpanelTrack: (event, data) => console.log(`Mixpanel event ${event} tracked: ${JSON.stringify(data)}`),
|
|
229
229
|
});
|
|
@@ -4,7 +4,7 @@ import { OnboardingModal } from "./onboardingModal";
|
|
|
4
4
|
import { OnboardingPage } from "./onboardingPage";
|
|
5
5
|
import { OnboardingStep } from "./step";
|
|
6
6
|
import { Body01 } from "../styles";
|
|
7
|
-
import { useC3HelpCenter } from "../c3-help-center/c3-help-center-provider";
|
|
7
|
+
import { HelpCenterHintType, useC3HelpCenter, } from "../c3-help-center/c3-help-center-provider";
|
|
8
8
|
export const OnboardingSurvey = ({ appTheme, persona, userFirstName, syncPersona, setPersona, mixpanelTrack, onRequestClose, onboardingConfiguration, isLoadingConfig, modal, origin, }) => {
|
|
9
9
|
const { setHintType } = useC3HelpCenter();
|
|
10
10
|
const [step, setStep] = useState(persona?.nextStep ?? 0);
|
|
@@ -22,8 +22,7 @@ export const OnboardingSurvey = ({ appTheme, persona, userFirstName, syncPersona
|
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
if (committedStep >= onboardingConfiguration.steps.length) {
|
|
25
|
-
|
|
26
|
-
setHintType("help-center");
|
|
25
|
+
setHintType(HelpCenterHintType.HelpCenter);
|
|
27
26
|
newPersona.nextStep = 0;
|
|
28
27
|
newPersona.complete = true;
|
|
29
28
|
await syncPersona(newPersona, true);
|