@ui5/webcomponents-base 1.22.0-rc.2 → 1.22.0-rc.3

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.
@@ -2476,6 +2476,18 @@
2476
2476
  }
2477
2477
  ]
2478
2478
  },
2479
+ {
2480
+ "kind": "javascript-module",
2481
+ "path": "dist/ssr-dom-shim.js",
2482
+ "declarations": [],
2483
+ "exports": []
2484
+ },
2485
+ {
2486
+ "kind": "javascript-module",
2487
+ "path": "dist/ssr-dom.js",
2488
+ "declarations": [],
2489
+ "exports": []
2490
+ },
2479
2491
  {
2480
2492
  "kind": "javascript-module",
2481
2493
  "path": "dist/types.js",
@@ -1,11 +1,11 @@
1
1
  const VersionInfo = {
2
- version: "1.22.0-rc.1",
2
+ version: "1.22.0-rc.2",
3
3
  major: 1,
4
4
  minor: 22,
5
5
  patch: 0,
6
- suffix: "-rc.1",
6
+ suffix: "-rc.2",
7
7
  isNext: false,
8
- buildTime: 1706169926,
8
+ buildTime: 1706804744,
9
9
  };
10
10
  export default VersionInfo;
11
11
  //# sourceMappingURL=VersionInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"1.22.0-rc.1\",\n\tmajor: 1,\n\tminor: 22,\n\tpatch: 0,\n\tsuffix: \"-rc.1\",\n\tisNext: false,\n\tbuildTime: 1706169926,\n};\nexport default VersionInfo;"]}
1
+ {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"1.22.0-rc.2\",\n\tmajor: 1,\n\tminor: 22,\n\tpatch: 0,\n\tsuffix: \"-rc.2\",\n\tisNext: false,\n\tbuildTime: 1706804744,\n};\nexport default VersionInfo;"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /* eslint-disable max-classes-per-file */
2
+ import { HTMLElement, Element, customElements } from "@lit-labs/ssr-dom-shim";
3
+ globalThis.HTMLElement ??= HTMLElement;
4
+ globalThis.Element ??= Element;
5
+ globalThis.customElements ??= customElements;
6
+ class NodeShim {
7
+ }
8
+ globalThis.Node ??= NodeShim;
9
+ class FileListShim {
10
+ }
11
+ globalThis.FileList ??= FileListShim;
12
+ //# sourceMappingURL=ssr-dom-shim.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssr-dom-shim.js","sourceRoot":"","sources":["../src/ssr-dom-shim.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,UAAU,CAAC,WAAW,KAAK,WAAW,CAAC;AACvC,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC;AAC/B,UAAU,CAAC,cAAc,KAAK,cAAc,CAAC;AAE7C,MAAM,QAAQ;CAAG;AACjB,UAAU,CAAC,IAAI,KAAK,QAAiC,CAAC;AAEtD,MAAM,YAAY;CAAG;AACrB,UAAU,CAAC,QAAQ,KAAK,YAAyC,CAAC","sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n"]}
File without changes
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // no shims in the browser when imported via conditional export
3
+ //# sourceMappingURL=ssr-dom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssr-dom.js","sourceRoot":"","sources":["../src/ssr-dom.ts"],"names":[],"mappings":";AAAA,+DAA+D","sourcesContent":["// no shims in the browser when imported via conditional export\n"]}
@@ -1,5 +1,9 @@
1
1
  import { DEFAULT_LANGUAGE } from "../generated/AssetParameters.js";
2
+ const isSSR = typeof document === "undefined";
2
3
  const detectNavigatorLanguage = () => {
4
+ if (isSSR) {
5
+ return DEFAULT_LANGUAGE;
6
+ }
3
7
  const browserLanguages = navigator.languages;
4
8
  const navigatorLanguage = () => {
5
9
  return navigator.language;
@@ -1 +1 @@
1
- {"version":3,"file":"detectNavigatorLanguage.js","sourceRoot":"","sources":["../../src/util/detectNavigatorLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACpC,MAAM,gBAAgB,GAAG,SAAS,CAAC,SAAS,CAAC;IAE7C,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC9B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;IAEnF,OAAO,SAAS,IAAI,gBAAgB,CAAC;AACtC,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\n\nconst detectNavigatorLanguage = () => {\n\tconst browserLanguages = navigator.languages;\n\n\tconst navigatorLanguage = () => {\n\t\treturn navigator.language;\n\t};\n\n\tconst rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();\n\n\treturn rawLocale || DEFAULT_LANGUAGE;\n};\n\nexport default detectNavigatorLanguage;\n"]}
1
+ {"version":3,"file":"detectNavigatorLanguage.js","sourceRoot":"","sources":["../../src/util/detectNavigatorLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC;AAE9C,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACpC,IAAI,KAAK,EAAE;QACV,OAAO,gBAAgB,CAAC;KACxB;IACD,MAAM,gBAAgB,GAAG,SAAS,CAAC,SAAS,CAAC;IAE7C,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC9B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;IAEnF,OAAO,SAAS,IAAI,gBAAgB,CAAC;AACtC,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\n\nconst isSSR = typeof document === \"undefined\";\n\nconst detectNavigatorLanguage = () => {\n\tif (isSSR) {\n\t\treturn DEFAULT_LANGUAGE;\n\t}\n\tconst browserLanguages = navigator.languages;\n\n\tconst navigatorLanguage = () => {\n\t\treturn navigator.language;\n\t};\n\n\tconst rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();\n\n\treturn rawLocale || DEFAULT_LANGUAGE;\n};\n\nexport default detectNavigatorLanguage;\n"]}
@@ -260,6 +260,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
260
260
  ariaValueNow: string | null;
261
261
  ariaValueText: string | null;
262
262
  role: string | null;
263
+ ariaBraileLabel: string | null;
264
+ ariaBraileRoleDescription: string | null;
265
+ ariaDescription: string | null;
263
266
  animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
264
267
  getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
265
268
  after(...nodes: (string | Node)[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-base",
3
- "version": "1.22.0-rc.2",
3
+ "version": "1.22.0-rc.3",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -17,6 +17,11 @@
17
17
  "directory": "packages/base"
18
18
  },
19
19
  "exports": {
20
+ "./dist/ssr-dom.js": {
21
+ "browser": "./dist/ssr-dom.js",
22
+ "node": "./dist/ssr-dom-shim.js",
23
+ "default": "./dist/ssr-dom.js"
24
+ },
20
25
  ".": "./index.js",
21
26
  "./dist/*": "./dist/*",
22
27
  "./package.json": "./package.json",
@@ -32,15 +37,16 @@
32
37
  "generateAPI": "nps generateAPI",
33
38
  "bundle": "nps build.bundle",
34
39
  "test": "nps test",
35
- "prepublishOnly": "tsc"
40
+ "prepublishOnly": "tsc -b"
36
41
  },
37
42
  "dependencies": {
43
+ "@lit-labs/ssr-dom-shim": "^1.1.2",
38
44
  "lit-html": "^2.0.1"
39
45
  },
40
46
  "devDependencies": {
41
47
  "@openui5/sap.ui.core": "1.120.3",
42
- "@ui5/webcomponents-tools": "1.22.0-rc.2",
43
- "chromedriver": "119.0.1",
48
+ "@ui5/webcomponents-tools": "1.22.0-rc.3",
49
+ "chromedriver": "120.0.0",
44
50
  "clean-css": "^5.2.2",
45
51
  "copy-and-watch": "^0.1.5",
46
52
  "cross-env": "^7.0.3",
@@ -49,5 +55,5 @@
49
55
  "replace-in-file": "^6.3.5",
50
56
  "resolve": "^1.20.0"
51
57
  },
52
- "gitHead": "7075f9a181e13ac1be2a319b2de876ace16dd564"
58
+ "gitHead": "7ff123775e38dc646e3a1c70311e33b0c6d7105a"
53
59
  }