@contentful/experiences-svelte 0.5.11 → 0.6.0

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +2 -2
  3. package/dist/ClientExperienceRenderer.svelte +55 -9
  4. package/dist/ClientExperienceRenderer.svelte.d.ts.map +1 -1
  5. package/dist/ComponentError.svelte +35 -0
  6. package/dist/ComponentError.svelte.d.ts +5 -0
  7. package/dist/ComponentError.svelte.d.ts.map +1 -0
  8. package/dist/DebugExperience.svelte +22 -3
  9. package/dist/DebugExperience.svelte.d.ts.map +1 -1
  10. package/dist/DebugExperience.test.js +76 -2
  11. package/dist/NodeRenderer.svelte +62 -6
  12. package/dist/NodeRenderer.svelte.d.ts +3 -1
  13. package/dist/NodeRenderer.svelte.d.ts.map +1 -1
  14. package/dist/NodeRenderer.test.d.ts +2 -0
  15. package/dist/NodeRenderer.test.d.ts.map +1 -0
  16. package/dist/NodeRenderer.test.js +124 -0
  17. package/dist/NodesRenderer.svelte +48 -5
  18. package/dist/NodesRenderer.svelte.d.ts +3 -1
  19. package/dist/NodesRenderer.svelte.d.ts.map +1 -1
  20. package/dist/ServerExperienceRenderer.svelte +37 -7
  21. package/dist/ServerExperienceRenderer.svelte.d.ts.map +1 -1
  22. package/dist/component-props.d.ts +30 -5
  23. package/dist/component-props.d.ts.map +1 -1
  24. package/dist/debug-panel-coverage.ssr.test.d.ts +2 -0
  25. package/dist/debug-panel-coverage.ssr.test.d.ts.map +1 -0
  26. package/dist/debug-panel-coverage.ssr.test.js +61 -0
  27. package/dist/debug-panel-coverage.test.d.ts +2 -0
  28. package/dist/debug-panel-coverage.test.d.ts.map +1 -0
  29. package/dist/debug-panel-coverage.test.js +229 -0
  30. package/dist/index.d.ts +5 -4
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +2 -1
  33. package/dist/nodes-renderer.ssr.test.js +49 -0
  34. package/dist/server-renderer.test.js +57 -3
  35. package/dist/test-fixtures/BrokenFixture.svelte +4 -0
  36. package/dist/test-fixtures/BrokenFixture.svelte.d.ts +19 -0
  37. package/dist/test-fixtures/BrokenFixture.svelte.d.ts.map +1 -0
  38. package/dist/types.d.ts +3 -17
  39. package/dist/types.d.ts.map +1 -1
  40. package/package.json +4 -4
@@ -15,6 +15,7 @@ import { describe, expect, it } from 'vitest';
15
15
  import { render } from 'svelte/server';
16
16
  import { resolveExperience } from '@contentful/experiences-sdk-core';
17
17
  import ServerExperienceRenderer from './ServerExperienceRenderer.svelte';
18
+ import BrokenFixture from './test-fixtures/BrokenFixture.svelte';
18
19
  import ButtonFixture from './test-fixtures/ButtonFixture.svelte';
19
20
  import ContainerFixture from './test-fixtures/ContainerFixture.svelte';
20
21
  import ExperienceTemplateFixture from './test-fixtures/ExperienceTemplateFixture.svelte';
@@ -124,3 +125,51 @@ describe('NodesRenderer — SSR (server-compiled output)', () => {
124
125
  expect(html).not.toContain('<main');
125
126
  });
126
127
  });
128
+ /*
129
+ * The load-bearing SSR/CSR asymmetry this ticket documents: unlike React's
130
+ * class-boundary + internal <Suspense> (which degrades gracefully under both
131
+ * legacy and streaming SSR — see the React adapter's nodes-renderer.ssr.test.tsx),
132
+ * Svelte's native `<svelte:boundary>` has NO server-rendering story at all.
133
+ * `svelte/server`'s render is a synchronous string walk with no boundary
134
+ * concept; a throw during that walk simply propagates. This is proven here,
135
+ * not just asserted in a comment, per the plan's "prove it, don't just
136
+ * document it" bar. See `NodeRenderer.test.ts` for the client-side catch.
137
+ */
138
+ describe('NodesRenderer — SSR component-render-error (the documented gap)', () => {
139
+ const brokenConfig = {
140
+ components: { broken: BrokenFixture, 'contentful-button': ButtonFixture },
141
+ };
142
+ it('has no recovery path under svelte/server — no graceful fallback markup is produced', async () => {
143
+ const payload = {
144
+ viewports: VIEWPORTS,
145
+ nodes: [componentNode('broken', { id: 'b' }), button('sibling')],
146
+ };
147
+ const plan = await resolveExperience(payload, brokenConfig);
148
+ // Propagates as an exception in most runs, but the exact timing is
149
+ // inconsistent across invocation contexts (sync throw in some runs,
150
+ // seemingly swallowed in others) — unlike React's deterministic
151
+ // Suspense-based degradation, Svelte's `<svelte:boundary>` has no
152
+ // supported SSR recovery contract at all, so nothing guarantees *how*
153
+ // the failure surfaces. The one invariant that holds in every run: the
154
+ // `failed` snippet's markup never appears, so there's no graceful
155
+ // degradation to rely on either way. No adapter-level fix is possible —
156
+ // `svelte/server` has no per-node recovery primitive below its single
157
+ // top-level `render()` call — see the README's SvelteKit mitigation note.
158
+ let html;
159
+ let caught;
160
+ try {
161
+ html = render(ServerExperienceRenderer, {
162
+ props: { experience: plan, config: brokenConfig },
163
+ }).body;
164
+ }
165
+ catch (err) {
166
+ caught = err;
167
+ }
168
+ if (caught) {
169
+ expect(caught.message).toBe('boom');
170
+ }
171
+ else {
172
+ expect(html).not.toContain('data-experiences-render-error');
173
+ }
174
+ });
175
+ });
@@ -187,6 +187,9 @@ describe('ServerExperienceRenderer', () => {
187
187
  const planWithMissing = {
188
188
  viewports: VIEWPORTS,
189
189
  fallbackViewportIndex: 0,
190
+ metadata: {},
191
+ debug: false,
192
+ diagnostics: [],
190
193
  nodes: [
191
194
  {
192
195
  nodeId: 'root',
@@ -299,6 +302,9 @@ describe('ServerExperienceRenderer', () => {
299
302
  const planWithResolved = {
300
303
  viewports: VIEWPORTS,
301
304
  fallbackViewportIndex: 0,
305
+ metadata: {},
306
+ debug: false,
307
+ diagnostics: [],
302
308
  nodes: [
303
309
  {
304
310
  nodeId: 'r',
@@ -390,12 +396,14 @@ describe('ServerExperienceRenderer', () => {
390
396
  };
391
397
  const plan = await resolveExperience(tplPayload, cfg);
392
398
  const { container } = render(ServerExperienceRenderer, {
393
- props: { experience: plan, config: cfg },
399
+ props: { experience: plan, config: cfg, debug: true },
394
400
  });
395
401
  // The subtree survives — an unregistered template must not blank the page.
396
402
  expect(container.innerHTML).toContain('data-value="unwrapped"');
397
403
  expect(container.innerHTML).not.toContain('data-experience-template');
398
404
  expect(warn).toHaveBeenCalledWith(expect.stringContaining('missing-experienceTemplate'));
405
+ expect(container.innerHTML).toContain('data-experiences-debug-errors');
406
+ expect(container.innerHTML).toContain('No experience template registered for id "missing-experienceTemplate"');
399
407
  warn.mockRestore();
400
408
  });
401
409
  });
@@ -557,7 +565,7 @@ describe('ServerExperienceRenderer — resolveToken', () => {
557
565
  expect(container.innerHTML).toContain('data-bg="#4f39f6"');
558
566
  expect(container.innerHTML).not.toContain('DesignToken');
559
567
  });
560
- it('warns and drops the key from the design values when the resolver returns undefined', async () => {
568
+ it('warns and passes the raw token through the design values when the resolver returns undefined', async () => {
561
569
  const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
562
570
  const cfg = {
563
571
  components: { 'contentful-button': CapturingComponent },
@@ -576,7 +584,7 @@ describe('ServerExperienceRenderer — resolveToken', () => {
576
584
  render(ServerExperienceRenderer, {
577
585
  props: { experience: plan, config: cfg },
578
586
  });
579
- expect(captureSink[0].designValues).not.toHaveProperty('cfBackgroundColor');
587
+ expect(captureSink[0].designValues.cfBackgroundColor).toEqual(dt('color/unknown'));
580
588
  expect(warn).toHaveBeenCalledWith(expect.stringContaining('color/unknown'));
581
589
  expect(warn).toHaveBeenCalledWith(expect.stringContaining('contentful-button'));
582
590
  warn.mockRestore();
@@ -790,3 +798,49 @@ describe('toCss (Svelte)', () => {
790
798
  expect(toCss({ backgroundColor: '#4f39f6', padding: '10px' }, { exclude: ['padding'] })).toEqual({ backgroundColor: '#4f39f6' });
791
799
  });
792
800
  });
801
+ describe('ServerExperienceRenderer — render context carried on the plan', () => {
802
+ beforeEach(() => {
803
+ captureSink.splice(0);
804
+ });
805
+ const captureConfig = { components: { capture: CapturingComponent } };
806
+ const buildPlan = (opts) => resolveExperience({ viewports: VIEWPORTS, nodes: [componentNode('capture', { id: 'c' })] }, captureConfig, opts);
807
+ it('reads metadata off the plan without it being passed to the renderer', async () => {
808
+ const plan = await buildPlan({ metadata: { slug: 'home', locale: 'en-US' } });
809
+ render(ServerExperienceRenderer, { props: { experience: plan, config: captureConfig } });
810
+ expect(captureSink[0].experience.metadata).toEqual({ slug: 'home', locale: 'en-US' });
811
+ });
812
+ it('reads debug off the plan without it being passed to the renderer', async () => {
813
+ const plan = await buildPlan({ debug: true });
814
+ render(ServerExperienceRenderer, { props: { experience: plan, config: captureConfig } });
815
+ expect(captureSink[0].experience.debug).toBe(true);
816
+ });
817
+ it('shallow-merges the metadata prop over the plan value', async () => {
818
+ const plan = await buildPlan({ metadata: { slug: 'home', locale: 'en-US' } });
819
+ render(ServerExperienceRenderer, {
820
+ props: {
821
+ experience: plan,
822
+ config: captureConfig,
823
+ metadata: { locale: 'de-DE', extra: true },
824
+ },
825
+ });
826
+ expect(captureSink[0].experience.metadata).toEqual({
827
+ slug: 'home',
828
+ locale: 'de-DE',
829
+ extra: true,
830
+ });
831
+ });
832
+ it('lets an explicit debug={false} override a plan fetched with debug on', async () => {
833
+ const plan = await buildPlan({ debug: true });
834
+ render(ServerExperienceRenderer, {
835
+ props: { experience: plan, config: captureConfig, debug: false },
836
+ });
837
+ expect(captureSink[0].experience.debug).toBe(false);
838
+ });
839
+ it('renders the debug panel from the plan alone', async () => {
840
+ const plan = await buildPlan({ debug: true });
841
+ const { container } = render(ServerExperienceRenderer, {
842
+ props: { experience: plan, config: captureConfig },
843
+ });
844
+ expect(container.innerHTML).toContain('Experience debug');
845
+ });
846
+ });
@@ -0,0 +1,4 @@
1
+ <!-- Throws unconditionally — used to exercise `component-render-error` isolation. -->
2
+ <script lang="ts">
3
+ throw new Error('boom');
4
+ </script>
@@ -0,0 +1,19 @@
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const BrokenFixture: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, string>;
17
+ type BrokenFixture = InstanceType<typeof BrokenFixture>;
18
+ export default BrokenFixture;
19
+ //# sourceMappingURL=BrokenFixture.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrokenFixture.svelte.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/BrokenFixture.svelte.ts"],"names":[],"mappings":"AAUA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IACtG,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,aAAa;;kBAA+E,CAAC;AACjF,KAAK,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAe,aAAa,CAAC"}
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Component } from 'svelte';
2
- import type { DesignPropValue, ExperienceContext, ResolveContext, ResolveToken, ViewportDef } from '@contentful/experiences-sdk-core';
2
+ import type { DesignPropValue, RenderContext, ResolveContext, ResolveToken } from '@contentful/experiences-sdk-core';
3
3
  export type { ResolveContext, ResolveToken };
4
4
  /**
5
5
  * The full Contentful-side payload for a single component instance, exposed
@@ -39,22 +39,8 @@ export interface ContentfulExperienceTemplate {
39
39
  design: Record<string, DesignPropValue>;
40
40
  resolved?: Record<string, unknown>;
41
41
  }
42
- /**
43
- * Render-time experience context. Extends the core `ExperienceContext` with
44
- * the active viewport — a render-time value that resolvers cannot see.
45
- * Exposed via `getExperience()`.
46
- */
47
- export interface RenderContext extends ExperienceContext {
48
- activeViewport: ViewportDef;
49
- activeViewportIndex: number;
50
- /**
51
- * Viewport index the server pre-resolved design against (from
52
- * `PortableRenderPlan.fallbackViewportIndex`). Renderers use `props.design`
53
- * as-is when `activeViewportIndex` matches, and recompute otherwise. Always a
54
- * number — the plan field is required, so the match is a real comparison.
55
- */
56
- fallbackViewportIndex: number;
57
- }
42
+ /** Render-time experience context, read with `getExperience()`. Declared in core so all adapters share one shape. */
43
+ export type { RenderContext };
58
44
  /**
59
45
  * Customer-supplied configuration for a single component type. The `component`
60
46
  * receives the merged props (design + content + resolveData + one `Snippet[]`
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AAE7C;;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AC,GAAG,CAAC,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEnD,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrF,MAAM,EAAE,wBAAwB,CAAC,KAAK,CAAC,GACtC,wBAAwB,CAAC,KAAK,CAAC,CAEjC;AAED,wBAAgB,eAAe,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5E,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,GAC7B,eAAe,CAAC,KAAK,CAAC,CAExB;AAED;;;GAGG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAE3D;;;;;GAKG;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtF,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,EAC7D,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,GACnB,eAAe,CAAC,CAAC,CAAC,CAMpB;AAED,wBAAgB,uCAAuC,CAAC,CAAC,SAAS,MAAM,EACtE,GAAG,EAAE,8BAA8B,CAAC,CAAC,CAAC,GACrC,wBAAwB,CAAC,CAAC,CAAC,CAM7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-svelte",
3
- "version": "0.5.11",
3
+ "version": "0.6.0",
4
4
  "description": "Svelte adapter for Contentful Experiences — Server and Client renderers over a PortableRenderPlan",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "check": "svelte-check --tsconfig ./tsconfig.json"
36
36
  },
37
37
  "dependencies": {
38
- "@contentful/experiences-client": "0.3.10",
39
- "@contentful/experiences-sdk-core": "0.7.10",
40
- "@contentful/experiences-design": "0.7.10"
38
+ "@contentful/experiences-client": "0.4.0",
39
+ "@contentful/experiences-sdk-core": "0.8.0",
40
+ "@contentful/experiences-design": "0.8.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "svelte": "^5.55.7"