@websolutespa/bom-llm 0.0.31 → 0.0.32

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.32
4
+
5
+ ### Patch Changes
6
+
7
+ - 0e85a82: Added: LlmApp additionalLogos
8
+ - 0e85a82: Modified: theme & style
9
+
3
10
  ## 0.0.31
4
11
 
5
12
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -39,6 +39,9 @@ type LlmContents = {
39
39
  layoutBuilder: LlmCard[];
40
40
  logo?: IMedia;
41
41
  logoMini?: IMedia;
42
+ additionalLogos?: {
43
+ logo: IMedia;
44
+ }[];
42
45
  promptPlaceholder?: string;
43
46
  sampleInputTexts: LlmSampleInputText[];
44
47
  shortWelcomeText: string;
@@ -182,6 +182,9 @@
182
182
  font-display: swap;
183
183
  }
184
184
  */
185
+ .llm ::selection {
186
+ background: var(--llm-color-accent-foreground);
187
+ }
185
188
  .llm,
186
189
  .llm h1,
187
190
  .llm h2,
@@ -1272,67 +1275,54 @@ llm-embed {
1272
1275
  height: 70px;
1273
1276
  }
1274
1277
  }
1275
- .llm .llm__header-logo-full {
1276
- position: relative;
1277
- overflow: hidden;
1278
- width: clamp(130px, 130px + (100vw - 375px) / 1545 * 70, 200px);
1279
- }
1280
- .llm .llm__header-logo-full > iframe,
1281
- .llm .llm__header-logo-full > picture,
1282
- .llm .llm__header-logo-full > picture > img,
1283
- .llm .llm__header-logo-full > img,
1284
- .llm .llm__header-logo-full > svg {
1285
- display: block;
1286
- position: absolute;
1287
- left: 0;
1288
- top: 0;
1289
- width: 100%;
1290
- height: 100%;
1291
- object-fit: cover;
1292
- object-position: center;
1278
+ .llm .llm__header-logo {
1279
+ display: flex;
1280
+ align-items: center;
1281
+ flex-wrap: wrap;
1282
+ column-gap: 1em;
1283
+ row-gap: 0.5em;
1293
1284
  }
1294
- .llm .llm__header-logo-full:after {
1295
- content: "";
1296
- display: block;
1297
- height: 0;
1298
- padding-bottom: 30.303030303%;
1285
+ .llm .llm__header-logo-full {
1286
+ height: clamp(40px, 40px + (100vw - 375px) / 1545 * 20, 60px);
1287
+ /*
1288
+ @include imgPad(198, 60);
1289
+ width: clampValue(130, 200);
1290
+ */
1299
1291
  }
1300
1292
  .-llm-scrolled .llm .llm__header-logo-full {
1301
1293
  display: none;
1302
1294
  }
1303
1295
  .llm .llm__header-logo-full > img {
1296
+ height: 100%;
1304
1297
  object-fit: contain;
1305
1298
  }
1306
1299
  .llm .llm__header-logo-mini {
1307
- position: relative;
1308
- overflow: hidden;
1300
+ height: clamp(40px, 40px + (100vw - 375px) / 1545 * 20, 60px);
1301
+ /*
1302
+ @include imgPad(65, 60);
1309
1303
  width: 43px;
1304
+ */
1310
1305
  display: none;
1311
1306
  }
1312
- .llm .llm__header-logo-mini > iframe,
1313
- .llm .llm__header-logo-mini > picture,
1314
- .llm .llm__header-logo-mini > picture > img,
1315
- .llm .llm__header-logo-mini > img,
1316
- .llm .llm__header-logo-mini > svg {
1307
+ .-llm-scrolled .llm .llm__header-logo-mini {
1317
1308
  display: block;
1318
- position: absolute;
1319
- left: 0;
1320
- top: 0;
1321
- width: 100%;
1309
+ }
1310
+ .llm .llm__header-logo-mini > img {
1322
1311
  height: 100%;
1323
- object-fit: cover;
1324
- object-position: center;
1312
+ object-fit: contain;
1325
1313
  }
1326
- .llm .llm__header-logo-mini:after {
1327
- content: "";
1328
- display: block;
1329
- height: 0;
1330
- padding-bottom: 92.3076923077%;
1314
+ .llm .llm__header-logo-additional {
1315
+ height: clamp(28px, 28px + (100vw - 375px) / 1545 * 12, 40px);
1316
+ /*
1317
+ @include imgPad(198, 60);
1318
+ width: clampValue(130, 200);
1319
+ */
1331
1320
  }
1332
- .-llm-scrolled .llm .llm__header-logo-mini {
1333
- display: block;
1321
+ .-llm-scrolled .llm .llm__header-logo-additional {
1322
+ display: none;
1334
1323
  }
1335
- .llm .llm__header-logo-mini > img {
1324
+ .llm .llm__header-logo-additional > img {
1325
+ height: 100%;
1336
1326
  object-fit: contain;
1337
1327
  }
1338
1328
  .llm .llm__header-skip {
@@ -2880,7 +2870,7 @@ llm-embed {
2880
2870
  line-height: var(--llm-typography-body4-line-height);
2881
2871
  letter-spacing: var(--llm-typography-body4-letter-spacing);
2882
2872
  font-size: clamp(var(--llm-typography-body4-font-size-min) * 1px, var(--llm-typography-body4-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-body4-font-size-max) - var(--llm-typography-body4-font-size-min)), var(--llm-typography-body4-font-size-max) * 1px);
2883
- font-weight: 100;
2873
+ font-weight: 400;
2884
2874
  overflow: hidden;
2885
2875
  text-overflow: ellipsis;
2886
2876
  display: -webkit-box;
@@ -2894,7 +2884,7 @@ llm-embed {
2894
2884
  line-height: var(--llm-typography-body5-line-height);
2895
2885
  letter-spacing: var(--llm-typography-body5-letter-spacing);
2896
2886
  font-size: clamp(var(--llm-typography-body5-font-size-min) * 1px, var(--llm-typography-body5-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-body5-font-size-max) - var(--llm-typography-body5-font-size-min)), var(--llm-typography-body5-font-size-max) * 1px);
2897
- font-weight: 100;
2887
+ font-weight: 300;
2898
2888
  overflow: hidden;
2899
2889
  text-overflow: ellipsis;
2900
2890
  display: -webkit-box;
package/dist/umd/index.js CHANGED
@@ -17945,7 +17945,8 @@
17945
17945
  };
17946
17946
  var border = "1px solid var(--llm-color-neutral-200)";
17947
17947
  var canvas = {
17948
- opacity: 0.8
17948
+ opacity: 0.8,
17949
+ enabled: true
17949
17950
  };
17950
17951
  var trigger$1 = {
17951
17952
  size: "60px",
@@ -21105,7 +21106,7 @@ void main(void) {
21105
21106
  const canvasRef = reactExports.useRef();
21106
21107
  const shaderRef = reactExports.useRef();
21107
21108
  reactExports.useEffect(() => {
21108
- if (canvasRef.current == null && isBrowser$1) {
21109
+ if (canvasRef.current == null && theme.canvas.enabled && isBrowser$1) {
21109
21110
  if (!sharedCanvas) {
21110
21111
  const pixelRatio = window.devicePixelRatio;
21111
21112
  sharedCanvas = document.createElement('canvas');
@@ -21172,7 +21173,7 @@ void main(void) {
21172
21173
  const pixelRatio = window.devicePixelRatio;
21173
21174
  reactExports.useEffect(() => {
21174
21175
  // console.log('useCanvasOffscreen', canvasRef.current);
21175
- if (canvasRef.current != null) {
21176
+ if (canvasRef.current != null && isBrowser$1) {
21176
21177
  const canvas = canvasRef.current;
21177
21178
  const onResize = _ref3 => {
21178
21179
  let [entry] = _ref3;
@@ -21665,6 +21666,7 @@ void main(void) {
21665
21666
  const label = useLabel();
21666
21667
  const logo = app?.contents.logo;
21667
21668
  const logoMini = app?.contents?.logoMini;
21669
+ const additionalLogos = app?.contents?.additionalLogos;
21668
21670
  const classes = getClassNames('llm__header', {
21669
21671
  hidden,
21670
21672
  fixed
@@ -21682,7 +21684,13 @@ void main(void) {
21682
21684
  src: logo.src || logo.url,
21683
21685
  alt: logo.alt
21684
21686
  })
21685
- }), logoMini && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
21687
+ }), additionalLogos && additionalLogos.map((x, i) => /*#__PURE__*/jsxRuntimeExports.jsx("div", {
21688
+ className: "llm__header-logo-additional",
21689
+ children: /*#__PURE__*/jsxRuntimeExports.jsx("img", {
21690
+ src: x.logo.src || x.logo.url,
21691
+ alt: x.logo.alt
21692
+ })
21693
+ }, i)), logoMini && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
21686
21694
  className: "llm__header-logo-mini",
21687
21695
  children: /*#__PURE__*/jsxRuntimeExports.jsx("img", {
21688
21696
  src: logoMini.src || logoMini.url,