@lwrjs/shared-utils 0.17.2-alpha.21 → 0.17.2-alpha.22

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.
@@ -166,7 +166,6 @@ function extractMetadataFromHtml(htmlSource, viewMetadata, appConfig) {
166
166
  }
167
167
  });
168
168
  return {
169
- ...viewMetadata,
170
169
  customElements: customElements.filter((ce) => !nestedIslands || hasHydrationDirective(ce.props)),
171
170
  assetReferences
172
171
  };
@@ -1,11 +1,11 @@
1
- import type { NormalizedLwrGlobalConfig, RenderedViewMetadata } from '@lwrjs/types';
1
+ import type { HtmlMetadata, NormalizedLwrGlobalConfig, RenderedViewMetadata } from '@lwrjs/types';
2
2
  export declare function isRelative(url: string): boolean;
3
3
  export declare function isSelfUrl(url: string): boolean;
4
4
  /**
5
5
  * Pull the custom elements and img tags out of an HTML string, to use as metadata
6
6
  * @param htmlSource - An HTML string to parse
7
7
  */
8
- export declare function extractMetadataFromHtml(htmlSource: string, viewMetadata: RenderedViewMetadata, appConfig: NormalizedLwrGlobalConfig): RenderedViewMetadata;
8
+ export declare function extractMetadataFromHtml(htmlSource: string, viewMetadata: RenderedViewMetadata, appConfig: NormalizedLwrGlobalConfig): HtmlMetadata;
9
9
  export declare const HYDRATE_DIRECTIVE = "lwr:hydrate";
10
10
  export declare const HYDRATE_LOAD_VALUE = "load";
11
11
  export declare const HYDRATE_CLIENT_VALUE = "client-only";
@@ -165,7 +165,6 @@ export function extractMetadataFromHtml(htmlSource, viewMetadata, appConfig) {
165
165
  },
166
166
  });
167
167
  return {
168
- ...viewMetadata,
169
168
  customElements: customElements.filter((ce) => !nestedIslands || hasHydrationDirective(ce.props)),
170
169
  assetReferences,
171
170
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.17.2-alpha.21",
7
+ "version": "0.17.2-alpha.22",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "build/**/*.d.ts"
38
38
  ],
39
39
  "dependencies": {
40
- "@lwrjs/diagnostics": "0.17.2-alpha.21",
40
+ "@lwrjs/diagnostics": "0.17.2-alpha.22",
41
41
  "es-module-lexer": "^1.5.4",
42
42
  "fast-json-stable-stringify": "^2.1.0",
43
43
  "magic-string": "^0.30.9",
@@ -50,7 +50,7 @@
50
50
  "slugify": "^1.4.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@lwrjs/types": "0.17.2-alpha.21",
53
+ "@lwrjs/types": "0.17.2-alpha.22",
54
54
  "@types/mime-types": "2.1.4",
55
55
  "@types/path-to-regexp": "^1.7.0",
56
56
  "memfs": "^4.13.0"
@@ -58,5 +58,5 @@
58
58
  "engines": {
59
59
  "node": ">=20.0.0"
60
60
  },
61
- "gitHead": "448ae2b681a4718241a29890f34e0ac13e35e6fd"
61
+ "gitHead": "89460a05096fe25860f06a9bea2c5c9a25b9cf05"
62
62
  }