@breadstone/mosaik-elements-svelte 0.0.130 → 0.0.132

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 +10 -0
  2. package/index.mjs +49 -200
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.0.132 (2025-08-24)
2
+
3
+ This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
4
+
5
+ ## 0.0.131 (2025-08-23)
6
+
7
+ ### 🚀 Features
8
+
9
+ - reorder appearance input in ChatMarker components and ensure consistent usage across implementations ([eb5b88f6aa](https://github.com/RueDeRennes/mosaik/commit/eb5b88f6aa))
10
+
1
11
  ## 0.0.130 (2025-08-22)
2
12
 
3
13
  ### 🚀 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,25 @@ 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
+ <mosaik-button part="cancel"
111916
+ .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
111917
  .type="${"button"}"
111919
111918
  .dir="${o.dir}"
111920
111919
  .appearance="${"plain"}"
111921
111920
  ?disabled=${o.disabled}
111922
111921
  @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"}"
111922
+ <mosaik-button part="stop"
111923
+ .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
111924
  .type="${"button"}"
111925
111925
  .dir="${o.dir}"
111926
111926
  .appearance="${"plain"}"
111927
111927
  ?disabled=${o.disabled}
111928
- @click=${() => o.recStop.emit()}>
111929
- </mosaik-button>
111928
+ @click=${() => o.recStop.emit()}></mosaik-button>
111929
+ <mosaik-text part="timer"
111930
+ aria-live="polite"
111931
+ .dir="${o.dir}"
111932
+ .text="${t()}"></mosaik-text>
111930
111933
  </div>
111931
111934
  `)}
111932
111935
  `;
@@ -111952,14 +111955,14 @@ const qC = {
111952
111955
  function Rv() {
111953
111956
  return m`
111954
111957
  :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;
111958
+ --chat-voice-recorder-tool-font-family: var(--joy-font-family);
111959
+ --chat-voice-recorder-tool-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
111960
+ --chat-voice-recorder-tool-font-line-height: var(--joy-typography-body1-line-height);
111961
+ --chat-voice-recorder-tool-font-size: var(--joy-typography-body1-font-size);
111962
+ --chat-voice-recorder-tool-font-text-decoration: var(--joy-typography-body1-text-decoration);
111963
+ --chat-voice-recorder-tool-font-text-transform: var(--joy-typography-body1-text-transform);
111964
+ --chat-voice-recorder-tool-font-weight: var(--joy-typography-body1-font-weight);
111965
+ --chat-voice-recorder-tool-gap: var(--joy-layout-space);
111963
111966
  --chat-voice-recorder-tool-padding-bottom: unset;
111964
111967
  --chat-voice-recorder-tool-padding-left: unset;
111965
111968
  --chat-voice-recorder-tool-padding-right: unset;
@@ -111997,193 +112000,36 @@ function Rv() {
111997
112000
  }
111998
112001
 
111999
112002
  :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;
112107
- }
112108
-
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;
112003
+ font-family: var(--chat-voice-recorder-tool-font-family);
112004
+ font-size: var(--chat-voice-recorder-tool-font-size);
112005
+ line-height: var(--chat-voice-recorder-tool-font-line-height);
112006
+ font-weight: var(--chat-voice-recorder-tool-font-weight);
112007
+ letter-spacing: var(--chat-voice-recorder-tool-font-letter-spacing);
112008
+ -webkit-text-decoration: var(--chat-voice-recorder-tool-font-text-decoration);
112009
+ text-decoration: var(--chat-voice-recorder-tool-font-text-decoration);
112010
+ text-transform: var(--chat-voice-recorder-tool-font-text-transform);
112011
+ gap: var(--chat-voice-recorder-tool-gap);
112133
112012
  }
112134
112013
 
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 {
112014
+ :host [part="row"] {
112015
+ gap: inherit;
112016
+ flex-direction: row;
112145
112017
  align-items: center;
112146
- gap: .75rem;
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;
112029
+ border-radius: var(--chat-border-radius);
112030
+ background: var(--chat-background-color);
112031
+ font-variant-numeric: tabular-nums;
112032
+ padding: 4px 8px;
112187
112033
  }
112188
112034
 
112189
112035
  `;
@@ -113604,12 +113450,12 @@ function rQ() {
113604
113450
  }
113605
113451
 
113606
113452
  :host [part="attachments"] {
113453
+ gap: var(--chat-input-gap);
113607
113454
  margin-top: var(--chat-input-padding-top);
113608
113455
  margin-bottom: var(--chat-input-padding-bottom);
113609
113456
  margin-left: var(--chat-input-padding-left);
113610
113457
  margin-right: var(--chat-input-padding-right);
113611
113458
  flex-wrap: nowrap;
113612
- gap: .5rem;
113613
113459
  display: flex;
113614
113460
  overflow-x: auto;
113615
113461
  }
@@ -113619,6 +113465,7 @@ function rQ() {
113619
113465
  margin-bottom: var(--chat-input-padding-bottom);
113620
113466
  margin-left: var(--chat-input-padding-left);
113621
113467
  margin-right: var(--chat-input-padding-right);
113468
+ gap: var(--chat-input-gap);
113622
113469
  flex-direction: row;
113623
113470
  display: flex;
113624
113471
  }
@@ -113875,12 +113722,12 @@ function nQ() {
113875
113722
  }
113876
113723
 
113877
113724
  :host [part="attachments"] {
113725
+ gap: var(--chat-input-gap);
113878
113726
  margin-top: var(--chat-input-padding-top);
113879
113727
  margin-bottom: var(--chat-input-padding-bottom);
113880
113728
  margin-left: var(--chat-input-padding-left);
113881
113729
  margin-right: var(--chat-input-padding-right);
113882
113730
  flex-wrap: nowrap;
113883
- gap: .5rem;
113884
113731
  display: flex;
113885
113732
  overflow-x: auto;
113886
113733
  }
@@ -113890,6 +113737,7 @@ function nQ() {
113890
113737
  margin-bottom: var(--chat-input-padding-bottom);
113891
113738
  margin-left: var(--chat-input-padding-left);
113892
113739
  margin-right: var(--chat-input-padding-right);
113740
+ gap: var(--chat-input-gap);
113893
113741
  flex-direction: row;
113894
113742
  display: flex;
113895
113743
  }
@@ -113985,12 +113833,12 @@ function aQ() {
113985
113833
  }
113986
113834
 
113987
113835
  :host [part="attachments"] {
113836
+ gap: var(--chat-input-gap);
113988
113837
  margin-top: var(--chat-input-padding-top);
113989
113838
  margin-bottom: var(--chat-input-padding-bottom);
113990
113839
  margin-left: var(--chat-input-padding-left);
113991
113840
  margin-right: var(--chat-input-padding-right);
113992
113841
  flex-wrap: nowrap;
113993
- gap: .5rem;
113994
113842
  display: flex;
113995
113843
  overflow-x: auto;
113996
113844
  }
@@ -114000,6 +113848,7 @@ function aQ() {
114000
113848
  margin-bottom: var(--chat-input-padding-bottom);
114001
113849
  margin-left: var(--chat-input-padding-left);
114002
113850
  margin-right: var(--chat-input-padding-right);
113851
+ gap: var(--chat-input-gap);
114003
113852
  flex-direction: row;
114004
113853
  display: flex;
114005
113854
  }
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.132",
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.132",
19
+ "@breadstone/mosaik-elements-foundation": "^0.0.132",
20
20
  "tslib": "^2.8.1"
21
21
  },
22
22
  "exports": {