@player-tools/dsl 0.7.1-next.0 → 0.7.1-next.1
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-tools/dsl",
|
|
3
|
-
"version": "0.7.1-next.
|
|
3
|
+
"version": "0.7.1-next.1",
|
|
4
4
|
"main": "dist/cjs/index.cjs",
|
|
5
5
|
"module": "dist/index.legacy-esm.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"source-map-js": "^1.0.2",
|
|
35
35
|
"tapable-ts": "^0.2.4",
|
|
36
36
|
"ts-node": "^10.4.0",
|
|
37
|
-
"typescript": "
|
|
37
|
+
"typescript": "5.5.4",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Schema, Navigation, Flow, Expression, ExpressionObject, NavigationFlow, NavigationFlowState, NavigationFlowViewState } from "@player-ui/types";
|
|
3
2
|
import type { JsonType } from "react-json-reconciler";
|
|
4
3
|
import type { RemoveUnknownIndex, AddUnknownIndex } from "../types";
|
package/types/components.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare const SlotContext: React.Context<{
|
|
|
23
23
|
/** The ref to the property node */
|
|
24
24
|
ref: React.RefObject<PropertyNode>;
|
|
25
25
|
/** A text component if we hit a string but expect an asset */
|
|
26
|
-
TextComp?: React.ComponentType
|
|
26
|
+
TextComp?: React.ComponentType;
|
|
27
27
|
/** A component to create a collection asset is we get an array but need a single element */
|
|
28
|
-
CollectionComp?: React.ComponentType
|
|
28
|
+
CollectionComp?: React.ComponentType;
|
|
29
29
|
} | undefined>;
|
|
30
30
|
/**
|
|
31
31
|
* Wraps the children in an `asset` object.
|
|
@@ -44,13 +44,13 @@ export declare const Asset: React.ForwardRefExoticComponent<Omit<AssetProps, "re
|
|
|
44
44
|
export declare const View: React.ForwardRefExoticComponent<Omit<PlayerApplicability & {
|
|
45
45
|
[key: string]: unknown;
|
|
46
46
|
/** id of the asset */
|
|
47
|
-
id?: string
|
|
47
|
+
id?: string;
|
|
48
48
|
/** the asset type */
|
|
49
49
|
type: string;
|
|
50
50
|
/** Any other properties on the asset */
|
|
51
51
|
children?: React.ReactNode;
|
|
52
52
|
} & import("@player-ui/types").Asset<string> & {
|
|
53
|
-
validation?: import("@player-ui/types").Validation.CrossfieldReference
|
|
53
|
+
validation?: Array<import("@player-ui/types").Validation.CrossfieldReference>;
|
|
54
54
|
}, "ref"> & React.RefAttributes<ObjectNode>>;
|
|
55
55
|
/** A component to generate a named property slot */
|
|
56
56
|
export declare const Slot: (props: {
|
|
@@ -45,6 +45,6 @@ export declare const binding: (strings: TemplateStringsArray, ...nested: Array<T
|
|
|
45
45
|
/** A tagged-template constructor for an expression */
|
|
46
46
|
export declare const expression: (strings: TemplateStringsArray, ...nested: Array<ExpressionTemplateInstance | BindingTemplateInstance | string>) => ExpressionTemplateInstance;
|
|
47
47
|
/** Check if a value is a template string */
|
|
48
|
-
export declare const isTemplateStringInstance: (val: unknown) => val is
|
|
48
|
+
export declare const isTemplateStringInstance: (val: unknown) => val is ExpressionTemplateInstance | BindingTemplateInstance;
|
|
49
49
|
export {};
|
|
50
50
|
//# sourceMappingURL=index.d.ts.map
|
package/types/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Asset, Expression, Navigation as PlayerNav, Schema, Validation } from "@player-ui/types";
|
|
3
2
|
import type { BindingTemplateInstance, ExpressionTemplateInstance } from "./string-templates";
|
|
4
3
|
export type WithChildren<T = Record<string, unknown>> = T & {
|