@contrail/documents 1.16.0-alpha.da92f7b → 1.16.0-alpha.fd404ec

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,7 +9,7 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
10
  ### Added
11
11
 
12
- - `ASSET_VIEW_TEMPLATE` and its `asset-view` entry in `ComponentRegistry` — the component definition for an asset card. Image-forward: one image bound to the asset's viewable, one text row bound to `asset.fileName` — the asset's seeded property, present in both client- and server-side hydration (a bare `asset.name` is frequently unset and the API's document rebind would blank the label). Consumers resolve it by slug through `DocumentElementFactory.createComponent('asset-view', …)`.
12
+ - `ASSET_VIEW_TEMPLATE` and its `asset-view` entry in `ComponentRegistry` — the component definition for an asset card. Image-only in v1: one image bound to the asset's viewable. Label and attribute rows are deferred to the card customization work.
13
13
 
14
14
  ### Fixed
15
15
 
@@ -354,7 +354,7 @@ export declare const PATTERN_VIEW_TEMPLATE: {
354
354
  })[];
355
355
  };
356
356
  export declare const ASSET_VIEW_TEMPLATE: {
357
- elements: ({
357
+ elements: {
358
358
  type: string;
359
359
  size: {
360
360
  width: number;
@@ -364,34 +364,11 @@ export declare const ASSET_VIEW_TEMPLATE: {
364
364
  background: {
365
365
  size: BackgroundSizeType;
366
366
  };
367
- font?: undefined;
368
367
  };
369
368
  propertyBindings: {
370
369
  url: string;
371
- text?: undefined;
372
370
  };
373
- position?: undefined;
374
- } | {
375
- type: string;
376
- position: {
377
- x: number;
378
- y: number;
379
- };
380
- size: {
381
- height: number;
382
- width: number;
383
- };
384
- style: {
385
- font: {
386
- size: number;
387
- };
388
- background?: undefined;
389
- };
390
- propertyBindings: {
391
- text: string;
392
- url?: undefined;
393
- };
394
- })[];
371
+ }[];
395
372
  };
396
373
  export declare const ITEM_VIEW: {
397
374
  slug: string;
@@ -760,7 +737,7 @@ export declare const PATTERN_VIEW: {
760
737
  export declare const ASSET_VIEW: {
761
738
  slug: string;
762
739
  defaultTemplate: {
763
- elements: ({
740
+ elements: {
764
741
  type: string;
765
742
  size: {
766
743
  width: number;
@@ -770,34 +747,11 @@ export declare const ASSET_VIEW: {
770
747
  background: {
771
748
  size: BackgroundSizeType;
772
749
  };
773
- font?: undefined;
774
750
  };
775
751
  propertyBindings: {
776
752
  url: string;
777
- text?: undefined;
778
753
  };
779
- position?: undefined;
780
- } | {
781
- type: string;
782
- position: {
783
- x: number;
784
- y: number;
785
- };
786
- size: {
787
- height: number;
788
- width: number;
789
- };
790
- style: {
791
- font: {
792
- size: number;
793
- };
794
- background?: undefined;
795
- };
796
- propertyBindings: {
797
- text: string;
798
- url?: undefined;
799
- };
800
- })[];
754
+ }[];
801
755
  };
802
756
  };
803
757
  export declare class ComponentRegistry {
@@ -210,17 +210,6 @@ exports.ASSET_VIEW_TEMPLATE = {
210
210
  style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
211
211
  propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' },
212
212
  },
213
- {
214
- type: 'text',
215
- position: { x: 0, y: 126 },
216
- size: { height: 25, width: 125 },
217
- style: {
218
- font: {
219
- size: 8,
220
- },
221
- },
222
- propertyBindings: { text: 'asset.fileName' },
223
- },
224
213
  ],
225
214
  };
226
215
  exports.ITEM_VIEW = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.16.0-alpha.da92f7b",
3
+ "version": "1.16.0-alpha.fd404ec",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",