@player-ui/reference-assets-plugin 0.8.0--canary.307.9621 → 0.8.0-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.
Files changed (70) hide show
  1. package/dist/ReferenceAssetsPlugin.native.js +821 -0
  2. package/dist/ReferenceAssetsPlugin.native.js.map +1 -0
  3. package/dist/cjs/index.cjs +215 -0
  4. package/dist/cjs/index.cjs.map +1 -0
  5. package/dist/index.legacy-esm.js +181 -0
  6. package/dist/index.mjs +181 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/xlr/ActionAsset.json +126 -0
  9. package/dist/xlr/ChoiceAsset.json +191 -0
  10. package/dist/xlr/CollectionAsset.json +40 -0
  11. package/dist/xlr/ImageAsset.json +65 -0
  12. package/dist/xlr/InfoAsset.json +58 -0
  13. package/dist/xlr/InputAsset.json +109 -0
  14. package/dist/xlr/TextAsset.json +125 -0
  15. package/dist/xlr/manifest.js +18 -0
  16. package/dist/xlr/manifest.json +24 -0
  17. package/package.json +27 -60
  18. package/src/assets/action/__tests__/transform.test.ts +118 -0
  19. package/src/assets/action/index.ts +2 -2
  20. package/src/assets/action/transform.ts +10 -10
  21. package/src/assets/action/types.ts +3 -3
  22. package/src/assets/choice/__tests__/transform.test.ts +145 -0
  23. package/src/assets/choice/index.ts +2 -0
  24. package/src/assets/choice/transform.ts +55 -0
  25. package/src/assets/choice/types.ts +73 -0
  26. package/src/assets/collection/index.ts +1 -1
  27. package/src/assets/collection/types.ts +2 -2
  28. package/src/assets/image/__tests__/transform.test.ts +35 -0
  29. package/src/assets/image/index.ts +2 -2
  30. package/src/assets/image/transform.ts +4 -4
  31. package/src/assets/image/types.ts +3 -3
  32. package/src/assets/index.ts +7 -6
  33. package/src/assets/info/__tests__/transform.test.ts +143 -0
  34. package/src/assets/info/index.ts +2 -2
  35. package/src/assets/info/transform.ts +8 -8
  36. package/src/assets/info/types.ts +3 -3
  37. package/src/assets/input/index.ts +2 -2
  38. package/src/assets/input/transform.ts +4 -4
  39. package/src/assets/input/types.ts +3 -3
  40. package/src/assets/text/index.ts +1 -1
  41. package/src/assets/text/types.ts +4 -4
  42. package/src/index.ts +2 -2
  43. package/src/plugin.ts +34 -10
  44. package/types/assets/action/index.d.ts +3 -0
  45. package/types/assets/action/transform.d.ts +14 -0
  46. package/types/assets/action/types.d.ts +32 -0
  47. package/types/assets/choice/index.d.ts +3 -0
  48. package/types/assets/choice/transform.d.ts +7 -0
  49. package/types/assets/choice/types.d.ts +51 -0
  50. package/types/assets/collection/index.d.ts +2 -0
  51. package/types/assets/collection/types.d.ts +8 -0
  52. package/types/assets/image/index.d.ts +3 -0
  53. package/types/assets/image/transform.d.ts +7 -0
  54. package/types/assets/image/types.d.ts +21 -0
  55. package/types/assets/index.d.ts +8 -0
  56. package/types/assets/info/index.d.ts +3 -0
  57. package/types/assets/info/transform.d.ts +8 -0
  58. package/types/assets/info/types.d.ts +28 -0
  59. package/types/assets/input/index.d.ts +3 -0
  60. package/types/assets/input/transform.d.ts +7 -0
  61. package/types/assets/input/types.d.ts +34 -0
  62. package/types/assets/text/index.d.ts +2 -0
  63. package/types/assets/text/types.d.ts +31 -0
  64. package/types/index.d.ts +3 -0
  65. package/types/plugin.d.ts +19 -0
  66. package/dist/index.cjs.js +0 -204
  67. package/dist/index.d.ts +0 -185
  68. package/dist/index.esm.js +0 -194
  69. package/dist/reference-assets-plugin.dev.js +0 -675
  70. package/dist/reference-assets-plugin.prod.js +0 -1
package/dist/index.mjs ADDED
@@ -0,0 +1,181 @@
1
+ // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/input/transform.ts
2
+ var inputTransform = (asset, options) => {
3
+ return {
4
+ ...asset,
5
+ format(val) {
6
+ if (asset.binding === void 0) {
7
+ return val;
8
+ }
9
+ return options.data.format(asset.binding, val);
10
+ },
11
+ set(val) {
12
+ if (asset.binding === void 0) {
13
+ return;
14
+ }
15
+ return options.data.model.set([[asset.binding, val]], {
16
+ formatted: true
17
+ });
18
+ },
19
+ value: asset.binding === void 0 ? "" : options.data.model.get(asset.binding, {
20
+ includeInvalid: true,
21
+ formatted: true
22
+ }),
23
+ validation: asset.binding === void 0 ? void 0 : options.validation?.get(asset.binding, { track: true }),
24
+ dataType: asset.binding === void 0 ? void 0 : options.validation?.type(asset.binding)
25
+ };
26
+ };
27
+
28
+ // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/action/transform.ts
29
+ import { compose, composeBefore } from "@player-ui/asset-transform-plugin";
30
+ function isBackAction(action) {
31
+ return action.value === "Prev";
32
+ }
33
+ var transform = (action, options) => {
34
+ return {
35
+ ...action,
36
+ run() {
37
+ if (action.exp) {
38
+ options.evaluate(action.exp);
39
+ }
40
+ if (action.value) {
41
+ const skipValidation = action.metaData?.skipValidation;
42
+ options.transition?.(action.value, { force: skipValidation });
43
+ }
44
+ }
45
+ };
46
+ };
47
+ var backIconTransform = (action) => {
48
+ if (isBackAction(action) && action?.metaData?.role === void 0) {
49
+ return {
50
+ ...action,
51
+ metaData: {
52
+ ...action?.metaData,
53
+ role: "back"
54
+ }
55
+ };
56
+ }
57
+ return action;
58
+ };
59
+ var expPropTransform = (asset) => {
60
+ const skipArray = asset.plugins?.stringResolver?.propertiesToSkip;
61
+ if (skipArray && skipArray.indexOf("exp") > 1) {
62
+ return asset;
63
+ }
64
+ return {
65
+ ...asset,
66
+ plugins: {
67
+ ...asset.plugins,
68
+ stringResolver: {
69
+ ...asset?.plugins?.stringResolver,
70
+ propertiesToSkip: [
71
+ ...asset.plugins?.stringResolver?.propertiesToSkip ?? [],
72
+ "exp"
73
+ ]
74
+ }
75
+ }
76
+ };
77
+ };
78
+ var actionTransform = compose(
79
+ transform,
80
+ backIconTransform,
81
+ composeBefore(expPropTransform)
82
+ );
83
+
84
+ // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/info/transform.ts
85
+ var infoTransform = (infoAsset) => {
86
+ const actions = infoAsset?.actions;
87
+ const segmentedActions = actions?.reduce(
88
+ (segmentedActionsArray, action) => {
89
+ segmentedActionsArray[isBackAction(action.asset) ? "prev" : "next"].push(action);
90
+ return segmentedActionsArray;
91
+ },
92
+ { next: [], prev: [] }
93
+ );
94
+ return {
95
+ ...infoAsset,
96
+ segmentedActions
97
+ };
98
+ };
99
+
100
+ // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/image/transform.ts
101
+ var getImageAlt = (props) => {
102
+ const { metaData, placeholder } = props;
103
+ if (metaData.accessibility)
104
+ return metaData.accessibility;
105
+ if (placeholder)
106
+ return placeholder;
107
+ return "Image";
108
+ };
109
+ var imageTransform = (props) => {
110
+ const altText = getImageAlt(props);
111
+ const newImage = {
112
+ ...props,
113
+ altText
114
+ };
115
+ return newImage;
116
+ };
117
+
118
+ // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/choice/transform.ts
119
+ var choiceTransform = (asset, options) => {
120
+ const { items, binding, ...rest } = asset;
121
+ const assetHasBinding = binding !== void 0;
122
+ const currentValue = assetHasBinding ? options.data.model.get(binding, {
123
+ includeInvalid: true
124
+ }) : void 0;
125
+ const resetValue = () => {
126
+ if (assetHasBinding) {
127
+ return options.data.model.set([[binding, null]]);
128
+ }
129
+ };
130
+ const transformedChoiceItems = (items || []).map(
131
+ (item, index) => ({
132
+ ...item,
133
+ id: item.id ?? `${asset.id}-choice-${index}`,
134
+ select() {
135
+ if (assetHasBinding) {
136
+ return options.data.model.set([[binding, item.value]]);
137
+ }
138
+ },
139
+ unselect: resetValue
140
+ })
141
+ );
142
+ return {
143
+ ...rest,
144
+ binding,
145
+ clearSelection: resetValue,
146
+ items: transformedChoiceItems,
147
+ value: currentValue,
148
+ validation: assetHasBinding ? options.validation?.get(binding, { track: true }) : void 0,
149
+ dataType: assetHasBinding ? options.validation?.type(binding) : void 0
150
+ };
151
+ };
152
+
153
+ // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/plugin.ts
154
+ import { AssetTransformPlugin } from "@player-ui/asset-transform-plugin";
155
+ var ReferenceAssetsPlugin = class {
156
+ constructor() {
157
+ this.name = "reference-assets-transforms";
158
+ }
159
+ apply(player) {
160
+ player.registerPlugin(
161
+ new AssetTransformPlugin([
162
+ [{ type: "action" }, actionTransform],
163
+ [{ type: "input" }, inputTransform],
164
+ [{ type: "image" }, imageTransform],
165
+ [{ type: "info" }, infoTransform],
166
+ [{ type: "choice" }, choiceTransform]
167
+ ])
168
+ );
169
+ }
170
+ };
171
+ export {
172
+ ReferenceAssetsPlugin,
173
+ actionTransform,
174
+ choiceTransform,
175
+ expPropTransform,
176
+ imageTransform,
177
+ infoTransform,
178
+ inputTransform,
179
+ isBackAction
180
+ };
181
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/input/transform.ts","../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/action/transform.ts","../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/info/transform.ts","../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/image/transform.ts","../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/choice/transform.ts","../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/plugin.ts"],"sourcesContent":["import type { TransformFunction } from \"@player-ui/player\";\nimport type { InputAsset, TransformedInput } from \"./types\";\n\n/**\n * Docs about the asset transform\n */\nexport const inputTransform: TransformFunction<InputAsset, TransformedInput> = (\n asset,\n options,\n) => {\n return {\n ...asset,\n format(val) {\n if (asset.binding === undefined) {\n return val;\n }\n\n return options.data.format(asset.binding, val);\n },\n set(val) {\n if (asset.binding === undefined) {\n return;\n }\n\n return options.data.model.set([[asset.binding, val]], {\n formatted: true,\n });\n },\n value:\n asset.binding === undefined\n ? \"\"\n : options.data.model.get(asset.binding, {\n includeInvalid: true,\n formatted: true,\n }),\n validation:\n asset.binding === undefined\n ? undefined\n : options.validation?.get(asset.binding, { track: true }),\n dataType:\n asset.binding === undefined\n ? undefined\n : options.validation?.type(asset.binding),\n };\n};\n","import type {\n Asset,\n TransformFunction,\n BeforeTransformFunction,\n} from \"@player-ui/player\";\nimport { compose, composeBefore } from \"@player-ui/asset-transform-plugin\";\nimport type { ActionAsset, TransformedAction } from \"./types\";\n\n/**\n * Function to find prev button\n */\nexport function isBackAction(action: ActionAsset): boolean {\n return action.value === \"Prev\";\n}\n\n/**\n * Attaches the methods to execute an action to an action\n */\nconst transform: TransformFunction<ActionAsset, TransformedAction> = (\n action,\n options,\n) => {\n return {\n ...action,\n run() {\n if (action.exp) {\n options.evaluate(action.exp);\n }\n\n if (action.value) {\n const skipValidation = action.metaData?.skipValidation;\n options.transition?.(action.value, { force: skipValidation });\n }\n },\n };\n};\n\n/**\n * De couples back button from the back icon\n */\nconst backIconTransform: TransformFunction<ActionAsset, ActionAsset> = (\n action,\n) => {\n /** For previous versions of player, the back button would already have the back icon.\n * This ensures that the old functionality does not break and back button is still visible when they update the player.\n */\n if (isBackAction(action) && action?.metaData?.role === undefined) {\n return {\n ...action,\n metaData: {\n ...action?.metaData,\n role: \"back\",\n },\n };\n }\n\n return action;\n};\n\n/**\n * Appends `exp` to the plugins.stringResolver.propertiesToSkip array or creates it if it doesn't exist\n *\n * @param asset - Asset to apply the transform to\n */\nexport const expPropTransform: BeforeTransformFunction<Asset> = (asset) => {\n const skipArray = asset.plugins?.stringResolver?.propertiesToSkip;\n\n if (skipArray && skipArray.indexOf(\"exp\") > 1) {\n return asset;\n }\n\n return {\n ...asset,\n plugins: {\n ...asset.plugins,\n stringResolver: {\n ...asset?.plugins?.stringResolver,\n propertiesToSkip: [\n ...(asset.plugins?.stringResolver?.propertiesToSkip ?? []),\n \"exp\",\n ],\n },\n },\n };\n};\n\nexport const actionTransform = compose(\n transform,\n backIconTransform,\n composeBefore(expPropTransform),\n);\n","import type { TransformFunction } from \"@player-ui/player\";\nimport type { AssetWrapper } from \"@player-ui/player\";\nimport type { InfoAsset, InfoAssetTransform } from \"./types\";\nimport type { ActionAsset } from \"../action/types\";\nimport { isBackAction } from \"../action/transform\";\n\n/**\n * This transform should add segmentedActions to the info asset.\n * Segmented actions display side by side in larger viewports. Segmented Actions is an object of next and prev actions\n */\nexport const infoTransform: TransformFunction<InfoAsset, InfoAssetTransform> = (\n infoAsset,\n) => {\n const actions = infoAsset?.actions;\n const segmentedActions = actions?.reduce(\n (segmentedActionsArray, action) => {\n segmentedActionsArray[\n isBackAction(action.asset as ActionAsset) ? \"prev\" : \"next\"\n ].push(action as AssetWrapper<ActionAsset>);\n return segmentedActionsArray;\n },\n { next: [], prev: [] } as {\n /**\n * next is an array of next actions\n */\n next: Array<AssetWrapper<ActionAsset>>;\n /**\n * prev is an array of prev actions\n */\n prev: Array<AssetWrapper<ActionAsset>>;\n },\n );\n\n return {\n ...infoAsset,\n segmentedActions,\n };\n};\n","import type { TransformFunction } from \"@player-ui/player\";\nimport type { ImageAsset, TransformedImage } from \"./types\";\n\n/**\n * Function to retrieve the desired alt text based on passed in props.\n * @param props Image props\n * @returns The alt text for the image asset\n */\nconst getImageAlt = (props: ImageAsset): string => {\n const { metaData, placeholder } = props;\n if (metaData.accessibility) return metaData.accessibility;\n\n if (placeholder) return placeholder;\n\n return \"Image\";\n};\n\n/**\n * Sets the Image's placeholder and accessibilty\n */\nexport const imageTransform: TransformFunction<ImageAsset, TransformedImage> = (\n props,\n) => {\n const altText = getImageAlt(props);\n\n const newImage = {\n ...props,\n altText,\n };\n\n return newImage;\n};\n","import type { TransformFunction } from \"@player-ui/player\";\nimport type {\n ChoiceAsset,\n TransformedChoice,\n TransformedChoiceItem,\n} from \"./types\";\n\n/**\n * Docs about the asset transform\n */\nexport const choiceTransform: TransformFunction<\n ChoiceAsset,\n TransformedChoice\n> = (asset, options) => {\n const { items, binding, ...rest } = asset;\n\n const assetHasBinding = binding !== undefined;\n\n const currentValue = assetHasBinding\n ? options.data.model.get(binding, {\n includeInvalid: true,\n })\n : undefined;\n\n const resetValue = () => {\n if (assetHasBinding) {\n return options.data.model.set([[binding, null]]);\n }\n };\n\n const transformedChoiceItems: TransformedChoiceItem[] = (items || []).map(\n (item, index) => ({\n ...item,\n id: item.id ?? `${asset.id}-choice-${index}`,\n select() {\n if (assetHasBinding) {\n return options.data.model.set([[binding, item.value]]);\n }\n },\n unselect: resetValue,\n }),\n );\n\n return {\n ...rest,\n binding,\n clearSelection: resetValue,\n items: transformedChoiceItems,\n value: currentValue,\n validation: assetHasBinding\n ? options.validation?.get(binding, { track: true })\n : undefined,\n dataType: assetHasBinding ? options.validation?.type(binding) : undefined,\n };\n};\n","import type { Player, ExtendedPlayerPlugin } from \"@player-ui/player\";\nimport { AssetTransformPlugin } from \"@player-ui/asset-transform-plugin\";\nimport type {\n ActionAsset,\n InputAsset,\n ImageAsset,\n InfoAsset,\n TextAsset,\n CollectionAsset,\n ChoiceAsset,\n} from \"./assets\";\nimport {\n inputTransform,\n actionTransform,\n imageTransform,\n infoTransform,\n choiceTransform,\n} from \"./assets\";\n\n/**\n * A plugin to add transforms for the reference assets\n */\nexport class ReferenceAssetsPlugin\n implements\n ExtendedPlayerPlugin<\n [\n ActionAsset,\n InputAsset,\n ImageAsset,\n TextAsset,\n CollectionAsset,\n ChoiceAsset,\n ],\n [InfoAsset]\n >\n{\n name = \"reference-assets-transforms\";\n\n apply(player: Player) {\n player.registerPlugin(\n new AssetTransformPlugin([\n [{ type: \"action\" }, actionTransform],\n [{ type: \"input\" }, inputTransform],\n [{ type: \"image\" }, imageTransform],\n [{ type: \"info\" }, infoTransform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AA,QAClC,CAAC,EAAE,MAAM,OAAO,GAAG,aAAa;AAAA,QAChC,CAAC,EAAE,MAAM,SAAS,GAAG,eAAe;AAAA,MACtC,CAAC;AAAA,IACH;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,126 @@
1
+ {
2
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/action/types.ts",
3
+ "name": "ActionAsset",
4
+ "type": "object",
5
+ "properties": {
6
+ "value": {
7
+ "required": false,
8
+ "node": {
9
+ "type": "string",
10
+ "title": "ActionAsset.value",
11
+ "description": "The transition value of the action in the state machine"
12
+ }
13
+ },
14
+ "label": {
15
+ "required": false,
16
+ "node": {
17
+ "type": "ref",
18
+ "ref": "AssetWrapper<AnyTextAsset>",
19
+ "genericArguments": [
20
+ {
21
+ "type": "ref",
22
+ "ref": "AnyTextAsset"
23
+ }
24
+ ],
25
+ "title": "ActionAsset.label",
26
+ "description": "A text-like asset for the action's label"
27
+ }
28
+ },
29
+ "exp": {
30
+ "required": false,
31
+ "node": {
32
+ "type": "ref",
33
+ "ref": "Expression",
34
+ "title": "ActionAsset.exp",
35
+ "description": "An optional expression to execute before transitioning"
36
+ }
37
+ },
38
+ "accessibility": {
39
+ "required": false,
40
+ "node": {
41
+ "type": "string",
42
+ "title": "ActionAsset.accessibility",
43
+ "description": "An optional string that describes the action for screen-readers"
44
+ }
45
+ },
46
+ "metaData": {
47
+ "required": false,
48
+ "node": {
49
+ "type": "object",
50
+ "properties": {
51
+ "beacon": {
52
+ "required": false,
53
+ "node": {
54
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@player-ui+beacon-plugin@0.0.0/node_modules/@player-ui/beacon-plugin/types/beacon.d.ts",
55
+ "name": "BeaconDataType",
56
+ "type": "or",
57
+ "or": [
58
+ {
59
+ "type": "string",
60
+ "title": "BeaconDataType"
61
+ },
62
+ {
63
+ "type": "record",
64
+ "keyType": {
65
+ "type": "string"
66
+ },
67
+ "valueType": {
68
+ "type": "any"
69
+ },
70
+ "title": "BeaconDataType"
71
+ }
72
+ ],
73
+ "title": "ActionAsset.metaData.beacon",
74
+ "description": "Additional data to beacon"
75
+ }
76
+ },
77
+ "skipValidation": {
78
+ "required": false,
79
+ "node": {
80
+ "type": "boolean",
81
+ "title": "ActionAsset.metaData.skipValidation",
82
+ "description": "Force transition to the next view without checking for validation"
83
+ }
84
+ },
85
+ "role": {
86
+ "required": false,
87
+ "node": {
88
+ "type": "string",
89
+ "title": "ActionAsset.metaData.role",
90
+ "description": "string value to decide for the left anchor sign"
91
+ }
92
+ }
93
+ },
94
+ "additionalProperties": false,
95
+ "title": "ActionAsset.metaData",
96
+ "description": "Additional optional data to assist with the action interactions on the page"
97
+ }
98
+ }
99
+ },
100
+ "additionalProperties": false,
101
+ "title": "ActionAsset",
102
+ "description": "User actions can be represented in several places.\nEach view typically has one or more actions that allow the user to navigate away from that view.\nIn addition, several asset types can have actions that apply to that asset only.",
103
+ "genericTokens": [
104
+ {
105
+ "symbol": "AnyTextAsset",
106
+ "constraints": {
107
+ "type": "ref",
108
+ "ref": "Asset"
109
+ },
110
+ "default": {
111
+ "type": "ref",
112
+ "ref": "Asset"
113
+ }
114
+ }
115
+ ],
116
+ "extends": {
117
+ "type": "ref",
118
+ "ref": "Asset<\"action\">",
119
+ "genericArguments": [
120
+ {
121
+ "type": "string",
122
+ "const": "action"
123
+ }
124
+ ]
125
+ }
126
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/choice/types.ts",
3
+ "name": "ChoiceAsset",
4
+ "type": "object",
5
+ "properties": {
6
+ "title": {
7
+ "required": false,
8
+ "node": {
9
+ "type": "ref",
10
+ "ref": "AssetWrapper<AnyTextAsset>",
11
+ "genericArguments": [
12
+ {
13
+ "type": "ref",
14
+ "ref": "AnyTextAsset"
15
+ }
16
+ ],
17
+ "title": "ChoiceAsset.title",
18
+ "description": "A text-like asset for the choice's label"
19
+ }
20
+ },
21
+ "note": {
22
+ "required": false,
23
+ "node": {
24
+ "type": "ref",
25
+ "ref": "AssetWrapper<AnyTextAsset>",
26
+ "genericArguments": [
27
+ {
28
+ "type": "ref",
29
+ "ref": "AnyTextAsset"
30
+ }
31
+ ],
32
+ "title": "ChoiceAsset.note",
33
+ "description": "Asset container for a note."
34
+ }
35
+ },
36
+ "binding": {
37
+ "required": false,
38
+ "node": {
39
+ "type": "ref",
40
+ "ref": "Binding",
41
+ "title": "ChoiceAsset.binding",
42
+ "description": "The location in the data-model to store the data"
43
+ }
44
+ },
45
+ "items": {
46
+ "required": false,
47
+ "node": {
48
+ "type": "array",
49
+ "elementType": {
50
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/choice/types.ts",
51
+ "name": "ChoiceItem",
52
+ "type": "object",
53
+ "properties": {
54
+ "id": {
55
+ "required": true,
56
+ "node": {
57
+ "type": "string",
58
+ "title": "ChoiceItem.id",
59
+ "description": "The id associated with the choice item"
60
+ }
61
+ },
62
+ "label": {
63
+ "required": false,
64
+ "node": {
65
+ "type": "ref",
66
+ "ref": "AssetWrapper<AnyTextAsset>",
67
+ "genericArguments": [
68
+ {
69
+ "type": "ref",
70
+ "ref": "AnyTextAsset"
71
+ }
72
+ ],
73
+ "title": "ChoiceItem.label",
74
+ "description": "A text-like asset for the choice's label"
75
+ }
76
+ },
77
+ "value": {
78
+ "required": false,
79
+ "node": {
80
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/choice/types.ts",
81
+ "name": "ValueType",
82
+ "type": "or",
83
+ "or": [
84
+ {
85
+ "type": "string",
86
+ "title": "ValueType"
87
+ },
88
+ {
89
+ "type": "number",
90
+ "title": "ValueType"
91
+ },
92
+ {
93
+ "type": "boolean",
94
+ "title": "ValueType"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ],
100
+ "title": "ChoiceItem.value",
101
+ "description": "The value of the input from the data-model"
102
+ }
103
+ }
104
+ },
105
+ "additionalProperties": false,
106
+ "title": "ChoiceItem",
107
+ "genericTokens": [
108
+ {
109
+ "symbol": "AnyTextAsset",
110
+ "constraints": {
111
+ "type": "ref",
112
+ "ref": "Asset"
113
+ },
114
+ "default": {
115
+ "type": "ref",
116
+ "ref": "Asset"
117
+ }
118
+ }
119
+ ]
120
+ },
121
+ "title": "ChoiceAsset.items",
122
+ "description": "The options to select from"
123
+ }
124
+ },
125
+ "metaData": {
126
+ "required": false,
127
+ "node": {
128
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@player-ui+beacon-plugin@0.0.0/node_modules/@player-ui/beacon-plugin/types/beacon.d.ts",
129
+ "name": "BeaconMetaData",
130
+ "type": "object",
131
+ "properties": {
132
+ "beacon": {
133
+ "required": false,
134
+ "node": {
135
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@player-ui+beacon-plugin@0.0.0/node_modules/@player-ui/beacon-plugin/types/beacon.d.ts",
136
+ "name": "BeaconDataType",
137
+ "type": "or",
138
+ "or": [
139
+ {
140
+ "type": "string",
141
+ "title": "BeaconDataType"
142
+ },
143
+ {
144
+ "type": "record",
145
+ "keyType": {
146
+ "type": "string"
147
+ },
148
+ "valueType": {
149
+ "type": "any"
150
+ },
151
+ "title": "BeaconDataType"
152
+ }
153
+ ],
154
+ "title": "BeaconMetaData.beacon",
155
+ "description": "Additional data to send along with beacons"
156
+ }
157
+ }
158
+ },
159
+ "additionalProperties": false,
160
+ "title": "ChoiceAsset.metaData",
161
+ "description": "Optional additional data"
162
+ }
163
+ }
164
+ },
165
+ "additionalProperties": false,
166
+ "title": "ChoiceAsset",
167
+ "description": "A choice asset represents a single selection choice, often displayed as radio buttons in a web context.\nThis will allow users to test out more complex flows than just inputs + buttons.",
168
+ "genericTokens": [
169
+ {
170
+ "symbol": "AnyTextAsset",
171
+ "constraints": {
172
+ "type": "ref",
173
+ "ref": "Asset"
174
+ },
175
+ "default": {
176
+ "type": "ref",
177
+ "ref": "Asset"
178
+ }
179
+ }
180
+ ],
181
+ "extends": {
182
+ "type": "ref",
183
+ "ref": "Asset<\"choice\">",
184
+ "genericArguments": [
185
+ {
186
+ "type": "string",
187
+ "const": "choice"
188
+ }
189
+ ]
190
+ }
191
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/collection/types.ts",
3
+ "name": "CollectionAsset",
4
+ "type": "object",
5
+ "properties": {
6
+ "label": {
7
+ "required": false,
8
+ "node": {
9
+ "type": "ref",
10
+ "ref": "AssetWrapper",
11
+ "title": "CollectionAsset.label",
12
+ "description": "An optional label to title the collection"
13
+ }
14
+ },
15
+ "values": {
16
+ "required": false,
17
+ "node": {
18
+ "type": "array",
19
+ "elementType": {
20
+ "type": "ref",
21
+ "ref": "AssetWrapper"
22
+ },
23
+ "title": "CollectionAsset.values",
24
+ "description": "The string value to show"
25
+ }
26
+ }
27
+ },
28
+ "additionalProperties": false,
29
+ "title": "CollectionAsset",
30
+ "extends": {
31
+ "type": "ref",
32
+ "ref": "Asset<\"collection\">",
33
+ "genericArguments": [
34
+ {
35
+ "type": "string",
36
+ "const": "collection"
37
+ }
38
+ ]
39
+ }
40
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/image/types.ts",
3
+ "name": "ImageAsset",
4
+ "type": "object",
5
+ "properties": {
6
+ "metaData": {
7
+ "required": true,
8
+ "node": {
9
+ "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2149/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/core/src/assets/image/types.ts",
10
+ "name": "ImageMetaData",
11
+ "type": "object",
12
+ "properties": {
13
+ "ref": {
14
+ "required": true,
15
+ "node": {
16
+ "type": "string",
17
+ "title": "ImageMetaData.ref",
18
+ "description": "The location of the image to load"
19
+ }
20
+ },
21
+ "accessibility": {
22
+ "required": false,
23
+ "node": {
24
+ "type": "string",
25
+ "title": "ImageMetaData.accessibility",
26
+ "description": "Used for accessibility support"
27
+ }
28
+ }
29
+ },
30
+ "additionalProperties": false,
31
+ "title": "ImageAsset.metaData",
32
+ "description": "Reference to the image"
33
+ }
34
+ },
35
+ "placeholder": {
36
+ "required": false,
37
+ "node": {
38
+ "type": "string",
39
+ "title": "ImageAsset.placeholder",
40
+ "description": "Optional placeholder text"
41
+ }
42
+ },
43
+ "caption": {
44
+ "required": false,
45
+ "node": {
46
+ "type": "ref",
47
+ "ref": "AssetWrapper",
48
+ "title": "ImageAsset.caption",
49
+ "description": "Optional caption"
50
+ }
51
+ }
52
+ },
53
+ "additionalProperties": false,
54
+ "title": "ImageAsset",
55
+ "extends": {
56
+ "type": "ref",
57
+ "ref": "Asset<\"image\">",
58
+ "genericArguments": [
59
+ {
60
+ "type": "string",
61
+ "const": "image"
62
+ }
63
+ ]
64
+ }
65
+ }