Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Improve tracking of applied plugin data",
"packageName": "@adaptive-web/adaptive-ui-designer-core",
"email": "47367562+bheston@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Improve tracking of applied plugin data",
"packageName": "@adaptive-web/adaptive-ui-designer-figma",
"email": "47367562+bheston@users.noreply.github.com",
"dependentChangeType": "patch"
}
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/adaptive-ui-designer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"homepage": "https://github.com/adaptive-web-community/adaptive-web-components#readme",
"dependencies": {
"@adaptive-web/adaptive-ui": "^0.12.0",
"@microsoft/fast-foundation": "^3.0.0-alpha.31"
"@microsoft/fast-foundation": "^3.0.0-alpha.31",
"@types/culori": "^2.0.0"
},
"devDependencies": {
"rimraf": "^3.0.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/adaptive-ui-designer-core/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ export abstract class Controller {

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

/**
* Provides the state object to the UI component and updates the UI.
* @param state The UI state object.
* @param state - The UI state object.
*/
protected abstract sendStateToUI(state: PluginUIState): void;

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

/**
* Handle the updated state that's posted from the UI.
* @param state The state from the UI.
* @param state - The state from the UI.
*/
public async receiveStateFromUI(state: PluginUIState): Promise<void> {
// console.log("--------------------------------");
Expand Down
2 changes: 1 addition & 1 deletion packages/adaptive-ui-designer-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export {
DesignTokenValues
} from "./model.js";
export { mapReplacer, mapReviver, deserializeMap, serializeMap } from "./serialization.js";
export { State, StatesState, PluginNode, focusIndicatorNodeName, } from "./node.js";
export { State, StatesState, PluginNode, PluginNodeDataAccessor, focusIndicatorNodeName, } from "./node.js";
export { AdaptiveDesignToken, AdaptiveDesignTokenOrGroup, DesignTokenRegistry } from "./registry/design-token-registry.js";
export { registerAppliableTokens, registerTokens } from "./registry/recipes.js";
6 changes: 3 additions & 3 deletions packages/adaptive-ui-designer-core/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class DesignTokenValue {
* A token + value pair from an applied design token.
*/
export class AppliedDesignToken {
constructor(public tokenID: string, public value: string) {
constructor(public tokenID: string) {
}
}

Expand All @@ -89,12 +89,12 @@ export type ReadonlyDesignTokenValues = ReadonlyMap<string, DesignTokenValue>;
/**
* Array of style modules applied to the style of a node.
*/
export class AppliedStyleModules extends Array<string> {}
export class AppliedStyleModules extends Array<string> {} // TODO This is more accurate as a Set

/**
* Readonly Array of style modules applied to the style of a node.
*/
export type ReadonlyAppliedStyleModules = ReadonlyArray<string>;
export type ReadonlyAppliedStyleModules = ReadonlyArray<string>; // TODO This is more accurate as a Set

/**
* Map of design tokens applied to the style of a node. The key is the target style property.
Expand Down
Loading
Loading