Socket
Socket
Sign inDemoInstall

contentful-ui-extensions-sdk

Package Overview
Dependencies
Maintainers
12
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-ui-extensions-sdk - npm Package Compare versions

Comparing version 4.13.0 to 4.14.0

dist/types/cmaClient.types.d.ts

2

dist/index.d.ts
import { KnownSDK } from './types';
export * from './types';
export { default as locations } from './locations';
declare type Init = <T extends KnownSDK = KnownSDK>(initCallback: (sdk: T) => any, options?: {
type Init = <T extends KnownSDK = KnownSDK>(initCallback: (sdk: T) => any, options?: {
supressIframeWarning?: boolean;
}) => void;
export declare const init: Init;

@@ -110,6 +110,6 @@ import { ContentType, EditorInterface, SpaceMembership, Role, ContentTypeField, Metadata, Entry, Task, Asset, WorkflowDefinition } from './entities';

}
export declare type CrudAction = 'create' | 'read' | 'update' | 'delete';
export declare type PublishableAction = 'publish' | 'unpublish';
export declare type ArchiveableAction = 'archive' | 'unarchive';
export declare type JSONPatchItem = {
export type CrudAction = 'create' | 'read' | 'update' | 'delete';
export type PublishableAction = 'publish' | 'unpublish';
export type ArchiveableAction = 'archive' | 'unarchive';
export type JSONPatchItem = {
op: 'remove' | 'replace' | 'add';

@@ -119,3 +119,3 @@ path: string;

};
declare type PatchEntity = Entry | Task | Asset | WorkflowDefinition;
type PatchEntity = Entry | Task | Asset | WorkflowDefinition;
export interface AccessAPI {

@@ -130,3 +130,3 @@ can(action: 'read' | 'update', entity: 'EditorInterface' | EditorInterface): Promise<boolean>;

}
declare type EntryScopedIds = 'field' | 'entry' | 'contentType';
type EntryScopedIds = 'field' | 'entry' | 'contentType';
export interface BaseExtensionSDK {

@@ -158,7 +158,7 @@ /** @deprecated since version 4.0.0 consider using the CMA instead

}
export declare type EditorExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & SharedEditorSDK & {
export type EditorExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & SharedEditorSDK & {
/** A set of IDs for the app */
ids: Omit<IdsAPI, 'field'>;
};
export declare type SidebarExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & SharedEditorSDK & {
export type SidebarExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & SharedEditorSDK & {
/** A set of IDs for the app */

@@ -169,3 +169,3 @@ ids: Omit<IdsAPI, 'field'>;

};
export declare type FieldExtensionSDK = BaseExtensionSDK & SharedEditorSDK & {
export type FieldExtensionSDK = BaseExtensionSDK & SharedEditorSDK & {
/** A set of IDs for the app */

@@ -178,3 +178,3 @@ ids: IdsAPI;

};
export declare type DialogExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
export type DialogExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
/** A set of IDs for the app */

@@ -187,10 +187,10 @@ ids: Omit<IdsAPI, EntryScopedIds>;

};
export declare type PageExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
export type PageExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
/** A set of IDs actual for the app */
ids: Omit<IdsAPI, EntryScopedIds>;
};
export declare type HomeExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
export type HomeExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
ids: Omit<IdsAPI, EntryScopedIds>;
};
export declare type AppExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
export type AppExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
/** A set of IDs actual for the app */

@@ -202,3 +202,3 @@ ids: Omit<IdsAPI, EntryScopedIds | 'extension' | 'app'> & {

};
export declare type KnownSDK = FieldExtensionSDK | SidebarExtensionSDK | DialogExtensionSDK | EditorExtensionSDK | PageExtensionSDK | AppExtensionSDK | HomeExtensionSDK;
export type KnownSDK = FieldExtensionSDK | SidebarExtensionSDK | DialogExtensionSDK | EditorExtensionSDK | PageExtensionSDK | AppExtensionSDK | HomeExtensionSDK;
export interface Locations {

@@ -205,0 +205,0 @@ LOCATION_ENTRY_FIELD: 'entry-field';

@@ -23,7 +23,7 @@ import { ContentType, KeyValueMap } from './entities';

}
export declare type OnConfigureHandlerReturn = {
export type OnConfigureHandlerReturn = {
parameters?: KeyValueMap | null;
targetState?: AppState | null;
} | false;
export declare type OnConfigureHandler = () => OnConfigureHandlerReturn | Promise<OnConfigureHandlerReturn>;
export type OnConfigureHandler = () => OnConfigureHandlerReturn | Promise<OnConfigureHandlerReturn>;
export interface AppConfigAPI {

@@ -30,0 +30,0 @@ /** Tells the web app that the app is loaded */

@@ -9,3 +9,3 @@ import { SerializedJSONValue } from './utils';

}
export declare type OpenConfirmOptions = OpenAlertOptions & {
export type OpenConfirmOptions = OpenAlertOptions & {
cancelLabel?: string;

@@ -12,0 +12,0 @@ intent?: 'primary' | 'positive' | 'negative';

import { Metadata, Task } from './entities';
import { EntryFieldAPI } from './field.types';
import { CollectionResponse, ContentEntitySys, SearchQuery } from './utils';
declare type TaskState = 'active' | 'resolved';
type TaskState = 'active' | 'resolved';
export interface TaskInputData {

@@ -6,0 +6,0 @@ assignedToId: string;

@@ -13,1 +13,2 @@ export type { AccessAPI, AppExtensionSDK, ArchiveableAction, BaseExtensionSDK, ConnectMessage, ContentTypeAPI, CrudAction, DialogExtensionSDK, EditorExtensionSDK, EditorLocaleSettings, FieldExtensionSDK, HomeExtensionSDK, IdsAPI, KnownSDK, LocalesAPI, LocationAPI, Locations, NotifierAPI, PageExtensionSDK, ParametersAPI, PublishableAction, SharedEditorSDK, SidebarExtensionSDK, UserAPI, JSONPatchItem, } from './api.types';

export type { WindowAPI } from './window.types';
export type { CMAClient } from './cmaClient.types';
import { Asset, CanonicalRequest, ContentType, EditorInterface, ScheduledAction, Tag, Team, User, TagVisibility, KeyValueMap, Entry, QueryOptions, Upload } from './entities';
import { CollectionResponse, ContentEntityType, Link, WithOptionalId, SearchQuery } from './utils';
declare type Snapshot<T> = {
type Snapshot<T> = {
sys: {

@@ -5,0 +5,0 @@ space?: Link;

import { ContentTypeFieldValidation } from './entities';
declare type Sys = {
type Sys = {
id: string;

@@ -7,8 +7,8 @@ type: string;

};
declare type Entity = {
type Entity = {
sys: Sys;
[key: string]: any;
};
declare type Optional<Type, Keys extends keyof Type> = Partial<Type> & Omit<Type, Keys>;
export declare type WithSysWithAtLeastId = {
type Optional<Type, Keys extends keyof Type> = Partial<Type> & Omit<Type, Keys>;
export type WithSysWithAtLeastId = {
sys: {

@@ -19,4 +19,4 @@ id: string;

};
export declare type WithId<Type extends Entity> = Omit<Type, 'sys'> & WithSysWithAtLeastId;
export declare type WithOptionalId<Type extends Entity> = Optional<Type, 'sys'> | WithId<Type>;
export type WithId<Type extends Entity> = Omit<Type, 'sys'> & WithSysWithAtLeastId;
export type WithOptionalId<Type extends Entity> = Optional<Type, 'sys'> | WithId<Type>;
export interface Link<LinkType = string, Type = string> {

@@ -38,3 +38,3 @@ sys: {

}
export declare type ContentEntityType = 'Entry' | 'Asset';
export type ContentEntityType = 'Entry' | 'Asset';
export interface ContentEntitySys {

@@ -70,5 +70,5 @@ space: Link;

}
export declare type SerializedJSONValue = null | string | number | boolean | Array<SerializedJSONValue> | {
export type SerializedJSONValue = null | string | number | boolean | Array<SerializedJSONValue> | {
[key: string]: SerializedJSONValue;
};
export {};

@@ -63,2 +63,2 @@ import { Link } from './utils';

}
export declare type ValidationError = SizeValidationError | RangeValidationError | InValidationError | RequiredValidationError | UniqueValidationError | RegexpValidationError | ProhibitRegexpValidationError | LinkMimetypeGroupValidationError | LinkContentTypeValidationError | DateRangeValidationError | NotResolvableValidationError | UnknownValidationError | TypeValidationError | BaseValidationError;
export type ValidationError = SizeValidationError | RangeValidationError | InValidationError | RequiredValidationError | UniqueValidationError | RegexpValidationError | ProhibitRegexpValidationError | LinkMimetypeGroupValidationError | LinkContentTypeValidationError | DateRangeValidationError | NotResolvableValidationError | UnknownValidationError | TypeValidationError | BaseValidationError;

@@ -1,1 +0,1 @@

{"name":"contentful-ui-extensions-sdk","description":"SDK to develop custom UI Extension for the Contentful Web App","version":"4.13.0","author":"Contentful GmbH","license":"MIT","sideEffects":true,"repository":{"url":"https://github.com/contentful/ui-extensions-sdk.git","type":"git"},"homepage":"https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/","main":"dist/cf-extension-api.js","types":"dist/index.d.ts","files":["dist/cf-extension-api.js","dist/cf-extension-api.js.map","dist/cf-extension.css","dist/**/*.d.ts"],"scripts":{"test":"ts-mocha -p tsconfig.test.json 'test/unit/*.[jt]s' --reporter mocha-multi-reporters --reporter-options configFile=mocha.unit-reporters.json","lint":"eslint '{lib,test}/**/*.{t,j}s'","lint:fix":"npm run lint -- --fix","build":"npm run check-types && rollup -c --compact","build:debug":"npm run build -- --sourcemap","prepublishOnly":"npm run build","size":"echo \"Gzipped, estimate: $(gzip -9 -c dist/cf-extension-api.js | wc -c) bytes\"","semantic-release":"semantic-release","publish-all":"node ./scripts/publish.js","verify":"node ./scripts/verify.js","check-types":"tsc --noEmit -m commonjs","prepare":"husky install","lint-staged":"lint-staged"},"devDependencies":{"@semantic-release/changelog":"6.0.1","@semantic-release/exec":"6.0.3","@semantic-release/git":"10.0.1","@testing-library/dom":"8.19.0","@types/chai-as-promised":"7.1.5","@types/cross-spawn":"6.0.2","@types/fs-extra":"9.0.13","@types/jsdom":"20.0.0","@types/mocha":"10.0.0","@types/nanoid":"3.0.0","@types/sinon":"^10.0.0","@types/sinon-chai":"^3.2.5","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","babel-eslint":"10.1.0","chai":"4.3.6","chai-as-promised":"7.1.1","contentful-management":"10.18.2","cross-spawn":"7.0.3","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-config-standard":"16.0.3","eslint-plugin-import":"2.26.0","eslint-plugin-node":"11.1.0","eslint-plugin-prettier":"4.2.1","eslint-plugin-promise":"6.1.1","eslint-plugin-react":"7.31.10","eslint-plugin-standard":"5.0.0","fs-extra":"10.1.0","husky":"8.0.1","jsdom":"20.0.1","lint-staged":"13.0.3","mocha":"10.1.0","mocha-junit-reporter":"2.1.0","mocha-multi-reporters":"1.5.1","mochawesome":"7.1.3","mochawesome-merge":"4.2.1","mochawesome-report-generator":"6.2.0","prettier":"2.7.1","rollup":"2.79.1","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.34.1","semantic-release":"19.0.5","sinon":"14.0.1","sinon-chai":"3.7.0","ts-mocha":"10.0.0","tslib":"2.4.0","typescript":"4.8.4"},"lint-staged":{"*.ts":["prettier --write","eslint --fix","git add"],"*.md":["prettier --write","git add"]},"release":{"branches":["master",{"name":"canary","channel":"canary","prerelease":"alpha"}],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog",["@semantic-release/npm",{"npmPublish":false}],["@semantic-release/exec",{"verifyConditionsCmd":"node ./scripts/verify.js","publishCmd":"npm run publish-all"}],["@semantic-release/git",{"message":"chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}","assets":["CHANGELOG.md","package.json","package-lock.json"]}],"@semantic-release/github"]},"peerDependencies":{"contentful-management":">=7.30.0"}}
{"name":"contentful-ui-extensions-sdk","description":"SDK to develop custom UI Extension for the Contentful Web App","version":"4.14.0","author":"Contentful GmbH","license":"MIT","sideEffects":true,"repository":{"url":"https://github.com/contentful/ui-extensions-sdk.git","type":"git"},"homepage":"https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/","main":"dist/cf-extension-api.js","types":"dist/index.d.ts","files":["dist/cf-extension-api.js","dist/cf-extension-api.js.map","dist/cf-extension.css","dist/**/*.d.ts"],"scripts":{"test":"ts-mocha -p tsconfig.test.json 'test/unit/*.[jt]s' --reporter mocha-multi-reporters --reporter-options configFile=mocha.unit-reporters.json","lint":"eslint '{lib,test}/**/*.{t,j}s'","lint:fix":"npm run lint -- --fix","build":"npm run check-types && rollup -c --compact","build:debug":"npm run build -- --sourcemap","prepublishOnly":"npm run build","size":"echo \"Gzipped, estimate: $(gzip -9 -c dist/cf-extension-api.js | wc -c) bytes\"","semantic-release":"semantic-release","publish-all":"node ./scripts/publish.js","verify":"node ./scripts/verify.js","check-types":"tsc --noEmit -m commonjs","prepare":"husky install","lint-staged":"lint-staged"},"devDependencies":{"@semantic-release/changelog":"6.0.2","@semantic-release/exec":"6.0.3","@semantic-release/git":"10.0.1","@testing-library/dom":"8.19.0","@types/chai-as-promised":"7.1.5","@types/cross-spawn":"6.0.2","@types/fs-extra":"9.0.13","@types/jsdom":"20.0.1","@types/mocha":"10.0.1","@types/nanoid":"3.0.0","@types/sinon":"^10.0.0","@types/sinon-chai":"^3.2.5","@typescript-eslint/eslint-plugin":"4.33.0","@typescript-eslint/parser":"4.33.0","babel-eslint":"10.1.0","chai":"4.3.7","chai-as-promised":"7.1.1","contentful-management":"10.25.0","cross-spawn":"7.0.3","eslint":"7.32.0","eslint-config-prettier":"8.5.0","eslint-config-standard":"16.0.3","eslint-plugin-import":"2.26.0","eslint-plugin-node":"11.1.0","eslint-plugin-prettier":"4.2.1","eslint-plugin-promise":"6.1.1","eslint-plugin-react":"7.31.11","eslint-plugin-standard":"5.0.0","fs-extra":"11.1.0","husky":"8.0.2","jsdom":"20.0.3","lint-staged":"13.1.0","mocha":"10.2.0","mocha-junit-reporter":"2.2.0","mocha-multi-reporters":"1.5.1","mochawesome":"7.1.3","mochawesome-merge":"4.2.2","mochawesome-report-generator":"6.2.0","prettier":"2.8.1","rollup":"2.79.1","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.34.1","semantic-release":"19.0.5","sinon":"15.0.1","sinon-chai":"3.7.0","ts-mocha":"10.0.0","tslib":"2.4.1","typescript":"4.9.4"},"lint-staged":{"*.ts":["prettier --write","eslint --fix","git add"],"*.md":["prettier --write","git add"]},"release":{"branches":["master",{"name":"canary","channel":"canary","prerelease":"alpha"}],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog",["@semantic-release/npm",{"npmPublish":false}],["@semantic-release/exec",{"verifyConditionsCmd":"node ./scripts/verify.js","publishCmd":"npm run publish-all"}],["@semantic-release/git",{"message":"chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}","assets":["CHANGELOG.md","package.json","package-lock.json"]}],"@semantic-release/github"]},"peerDependencies":{"contentful-management":">=7.30.0"}}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc