@breadstone/mosaik-elements-svelte 0.0.130 → 0.0.131

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 (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/index.mjs +46 -201
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.0.131 (2025-08-23)
2
+
3
+ ### 🚀 Features
4
+
5
+ - reorder appearance input in ChatMarker components and ensure consistent usage across implementations ([eb5b88f6aa](https://github.com/RueDeRennes/mosaik/commit/eb5b88f6aa))
6
+
1
7
  ## 0.0.130 (2025-08-22)
2
8
 
3
9
  ### 🚀 Features
package/index.mjs CHANGED
@@ -111903,7 +111903,7 @@ function MJ(o) {
111903
111903
  };
111904
111904
  return x`
111905
111905
  ${$(o.state === "idle", () => x`
111906
- <mosaik-button .icon="${"M18.25 11a.75.75 0 0 1 .743.648l.007.102v.5a6.75 6.75 0 0 1-6.249 6.732l-.001 2.268a.75.75 0 0 1-1.493.102l-.007-.102v-2.268a6.75 6.75 0 0 1-6.246-6.496L5 12.25v-.5a.75.75 0 0 1 1.493-.102l.007.102v.5a5.25 5.25 0 0 0 5.034 5.246l.216.004h.5a5.25 5.25 0 0 0 5.246-5.034l.004-.216v-.5a.75.75 0 0 1 .75-.75ZM12 2a4 4 0 0 1 4 4v6a4 4 0 0 1-8 0V6a4 4 0 0 1 4-4Z"}"
111906
+ <mosaik-button part="start" .icon="${"M18.25 11a.75.75 0 0 1 .743.648l.007.102v.5a6.75 6.75 0 0 1-6.249 6.732l-.001 2.268a.75.75 0 0 1-1.493.102l-.007-.102v-2.268a6.75 6.75 0 0 1-6.246-6.496L5 12.25v-.5a.75.75 0 0 1 1.493-.102l.007.102v.5a5.25 5.25 0 0 0 5.034 5.246l.216.004h.5a5.25 5.25 0 0 0 5.246-5.034l.004-.216v-.5a.75.75 0 0 1 .75-.75ZM12 2a4 4 0 0 1 4 4v6a4 4 0 0 1-8 0V6a4 4 0 0 1 4-4Z"}"
111907
111907
  .type="${"button"}"
111908
111908
  .dir="${o.dir}"
111909
111909
  .appearance="${"plain"}"
@@ -111911,22 +111911,26 @@ function MJ(o) {
111911
111911
  @click=${() => o.recStart.emit()}></mosaik-button>
111912
111912
  `)}
111913
111913
  ${$(o.state !== "idle", () => x`
111914
- <div class="row">
111915
- <span class="timer" aria-live="polite">${t()}</span>
111916
- <div class="spacer"></div>
111917
- <mosaik-button .icon="${"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm3.53 6.47-.084-.073a.75.75 0 0 0-.882-.007l-.094.08L12 10.939l-2.47-2.47-.084-.072a.75.75 0 0 0-.882-.007l-.094.08-.073.084a.75.75 0 0 0-.007.882l.08.094L10.939 12l-2.47 2.47-.072.084a.75.75 0 0 0-.007.882l.08.094.084.073a.75.75 0 0 0 .882.007l.094-.08L12 13.061l2.47 2.47.084.072a.75.75 0 0 0 .882.007l.094-.08.073-.084a.75.75 0 0 0 .007-.882l-.08-.094L13.061 12l2.47-2.47.072-.084a.75.75 0 0 0 .007-.882l-.08-.094-.084-.073.084.073Z"}"
111914
+ <div part="row">
111915
+
111916
+ <mosaik-button part="cancel"
111917
+ .icon="${"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm3.53 6.47-.084-.073a.75.75 0 0 0-.882-.007l-.094.08L12 10.939l-2.47-2.47-.084-.072a.75.75 0 0 0-.882-.007l-.094.08-.073.084a.75.75 0 0 0-.007.882l.08.094L10.939 12l-2.47 2.47-.072.084a.75.75 0 0 0-.007.882l.08.094.084.073a.75.75 0 0 0 .882.007l.094-.08L12 13.061l2.47 2.47.084.072a.75.75 0 0 0 .882.007l.094-.08.073-.084a.75.75 0 0 0 .007-.882l-.08-.094L13.061 12l2.47-2.47.072-.084a.75.75 0 0 0 .007-.882l-.08-.094-.084-.073.084.073Z"}"
111918
111918
  .type="${"button"}"
111919
111919
  .dir="${o.dir}"
111920
111920
  .appearance="${"plain"}"
111921
111921
  ?disabled=${o.disabled}
111922
111922
  @click=${() => o.recCancel.emit()}></mosaik-button>
111923
- <mosaik-button .icon="${"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm3.22 6.97-4.47 4.47-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5a.75.75 0 1 0-1.06-1.06Z"}"
111923
+ <mosaik-button part="stop"
111924
+ .icon="${"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm3.22 6.97-4.47 4.47-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5a.75.75 0 1 0-1.06-1.06Z"}"
111924
111925
  .type="${"button"}"
111925
111926
  .dir="${o.dir}"
111926
111927
  .appearance="${"plain"}"
111927
111928
  ?disabled=${o.disabled}
111928
- @click=${() => o.recStop.emit()}>
111929
- </mosaik-button>
111929
+ @click=${() => o.recStop.emit()}></mosaik-button>
111930
+ <mosaik-text part="timer"
111931
+ aria-live="polite"
111932
+ .dir="${o.dir}"
111933
+ .text="${t()}"></mosaik-text>
111930
111934
  </div>
111931
111935
  `)}
111932
111936
  `;
@@ -111952,14 +111956,14 @@ const qC = {
111952
111956
  function Rv() {
111953
111957
  return m`
111954
111958
  :host {
111955
- --chat-voice-recorder-tool-font-family: unset;
111956
- --chat-voice-recorder-tool-font-letter-spacing: unset;
111957
- --chat-voice-recorder-tool-font-line-height: unset;
111958
- --chat-voice-recorder-tool-font-size: unset;
111959
- --chat-voice-recorder-tool-font-text-decoration: unset;
111960
- --chat-voice-recorder-tool-font-text-transform: unset;
111961
- --chat-voice-recorder-tool-font-weight: unset;
111962
- --chat-voice-recorder-tool-gap: unset;
111959
+ --chat-voice-recorder-tool-font-family: var(--joy-font-family);
111960
+ --chat-voice-recorder-tool-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
111961
+ --chat-voice-recorder-tool-font-line-height: var(--joy-typography-body1-line-height);
111962
+ --chat-voice-recorder-tool-font-size: var(--joy-typography-body1-font-size);
111963
+ --chat-voice-recorder-tool-font-text-decoration: var(--joy-typography-body1-text-decoration);
111964
+ --chat-voice-recorder-tool-font-text-transform: var(--joy-typography-body1-text-transform);
111965
+ --chat-voice-recorder-tool-font-weight: var(--joy-typography-body1-font-weight);
111966
+ --chat-voice-recorder-tool-gap: var(--joy-layout-space);
111963
111967
  --chat-voice-recorder-tool-padding-bottom: unset;
111964
111968
  --chat-voice-recorder-tool-padding-left: unset;
111965
111969
  --chat-voice-recorder-tool-padding-right: unset;
@@ -111997,193 +112001,31 @@ function Rv() {
111997
112001
  }
111998
112002
 
111999
112003
  :host {
112000
- --vr-accent: #5b8cff;
112001
- --vr-danger: #ff4d6d;
112002
- color: #eaeef7;
112003
- display: block;
112004
- }
112005
-
112006
- :host .vr {
112007
- background: linear-gradient(#ffffff08, #ffffff03);
112008
- border: 1px solid #ffffff14;
112009
- border-radius: 16px;
112010
- gap: 1rem;
112011
- padding: 1rem;
112012
- display: grid;
112013
- box-shadow: 0 10px 30px #00000040;
112014
- }
112015
-
112016
- :host .vr__mic {
112017
- background: radial-gradient(60% 60%, #5b8cff40, #5b8cff0d);
112018
- border: 1px solid #5b8cff40;
112019
- border-radius: 50%;
112020
- place-items: center;
112021
- margin-inline: auto;
112022
- transition: transform .12s, opacity .12s;
112023
- display: grid;
112024
- position: relative;
112025
- }
112026
-
112027
- :host .vr__mic.is-recording {
112028
- transform: scale(1.02);
112029
- }
112030
-
112031
- :host .vr__mic.is-paused {
112032
- opacity: .9;
112033
- }
112034
-
112035
- :host .vr__ring {
112036
- pointer-events: none;
112037
- background: var(--ring, conic-gradient(var(--vr-accent) 0deg, #ffffff1a 0));
112038
- border-radius: 50%;
112039
- position: absolute;
112040
- inset: -10px;
112041
- -webkit-mask: radial-gradient(circle, #0000 57%, #000 58%);
112042
- mask: radial-gradient(circle, #0000 57%, #000 58%);
112043
- }
112044
-
112045
- :host .vr__btn {
112046
- all: unset;
112047
- cursor: pointer;
112048
- background: #151a2e;
112049
- border: 1px solid #ffffff14;
112050
- border-radius: 50%;
112051
- place-items: center;
112052
- width: 64px;
112053
- height: 64px;
112054
- transition: transform .12s, background .12s, box-shadow .12s;
112055
- display: grid;
112056
- box-shadow: 0 4px 12px #00000040;
112057
- }
112058
-
112059
- :host .vr__btn:hover {
112060
- background: #1a2040;
112061
- transform: translateY(-1px);
112062
- }
112063
-
112064
- :host .vr__btn:active {
112065
- transform: translateY(0);
112066
- }
112067
-
112068
- :host .vr__controls {
112069
- gap: .75rem;
112070
- display: flex;
112071
- }
112072
-
112073
- :host .vr__btn--stop {
112074
- background: #ff4d6d1f;
112075
- border-color: #ff4d6d59;
112076
- }
112077
-
112078
- :host .vr__btn--pause {
112079
- background: #ffffff0f;
112080
- }
112081
-
112082
- :host .vr__btn--resume {
112083
- background: #5b8cff2e;
112084
- border-color: #5b8cff80;
112085
- }
112086
-
112087
- :host .vr__dot {
112088
- background: var(--vr-accent);
112089
- border-radius: 50%;
112090
- width: 14px;
112091
- height: 14px;
112092
- box-shadow: 0 0 18px #5b8cffe6;
112093
- }
112094
-
112095
- :host .vr__stop {
112096
- background: var(--vr-danger);
112097
- border-radius: 4px;
112098
- width: 14px;
112099
- height: 14px;
112100
- box-shadow: 0 0 18px #ff4d6db3;
112101
- }
112102
-
112103
- :host .vr__pause {
112104
- width: 16px;
112105
- height: 16px;
112106
- position: relative;
112004
+ font-family: var(--chat-voice-recorder-tool-font-family);
112005
+ font-size: var(--chat-voice-recorder-tool-font-size);
112006
+ line-height: var(--chat-voice-recorder-tool-font-line-height);
112007
+ font-weight: var(--chat-voice-recorder-tool-font-weight);
112008
+ letter-spacing: var(--chat-voice-recorder-tool-font-letter-spacing);
112009
+ -webkit-text-decoration: var(--chat-voice-recorder-tool-font-text-decoration);
112010
+ text-decoration: var(--chat-voice-recorder-tool-font-text-decoration);
112011
+ text-transform: var(--chat-voice-recorder-tool-font-text-transform);
112012
+ gap: var(--chat-voice-recorder-tool-gap);
112107
112013
  }
112108
112014
 
112109
- :host .vr__pause:before, :host .vr__pause:after {
112110
- content: "";
112111
- background: #eaeef7;
112112
- border-radius: 2px;
112113
- width: 4px;
112114
- position: absolute;
112115
- top: 0;
112116
- bottom: 0;
112117
- }
112118
-
112119
- :host .vr__pause:before {
112120
- left: 2px;
112121
- }
112122
-
112123
- :host .vr__pause:after {
112124
- right: 2px;
112125
- }
112126
-
112127
- :host .vr__resume {
112128
- border-top: 8px solid #0000;
112129
- border-bottom: 8px solid #0000;
112130
- border-left: 14px solid #eaeef7;
112131
- width: 0;
112132
- height: 0;
112133
- }
112134
-
112135
- :host .vr__timer {
112136
- font-variant-numeric: tabular-nums;
112137
- color: #cfd8ff;
112138
- text-shadow: 0 1px #0000004d;
112139
- font-weight: 600;
112140
- position: absolute;
112141
- bottom: -28px;
112142
- }
112143
-
112144
- :host .vr__actions {
112145
- align-items: center;
112146
- gap: .75rem;
112015
+ :host [part="row"] {
112016
+ gap: inherit;
112017
+ flex-direction: row;
112147
112018
  display: flex;
112148
112019
  }
112149
112020
 
112150
- :host .vr__player {
112151
- width: min(480px, 100%);
112152
- }
112153
-
112154
- :host .vr__spacer {
112155
- flex: auto;
112156
- }
112157
-
112158
- :host .vr__action {
112159
- all: unset;
112160
- cursor: pointer;
112161
- -webkit-user-select: none;
112162
- -moz-user-select: none;
112163
- user-select: none;
112164
- border-radius: 8px;
112165
- padding: .5rem .9rem;
112166
- font-weight: 600;
112167
- transition: background .12s, transform .12s;
112168
- }
112169
-
112170
- :host .vr__action--ghost {
112171
- background: #ffffff0f;
112172
- border: 1px solid #ffffff1f;
112173
- }
112174
-
112175
- :host .vr__action--ghost:hover {
112176
- background: #ffffff1f;
112177
- }
112178
-
112179
- :host .vr__action--primary {
112180
- color: #0c1022;
112181
- background: linear-gradient(#6ea3ff, #5b8cff);
112182
- box-shadow: 0 8px 18px #5b8cff59;
112183
- }
112184
-
112185
- :host .vr__action--primary:hover {
112186
- transform: translateY(-1px);
112021
+ :host [part="row"] [part="timer"] {
112022
+ font-family: inherit;
112023
+ font-size: inherit;
112024
+ line-height: inherit;
112025
+ font-weight: inherit;
112026
+ letter-spacing: inherit;
112027
+ text-decoration: inherit;
112028
+ text-transform: inherit;
112187
112029
  }
112188
112030
 
112189
112031
  `;
@@ -113604,12 +113446,12 @@ function rQ() {
113604
113446
  }
113605
113447
 
113606
113448
  :host [part="attachments"] {
113449
+ gap: var(--chat-input-gap);
113607
113450
  margin-top: var(--chat-input-padding-top);
113608
113451
  margin-bottom: var(--chat-input-padding-bottom);
113609
113452
  margin-left: var(--chat-input-padding-left);
113610
113453
  margin-right: var(--chat-input-padding-right);
113611
113454
  flex-wrap: nowrap;
113612
- gap: .5rem;
113613
113455
  display: flex;
113614
113456
  overflow-x: auto;
113615
113457
  }
@@ -113619,6 +113461,7 @@ function rQ() {
113619
113461
  margin-bottom: var(--chat-input-padding-bottom);
113620
113462
  margin-left: var(--chat-input-padding-left);
113621
113463
  margin-right: var(--chat-input-padding-right);
113464
+ gap: var(--chat-input-gap);
113622
113465
  flex-direction: row;
113623
113466
  display: flex;
113624
113467
  }
@@ -113875,12 +113718,12 @@ function nQ() {
113875
113718
  }
113876
113719
 
113877
113720
  :host [part="attachments"] {
113721
+ gap: var(--chat-input-gap);
113878
113722
  margin-top: var(--chat-input-padding-top);
113879
113723
  margin-bottom: var(--chat-input-padding-bottom);
113880
113724
  margin-left: var(--chat-input-padding-left);
113881
113725
  margin-right: var(--chat-input-padding-right);
113882
113726
  flex-wrap: nowrap;
113883
- gap: .5rem;
113884
113727
  display: flex;
113885
113728
  overflow-x: auto;
113886
113729
  }
@@ -113890,6 +113733,7 @@ function nQ() {
113890
113733
  margin-bottom: var(--chat-input-padding-bottom);
113891
113734
  margin-left: var(--chat-input-padding-left);
113892
113735
  margin-right: var(--chat-input-padding-right);
113736
+ gap: var(--chat-input-gap);
113893
113737
  flex-direction: row;
113894
113738
  display: flex;
113895
113739
  }
@@ -113985,12 +113829,12 @@ function aQ() {
113985
113829
  }
113986
113830
 
113987
113831
  :host [part="attachments"] {
113832
+ gap: var(--chat-input-gap);
113988
113833
  margin-top: var(--chat-input-padding-top);
113989
113834
  margin-bottom: var(--chat-input-padding-bottom);
113990
113835
  margin-left: var(--chat-input-padding-left);
113991
113836
  margin-right: var(--chat-input-padding-right);
113992
113837
  flex-wrap: nowrap;
113993
- gap: .5rem;
113994
113838
  display: flex;
113995
113839
  overflow-x: auto;
113996
113840
  }
@@ -114000,6 +113844,7 @@ function aQ() {
114000
113844
  margin-bottom: var(--chat-input-padding-bottom);
114001
113845
  margin-left: var(--chat-input-padding-left);
114002
113846
  margin-right: var(--chat-input-padding-right);
113847
+ gap: var(--chat-input-gap);
114003
113848
  flex-direction: row;
114004
113849
  display: flex;
114005
113850
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "description": "Mosaik elements for Svelte.",
5
5
  "license": "MIT",
6
6
  "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
@@ -15,8 +15,8 @@
15
15
  "vite": "*"
16
16
  },
17
17
  "dependencies": {
18
- "@breadstone/mosaik-elements": "^0.0.130",
19
- "@breadstone/mosaik-elements-foundation": "^0.0.130",
18
+ "@breadstone/mosaik-elements": "^0.0.131",
19
+ "@breadstone/mosaik-elements-foundation": "^0.0.131",
20
20
  "tslib": "^2.8.1"
21
21
  },
22
22
  "exports": {