Skip to content

Commit

Permalink
chore(visual-sdk): remove as it's no longer needed []
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishelgert committed Jan 17, 2024
1 parent 5caa1dc commit 3ead3a9
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 1,312 deletions.
1 change: 0 additions & 1 deletion packages/live-preview-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"homepage": "https://github.com/contentful/live-preview#readme",
"dependencies": {
"@contentful/rich-text-types": "^16.2.0",
"@contentful/visual-sdk": "1.0.0-alpha.39",
"flatted": "^3.2.9",
"graphql-tag": "^2.12.6",
"json-pointer": "^0.6.2",
Expand Down
17 changes: 2 additions & 15 deletions packages/live-preview-sdk/src/messages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { RequestEntitiesMessage, RequestedEntitiesMessage } from '@contentful/visual-sdk';
import { PostMessageMethods as StorePostMessageMethods } from '@contentful/visual-sdk';
import type { Asset, Entry } from 'contentful';
import type { SysLink } from 'contentful-management';

Expand Down Expand Up @@ -42,18 +40,9 @@ enum LivePreviewPostMessageMethods {
UNKNOWN_REFERENCE_LOADED = 'UNKNOWN_REFERENCE_LOADED',
}

export {
InspectorModeEventMethods,
LivePreviewPostMessageMethods,
RequestEntitiesMessage,
RequestedEntitiesMessage,
StorePostMessageMethods,
};
export { InspectorModeEventMethods, LivePreviewPostMessageMethods };

export type PostMessageMethods =
| LivePreviewPostMessageMethods
| StorePostMessageMethods
| InspectorModeEventMethods;
export type PostMessageMethods = LivePreviewPostMessageMethods | InspectorModeEventMethods;

export type ConnectedMessage = {
/** @deprecated use method instead */
Expand Down Expand Up @@ -112,7 +101,6 @@ export type EditorMessage =
| UnknownEntityMessage
| UrlChangedMessage
| SubscribedMessage
| RequestEntitiesMessage
| ErrorMessage
| InspectorModeMouseMoveMessage
| InspectorModeScrollMessage
Expand Down Expand Up @@ -162,7 +150,6 @@ export type MessageFromEditor = (
| UnknownReferenceLoaded
| InspectorModeChangedMessage
| DebugModeEnabledMessage
| RequestedEntitiesMessage
) & {
data: Argument;
method: PostMessageMethods;
Expand Down
3 changes: 0 additions & 3 deletions packages/visual-sdk/.eslintrc.cjs

This file was deleted.

18 changes: 0 additions & 18 deletions packages/visual-sdk/.swcrc

This file was deleted.

Loading

0 comments on commit 3ead3a9

Please sign in to comment.