Skip to content

Commit 01963df

Browse files
Chaosteclaude
andauthored
feat(sdk): export internal types from public index for bundler resolution [SPA-4097] (#1596)
* feat(sdk): export internal types from public index for bundler resolution These types were previously only reachable via internal dist/ paths (e.g. @contentful/live-preview/dist/types), which worked under moduleResolution:node but fails under moduleResolution:bundler (Angular v21 default) because unlisted exports map entries are rejected. Exports added: Argument, SubscribeCallback, InspectorModeDataAttributes, InspectorModeEntryTags, InspectorModeTags. Adding them to the public index entry is additive and non-breaking. Co-Authored-By: Claude Opus 4.7 <[email protected]> * chore(sdk): revert test additions for type-only exports Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
1 parent 3c7e7c9 commit 01963df

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/live-preview-sdk/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,3 +409,10 @@ export { LIVE_PREVIEW_EDITOR_SOURCE, LIVE_PREVIEW_SDK_SOURCE } from './constants
409409

410410
export * from './messages.js';
411411
export { encodeGraphQLResponse, encodeCPAResponse, splitEncoding, parseAttributesFromHref };
412+
413+
export type { Argument, SubscribeCallback } from './types.js';
414+
export {
415+
InspectorModeDataAttributes,
416+
type InspectorModeEntryTags,
417+
type InspectorModeTags,
418+
} from './inspectorMode/types.js';

0 commit comments

Comments
 (0)