Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(update dependencies): #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions json/121/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.default = (function (documentId) { return ({
"currentPageIndex": 0,
"assets": {
"_class": "assetCollection",
"do_objectID": "262111B4-367B-46D6-84BC-5C4CE8A5E2C6",
"do_objectID": "05E78255-1DA3-4ECD-8035-8ED68D97EE6C",
"images": [],
"colorAssets": [],
"exportPresets": [],
Expand Down Expand Up @@ -38,7 +38,7 @@ exports.default = (function (documentId) { return ({
{
"_class": "MSJSONFileReference",
"_ref_class": "MSImmutablePage",
"_ref": "pages/C91AB304-A21A-4D09-8DC3-992BE9F271B1"
"_ref": "pages/AA5DF5B8-97FF-4A78-9AB0-47844B1A9444"
}
]
}); });
14 changes: 7 additions & 7 deletions json/121/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var sketch_file_format_ts_1 = require("@sketch-hq/sketch-file-format-ts");
exports.default = (function (pageId) {
var _a;
return ({
"commit": "4a0b8e173d74b7bf054eccaa58372f0a1d5afb52",
"commit": "263281c53601afed11c5ffc64635380925727011",
"pagesAndArtboards": (_a = {},
_a[pageId] = {
"name": "Page 1",
Expand All @@ -19,21 +19,21 @@ exports.default = (function (pageId) {
"autosaved": 0,
"variant": "NONAPPSTORE",
"created": {
"commit": "4a0b8e173d74b7bf054eccaa58372f0a1d5afb52",
"commit": "263281c53601afed11c5ffc64635380925727011",
// @ts-ignore
"appVersion": "59",
"build": 86127,
"appVersion": "61",
"build": 89581,
"app": sketch_file_format_ts_1.FileFormat3.BundleId.PublicRelease,
"compatibilityVersion": 99,
// @ts-ignore
"version": 121,
"variant": "NONAPPSTORE"
},
"saveHistory": [
"NONAPPSTORE.86127"
"NONAPPSTORE.89581"
],
// @ts-ignore
"appVersion": "59",
"build": 86127
"appVersion": "61",
"build": 89581
});
});
2 changes: 1 addition & 1 deletion json/121/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exports.default = (function (pageId) { return ({
"hasClippingMask": false,
"style": {
"_class": "style",
"do_objectID": "472A91D2-E338-4EBF-A2B8-DDDCB0D9A400",
"do_objectID": "C99ED58C-ECE8-4D28-999D-7204F0AFFCD9",
"endMarkerType": 0,
"miterLimit": 10,
"startMarkerType": 0,
Expand Down
3 changes: 3 additions & 0 deletions json/123/document.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { FileFormat3 } from '@sketch-hq/sketch-file-format-ts';
declare const _default: (documentId: string) => FileFormat3.Document;
export default _default;
44 changes: 44 additions & 0 deletions json/123/document.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (function (documentId) { return ({
"_class": "document",
"do_objectID": documentId,
"colorSpace": 0,
"currentPageIndex": 0,
"assets": {
"_class": "assetCollection",
"do_objectID": "C94E9FA2-9915-4DFE-87C0-7670678D8CBE",
"images": [],
"colorAssets": [],
"exportPresets": [],
"gradientAssets": [],
"imageCollection": {
"_class": "imageCollection",
"images": {}
},
"colors": [],
"gradients": []
},
"foreignLayerStyles": [],
"foreignSymbols": [],
"foreignTextStyles": [],
"layerStyles": {
"_class": "sharedStyleContainer",
"objects": []
},
"layerSymbols": {
"_class": "symbolContainer",
"objects": []
},
"layerTextStyles": {
"_class": "sharedTextStyleContainer",
"objects": []
},
"pages": [
{
"_class": "MSJSONFileReference",
"_ref_class": "MSImmutablePage",
"_ref": "pages/DE768058-D22A-4C6E-A641-0B51C72599D2"
}
]
}); });
3 changes: 3 additions & 0 deletions json/123/meta.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { FileFormat3 } from '@sketch-hq/sketch-file-format-ts';
declare const _default: (pageId: string) => FileFormat3.Meta;
export default _default;
39 changes: 39 additions & 0 deletions json/123/meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sketch_file_format_ts_1 = require("@sketch-hq/sketch-file-format-ts");
exports.default = (function (pageId) {
var _a;
return ({
"commit": "6896e2bfdb0a2a03f745e4054a8c5fc58565f9f1",
"pagesAndArtboards": (_a = {},
_a[pageId] = {
"name": "Page 1",
"artboards": {}
},
_a),
// @ts-ignore
"version": 123,
"fonts": [],
"compatibilityVersion": 99,
"app": sketch_file_format_ts_1.FileFormat3.BundleId.PublicRelease,
"autosaved": 0,
"variant": "NONAPPSTORE",
"created": {
"commit": "6896e2bfdb0a2a03f745e4054a8c5fc58565f9f1",
// @ts-ignore
"appVersion": "63.1",
"build": 92452,
"app": sketch_file_format_ts_1.FileFormat3.BundleId.PublicRelease,
"compatibilityVersion": 99,
// @ts-ignore
"version": 123,
"variant": "NONAPPSTORE"
},
"saveHistory": [
"NONAPPSTORE.92452"
],
// @ts-ignore
"appVersion": "63.1",
"build": 92452
});
});
3 changes: 3 additions & 0 deletions json/123/page.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { FileFormat3 } from '@sketch-hq/sketch-file-format-ts';
declare const _default: (pageId: string) => FileFormat3.Page;
export default _default;
93 changes: 93 additions & 0 deletions json/123/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (function (pageId) { return ({
"_class": "page",
"do_objectID": pageId,
"booleanOperation": -1,
"isFixedToViewport": false,
"isFlippedHorizontal": false,
"isFlippedVertical": false,
"isLocked": false,
"isVisible": true,
"layerListExpandedType": 0,
"name": "Page 1",
"nameIsFixed": false,
"resizingConstraint": 63,
"resizingType": 0,
"rotation": 0,
"shouldBreakMaskChain": false,
"exportOptions": {
"_class": "exportOptions",
"includedLayerIds": [],
"layerOptions": 0,
"shouldTrim": false,
"exportFormats": []
},
"frame": {
"_class": "rect",
"constrainProportions": false,
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"clippingMaskMode": 0,
"hasClippingMask": false,
"style": {
"_class": "style",
"do_objectID": "C2C70B67-8E6C-4336-AE3E-6974397A206B",
"endMarkerType": 0,
"miterLimit": 10,
"startMarkerType": 0,
"windingRule": 1,
"blur": {
"_class": "blur",
"isEnabled": false,
"center": "{0.5, 0.5}",
"motionAngle": 0,
"radius": 10,
"saturation": 1,
"type": 0
},
"borderOptions": {
"_class": "borderOptions",
"isEnabled": true,
"dashPattern": [],
"lineCapStyle": 0,
"lineJoinStyle": 0
},
"borders": [],
"colorControls": {
"_class": "colorControls",
"isEnabled": false,
"brightness": 0,
"contrast": 1,
"hue": 0,
"saturation": 1
},
"contextSettings": {
"_class": "graphicsContextSettings",
"blendMode": 0,
"opacity": 1
},
"fills": [],
"innerShadows": [],
"shadows": []
},
"hasClickThrough": true,
"groupLayout": {
"_class": "MSImmutableFreeformGroupLayout"
},
"layers": [],
"includeInCloudUpload": true,
"horizontalRulerData": {
"_class": "rulerData",
"base": 0,
"guides": []
},
"verticalRulerData": {
"_class": "rulerData",
"base": 0,
"guides": []
}
}); });
3 changes: 3 additions & 0 deletions json/123/user.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { FileFormat3 } from '@sketch-hq/sketch-file-format-ts';
declare const _default: (pageId: string) => FileFormat3.User;
export default _default;
16 changes: 16 additions & 0 deletions json/123/user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (function (pageId) {
var _a;
return (_a = {
"document": {
"pageListHeight": 85,
"pageListCollapsed": 0
}
},
_a[pageId] = {
"scrollOrigin": "{0, 0}",
"zoomValue": 1
},
_a);
});
29 changes: 17 additions & 12 deletions json/map.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
declare const _default: {
"55": number;
"56": number;
"57": number;
"58": number;
"59": number;
"55.1": number;
"55.2": number;
"56.1": number;
"56.2": number;
"56.3": number;
"57.1": number;
55: number;
56: number;
57: number;
58: number;
59: number;
60: number;
61: number;
62: number;
63: number;
55.1: number;
55.2: number;
56.1: number;
56.2: number;
56.3: number;
57.1: number;
63.1: number;
};
export default _default;
export declare type VersionFileFormat1 = "55" | "56" | "57" | "55.1" | "55.2" | "56.1" | "56.2" | "56.3" | "57.1";
export declare type VersionFileFormat2 = "58";
export declare type VersionFileFormat3 = "59";
export declare type VersionFileFormat3 = "59" | "60" | "61" | "62" | "63" | "63.1";
7 changes: 6 additions & 1 deletion json/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ exports.default = {
"57": 119,
"58": 120,
"59": 121,
"60": 121,
"61": 121,
"62": 123,
"63": 123,
"55.1": 118,
"55.2": 119,
"56.1": 119,
"56.2": 119,
"56.3": 119,
"57.1": 119
"57.1": 119,
"63.1": 123
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"author": "Mathieu Dutour",
"license": "MIT",
"devDependencies": {
"@sketch-hq/sketch-reference-files": "^2.0.0",
"@sketch-hq/sketch-reference-files": "^2.3.0",
"@types/jszip": "^3.1.6",
"@types/node": "^12.12.8",
"@types/node": "^13.13.5",
"@types/seedrandom": "^2.4.28",
"prettier": "^1.18.2",
"typescript": "^3.7.2"
},
"dependencies": {
"@sketch-hq/sketch-file-format-ts": "^3.0.0",
"@sketch-hq/sketch-file-format-ts": "^4.0.5",
"jszip": "^3.2.2",
"seedrandom": "^3.0.5"
}
Expand Down
1 change: 1 addition & 0 deletions scripts/generate-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const typeMap = {
119: 1,
120: 2,
121: 3,
123: 3,
}

fs.mkdirSync(path.join(__dirname, '../src/json'), { recursive: true })
Expand Down
Loading