@foxy.io/sdk 1.8.2 → 1.9.2

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.
@@ -78,8 +78,6 @@ export declare class BooleanSelector {
78
78
  * @returns `BooleanSelector` instance constructed from the given attribite value
79
79
  */
80
80
  static fromAttribute(value: string | null, truthyValue?: string): BooleanSelector;
81
- private static __processors;
82
- private __value;
83
81
  private __tree;
84
82
  /**
85
83
  * Parses the boolean selector value and creates an instance
@@ -105,17 +103,18 @@ export declare class BooleanSelector {
105
103
  */
106
104
  matches(id: string, isFullMatch?: boolean): boolean;
107
105
  /**
108
- * Zooms on the given top-level identifier.
106
+ * Zooms on the given top-level identifier or follows a path.
109
107
  *
110
108
  * @example
109
+ * new BooleanSelector('foo:bar:baz').zoom('foo:bar').toString() // => "baz"
111
110
  * new BooleanSelector('foo:bar:baz').zoom('foo').toString() // => "bar:baz"
112
111
  * new BooleanSelector('not=foo').zoom('bar').toString() // => "not=*"
113
112
  * new BooleanSelector('not=foo').zoom('foo').toString() // => ""
114
113
  *
115
- * @param id identifier to look for
116
- * @returns `true` is current selector includes rules for the given identifier
114
+ * @param path path to look for
115
+ * @returns zoomed BooleanSelector
117
116
  */
118
- zoom(id: string): BooleanSelector;
117
+ zoom(path: string): BooleanSelector;
119
118
  /**
120
119
  * Converts this selector to string.
121
120
  *
@@ -138,6 +137,11 @@ export declare class BooleanSelector {
138
137
  * @returns attribute value representing this selector.
139
138
  */
140
139
  toAttribute(truthyValue?: string): string | null;
141
- private static __stringify;
140
+ private static __parsePath;
141
+ private static __parseSet;
142
+ private static __parseListItem;
143
+ private static __parseList;
144
+ private static __lintList;
142
145
  private static __parse;
146
+ private static __stringifyTree;
143
147
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foxy.io/sdk",
3
3
  "type": "commonjs",
4
- "version": "1.8.2",
4
+ "version": "1.9.2",
5
5
  "description": "Universal SDK for a full server-side and a limited in-browser access to Foxy hAPI.",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",