@seamly/web-ui 20.0.0-beta.3 → 20.0.0-beta.4

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 (66) hide show
  1. package/build/dist/lib/components.js +1 -1
  2. package/build/dist/lib/components.min.js +1 -1
  3. package/build/dist/lib/deprecated-view.css +1 -0
  4. package/build/dist/lib/deprecated-view.js +1 -0
  5. package/build/dist/lib/index.debug.js +75 -52
  6. package/build/dist/lib/index.debug.min.js +1 -1
  7. package/build/dist/lib/index.debug.min.js.LICENSE.txt +20 -12
  8. package/build/dist/lib/index.js +14465 -13888
  9. package/build/dist/lib/index.min.js +1 -1
  10. package/build/dist/lib/index.min.js.LICENSE.txt +5 -0
  11. package/build/dist/lib/standalone.js +19693 -19678
  12. package/build/dist/lib/standalone.min.js +1 -1
  13. package/build/dist/lib/style-guide.js +68 -26
  14. package/build/dist/lib/style-guide.min.js +1 -1
  15. package/build/dist/lib/styles-default-implementation.css +1 -0
  16. package/build/dist/lib/styles-default-implementation.js +1 -0
  17. package/build/dist/lib/styles.css +1 -1
  18. package/package.json +8 -7
  19. package/src/javascripts/domains/translations/components/options-button.js +1 -1
  20. package/src/javascripts/index.js +2 -2
  21. package/src/javascripts/lib/parse-body.js +1 -1
  22. package/src/javascripts/package/components.js +1 -1
  23. package/src/javascripts/style-guide/components/view.js +1 -0
  24. package/src/javascripts/style-guide/states.js +48 -6
  25. package/src/javascripts/ui/components/app-options/index.js +9 -3
  26. package/src/javascripts/ui/components/conversation/conversation.js +1 -1
  27. package/src/javascripts/ui/components/conversation/event/carousel-message/index.js +3 -1
  28. package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +12 -3
  29. package/src/javascripts/ui/components/conversation/event/hooks/use-text-rendering.js +35 -0
  30. package/src/javascripts/ui/components/conversation/event/participant.js +5 -2
  31. package/src/javascripts/ui/components/conversation/event/splash.js +2 -1
  32. package/src/javascripts/ui/components/conversation/event/text.js +2 -1
  33. package/src/javascripts/ui/components/entry/{toggle-button.js → deprecated-toggle-button.js} +0 -0
  34. package/src/javascripts/ui/components/entry/entry-container.js +1 -1
  35. package/src/javascripts/ui/components/layout/chat-frame.js +1 -1
  36. package/src/javascripts/ui/components/layout/{app-frame.js → chat.js} +10 -41
  37. package/src/javascripts/ui/components/layout/deprecated-app-frame.js +1 -8
  38. package/src/javascripts/ui/components/layout/header.js +1 -1
  39. package/src/javascripts/ui/components/options/options-button.js +2 -2
  40. package/src/javascripts/ui/components/suggestions/index.js +2 -2
  41. package/src/javascripts/ui/components/view/app-view.js +3 -3
  42. package/src/javascripts/ui/components/view/deprecated-view.js +2 -2
  43. package/src/javascripts/ui/components/view/index.js +61 -5
  44. package/src/javascripts/ui/components/view/inline-view.js +9 -3
  45. package/src/javascripts/ui/components/view/window-view/index.js +3 -3
  46. package/src/stylesheets/1-settings/_config.scss +6 -6
  47. package/src/stylesheets/{3-app/_app.scss → 3-chat/_chat.scss} +27 -25
  48. package/src/stylesheets/5-components/_conversation.scss +2 -2
  49. package/src/stylesheets/5-components/_disclaimer.scss +1 -1
  50. package/src/stylesheets/5-components/_message-count.scss +1 -0
  51. package/src/stylesheets/5-components/_modal.scss +2 -2
  52. package/src/stylesheets/5-components/_options.scss +8 -8
  53. package/src/stylesheets/5-components/_pre-chat-messages.scss +6 -2
  54. package/src/stylesheets/5-components/_suggestions.scss +12 -6
  55. package/src/stylesheets/5-components/_unstarted.scss +14 -8
  56. package/src/stylesheets/6-default-implementation/_hover.scss +153 -0
  57. package/src/stylesheets/{6-webui-only → 6-default-implementation}/_scrollbar.scss +1 -1
  58. package/src/stylesheets/7-deprecated/3-app/_app.scss +8 -8
  59. package/src/stylesheets/7-deprecated/5-components/_options.scss +8 -8
  60. package/src/stylesheets/styles-default-implementation.scss +3 -0
  61. package/src/stylesheets/styles.scss +8 -9
  62. package/webpack/config.package.js +9 -1
  63. package/webpack/defaults.js +3 -6
  64. package/src/javascripts/ui/components/layout/modal-wrapper.js +0 -0
  65. package/src/stylesheets/6-webui-only/_hover.scss +0 -151
  66. package/src/stylesheets/styles-webui-only.scss +0 -3
@@ -5685,7 +5685,7 @@ function TranslationsOptionButton() {
5685
5685
  })
5686
5686
  }), _jsxs("button", {
5687
5687
  type: "button",
5688
- className: className(['button', 'button--secondary', 'app__options__button']),
5688
+ className: className(['button', 'button--secondary', 'chat__options__button']),
5689
5689
  id: toggleButtonId,
5690
5690
  onClick: handleToggleClick,
5691
5691
  onKeyDown: handleToggleKeyDown,
@@ -6097,7 +6097,7 @@ const participantInfo = {
6097
6097
  'e65fa8dc-97ab-4711-8fec-82bae6461aa2': {
6098
6098
  avatar,
6099
6099
  id: 'e65fa8dc-97ab-4711-8fec-82bae6461aa2',
6100
- introduction: "You're now talking to Mrs. Bot gimme a minit",
6100
+ introduction: "You're now talking to {{name}} gimme a minit",
6101
6101
  name: 'Mrs. Bot',
6102
6102
  service: {
6103
6103
  expose: {
@@ -6112,7 +6112,7 @@ const participantInfo = {
6112
6112
  },
6113
6113
  'e65fa8dc-97ab-4711-8fec-82bae6461aa3': {
6114
6114
  id: 'e65fa8dc-97ab-4711-8fec-82bae6461aa3',
6115
- introduction: "You're now talking to Mrs. Bot gimme a minit",
6115
+ introduction: "You're now talking to {{name}} gimme a minit",
6116
6116
  name: 'Mrs. Bot',
6117
6117
  service: {
6118
6118
  expose: {
@@ -6213,7 +6213,8 @@ const infoMessage = {
6213
6213
  payload: {
6214
6214
  body: {
6215
6215
  text: 'This is a system generated info message',
6216
- type: 'text'
6216
+ type: 'text',
6217
+ variables: {}
6217
6218
  },
6218
6219
  fromClient: false,
6219
6220
  id: (0,web_ui_namespaceObject.randomId)(),
@@ -6266,7 +6267,7 @@ const participantMessage = {
6266
6267
  participant: {
6267
6268
  avatar,
6268
6269
  id: 'e65fa8dc-97ab-4711-8fec-82bae6461aa2',
6269
- introduction: "You're now talking to Mrs. Bot gimme a minit",
6270
+ introduction: "You're now talking to {{name}} gimme a minit",
6270
6271
  name: 'Mrs. Bot',
6271
6272
  service: {
6272
6273
  expose: {
@@ -6292,7 +6293,7 @@ const participantMessageDefaultIcon = {
6292
6293
  messageStatus: 'received',
6293
6294
  participant: {
6294
6295
  id: 'e65fa8dc-97ab-4711-8fec-82bae6461aa3',
6295
- introduction: "You're now talking to Mrs. Bot gimme a minit",
6296
+ introduction: "You're now talking to {{name}} gimme a minit",
6296
6297
  name: 'Mrs. Bot',
6297
6298
  service: {
6298
6299
  expose: {
@@ -6320,7 +6321,8 @@ const getCustomMessage = ({
6320
6321
  body: {
6321
6322
  type,
6322
6323
  text,
6323
- data
6324
+ data,
6325
+ variables: {}
6324
6326
  },
6325
6327
  participant: 'e65fa8dc-97ab-4711-8fec-82bae6461aa2',
6326
6328
  service: {
@@ -6345,7 +6347,8 @@ const shortTextMessage = {
6345
6347
  payload: {
6346
6348
  body: {
6347
6349
  text: 'What do you want to do?',
6348
- type: 'text'
6350
+ type: 'text',
6351
+ variables: {}
6349
6352
  },
6350
6353
  fromClient: false,
6351
6354
  fromHistory: true,
@@ -6409,7 +6412,8 @@ const longTextMessage = {
6409
6412
  payload: {
6410
6413
  body: {
6411
6414
  text: 'What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am. What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am. What do you want to do? This is a really long message from a bot that has a lot to say about a lot of things. Currently I am contemplating my own bot existence and constantly asking myself who I am.',
6412
- type: 'text'
6415
+ type: 'text',
6416
+ variables: {}
6413
6417
  },
6414
6418
  fromClient: false,
6415
6419
  fromHistory: true,
@@ -6433,7 +6437,8 @@ const textMessageBoldItalicUnderline = {
6433
6437
  payload: {
6434
6438
  body: {
6435
6439
  text: 'Bubble with **bold** *italic* <u>underline</u>',
6436
- type: 'text'
6440
+ type: 'text',
6441
+ variables: {}
6437
6442
  },
6438
6443
  fromClient: false,
6439
6444
  fromHistory: true,
@@ -6458,8 +6463,24 @@ const textMessageWithLinks = {
6458
6463
  type: 'message',
6459
6464
  payload: {
6460
6465
  body: {
6461
- text: '<a href="https://google.com" data-link-id="1">Link in same window</a> and <a href="https://google.com" data-link-id="2" target="_blank">link in new window</a> embedded in text',
6462
- type: 'text'
6466
+ text: '{{link_1}} and {{link_2}} embedded in text',
6467
+ type: 'text',
6468
+ variables: {
6469
+ link_1: {
6470
+ id: '1',
6471
+ name: 'Link in same window',
6472
+ newTab: false,
6473
+ type: 'link',
6474
+ url: 'https://google.com'
6475
+ },
6476
+ link_2: {
6477
+ id: '2',
6478
+ name: 'link in new window',
6479
+ newTab: true,
6480
+ type: 'link',
6481
+ url: 'https://google.com'
6482
+ }
6483
+ }
6463
6484
  },
6464
6485
  fromClient: false,
6465
6486
  fromHistory: true,
@@ -6484,8 +6505,17 @@ const textMessageWithLongLink = {
6484
6505
  type: 'message',
6485
6506
  payload: {
6486
6507
  body: {
6487
- text: 'Here is a long link <a href="https://google.com" data-link-id="1">click me click me please click me yoohoooo please please click me here I am click me now what are you waiting for click me now now now now now click meeeeeeeeeeeeee</a> embedded in text',
6488
- type: 'text'
6508
+ text: 'Here is a long link {{link_1}} embedded in text',
6509
+ type: 'text',
6510
+ variables: {
6511
+ link_1: {
6512
+ id: '1',
6513
+ name: 'click me click me please click me yoohoooo please please click me here I am click me now what are you waiting for click me now now now now now click meeeeeeeeeeeeee',
6514
+ newTab: false,
6515
+ type: 'link',
6516
+ url: 'https://google.com'
6517
+ }
6518
+ }
6489
6519
  },
6490
6520
  fromClient: false,
6491
6521
  fromHistory: true,
@@ -6511,7 +6541,8 @@ const textMesageWithBullets = {
6511
6541
  payload: {
6512
6542
  body: {
6513
6543
  text: '<ul>\n<li>Bullets</li>\n<li>bullets</li>\n<li>bullets</li>\n</ul>\n',
6514
- type: 'text'
6544
+ type: 'text',
6545
+ variables: {}
6515
6546
  },
6516
6547
  fromClient: false,
6517
6548
  fromHistory: true,
@@ -6672,7 +6703,8 @@ const userMessage = {
6672
6703
  payload: {
6673
6704
  body: {
6674
6705
  text: 'This is what the user typed',
6675
- type: 'text'
6706
+ type: 'text',
6707
+ variables: {}
6676
6708
  },
6677
6709
  fromClient: true,
6678
6710
  fromHistory: true,
@@ -6689,7 +6721,8 @@ const userMessageLong = {
6689
6721
  payload: {
6690
6722
  body: {
6691
6723
  text: 'This is what the user typed. And sometimes the user has quite a lot to say and then we get longer lines that need to wrap well and not break the styling so here goes with just such a line right here!!',
6692
- type: 'text'
6724
+ type: 'text',
6725
+ variables: {}
6693
6726
  },
6694
6727
  fromClient: true,
6695
6728
  fromHistory: true,
@@ -7146,7 +7179,8 @@ const standardState = {
7146
7179
  id: (0,web_ui_namespaceObject.randomId)(),
7147
7180
  body: {
7148
7181
  text: 'Long ago when a dialog started',
7149
- type: 'text'
7182
+ type: 'text',
7183
+ variables: {}
7150
7184
  }
7151
7185
  })
7152
7186
  }, participantMessage, participantMessageDefaultIcon, newTopicDivider, transcriptInfoMessage, ...[newTranslationDividerStart, newTranslationDividerStop].map(addTranslationData), infoMessage]
@@ -7190,7 +7224,8 @@ const standardState = {
7190
7224
  id: (0,web_ui_namespaceObject.randomId)(),
7191
7225
  body: {
7192
7226
  text: 'Long ago when a dialog started',
7193
- type: 'text'
7227
+ type: 'text',
7228
+ variables: {}
7194
7229
  }
7195
7230
  })
7196
7231
  }, {
@@ -7200,7 +7235,8 @@ const standardState = {
7200
7235
  id: (0,web_ui_namespaceObject.randomId)(),
7201
7236
  body: {
7202
7237
  text: 'Above me should be a time indicator showing the full date',
7203
- type: 'text'
7238
+ type: 'text',
7239
+ variables: {}
7204
7240
  }
7205
7241
  })
7206
7242
  }, {
@@ -7210,7 +7246,8 @@ const standardState = {
7210
7246
  id: (0,web_ui_namespaceObject.randomId)(),
7211
7247
  body: {
7212
7248
  text: 'Another message',
7213
- type: 'text'
7249
+ type: 'text',
7250
+ variables: {}
7214
7251
  }
7215
7252
  })
7216
7253
  }, {
@@ -7220,7 +7257,8 @@ const standardState = {
7220
7257
  id: (0,web_ui_namespaceObject.randomId)(),
7221
7258
  body: {
7222
7259
  text: 'And another message',
7223
- type: 'text'
7260
+ type: 'text',
7261
+ variables: {}
7224
7262
  }
7225
7263
  })
7226
7264
  }, {
@@ -7230,7 +7268,8 @@ const standardState = {
7230
7268
  id: (0,web_ui_namespaceObject.randomId)(),
7231
7269
  body: {
7232
7270
  text: 'Above me should be a time indicator showing "yesterday"',
7233
- type: 'text'
7271
+ type: 'text',
7272
+ variables: {}
7234
7273
  }
7235
7274
  })
7236
7275
  }, {
@@ -7240,7 +7279,8 @@ const standardState = {
7240
7279
  id: (0,web_ui_namespaceObject.randomId)(),
7241
7280
  body: {
7242
7281
  text: 'Another message',
7243
- type: 'text'
7282
+ type: 'text',
7283
+ variables: {}
7244
7284
  }
7245
7285
  })
7246
7286
  }, {
@@ -7250,7 +7290,8 @@ const standardState = {
7250
7290
  id: (0,web_ui_namespaceObject.randomId)(),
7251
7291
  body: {
7252
7292
  text: 'And another message',
7253
- type: 'text'
7293
+ type: 'text',
7294
+ variables: {}
7254
7295
  }
7255
7296
  })
7256
7297
  }, {
@@ -7260,7 +7301,8 @@ const standardState = {
7260
7301
  id: (0,web_ui_namespaceObject.randomId)(),
7261
7302
  body: {
7262
7303
  text: 'Above me should be a time indicator showing me the dialog continues today',
7263
- type: 'text'
7304
+ type: 'text',
7305
+ variables: {}
7264
7306
  }
7265
7307
  })
7266
7308
  }]