Skip to content

Commit 53217de

Browse files
committed
Doc and dependency cleanup
1 parent d8d419e commit 53217de

7 files changed

Lines changed: 20 additions & 19 deletions

File tree

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/adaptive-ui-designer-core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"homepage": "https://github.com/adaptive-web-community/adaptive-web-components#readme",
3434
"dependencies": {
3535
"@adaptive-web/adaptive-ui": "^0.12.0",
36-
"@microsoft/fast-foundation": "^3.0.0-alpha.31"
36+
"@microsoft/fast-foundation": "^3.0.0-alpha.31",
37+
"@types/culori": "^2.0.0"
3738
},
3839
"devDependencies": {
3940
"rimraf": "^3.0.2",

packages/adaptive-ui-designer-core/src/controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ export abstract class Controller {
2727

2828
/**
2929
* Gets a Node from the design tool by ID.
30-
* @param id The ID of the node.
30+
* @param id - The ID of the node.
3131
* @returns The PluginNode or null if no node by the provided ID exists.
3232
*/
3333
public abstract getNode(id: string): Promise<PluginNode | null>;
3434

3535
/**
3636
* Provides the state object to the UI component and updates the UI.
37-
* @param state The UI state object.
37+
* @param state - The UI state object.
3838
*/
3939
protected abstract sendStateToUI(state: PluginUIState): void;
4040

4141
/**
4242
* Sets the selected node IDs - Setting the IDs will trigger a UI refresh.
43-
* @param ids The node IDs.
43+
* @param ids - The node IDs.
4444
*/
4545
public async setSelectedNodes(ids: string[]): Promise<void> {
4646
Controller.nodeCount = 0;
@@ -60,7 +60,7 @@ export abstract class Controller {
6060

6161
/**
6262
* Handle the updated state that's posted from the UI.
63-
* @param state The state from the UI.
63+
* @param state - The state from the UI.
6464
*/
6565
public async receiveStateFromUI(state: PluginUIState): Promise<void> {
6666
// console.log("--------------------------------");

packages/adaptive-ui-designer-core/src/registry/design-token-registry.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class DesignTokenRegistry<T extends { name: string } & DesignTokenMetadat
1010

1111
/**
1212
* Registers a new design token definition.
13-
* @param designToken The design token definition to register.
13+
* @param designToken - The design token definition to register.
1414
*/
1515
public register(designToken: T): void {
1616
const { name } = designToken;
@@ -26,15 +26,15 @@ export class DesignTokenRegistry<T extends { name: string } & DesignTokenMetadat
2626

2727
/**
2828
* Unregisters a design token definition.
29-
* @param name The ID of the design token definition to unregister.
29+
* @param name - The ID of the design token definition to unregister.
3030
*/
3131
public unregister(name: string): void {
3232
delete this._entries[name];
3333
}
3434

3535
/**
3636
* Gets a design token definition by ID.
37-
* @param name The ID of the design token definition.
37+
* @param name - The ID of the design token definition.
3838
*/
3939
public get(name: string): T | null {
4040
if (this.isRegistered(name)) {
@@ -53,15 +53,15 @@ export class DesignTokenRegistry<T extends { name: string } & DesignTokenMetadat
5353

5454
/**
5555
* Determines if the design token definition has been registered.
56-
* @param name The ID of the design token definition.
56+
* @param name - The ID of the design token definition.
5757
*/
5858
public isRegistered(name: string): boolean {
5959
return this._entries.hasOwnProperty(name);
6060
}
6161

6262
/**
6363
* Returns all entries that apply to a given style property type
64-
* @param target the style property type to return entries of
64+
* @param target - The style property type to return entries of
6565
*/
6666
public find(target: StyleProperty): T[] {
6767
return Object.values(this._entries).filter(value => value.intendedFor?.includes(target));

packages/adaptive-ui-designer-figma-plugin/src/figma/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ figma.showUI(__html__, {
1111

1212
/**
1313
* Displays a notification when running a function that takes some time.
14-
* @param callback The function to call
14+
* @param callback - The function to call
1515
*/
1616
function notifyProcessing(callback: () => void) {
1717
const notify = figma.notify("Processing design tokens", { timeout: Infinity });

packages/adaptive-ui-designer-figma/src/cli/schema-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ajv = new Ajv();
66
export interface ISchemaValidator {
77
/**
88
* Validates a JSON schema against the validator
9-
* @param json the JSON string to validate, or a JavaScript object
9+
* @param json - The JSON string to validate, or a JavaScript object
1010
*/
1111
validate(json: string | object): Promise<boolean | ErrorObject[]>;
1212
}

packages/adaptive-ui-designer-figma/src/lib/node-parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function hasChildren<T extends FigmaRestAPI.Node>(node: T): node is FigmaRestAPI
2828

2929
/**
3030
* Convert a Figma REST API node to a {@link PluginUINodeData}
31-
* @param node
32-
* @returns
31+
* @param node - The Figma REST API node.
32+
* @returns The corresponding PluginUINodeData.
3333
*/
3434
export function parseNode(node: FigmaRestAPI.Node): PluginUINodeData {
3535
const children = hasChildren(node) ? node.children : [];

0 commit comments

Comments
 (0)