Socket
Socket
Sign inDemoInstall

@contentful/field-editor-shared

Package Overview
Dependencies
Maintainers
105
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/field-editor-shared - npm Package Compare versions

Comparing version 0.24.0 to 0.25.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.25.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.24.0...@contentful/field-editor-shared@0.25.0) (2021-10-06)
### Features
* [EXT-3161] bump app sdk to v4 ([#881](https://github.com/contentful/field-editors/issues/881)) ([9c4a2af](https://github.com/contentful/field-editors/commit/9c4a2af07da203d59fb5f15c3a5188ecc64b1d44))
# [0.24.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.23.0...@contentful/field-editor-shared@0.24.0) (2021-09-17)

@@ -8,0 +19,0 @@

6

dist/FieldConnector.d.ts
/// <reference types="lodash" />
import React from 'react';
import { FieldAPI } from '@contentful/app-sdk';
import { FieldAPI, ValidationError } from '@contentful/app-sdk';
declare type Nullable = null | undefined;

@@ -11,3 +11,3 @@ export interface FieldConnectorChildProps<ValueType> {

disabled: boolean;
errors: Error[];
errors: ValidationError[];
setValue: (value: ValueType | Nullable) => Promise<unknown>;

@@ -21,3 +21,3 @@ }

disabled: boolean;
errors: Error[];
errors: ValidationError[];
}

@@ -24,0 +24,0 @@ interface FieldConnectorProps<ValueType> {

@@ -1,39 +0,9 @@

import { EntrySys } from '@contentful/app-sdk';
export { BaseExtensionSDK, ContentType, ContentTypeField, Link, EntrySys, } from '@contentful/app-sdk';
export interface Entry {
sys: EntrySys;
fields: {
[key: string]: {
[localeKey: string]: any;
};
};
metadata: {
tags: [];
};
}
export declare type Asset = {
sys: EntrySys;
fields: {
title: {
[locale: string]: string;
};
file: {
[locale: string]: File;
};
};
metadata: {
tags: [];
};
};
export { BaseExtensionSDK, ContentType, ContentTypeField, Link, Entry, Asset } from '@contentful/app-sdk';
export interface File {
url: string;
fileName: string;
contentType: string;
details: {
size: number;
image: {
width: number;
height: number;
};
};
upload?: string;
url?: string;
details?: Record<string, any>;
uploadFrom?: Record<string, any>;
}

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

import { File, ContentType, Entry, EntrySys } from '../typesEntity';
import { File, ContentType, Entry } from '../typesEntity';
export declare function getFieldValue({

@@ -37,3 +37,3 @@ /**

}): string;
export declare function getEntryStatus(sys: EntrySys): "deleted" | "archived" | "changed" | "published" | "draft";
export declare function getEntryStatus(sys: Entry['sys']): "deleted" | "archived" | "changed" | "published" | "draft";
/**

@@ -40,0 +40,0 @@ * Gets a promise resolving with a localized asset image field representing a

{
"name": "@contentful/field-editor-shared",
"version": "0.24.0",
"version": "0.25.0",
"main": "dist/index.js",

@@ -24,3 +24,3 @@ "module": "dist/field-editor-shared.esm.js",

"devDependencies": {
"@contentful/app-sdk": "^3.36.0"
"@contentful/app-sdk": "^4.2.0"
},

@@ -34,3 +34,3 @@ "dependencies": {

"peerDependencies": {
"@contentful/app-sdk": "^3.36.0",
"@contentful/app-sdk": "^4.2.0",
"react": ">=16.8.0"

@@ -43,3 +43,3 @@ },

},
"gitHead": "f5450f62e92802984fb32a4dd28f266aabbdd5d7"
"gitHead": "917572e21ded4ddb74828b2e1b2ce7bdc1c14fc8"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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