@seamly/web-ui 22.3.0-beta.1 → 22.3.0-beta.2
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/build/dist/lib/components.js +180 -153
- package/build/dist/lib/components.js.map +1 -1
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/components.min.js.map +1 -1
- package/build/dist/lib/hooks.js +150 -136
- package/build/dist/lib/hooks.js.map +1 -1
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/hooks.min.js.map +1 -1
- package/build/dist/lib/index.debug.js +35 -35
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +4 -4
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +86 -61
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/standalone.js +86 -62
- package/build/dist/lib/standalone.js.map +1 -1
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +92 -61
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/build/dist/lib/utils.js +180 -154
- package/build/dist/lib/utils.js.map +1 -1
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.map +1 -1
- package/package.json +1 -1
- package/src/javascripts/domains/translations/components/options-dialog/translation-option.tsx +1 -1
- package/src/javascripts/style-guide/states.js +8 -0
- package/src/javascripts/ui/components/chat-status/chat-status-action.tsx +2 -2
- package/src/javascripts/ui/components/conversation/event/carousel-component/components/controls.js +2 -2
- package/src/javascripts/ui/components/conversation/event/choice-prompt.js +1 -1
- package/src/javascripts/ui/components/conversation/event/image-lightbox.js +1 -1
- package/src/javascripts/ui/components/conversation/event-divider.js +6 -1
- package/src/javascripts/ui/components/form-controls/error.js +1 -1
- package/src/javascripts/ui/components/form-controls/file-input.js +1 -1
- package/src/javascripts/ui/components/layout/agent-info.js +1 -1
- package/src/javascripts/ui/components/layout/{icon.js → icon.tsx} +74 -37
- package/src/javascripts/ui/components/options/options-button.js +1 -1
- package/src/javascripts/ui/components/suggestions/suggestions-item.js +1 -1
- package/src/javascripts/ui/components/view/window-view/window-open-button.js +1 -1
- package/src/javascripts/ui/components/widgets/lightbox.js +1 -1
- package/src/stylesheets/5-components/_message-card.scss +4 -3
|
@@ -12862,7 +12862,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
12862
12862
|
return {
|
|
12863
12863
|
clientName: "@seamly/web-ui",
|
|
12864
12864
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
12865
|
-
clientVersion: "22.3.0-beta.
|
|
12865
|
+
clientVersion: "22.3.0-beta.2",
|
|
12866
12866
|
currentUrl: window.location.toString(),
|
|
12867
12867
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
12868
12868
|
timezone: getTimeZone(),
|
|
@@ -21387,7 +21387,8 @@ function CarouselMessageSlide(_ref) {
|
|
|
21387
21387
|
/* harmony default export */ var icon_send_32 = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" x=\"0px\" y=\"0px\" viewBox=\"0 0 32 32\"><defs/><path fill=\"#4A48C1\" d=\"M6.714,14.985l17.837-7.906c0.681-0.302,1.414,0.301,1.25,1.027L22.273,23.59\tc-0.13,0.566-0.751,0.865-1.275,0.613l-3.623-1.752l-2.334,2.287c-0.572,0.562-1.538,0.156-1.538-0.645V21.01\tc0-0.217,0.078-0.43,0.222-0.594l7.676-8.841l-10.414,7.472l-4.351-2.445C5.987,16.236,6.033,15.287,6.714,14.985L6.714,14.985z\"/></svg>");
|
|
21388
21388
|
;// CONCATENATED MODULE: ./node_modules/raw-loader/dist/cjs.js!./src/icons/icon_upload-32.svg
|
|
21389
21389
|
/* harmony default export */ var icon_upload_32 = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" x=\"0px\" y=\"0px\" viewBox=\"0 0 32 32\"><defs/><path fill=\"#4A48C1\" d=\"M9.488,13.481c-0.391-0.391-0.391-1.023,0-1.414l5.805-5.805c0.026-0.026,0.06-0.036,0.088-0.058\tc0.073-0.06,0.146-0.119,0.235-0.156c0.246-0.103,0.522-0.103,0.769,0c0.093,0.039,0.171,0.101,0.249,0.165\tc0.023,0.02,0.053,0.027,0.074,0.049l5.805,5.805c0.391,0.391,0.391,1.023,0,1.414c-0.195,0.195-0.451,0.293-0.707,0.293\ts-0.512-0.098-0.707-0.293L17,9.383V20.33c0,0.553-0.447,1-1,1c-0.552,0-1-0.447-1-1V9.383l-4.098,4.098\tC10.512,13.872,9.879,13.872,9.488,13.481z M22.819,24.031H9.181c-0.552,0-1,0.447-1,1s0.448,1,1,1h13.639c0.553,0,1-0.447,1-1\tS23.372,24.031,22.819,24.031z\"/></svg>");
|
|
21390
|
-
;// CONCATENATED MODULE: ./src/javascripts/ui/components/layout/icon.
|
|
21390
|
+
;// CONCATENATED MODULE: ./src/javascripts/ui/components/layout/icon.tsx
|
|
21391
|
+
|
|
21391
21392
|
/* eslint-disable import/no-webpack-loader-syntax */
|
|
21392
21393
|
// The eslint rules are disabled for this as otherwsise we'd need to include the loader rule in all implementations
|
|
21393
21394
|
// this can again be changed when we can import pre-built packages in implementations
|
|
@@ -21412,59 +21413,70 @@ function CarouselMessageSlide(_ref) {
|
|
|
21412
21413
|
|
|
21413
21414
|
|
|
21414
21415
|
|
|
21415
|
-
|
|
21416
21416
|
|
|
21417
21417
|
|
|
21418
21418
|
/* eslint-enable import/no-webpack-loader-syntax */
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
21419
|
const ICONS = {
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
|
|
21465
|
-
|
|
21420
|
+
send: {
|
|
21421
|
+
32: icon_send_32,
|
|
21422
|
+
},
|
|
21423
|
+
balloon: {
|
|
21424
|
+
32: icon_balloon_32,
|
|
21425
|
+
},
|
|
21426
|
+
newTopic: {
|
|
21427
|
+
32: icon_newtopic_32,
|
|
21428
|
+
},
|
|
21429
|
+
newTranslation: {
|
|
21430
|
+
16: icon_newtranslation_16,
|
|
21431
|
+
32: icon_newtranslation_32,
|
|
21432
|
+
},
|
|
21433
|
+
avatar: {
|
|
21434
|
+
32: avatar_bot_32,
|
|
21435
|
+
},
|
|
21436
|
+
chevronDown: {
|
|
21437
|
+
8: icon_chevron_down_8,
|
|
21438
|
+
32: icon_chevron_down_32,
|
|
21439
|
+
},
|
|
21440
|
+
chevronRight: {
|
|
21441
|
+
8: icon_chevron_right_8,
|
|
21442
|
+
16: icon_chevron_right_16,
|
|
21443
|
+
},
|
|
21444
|
+
close: {
|
|
21445
|
+
8: icon_close_8,
|
|
21446
|
+
16: icon_close_16,
|
|
21447
|
+
},
|
|
21448
|
+
enlarge: {
|
|
21449
|
+
32: icon_enlarge_32,
|
|
21450
|
+
},
|
|
21451
|
+
options: {
|
|
21452
|
+
32: icon_options_32,
|
|
21453
|
+
},
|
|
21454
|
+
file: {
|
|
21455
|
+
32: icon_file_32,
|
|
21456
|
+
},
|
|
21457
|
+
upload: {
|
|
21458
|
+
32: icon_upload_32,
|
|
21459
|
+
},
|
|
21460
|
+
download: {
|
|
21461
|
+
16: icon_download_16,
|
|
21462
|
+
},
|
|
21463
|
+
error: {
|
|
21464
|
+
16: icon_error_16,
|
|
21465
|
+
},
|
|
21466
|
+
arrowLeft: {
|
|
21467
|
+
16: icon_arrow_left_16,
|
|
21468
|
+
},
|
|
21469
|
+
arrowRight: {
|
|
21470
|
+
16: icon_arrow_right_16,
|
|
21471
|
+
},
|
|
21472
|
+
check: {
|
|
21473
|
+
16: icon_check_16,
|
|
21474
|
+
32: icon_check_32,
|
|
21475
|
+
},
|
|
21466
21476
|
};
|
|
21477
|
+
const Icon = ({ name, size = '32', className, alt }) => (o(preact_module/* Fragment */.HY, { children: [o("div", { "aria-hidden": "true", className: className || css_className('icon'), dangerouslySetInnerHTML: { __html: ICONS[name][size] } }), alt && o("span", { className: css_className('visually-hidden'), children: alt })] }));
|
|
21467
21478
|
/* harmony default export */ var layout_icon = (Icon);
|
|
21479
|
+
|
|
21468
21480
|
;// CONCATENATED MODULE: ./src/javascripts/ui/components/conversation/event/carousel-component/components/controls.js
|
|
21469
21481
|
|
|
21470
21482
|
|
|
@@ -21496,7 +21508,8 @@ function CarouselControls(_ref) {
|
|
|
21496
21508
|
onClick: handlePrevious,
|
|
21497
21509
|
children: o(layout_icon, {
|
|
21498
21510
|
name: "arrowLeft",
|
|
21499
|
-
size: "16"
|
|
21511
|
+
size: "16",
|
|
21512
|
+
alt: ""
|
|
21500
21513
|
})
|
|
21501
21514
|
}), children, o("button", {
|
|
21502
21515
|
className: css_className('button', 'button--next'),
|
|
@@ -21504,7 +21517,8 @@ function CarouselControls(_ref) {
|
|
|
21504
21517
|
onClick: handleNext,
|
|
21505
21518
|
children: o(layout_icon, {
|
|
21506
21519
|
name: "arrowRight",
|
|
21507
|
-
size: "16"
|
|
21520
|
+
size: "16",
|
|
21521
|
+
alt: ""
|
|
21508
21522
|
})
|
|
21509
21523
|
})]
|
|
21510
21524
|
});
|
|
@@ -21805,7 +21819,8 @@ const ChoicePrompt = _ref => {
|
|
|
21805
21819
|
"aria-describedby": descriptorId,
|
|
21806
21820
|
children: [showOptions ? t('message.choicePrompts.cancelChooseAgain') : t('message.choicePrompts.chooseAgain'), o(layout_icon, {
|
|
21807
21821
|
name: "chevronDown",
|
|
21808
|
-
size: "8"
|
|
21822
|
+
size: "8",
|
|
21823
|
+
alt: ""
|
|
21809
21824
|
})]
|
|
21810
21825
|
}), showOptions && o(message_container, {
|
|
21811
21826
|
type: "choice-prompt",
|
|
@@ -21867,7 +21882,8 @@ const SuggestionsItem = _ref => {
|
|
|
21867
21882
|
className: css_className('button', 'button--primary'),
|
|
21868
21883
|
children: [hasIcon && o(layout_icon, {
|
|
21869
21884
|
name: "chevronRight",
|
|
21870
|
-
size: "8"
|
|
21885
|
+
size: "8",
|
|
21886
|
+
alt: ""
|
|
21871
21887
|
}), question]
|
|
21872
21888
|
})
|
|
21873
21889
|
});
|
|
@@ -22109,7 +22125,8 @@ function EventDivider(_ref) {
|
|
|
22109
22125
|
children: iconName ? o(layout_icon, {
|
|
22110
22126
|
name: iconName,
|
|
22111
22127
|
size: iconSize,
|
|
22112
|
-
className: iconClassName
|
|
22128
|
+
className: iconClassName,
|
|
22129
|
+
alt: ""
|
|
22113
22130
|
}) : o("img", {
|
|
22114
22131
|
src: graphicSrc,
|
|
22115
22132
|
className: css_className({
|
|
@@ -24005,7 +24022,8 @@ const Lightbox = _ref => {
|
|
|
24005
24022
|
onClick: onClose,
|
|
24006
24023
|
children: [o(layout_icon, {
|
|
24007
24024
|
name: "close",
|
|
24008
|
-
size: "16"
|
|
24025
|
+
size: "16",
|
|
24026
|
+
alt: ""
|
|
24009
24027
|
}), t('lightbox.closeLabel')]
|
|
24010
24028
|
})]
|
|
24011
24029
|
})
|
|
@@ -24057,7 +24075,8 @@ const ImageLightbox = _ref => {
|
|
|
24057
24075
|
description
|
|
24058
24076
|
}), o(layout_icon, {
|
|
24059
24077
|
name: "enlarge",
|
|
24060
|
-
size: "32"
|
|
24078
|
+
size: "32",
|
|
24079
|
+
alt: ""
|
|
24061
24080
|
})]
|
|
24062
24081
|
}), showLightBox && o(lightbox, {
|
|
24063
24082
|
url: url,
|
|
@@ -26474,7 +26493,8 @@ function error_Error(_ref) {
|
|
|
26474
26493
|
className: css_className('error__message'),
|
|
26475
26494
|
children: [o(layout_icon, {
|
|
26476
26495
|
name: "error",
|
|
26477
|
-
size: "16"
|
|
26496
|
+
size: "16",
|
|
26497
|
+
alt: ""
|
|
26478
26498
|
}), error]
|
|
26479
26499
|
})
|
|
26480
26500
|
});
|
|
@@ -26862,7 +26882,8 @@ const OptionsButton = () => {
|
|
|
26862
26882
|
"aria-disabled": !multiMenu && !firstOption.available ? 'true' : null,
|
|
26863
26883
|
children: [multiMenu && o(layout_icon, {
|
|
26864
26884
|
name: "options",
|
|
26865
|
-
size: "32"
|
|
26885
|
+
size: "32",
|
|
26886
|
+
alt: ""
|
|
26866
26887
|
}), o("span", {
|
|
26867
26888
|
className: css_className('button__text'),
|
|
26868
26889
|
children: multiMenu ? t('options.openButtonText') : `${firstOption.title}${!firstOption.available ? ' ' : ''}`
|
|
@@ -26885,7 +26906,7 @@ const TranslationOption = ({ label, checked, description, onChange, id, itemClas
|
|
|
26885
26906
|
onChange();
|
|
26886
26907
|
}
|
|
26887
26908
|
};
|
|
26888
|
-
return (o("li", { className: css_className([itemClassName, 'translation-options__item']), "aria-selected": checked, role: "option", tabIndex: 0, onClick: onChange, onKeyDown: onKeyDown, id: id, children: [o(layout_icon, {
|
|
26909
|
+
return (o("li", { className: css_className([itemClassName, 'translation-options__item']), "aria-selected": checked, role: "option", tabIndex: 0, onClick: onChange, onKeyDown: onKeyDown, id: id, children: [o(layout_icon, { name: "check", size: "16", alt: "" }), label, " ", description && o("span", { children: ["(", description, ")"] })] }));
|
|
26889
26910
|
};
|
|
26890
26911
|
/* harmony default export */ var translation_option = (TranslationOption);
|
|
26891
26912
|
|
|
@@ -27729,7 +27750,8 @@ function FileInput(_ref) {
|
|
|
27729
27750
|
className: css_className('upload__label'),
|
|
27730
27751
|
children: [o(layout_icon, {
|
|
27731
27752
|
name: "upload",
|
|
27732
|
-
size: "32"
|
|
27753
|
+
size: "32",
|
|
27754
|
+
alt: ""
|
|
27733
27755
|
}), o("div", {
|
|
27734
27756
|
children: [o("span", {
|
|
27735
27757
|
className: css_className(['upload__label--text']),
|
|
@@ -28479,7 +28501,8 @@ const ButtonIcon = () => {
|
|
|
28479
28501
|
alt: ""
|
|
28480
28502
|
}) : o(layout_icon, {
|
|
28481
28503
|
name: "avatar",
|
|
28482
|
-
size: "32"
|
|
28504
|
+
size: "32",
|
|
28505
|
+
alt: ""
|
|
28483
28506
|
});
|
|
28484
28507
|
};
|
|
28485
28508
|
const WindowOpenButton = _ref => {
|
|
@@ -29180,7 +29203,8 @@ const AgentInfo = () => {
|
|
|
29180
29203
|
alt: ""
|
|
29181
29204
|
}) : o(layout_icon, {
|
|
29182
29205
|
name: "avatar",
|
|
29183
|
-
size: "32"
|
|
29206
|
+
size: "32",
|
|
29207
|
+
alt: ""
|
|
29184
29208
|
}), o("span", {
|
|
29185
29209
|
className: css_className(classNames),
|
|
29186
29210
|
"aria-hidden": "true",
|