@player-ui/player 0.9.0-next.6 → 0.9.1-next.0

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.
package/package.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "types"
7
7
  ],
8
8
  "name": "@player-ui/player",
9
- "version": "0.9.0-next.6",
9
+ "version": "0.9.1-next.0",
10
10
  "main": "dist/cjs/index.cjs",
11
11
  "dependencies": {
12
- "@player-ui/partial-match-registry": "0.9.0-next.6",
13
- "@player-ui/make-flow": "0.9.0-next.6",
14
- "@player-ui/types": "0.9.0-next.6",
12
+ "@player-ui/partial-match-registry": "0.9.1-next.0",
13
+ "@player-ui/make-flow": "0.9.1-next.0",
14
+ "@player-ui/types": "0.9.1-next.0",
15
15
  "@types/dlv": "^1.1.4",
16
16
  "dequal": "^2.0.2",
17
17
  "dlv": "^1.1.3",
@@ -107,7 +107,7 @@ export declare class ValidationController implements BindingTracker {
107
107
  provider: ValidationProvider;
108
108
  }[]], {
109
109
  /** The view this is triggered for */
110
- view?: ViewInstance | undefined;
110
+ view?: ViewInstance;
111
111
  }>;
112
112
  /** A hook called when a binding is added to the tracker */
113
113
  onTrackBinding: SyncHook<[BindingInstance], Record<string, any>>;
@@ -19,7 +19,7 @@ export declare class ViewController {
19
19
  readonly hooks: {
20
20
  /** Do any processing before the `View` instance is created */
21
21
  resolveView: SyncWaterfallHook<[(import("@player-ui/types").Asset<string> & {
22
- validation?: import("@player-ui/types").Validation.CrossfieldReference[] | undefined;
22
+ validation?: Array<import("@player-ui/types").Validation.CrossfieldReference>;
23
23
  }) | undefined, string, NavigationFlowViewState], Record<string, any>>;
24
24
  view: SyncHook<[ViewInstance], Record<string, any>>;
25
25
  };
@@ -7,9 +7,9 @@ import type { Node } from "./types";
7
7
  */
8
8
  export declare function hasTemplateValues(obj: any, localKey: string): any;
9
9
  /** Check to see if the string is a valid switch key */
10
- export declare function hasSwitchKey(localKey: string): boolean;
10
+ export declare function hasSwitchKey(localKey: string): localKey is "staticSwitch" | "dynamicSwitch";
11
11
  /** Check to see if the string is a valid template key */
12
- export declare function hasTemplateKey(localKey: string): boolean;
12
+ export declare function hasTemplateKey(localKey: string): localKey is "template";
13
13
  /** Get the ID of the Node if there is one */
14
14
  export declare function getNodeID(node?: Node.Node | null): string | undefined;
15
15
  //# sourceMappingURL=utils.d.ts.map
@@ -10,7 +10,7 @@ import { TemplatePlugin } from "./plugins";
10
10
  export declare class ViewInstance implements ValidationProvider {
11
11
  hooks: {
12
12
  onUpdate: SyncHook<[import("@player-ui/types").Asset<string> & {
13
- validation?: import("@player-ui/types").Validation.CrossfieldReference[] | undefined;
13
+ validation?: Array<import("@player-ui/types").Validation.CrossfieldReference>;
14
14
  }], Record<string, any>>;
15
15
  parser: SyncHook<[Parser], Record<string, any>>;
16
16
  resolver: SyncHook<[Resolver], Record<string, any>>;