ublo-lib 1.38.3 → 1.38.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/script.tsx"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,2CAa9C"}
1
+ {"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/script.tsx"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,2CAY9C"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import NextScript from "next/script";
2
3
  export function Script({ msemUrl }) {
3
4
  const setLoaded = () => {
4
5
  window.MseMLoaded = true;
5
6
  };
6
- return (_jsx("script", { src: `${msemUrl}/static/js/widget-msem.js`, onLoad: setLoaded, async: true, defer: true }));
7
+ return (_jsx(NextScript, { src: `${msemUrl}/static/js/widget-msem.js`, onLoad: setLoaded, defer: true }));
7
8
  }
@@ -1,4 +1,40 @@
1
1
  .form {
2
+ --ds-sans-serif-font: var(
3
+ --ublo-content-font,
4
+ system-ui,
5
+ -apple-system,
6
+ BlinkMacSystemFont,
7
+ "Segoe UI",
8
+ "Roboto",
9
+ "Oxygen",
10
+ "Ubuntu",
11
+ "Cantarell",
12
+ "Fira Sans",
13
+ "Droid Sans",
14
+ "Helvetica Neue",
15
+ Arial,
16
+ sans-serif
17
+ );
18
+ --ds-mono-font: var(
19
+ --ublo-code-font,
20
+ ui-monospace,
21
+ Menlo,
22
+ Monaco,
23
+ "Cascadia Mono",
24
+ "Segoe UI Mono",
25
+ "Roboto Mono",
26
+ "Oxygen Mono",
27
+ "Ubuntu Monospace",
28
+ "Source Code Pro",
29
+ "Fira Mono",
30
+ "Droid Sans Mono",
31
+ "Courier New",
32
+ monospace
33
+ );
34
+
35
+ --ds-primary: var(--ublo-primary-color, #073ff8);
36
+ --ds-secondary: var(--ublo-secondary-color, #4177f6);
37
+
2
38
  max-width: 100%;
3
39
  display: flex;
4
40
  flex-direction: column;
@@ -1,4 +1,40 @@
1
1
  .dialog {
2
+ --ds-sans-serif-font: var(
3
+ --ublo-content-font,
4
+ system-ui,
5
+ -apple-system,
6
+ BlinkMacSystemFont,
7
+ "Segoe UI",
8
+ "Roboto",
9
+ "Oxygen",
10
+ "Ubuntu",
11
+ "Cantarell",
12
+ "Fira Sans",
13
+ "Droid Sans",
14
+ "Helvetica Neue",
15
+ Arial,
16
+ sans-serif
17
+ );
18
+ --ds-mono-font: var(
19
+ --ublo-code-font,
20
+ ui-monospace,
21
+ Menlo,
22
+ Monaco,
23
+ "Cascadia Mono",
24
+ "Segoe UI Mono",
25
+ "Roboto Mono",
26
+ "Oxygen Mono",
27
+ "Ubuntu Monospace",
28
+ "Source Code Pro",
29
+ "Fira Mono",
30
+ "Droid Sans Mono",
31
+ "Courier New",
32
+ monospace
33
+ );
34
+
35
+ --ds-primary: var(--ublo-primary-color, #073ff8);
36
+ --ds-secondary: var(--ublo-secondary-color, #4177f6);
37
+
2
38
  display: flex;
3
39
  flex-direction: column;
4
40
  padding: 16px;
@@ -6,7 +6,7 @@ import Dialog from "dt-design-system/es/dialog";
6
6
  import Input from "dt-design-system/es/input";
7
7
  import Tooltip from "dt-design-system/es/tooltip";
8
8
  import * as Icons from "dt-design-system/es/icons";
9
- import * as MseM from "../../components/msem";
9
+ import * as MseM from "../../components/msem/utils";
10
10
  import ResortSelector from "./components/resort-selector";
11
11
  import FacetSelector from "./components/facet-selector";
12
12
  import StayPicker from "./components/stay-picker";
@@ -9,7 +9,8 @@ type Props = {
9
9
  msemServicesUrl: string;
10
10
  target: HTMLElement | null;
11
11
  resorts?: Resort[];
12
+ close: () => void;
12
13
  };
13
- export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, close, }: Props): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
15
16
  //# sourceMappingURL=msem-preset-linker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"AAGA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAO,GACR,EAAE,KAAK,2CA2BP"}
1
+ {"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"AAGA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAO,EACP,KAAK,GACN,EAAE,KAAK,2CA8BP"}
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import EditorDialog from "../msem-preset-editor/editor-dialog";
3
3
  const PRESET_ATTRIBUTE = "data-msem-preset";
4
- export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, }) {
4
+ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, close, }) {
5
5
  const link = target?.querySelector(":scope > a");
6
6
  const urlOverride = link?.getAttribute("href") || undefined;
7
+ const closeEditor = () => {
8
+ close();
9
+ };
7
10
  const updatePreset = (newPreset) => {
8
11
  if (newPreset) {
9
12
  target?.setAttribute(PRESET_ATTRIBUTE, JSON.stringify(newPreset));
@@ -11,7 +14,7 @@ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUr
11
14
  else {
12
15
  target?.removeAttribute(PRESET_ATTRIBUTE);
13
16
  }
17
+ closeEditor();
14
18
  };
15
- const closeEditor = () => { };
16
19
  return (_jsx(EditorDialog, { lang: lang, channel: channel, resort: resort, msemServicesUrl: msemServicesUrl, target: target, updatePreset: updatePreset, closeEditor: closeEditor, urlOverride: urlOverride, resorts: resorts }));
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.38.3",
3
+ "version": "1.38.5",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.9.9",
6
6
  "leaflet": "^1.9.1",