@player-ui/reference-assets-plugin-components 0.14.0-next.0 → 0.14.0-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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/types/index.d.ts +27 -3
package/package.json CHANGED
@@ -6,17 +6,17 @@
6
6
  "types"
7
7
  ],
8
8
  "name": "@player-ui/reference-assets-plugin-components",
9
- "version": "0.14.0-next.0",
9
+ "version": "0.14.0-next.1",
10
10
  "main": "dist/cjs/index.cjs",
11
11
  "peerDependencies": {
12
- "@player-ui/player": "0.14.0-next.0",
12
+ "@player-ui/player": "0.14.0-next.1",
13
13
  "react": "^18.2.0",
14
14
  "@types/react": "^18.2.39",
15
- "@player-tools/dsl": "0.8.1"
15
+ "@player-tools/dsl": "0.12.0"
16
16
  },
17
17
  "dependencies": {
18
- "@player-ui/common-types-plugin": "0.14.0-next.0",
19
- "@player-ui/reference-assets-plugin": "0.14.0-next.0",
18
+ "@player-ui/common-types-plugin": "0.14.0-next.1",
19
+ "@player-ui/reference-assets-plugin": "0.14.0-next.1",
20
20
  "tslib": "^2.6.2"
21
21
  },
22
22
  "module": "dist/index.legacy-esm.js",
package/types/index.d.ts CHANGED
@@ -1,9 +1,33 @@
1
1
  import React from "react";
2
- import type { WithChildren, AssetPropsWithChildren, BindingTemplateInstance, ExpressionTemplateInstance, DSLSchema as PlayerDSLSchema, DataTypeReference, DataTypeRefs, ValidatorFunctionRefs, WithPlayerTypes } from "@player-tools/dsl";
2
+ import type { WithChildren, AssetPropsWithChildren, BindingTemplateInstance, ExpressionTemplateInstance, DSLSchema as PlayerDSLSchema, DataTypeReference, ValidatorFunctionRefs, WithPlayerTypes } from "@player-tools/dsl";
3
3
  import type { ActionAsset, TextAsset, CollectionAsset, InfoAsset, InputAsset, ImageAsset, ChoiceAsset, ChoiceItem as ChoiceItemType, ChatMessageAsset } from "@player-ui/reference-assets-plugin";
4
4
  import { dataTypes, validators } from "@player-ui/common-types-plugin";
5
- export declare const dataRefs: DataTypeRefs<typeof dataTypes>;
6
- export declare const validationRefs: ValidatorFunctionRefs<typeof validators>;
5
+ export declare const dataRefs: {
6
+ BooleanTypeRef: boolean;
7
+ IntegerTypeRef: number;
8
+ IntegerPosTypeRef: number;
9
+ IntegerNNTypeRef: number;
10
+ StringTypeRef: string;
11
+ CollectionTypeRef: unknown[];
12
+ DateTypeRef: string;
13
+ PhoneTypeRef: string;
14
+ };
15
+ export declare const validationRefs: {
16
+ stringRef: unknown;
17
+ readonlyRef: unknown;
18
+ collectionRef: unknown;
19
+ integerRef: unknown;
20
+ oneOfRef: unknown;
21
+ expressionRef: unknown;
22
+ requiredRef: unknown;
23
+ regexRef: unknown;
24
+ lengthRef: unknown;
25
+ minRef: unknown;
26
+ maxRef: unknown;
27
+ emailRef: unknown;
28
+ phoneRef: unknown;
29
+ zipRef: unknown;
30
+ };
7
31
  export type DSLSchema = PlayerDSLSchema<DataTypeReference<typeof dataTypes, ValidatorFunctionRefs<typeof validators>>>;
8
32
  export declare const Text: (props: Omit<AssetPropsWithChildren<TextAsset>, "value"> & {
9
33
  value?: string;