@contentful/f36-components
Advanced tools
Comparing version 4.0.1-next-v4-3567.1917 to 4.0.1-next-v4-3595.1918
import React from 'react'; | ||
import type { AssetState } from '../Card/AssetCard/AssetCard'; | ||
import type { EntityStatus, PickUnion } from '@contentful/f36-core'; | ||
export declare type AssetStatus = PickUnion<EntityStatus, 'archived' | 'changed' | 'deleted' | 'draft' | 'published'>; | ||
export declare const types: { | ||
@@ -30,3 +31,3 @@ archive: string; | ||
*/ | ||
status?: AssetState; | ||
status?: AssetStatus; | ||
/** | ||
@@ -33,0 +34,0 @@ * An ID used for testing purposes applied as a data attribute (data-test-id) |
export { Asset, isAssetType } from './Asset'; | ||
export type { AssetProps, AssetType } from './Asset'; | ||
export type { AssetProps, AssetStatus, AssetType } from './Asset'; | ||
export { AssetIcon } from './AssetIcon/AssetIcon'; | ||
export type { AssetIconProps } from './AssetIcon/AssetIcon'; |
import React from 'react'; | ||
import { BaseCardProps } from '../Card'; | ||
import { IconType } from '../../Icon'; | ||
import { AssetType } from '../../Asset'; | ||
import type { AssetType, AssetProps } from '../../Asset'; | ||
import { CardDragHandleProps } from '../CardDragHandle/CardDragHandle'; | ||
export declare type AssetState = 'deleted' | 'archived' | 'changed' | 'draft' | 'published'; | ||
export interface AssetCardProps extends BaseCardProps { | ||
@@ -27,3 +26,3 @@ /** | ||
*/ | ||
status?: AssetState; | ||
status?: AssetProps['status']; | ||
/** | ||
@@ -30,0 +29,0 @@ * An icon for the status of the entry |
@@ -22,2 +22,4 @@ "use strict"; | ||
var _f36Badge = require("@contentful/f36-badge"); | ||
var _Card = require("../Card"); | ||
@@ -31,4 +33,2 @@ | ||
var _f36Badge = require("@contentful/f36-badge"); | ||
var _AssetCardSkeleton = require("./AssetCardSkeleton"); | ||
@@ -35,0 +35,0 @@ |
import React from 'react'; | ||
import type { EntityStatus, PickUnion } from '@contentful/f36-core'; | ||
import { BaseCardProps, CardProps } from '../Card'; | ||
import { CardDragHandleProps } from '../CardDragHandle/CardDragHandle'; | ||
export declare type EntryCardStatus = 'deleted' | 'archived' | 'changed' | 'draft' | 'published'; | ||
declare type EntryCardStatus = PickUnion<EntityStatus, 'deleted' | 'archived' | 'changed' | 'draft' | 'published'>; | ||
export declare type EntryCardSize = 'default' | 'small' | 'auto'; | ||
@@ -65,1 +66,2 @@ export interface EntryCardProps extends BaseCardProps { | ||
export declare function EntryCard({ className, title, onClick, description, contentType, status, statusIcon, thumbnailElement, loading, dropdownListElements, isDragActive, size, testId, cardDragHandleComponent, cardDragHandleProps, withDragHandle, ...otherProps }: EntryCardProps): React.ReactElement; | ||
export {}; |
@@ -24,2 +24,4 @@ "use strict"; | ||
var _f36Badge = require("@contentful/f36-badge"); | ||
var _Card = require("../Card"); | ||
@@ -29,4 +31,2 @@ | ||
var _f36Badge = require("@contentful/f36-badge"); | ||
var _EntryCardSkeleton = require("./EntryCardSkeleton"); | ||
@@ -33,0 +33,0 @@ |
import React from 'react'; | ||
import type { EntityStatus, PickUnion } from '@contentful/f36-core'; | ||
export declare type InlineEntryCardStatus = PickUnion<EntityStatus, 'archived' | 'changed' | 'draft' | 'published'>; | ||
export interface InlineEntryCardProps { | ||
@@ -18,3 +20,3 @@ /** | ||
*/ | ||
status?: 'archived' | 'changed' | 'draft' | 'published'; | ||
status?: InlineEntryCardStatus; | ||
/** | ||
@@ -21,0 +23,0 @@ * Class names to be appended to the className prop of the component |
import React from 'react'; | ||
import type { MouseEventHandler } from 'react'; | ||
import type { EntityStatus, PickUnion } from '@contentful/f36-core'; | ||
import { CardDragHandleProps } from '../../Card'; | ||
export declare type EntityListItemStatus = 'archived' | 'changed' | 'draft' | 'published'; | ||
declare type EntityListItemStatus = PickUnion<EntityStatus, 'archived' | 'changed' | 'draft' | 'published'>; | ||
export interface EntityListItemProps { | ||
@@ -21,3 +22,3 @@ /** | ||
*/ | ||
status?: 'archived' | 'changed' | 'draft' | 'published'; | ||
status?: EntityListItemStatus; | ||
/** | ||
@@ -87,1 +88,2 @@ * A boolean used to render the Thumbnail or not | ||
export declare function EntityListItem({ className, testId, title, description, contentType, entityType, withThumbnail, thumbnailUrl, thumbnailAltText, status, dropdownListElements, withDragHandle, isDragActive, isLoading, onClick, href, cardDragHandleProps, cardDragHandleComponent, isActionsDisabled, ...otherProps }: EntityListItemProps): React.ReactElement; | ||
export {}; |
{ | ||
"name": "@contentful/f36-components", | ||
"description": "Contentful UI Component Library", | ||
"version": "4.0.1-next-v4-3567.1917+f7a9523c", | ||
"version": "4.0.1-next-v4-3595.1918+4f6bc4a9", | ||
"main": "dist/index.js", | ||
@@ -36,5 +36,5 @@ "module": "dist/esm/index.js", | ||
"@contentful/f36-core": "4.0.0", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-3567.1917+f7a9523c", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-3595.1918+4f6bc4a9", | ||
"@contentful/f36-utils": "4.0.0", | ||
"@contentful/forma-36-fcss": "0.2.13-next-v4-3567.187+f7a9523c", | ||
"@contentful/forma-36-fcss": "0.2.13-next-v4-3595.188+4f6bc4a9", | ||
"@popperjs/core": "^2.4.4", | ||
@@ -90,3 +90,3 @@ "classnames": "^2.2.6", | ||
}, | ||
"gitHead": "f7a9523c6056d2ceea23faa3dc6655ac6e55d51d" | ||
"gitHead": "4f6bc4a9c414982922d8bab059a3714a3e7bdb8d" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2367464
34160