-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a541bc5
commit 7b43342
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sketch-hq/sketch-file-format': patch | ||
--- | ||
|
||
Add workspace schema. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
title: Assistants Workspace Entry | ||
description: | ||
Contains Assistant configuration that travels with the document in the file | ||
workspace. Maintains a record of which Assistants have been installed to the | ||
document and where they've been installed from in the `dependencies` field. | ||
Additionally Assistant metadata from their package.json files are cached in | ||
the `dependencyMetadata` field. | ||
type: object | ||
properties: | ||
dependencies: | ||
type: object | ||
patternProperties: | ||
^.+$: { type: string } | ||
dependencyMetadata: | ||
type: object | ||
patternProperties: | ||
^.+$: | ||
type: object | ||
properties: | ||
sketch: { type: string } | ||
homepage: { type: string } | ||
name: { type: string } | ||
version: { type: string } | ||
sketch-assistants: | ||
type: object | ||
properties: | ||
title: { type: string } | ||
icon: { type: string } | ||
description: { type: string } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: Workspace | ||
description: | ||
The workspace is a folder in the Sketch file archive that can contain | ||
arbitrary JSON files, allowing Sketch and 3rd party products and tools to | ||
store settings that should travel with the Sketch document. To avoid clashes | ||
or settings being overridden, select a unique name for your workspace file. A | ||
workspace file named `assistants` has been reserved for Sketch Assistant | ||
settings, and is specified below. Note that custom layer-level data should | ||
continue to be stored in `userInfo` of these objects, not within the | ||
workspace. | ||
type: object | ||
additionalProperties: | ||
type: object | ||
additionalProperties: true | ||
properties: | ||
assistants: { $ref: ./objects/assistants-workspace.schema.yaml } |