@exdst-sitecore-content-sdk/astro 0.0.20 → 0.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exdst-sitecore-content-sdk/astro",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -49,7 +49,7 @@
49
49
  "@types/sinon-chai": "^4.0.0",
50
50
  "@typescript-eslint/eslint-plugin": "8.39.0",
51
51
  "@typescript-eslint/parser": "8.39.0",
52
- "astro": "^5.18.1",
52
+ "astro": "^6.1.1",
53
53
  "chai": "^4.4.1",
54
54
  "chai-spies": "^1.1.0",
55
55
  "chai-string": "^1.6.0",
@@ -317,7 +317,6 @@ describe('<Image />', () => {
317
317
 
318
318
  expect(rendered?.getAttribute('loading')).to.equal('lazy');
319
319
  expect(rendered?.getAttribute('decoding')).to.equal('async');
320
- expect(rendered?.getAttribute('fetchpriority')).to.equal('auto');
321
320
  });
322
321
 
323
322
  test('should render no <img /> when media prop is empty', async () => {
@@ -6,9 +6,6 @@ import {
6
6
  } from '@sitecore-content-sdk/content/config';
7
7
  import { resolveEdgeUrl } from '@sitecore-content-sdk/core/tools';
8
8
 
9
- /** Env var for Edge hostname; exposed to the browser so client code can use it. */
10
- const PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME_ENV = 'PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME';
11
-
12
9
  /**
13
10
  * Provides default Astro initial values from env variables for SitecoreConfig
14
11
  * @param {SitecoreConfigInput} config optional override values to be written over default config settings
@@ -25,7 +22,7 @@ export const getAstroFallbackConfig = (config?: SitecoreConfigInput): SitecoreCo
25
22
  clientContextId:
26
23
  config?.api?.edge?.clientContextId || process.env.PUBLIC_SITECORE_EDGE_CONTEXT_ID,
27
24
  edgeUrl: resolveEdgeUrl(
28
- config?.api?.edge?.edgeUrl ?? process.env.PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME_ENV
25
+ config?.api?.edge?.edgeUrl ?? process.env.PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME
29
26
  ),
30
27
  },
31
28
  local: {
@@ -64,7 +64,7 @@ const buildAstroMapContent: ComponentMapTemplate = (components, componentImports
64
64
  }
65
65
  });
66
66
 
67
- return `//@ts-nocheck
67
+ return `
68
68
  import type { AstroContentSdkComponent } from '@exdst-sitecore-content-sdk/astro';
69
69
 
70
70
  // Components imported from the app itself