Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sketch-hq/sketch-file-format-ts

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sketch-hq/sketch-file-format-ts - npm Package Compare versions

Comparing version 6.3.1 to 6.4.0

7

CHANGELOG.md
# @sketch-hq/sketch-file-format-ts
## 6.4.0
### Minor Changes
- 0cf07f5: Bump document version to reflect per-document library changes
- 2d515aa: Add per-document libraries info
## 6.3.1

@@ -4,0 +11,0 @@

28

dist/cjs/types.d.ts

@@ -1307,2 +1307,22 @@ /**

/**
* Represents a "reference" to the asset library, that is used in the document
*/
export declare type DocumentLibraryInfo = {
_class: 'MSImmutableDocumentLibraryInfo';
libraryType: DocumentLibraryType;
name?: string;
appcastURL?: string;
documentID?: Uuid;
shareID?: Uuid;
workspaceName?: string;
};
/**
* Enumeration of the asset library type. Roughly represents all library types from Preferences... > Libraries tab
*/
export declare enum DocumentLibraryType {
Local = 0,
Workspace = 1,
ThirdParty = 2
}
/**
* Page layers are the top level organisational abstraction within a document

@@ -1417,3 +1437,3 @@ */

};
version: 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144;
version: 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145;
compatibilityVersion: 99;

@@ -1496,2 +1516,3 @@ coeditCompatibilityVersion?: number;

patchInfo?: PatchInfo;
perDocumentLibraries: DocumentLibraryInfo[];
pages: Page[];

@@ -1523,2 +1544,3 @@ };

patchInfo?: PatchInfo;
perDocumentLibraries: DocumentLibraryInfo[];
pages: FileRef[];

@@ -1537,3 +1559,3 @@ };

*/
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | RulerData | LayoutGrid | SimpleGrid | FreeformGroupLayout | InferredGroupLayout | OverrideProperty | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | PatchInfo | Page | Artboard | PrototypeViewport;
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | RulerData | LayoutGrid | SimpleGrid | FreeformGroupLayout | InferredGroupLayout | OverrideProperty | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | PatchInfo | DocumentLibraryInfo | Page | Artboard | PrototypeViewport;
/**

@@ -1544,2 +1566,3 @@ * Enum of all possible _class property values

MSImmutableColorAsset = "MSImmutableColorAsset",
MSImmutableDocumentLibraryInfo = "MSImmutableDocumentLibraryInfo",
MSImmutableFlowConnection = "MSImmutableFlowConnection",

@@ -1676,3 +1699,4 @@ MSImmutableForeignLayerStyle = "MSImmutableForeignLayerStyle",

MSImmutableFlowConnection: FlowConnection;
MSImmutableDocumentLibraryInfo: DocumentLibraryInfo;
MSImmutableColorAsset: ColorAsset;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClassValue = exports.NumericalBool = exports.BundleId = exports.TextBehaviour = exports.LineSpacingBehaviour = exports.CurveMode = exports.CornerStyle = exports.PointsRadiusBehaviour = exports.InferredLayoutAnchor = exports.InferredLayoutAxis = exports.ResizeType = exports.LayerListExpanded = exports.AnimationType = exports.VisibleScaleType = exports.ExportFormatNamingScheme = exports.ExportFileFormat = exports.BooleanOperation = exports.StrikethroughStyle = exports.UnderlineStyle = exports.TextTransform = exports.TextHorizontalAlignment = exports.TextVerticalAlignment = exports.WindingRule = exports.MarkerType = exports.PatternFillType = exports.BlurType = exports.LineJoinStyle = exports.LineCapStyle = exports.BlendMode = exports.BorderPosition = exports.FillType = exports.ColorSpace = exports.GradientType = void 0;
exports.ClassValue = exports.NumericalBool = exports.BundleId = exports.DocumentLibraryType = exports.TextBehaviour = exports.LineSpacingBehaviour = exports.CurveMode = exports.CornerStyle = exports.PointsRadiusBehaviour = exports.InferredLayoutAnchor = exports.InferredLayoutAxis = exports.ResizeType = exports.LayerListExpanded = exports.AnimationType = exports.VisibleScaleType = exports.ExportFormatNamingScheme = exports.ExportFileFormat = exports.BooleanOperation = exports.StrikethroughStyle = exports.UnderlineStyle = exports.TextTransform = exports.TextHorizontalAlignment = exports.TextVerticalAlignment = exports.WindingRule = exports.MarkerType = exports.PatternFillType = exports.BlurType = exports.LineJoinStyle = exports.LineCapStyle = exports.BlendMode = exports.BorderPosition = exports.FillType = exports.ColorSpace = exports.GradientType = void 0;
/**

@@ -307,2 +307,11 @@ * Enumeration of the gradient types

/**
* Enumeration of the asset library type. Roughly represents all library types from Preferences... > Libraries tab
*/
var DocumentLibraryType;
(function (DocumentLibraryType) {
DocumentLibraryType[DocumentLibraryType["Local"] = 0] = "Local";
DocumentLibraryType[DocumentLibraryType["Workspace"] = 1] = "Workspace";
DocumentLibraryType[DocumentLibraryType["ThirdParty"] = 2] = "ThirdParty";
})(DocumentLibraryType = exports.DocumentLibraryType || (exports.DocumentLibraryType = {}));
/**
* Enumeration of the Apple bundle ids for the various variants of Sketch

@@ -334,2 +343,3 @@ */

ClassValue["MSImmutableColorAsset"] = "MSImmutableColorAsset";
ClassValue["MSImmutableDocumentLibraryInfo"] = "MSImmutableDocumentLibraryInfo";
ClassValue["MSImmutableFlowConnection"] = "MSImmutableFlowConnection";

@@ -336,0 +346,0 @@ ClassValue["MSImmutableForeignLayerStyle"] = "MSImmutableForeignLayerStyle";

@@ -1307,2 +1307,22 @@ /**

/**
* Represents a "reference" to the asset library, that is used in the document
*/
export declare type DocumentLibraryInfo = {
_class: 'MSImmutableDocumentLibraryInfo';
libraryType: DocumentLibraryType;
name?: string;
appcastURL?: string;
documentID?: Uuid;
shareID?: Uuid;
workspaceName?: string;
};
/**
* Enumeration of the asset library type. Roughly represents all library types from Preferences... > Libraries tab
*/
export declare enum DocumentLibraryType {
Local = 0,
Workspace = 1,
ThirdParty = 2
}
/**
* Page layers are the top level organisational abstraction within a document

@@ -1417,3 +1437,3 @@ */

};
version: 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144;
version: 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145;
compatibilityVersion: 99;

@@ -1496,2 +1516,3 @@ coeditCompatibilityVersion?: number;

patchInfo?: PatchInfo;
perDocumentLibraries: DocumentLibraryInfo[];
pages: Page[];

@@ -1523,2 +1544,3 @@ };

patchInfo?: PatchInfo;
perDocumentLibraries: DocumentLibraryInfo[];
pages: FileRef[];

@@ -1537,3 +1559,3 @@ };

*/
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | RulerData | LayoutGrid | SimpleGrid | FreeformGroupLayout | InferredGroupLayout | OverrideProperty | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | PatchInfo | Page | Artboard | PrototypeViewport;
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | RulerData | LayoutGrid | SimpleGrid | FreeformGroupLayout | InferredGroupLayout | OverrideProperty | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | PatchInfo | DocumentLibraryInfo | Page | Artboard | PrototypeViewport;
/**

@@ -1544,2 +1566,3 @@ * Enum of all possible _class property values

MSImmutableColorAsset = "MSImmutableColorAsset",
MSImmutableDocumentLibraryInfo = "MSImmutableDocumentLibraryInfo",
MSImmutableFlowConnection = "MSImmutableFlowConnection",

@@ -1676,3 +1699,4 @@ MSImmutableForeignLayerStyle = "MSImmutableForeignLayerStyle",

MSImmutableFlowConnection: FlowConnection;
MSImmutableDocumentLibraryInfo: DocumentLibraryInfo;
MSImmutableColorAsset: ColorAsset;
};

@@ -304,2 +304,11 @@ /**

/**
* Enumeration of the asset library type. Roughly represents all library types from Preferences... > Libraries tab
*/
export var DocumentLibraryType;
(function (DocumentLibraryType) {
DocumentLibraryType[DocumentLibraryType["Local"] = 0] = "Local";
DocumentLibraryType[DocumentLibraryType["Workspace"] = 1] = "Workspace";
DocumentLibraryType[DocumentLibraryType["ThirdParty"] = 2] = "ThirdParty";
})(DocumentLibraryType || (DocumentLibraryType = {}));
/**
* Enumeration of the Apple bundle ids for the various variants of Sketch

@@ -331,2 +340,3 @@ */

ClassValue["MSImmutableColorAsset"] = "MSImmutableColorAsset";
ClassValue["MSImmutableDocumentLibraryInfo"] = "MSImmutableDocumentLibraryInfo";
ClassValue["MSImmutableFlowConnection"] = "MSImmutableFlowConnection";

@@ -333,0 +343,0 @@ ClassValue["MSImmutableForeignLayerStyle"] = "MSImmutableForeignLayerStyle";

4

package.json
{
"name": "@sketch-hq/sketch-file-format-ts",
"description": "TypeScript types for the Sketch File Format",
"version": "6.3.1",
"version": "6.4.0",
"main": "dist/cjs/index",

@@ -23,3 +23,3 @@ "types": "dist/cjs/index",

"devDependencies": {
"@sketch-hq/sketch-file-format": "6.3.1",
"@sketch-hq/sketch-file-format": "6.4.0",
"@types/humps": "2.0.1",

@@ -26,0 +26,0 @@ "humps": "2.0.1"

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