@sketch-hq/sketch-file-format-ts
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -5,23 +5,6 @@ # Changelog | ||
## [4.0.0](https://github.com/sketch-hq/sketch-file-format-ts/compare/v1.0.0...v4.0.0) (2019-12-09) | ||
### [4.0.1](https://github.com/sketch-hq/sketch-file-format-ts/compare/v4.0.0...v4.0.1) (2020-01-22) | ||
## [4.0.0](https://github.com/sketch-hq/sketch-file-format-ts/compare/v3.0.0...v4.0.0) (2019-12-09) | ||
### ⚠ BREAKING CHANGES | ||
* Code will have to use the new type name to avoid compilation errors | ||
### Features | ||
* add `AnyObject` type ([79be064](https://github.com/sketch-hq/sketch-file-format-ts/commit/79be06429f36228a0c3127f0f909b3fa08f8cff0)) | ||
### Bug Fixes | ||
* upgrade to sketch-file-format@3.2.0 ([2b8eb4a](https://github.com/sketch-hq/sketch-file-format-ts/commit/2b8eb4ab3e883c5b9cafba9617ddeba579e95b24)), closes [#5](https://github.com/sketch-hq/sketch-file-format-ts/issues/5) [#4](https://github.com/sketch-hq/sketch-file-format-ts/issues/4) [#2](https://github.com/sketch-hq/sketch-file-format-ts/issues/2) | ||
### improvement | ||
* rename FileFormat type to Contents ([1ea31fc](https://github.com/sketch-hq/sketch-file-format-ts/commit/1ea31fccc9da92758af357b49c0b47bbd4a555fc)) | ||
## [3.0.0](https://github.com/sketch-hq/sketch-file-format-ts/compare/v1.0.0...v3.0.0) (2019-11-15) | ||
@@ -28,0 +11,0 @@ |
@@ -345,4 +345,4 @@ /** | ||
minimumLineHeight?: number; | ||
paragraphSpacing: number; | ||
allowsDefaultTighteningForTruncation: number; | ||
paragraphSpacing?: number; | ||
allowsDefaultTighteningForTruncation?: number; | ||
}; | ||
@@ -462,3 +462,3 @@ /** | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
@@ -560,2 +560,3 @@ groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
animationType: AnimationType; | ||
maintainScrollPosition?: boolean; | ||
}; | ||
@@ -602,2 +603,4 @@ /** | ||
layoutAnchor: InferredLayoutAnchor; | ||
maxSize?: number; | ||
minSize?: number; | ||
}; | ||
@@ -646,3 +649,3 @@ /** | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
@@ -690,3 +693,3 @@ groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
@@ -723,3 +726,3 @@ groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
edited: boolean; | ||
@@ -789,3 +792,3 @@ isClosed: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
edited: boolean; | ||
@@ -824,3 +827,3 @@ isClosed: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
edited: boolean; | ||
@@ -861,3 +864,3 @@ isClosed: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
edited: boolean; | ||
@@ -895,3 +898,3 @@ isClosed: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
edited: boolean; | ||
@@ -931,3 +934,3 @@ isClosed: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
edited: boolean; | ||
@@ -966,3 +969,3 @@ isClosed: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
@@ -1000,3 +1003,3 @@ groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
_class: 'text'; | ||
@@ -1078,3 +1081,3 @@ attributedString: AttributedString; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
_class: 'symbolInstance'; | ||
@@ -1126,3 +1129,3 @@ overrideValues: OverrideValue[]; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
_class: 'slice'; | ||
@@ -1158,3 +1161,3 @@ hasBackgroundColor: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
_class: 'MSImmutableHotspotLayer'; | ||
@@ -1188,3 +1191,3 @@ }; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
_class: 'bitmap'; | ||
@@ -1305,3 +1308,3 @@ fillReplacesImage: boolean; | ||
style?: Style; | ||
maintainScrollPosition: boolean; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
@@ -1332,3 +1335,3 @@ groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
}; | ||
version: 121; | ||
version: 121 | 122 | 123; | ||
fonts: string[]; | ||
@@ -1349,3 +1352,3 @@ compatibilityVersion: 99; | ||
saveHistory: string[]; | ||
appVersion: '59'; | ||
appVersion: '59' | '60' | '61' | '62'; | ||
build: number; | ||
@@ -1352,0 +1355,0 @@ }; |
{ | ||
"name": "@sketch-hq/sketch-file-format-ts", | ||
"description": "TypeScript types for the Sketch File Format", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"main": "dist/index", | ||
@@ -25,3 +25,3 @@ "types": "dist/index", | ||
"@sketch-hq/sketch-file-format-2": "npm:@sketch-hq/sketch-file-format@2.0.2", | ||
"@sketch-hq/sketch-file-format-3": "npm:@sketch-hq/sketch-file-format@3.2.1", | ||
"@sketch-hq/sketch-file-format-3": "npm:@sketch-hq/sketch-file-format@3.3.0", | ||
"@types/humps": "1.1.2", | ||
@@ -28,0 +28,0 @@ "@types/jest": "24.0.22", |
@@ -31,3 +31,3 @@ # Sketch File Format TS | ||
```typescript | ||
import FileFormat from '@sketch-hq/sketch-file-format' | ||
import FileFormat from '@sketch-hq/sketch-file-format-ts' | ||
``` | ||
@@ -42,3 +42,3 @@ | ||
FileFormat3, | ||
} from '@sketch-hq/sketch-file-format' | ||
} from '@sketch-hq/sketch-file-format-ts' | ||
``` | ||
@@ -53,3 +53,3 @@ | ||
```typescript | ||
import FileFormat from '@sketch-hq/sketch-file-format' | ||
import FileFormat from '@sketch-hq/sketch-file-format-ts' | ||
@@ -70,3 +70,3 @@ const blur: FileFormat.Blur = { | ||
```typescript | ||
import FileFormat from '@sketch-hq/sketch-file-format' | ||
import FileFormat from '@sketch-hq/sketch-file-format-ts' | ||
@@ -92,3 +92,3 @@ const mapLayers = (layers: FileFormat.AnyLayer[]) => { | ||
FileFormat3, | ||
} from '@sketch-hq/sketch-file-format' | ||
} from '@sketch-hq/sketch-file-format-ts' | ||
@@ -95,0 +95,0 @@ const processDocumentContents = ( |
5100
159918