@pb33f/cowboy-components 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import { ProblemItem } from "../components/problem-list/problem-item.js";
2
- import { Problem } from "../model/problem.js";
3
2
  import { RuleComponent } from "../components/manage-ruleset/rule.js";
4
3
  import { RuleAction, RuleConfig, RuleSet } from "../model/vacuum_rule.js";
5
4
  import { Toast } from "../model/toast.js";
@@ -18,6 +17,7 @@ export declare const ProblemSearchFilterChanged: string;
18
17
  export declare const RuleViolationClicked: string;
19
18
  export declare const RemoveFunctionOption: string;
20
19
  export declare const RulesetDirty: string;
20
+ export declare const SeverityChanged: string;
21
21
  export declare const RuleNameUpdated: string;
22
22
  export declare const RuleActionFunctionOptionAdded: string;
23
23
  export declare const BuiltInRulesetChanged: string;
@@ -60,6 +60,7 @@ export interface NodeReferenceEvent {
60
60
  export interface NodeClickedEvent {
61
61
  nodeHashId: string;
62
62
  first?: boolean;
63
+ noState?: boolean;
63
64
  }
64
65
  export interface ProblemLabelViewFilterChangedEvent {
65
66
  label: string;
@@ -92,6 +93,9 @@ export interface RulesetChangedEvent {
92
93
  export interface RuleDirtyEvent {
93
94
  rule: RuleComponent;
94
95
  }
96
+ export interface SeverityChangedEvent {
97
+ severity: string;
98
+ }
95
99
  export interface RuleActionDirtyEvent {
96
100
  ruleAction: RuleActionComponent;
97
101
  }
@@ -136,8 +140,8 @@ export declare enum ActiveView {
136
140
  Ruleset = "ruleset"
137
141
  }
138
142
  export interface HistoryState {
139
- problem: Problem;
140
143
  rule: string;
141
144
  page: number;
142
145
  view: ActiveView;
146
+ activeNode: string;
143
147
  }
@@ -11,6 +11,7 @@ export const ProblemSearchFilterChanged = "problemSearchFilterChanged";
11
11
  export const RuleViolationClicked = "ruleViolationClicked";
12
12
  export const RemoveFunctionOption = "removeFunctionOption";
13
13
  export const RulesetDirty = "rulesetDirty";
14
+ export const SeverityChanged = "severityChanged";
14
15
  export const RuleNameUpdated = "ruleNameUpdated";
15
16
  export const RuleActionFunctionOptionAdded = "ruleActionFunctionOptionAdded";
16
17
  export const BuiltInRulesetChanged = "builtInRulesetChanged";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Princess Beef Heavy Industries Cowboy Components",
4
4
  "private": false,
5
5
  "license": "BUSL-1.1",
6
- "version": "0.3.2",
6
+ "version": "0.3.3",
7
7
  "type": "module",
8
8
  "main": "./dist/cowboy-components.umd.cjs",
9
9
  "module": "./dist/cowboy-components.js",