@player-ui/reference-assets-plugin-react 0.10.0-next.0 → 0.10.0-next.10
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/dist/cjs/index.cjs +35 -28
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.css +125 -378
- package/dist/index.legacy-esm.js +35 -28
- package/dist/index.mjs +35 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/__tests__/integration.test.tsx +4 -2
- package/src/assets/choice/Choice.tsx +4 -4
- package/src/assets/collection/Collection.tsx +1 -1
- package/src/assets/image/Image.tsx +7 -3
- package/src/assets/info/Info.tsx +8 -8
- package/src/assets/input/Input.tsx +3 -3
- package/src/assets/text/Text.tsx +1 -1
- package/src/components/Button.tsx +11 -11
- package/src/components/ChoiceItem.tsx +2 -2
- package/src/components/Input.tsx +1 -1
- package/src/components/Label.tsx +1 -1
- package/src/components/Separator.tsx +4 -2
- package/src/global.css +41 -53
package/dist/cjs/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ var Input = React.forwardRef(
|
|
|
75
75
|
{
|
|
76
76
|
type,
|
|
77
77
|
className: cn(
|
|
78
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
78
|
+
"player-flex player-h-9 player-w-full player-rounded-md player-border player-border-input player-bg-transparent player-px-3 player-py-1 player-text-sm player-shadow-sm player-transition-colors file:player-border-0 file:player-bg-transparent file:player-text-sm file:player-font-medium placeholder:player-text-muted-foreground focus-visible:player-outline-none focus-visible:player-ring-1 focus-visible:player-ring-ring player-disabled:player-cursor-not-allowed disabled:player-opacity-50",
|
|
79
79
|
className
|
|
80
80
|
),
|
|
81
81
|
ref,
|
|
@@ -91,7 +91,7 @@ var React2 = __toESM(require("react"));
|
|
|
91
91
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
92
92
|
var import_class_variance_authority = require("class-variance-authority");
|
|
93
93
|
var labelVariants = (0, import_class_variance_authority.cva)(
|
|
94
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
94
|
+
"player-text-sm player-font-medium player-leading-none peer-disabled:player-cursor-not-allowed peer-disabled:player-opacity-70"
|
|
95
95
|
);
|
|
96
96
|
var Label = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
|
97
97
|
LabelPrimitive.Root,
|
|
@@ -274,7 +274,7 @@ var useInputAsset = (props, config) => {
|
|
|
274
274
|
var Input2 = (props) => {
|
|
275
275
|
const { validation, label, id, note } = props;
|
|
276
276
|
const inputProps = useInputAsset(props);
|
|
277
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { className: "grid w-full max-w-sm items-center gap-1.5" }, label && /* @__PURE__ */ import_react2.default.createElement(Label, { htmlFor: id }, /* @__PURE__ */ import_react2.default.createElement(import_react3.ReactAsset, { ...label })), /* @__PURE__ */ import_react2.default.createElement(
|
|
277
|
+
return /* @__PURE__ */ import_react2.default.createElement("div", { className: "player-grid player-w-full player-max-w-sm player-items-center player-gap-1.5" }, label && /* @__PURE__ */ import_react2.default.createElement(Label, { htmlFor: id }, /* @__PURE__ */ import_react2.default.createElement(import_react3.ReactAsset, { ...label })), /* @__PURE__ */ import_react2.default.createElement(
|
|
278
278
|
Input,
|
|
279
279
|
{
|
|
280
280
|
id,
|
|
@@ -286,10 +286,10 @@ var Input2 = (props) => {
|
|
|
286
286
|
Label,
|
|
287
287
|
{
|
|
288
288
|
id: `${id}-validation`,
|
|
289
|
-
className: "text-[0.8rem] font-medium text-destructive"
|
|
289
|
+
className: "player-text-[0.8rem] player-font-medium player-text-destructive"
|
|
290
290
|
},
|
|
291
291
|
validation.message
|
|
292
|
-
), note && /* @__PURE__ */ import_react2.default.createElement(Label, { className: "text-[0.8rem] text-muted-foreground" }, /* @__PURE__ */ import_react2.default.createElement(import_react3.ReactAsset, { ...note })));
|
|
292
|
+
), note && /* @__PURE__ */ import_react2.default.createElement(Label, { className: "player-text-[0.8rem] player-text-muted-foreground" }, /* @__PURE__ */ import_react2.default.createElement(import_react3.ReactAsset, { ...note })));
|
|
293
293
|
};
|
|
294
294
|
|
|
295
295
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/text/Text.tsx
|
|
@@ -329,7 +329,7 @@ var Text = (props) => {
|
|
|
329
329
|
return /* @__PURE__ */ import_react6.default.createElement(
|
|
330
330
|
"a",
|
|
331
331
|
{
|
|
332
|
-
className: "underline text-blue-600 hover:text-blue-800 visited:text-purple-600",
|
|
332
|
+
className: "player-underline player-text-blue-600 hover:player-text-blue-800 visited:player-text-purple-600",
|
|
333
333
|
href: linkModifier.metaData.ref
|
|
334
334
|
},
|
|
335
335
|
value
|
|
@@ -342,7 +342,7 @@ var Text = (props) => {
|
|
|
342
342
|
var import_react7 = __toESM(require("react"));
|
|
343
343
|
var import_react8 = require("@player-ui/react");
|
|
344
344
|
var Collection = (props) => {
|
|
345
|
-
return /* @__PURE__ */ import_react7.default.createElement("div", { className: "flex flex-col gap-4" }, props.label && /* @__PURE__ */ import_react7.default.createElement("h3", null, /* @__PURE__ */ import_react7.default.createElement(import_react8.ReactAsset, { ...props.label })), props.values?.map((a) => /* @__PURE__ */ import_react7.default.createElement(import_react8.ReactAsset, { key: a.asset.id, ...a })));
|
|
345
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { className: "player-flex player-flex-col player-gap-4" }, props.label && /* @__PURE__ */ import_react7.default.createElement("h3", null, /* @__PURE__ */ import_react7.default.createElement(import_react8.ReactAsset, { ...props.label })), props.values?.map((a) => /* @__PURE__ */ import_react7.default.createElement(import_react8.ReactAsset, { key: a.asset.id, ...a })));
|
|
346
346
|
};
|
|
347
347
|
|
|
348
348
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/action/Action.tsx
|
|
@@ -377,22 +377,22 @@ var React9 = __toESM(require("react"));
|
|
|
377
377
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
378
378
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
379
379
|
var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
380
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
380
|
+
"player-inline-flex player-items-center player-justify-center player-whitespace-nowrap player-rounded-md player-text-sm player-font-medium player-transition-colors focus-visible:player-outline-none focus-visible:player-ring-1 focus-visible:player-ring-ring disabled:player-pointer-events-none disabled:player-opacity-50",
|
|
381
381
|
{
|
|
382
382
|
variants: {
|
|
383
383
|
variant: {
|
|
384
|
-
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
385
|
-
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
386
|
-
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
387
|
-
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
388
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
389
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
384
|
+
default: "player-bg-primary player-text-primary-foreground player-shadow hover:player-bg-primary/90",
|
|
385
|
+
destructive: "player-bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
386
|
+
outline: "player-border player-border-input player-bg-background player-shadow-sm hover:player-bg-accent hover:player-text-accent-foreground",
|
|
387
|
+
secondary: "player-bg-secondary player-text-secondary-foreground player-shadow-sm hover:player-bg-secondary/80",
|
|
388
|
+
ghost: "hover:player-bg-accent hover:player-text-accent-foreground",
|
|
389
|
+
link: "player-text-primary player-underline-offset-4 hover:player-underline"
|
|
390
390
|
},
|
|
391
391
|
size: {
|
|
392
|
-
default: "h-9 px-4 py-2",
|
|
393
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
394
|
-
lg: "h-10 rounded-md px-8",
|
|
395
|
-
icon: "h-9 w-9"
|
|
392
|
+
default: "player-h-9 player-px-4 player-py-2",
|
|
393
|
+
sm: "player-h-8 player-rounded-md player-px-3 player-text-xs",
|
|
394
|
+
lg: "player-h-10 player-rounded-md player-px-8",
|
|
395
|
+
icon: "player-h-9 player-w-9"
|
|
396
396
|
}
|
|
397
397
|
},
|
|
398
398
|
defaultVariants: {
|
|
@@ -446,8 +446,8 @@ var Separator = React11.forwardRef(
|
|
|
446
446
|
decorative,
|
|
447
447
|
orientation,
|
|
448
448
|
className: cn(
|
|
449
|
-
"shrink-0 bg-border",
|
|
450
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
449
|
+
"player-shrink-0 player-bg-border",
|
|
450
|
+
orientation === "horizontal" ? "player-h-[1px] player-w-full" : "player-h-full player-w-[1px]",
|
|
451
451
|
className
|
|
452
452
|
),
|
|
453
453
|
...props
|
|
@@ -458,7 +458,7 @@ Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
|
458
458
|
|
|
459
459
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/info/Info.tsx
|
|
460
460
|
var Info = (props) => {
|
|
461
|
-
return /* @__PURE__ */ import_react13.default.createElement("div", { className: "max-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "flex flex-col gap-4" }, props.title && /* @__PURE__ */ import_react13.default.createElement("h1", { className: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl" }, /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { ...props.title })), props.subTitle && /* @__PURE__ */ import_react13.default.createElement("h3", { className: "scroll-m-20 text-2xl font-semibold tracking-tight" }, /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { ...props.subTitle })), props.primaryInfo && /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { ...props.primaryInfo })), /* @__PURE__ */ import_react13.default.createElement("div", { className: "flex flex-col gap-4" }, props?.segmentedActions && /* @__PURE__ */ import_react13.default.createElement(Separator, null), /* @__PURE__ */ import_react13.default.createElement("div", { className: "flex justify-between sm:flex-row flex-col-reverse gap-4" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "flex gap-4" }, props?.segmentedActions?.prev?.map((a) => /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { key: a.asset.id, ...a }))), /* @__PURE__ */ import_react13.default.createElement("div", { className: "flex gap-4" }, props?.segmentedActions?.next?.map((a) => /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { key: a.asset.id, ...a })))))));
|
|
461
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: "player-max-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "player-flex player-flex-col player-gap-4" }, props.title && /* @__PURE__ */ import_react13.default.createElement("h1", { className: "player-scroll-m-20 player-text-4xl player-font-extrabold player-tracking-tight lg:player-text-5xl" }, /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { ...props.title })), props.subTitle && /* @__PURE__ */ import_react13.default.createElement("h3", { className: "player-scroll-m-20 player-text-2xl player-font-semibold player-tracking-tight" }, /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { ...props.subTitle })), props.primaryInfo && /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { ...props.primaryInfo })), /* @__PURE__ */ import_react13.default.createElement("div", { className: "player-flex player-flex-col player-gap-4" }, props?.segmentedActions && /* @__PURE__ */ import_react13.default.createElement(Separator, null), /* @__PURE__ */ import_react13.default.createElement("div", { className: "player-flex player-justify-between sm:player-flex-row player-flex-col-reverse player-gap-4" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "player-flex player-gap-4" }, props?.segmentedActions?.prev?.map((a) => /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { key: a.asset.id, ...a }))), /* @__PURE__ */ import_react13.default.createElement("div", { className: "player-flex player-gap-4" }, props?.segmentedActions?.next?.map((a) => /* @__PURE__ */ import_react13.default.createElement(import_react14.ReactAsset, { key: a.asset.id, ...a })))))));
|
|
462
462
|
};
|
|
463
463
|
|
|
464
464
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/image/Image.tsx
|
|
@@ -466,7 +466,14 @@ var import_react15 = __toESM(require("react"));
|
|
|
466
466
|
var import_react16 = require("@player-ui/react");
|
|
467
467
|
var Image = (props) => {
|
|
468
468
|
const { metaData, caption, altText } = props;
|
|
469
|
-
return /* @__PURE__ */ import_react15.default.createElement("figure", { className: "
|
|
469
|
+
return /* @__PURE__ */ import_react15.default.createElement("figure", { className: "player-figure" }, /* @__PURE__ */ import_react15.default.createElement(
|
|
470
|
+
"img",
|
|
471
|
+
{
|
|
472
|
+
className: "player-figure-img player-img-fluid",
|
|
473
|
+
src: metaData.ref,
|
|
474
|
+
alt: altText
|
|
475
|
+
}
|
|
476
|
+
), caption && /* @__PURE__ */ import_react15.default.createElement("figcaption", { className: "player-figure-caption", style: { marginTop: 15 } }, /* @__PURE__ */ import_react15.default.createElement(import_react16.ReactAsset, { ...caption })));
|
|
470
477
|
};
|
|
471
478
|
|
|
472
479
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/choice/Choice.tsx
|
|
@@ -478,11 +485,11 @@ var import_react17 = __toESM(require("react"));
|
|
|
478
485
|
var import_react18 = require("@player-ui/react");
|
|
479
486
|
var ChoiceItem = (props) => {
|
|
480
487
|
const { label, id, ...rest } = props;
|
|
481
|
-
return /* @__PURE__ */ import_react17.default.createElement("div", { className: "flex items-center gap-1.5" }, /* @__PURE__ */ import_react17.default.createElement(
|
|
488
|
+
return /* @__PURE__ */ import_react17.default.createElement("div", { className: "player-flex player-items-center player-gap-1.5" }, /* @__PURE__ */ import_react17.default.createElement(
|
|
482
489
|
Input,
|
|
483
490
|
{
|
|
484
491
|
type: "radio",
|
|
485
|
-
className: "h-fit w-fit shadow-none",
|
|
492
|
+
className: "player-h-fit player-w-fit player-shadow-none",
|
|
486
493
|
id,
|
|
487
494
|
...rest
|
|
488
495
|
}
|
|
@@ -518,11 +525,11 @@ var Choice = (props) => {
|
|
|
518
525
|
const { validation, title, id, note } = props;
|
|
519
526
|
const choiceItemProps = useChoiceItems(props);
|
|
520
527
|
const renderChoices = () => choiceItemProps.map((choiceItemProp) => /* @__PURE__ */ import_react19.default.createElement(ChoiceItem, { key: choiceItemProp.id, ...choiceItemProp }));
|
|
521
|
-
return /* @__PURE__ */ import_react19.default.createElement("div", { className: "grid w-full max-w-sm items-center gap-3" }, title && /* @__PURE__ */ import_react19.default.createElement(Label, { htmlFor: id }, /* @__PURE__ */ import_react19.default.createElement(import_react20.ReactAsset, { ...title })), /* @__PURE__ */ import_react19.default.createElement(
|
|
528
|
+
return /* @__PURE__ */ import_react19.default.createElement("div", { className: "player-grid player-w-full player-max-w-sm player-items-center player-gap-3" }, title && /* @__PURE__ */ import_react19.default.createElement(Label, { htmlFor: id }, /* @__PURE__ */ import_react19.default.createElement(import_react20.ReactAsset, { ...title })), /* @__PURE__ */ import_react19.default.createElement(
|
|
522
529
|
"div",
|
|
523
530
|
{
|
|
524
531
|
id: props.id,
|
|
525
|
-
className: "grid gap-2",
|
|
532
|
+
className: "player-grid player-gap-2",
|
|
526
533
|
"aria-invalid": Boolean(validation),
|
|
527
534
|
"aria-describedby": validation ? `${id}-validation` : void 0
|
|
528
535
|
},
|
|
@@ -531,10 +538,10 @@ var Choice = (props) => {
|
|
|
531
538
|
Label,
|
|
532
539
|
{
|
|
533
540
|
id: `${id}-validation`,
|
|
534
|
-
className: "text-[0.8rem] font-medium text-destructive"
|
|
541
|
+
className: "player-text-[0.8rem] player-font-medium player-text-destructive"
|
|
535
542
|
},
|
|
536
543
|
validation.message
|
|
537
|
-
), note && /* @__PURE__ */ import_react19.default.createElement(Label, { className: "text-[0.8rem] text-muted-foreground" }, /* @__PURE__ */ import_react19.default.createElement(import_react20.ReactAsset, { ...note })));
|
|
544
|
+
), note && /* @__PURE__ */ import_react19.default.createElement(Label, { className: "player-text-[0.8rem] player-text-muted-foreground" }, /* @__PURE__ */ import_react19.default.createElement(import_react20.ReactAsset, { ...note })));
|
|
538
545
|
};
|
|
539
546
|
|
|
540
547
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/plugin.tsx
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/index.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/plugin.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/input/Input.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Input.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/utils.ts","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Label.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/input/hooks.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/text/Text.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/text/hooks.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/collection/Collection.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/action/Action.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/action/hooks.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Button.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/info/Info.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Separator.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/image/Image.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/choice/Choice.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/ChoiceItem.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/choice/hooks.tsx"],"sourcesContent":["import \"./global.css\";\n\nexport * from \"./plugin\";\nexport * from \"./assets\";\n","import React from \"react\";\nimport type {\n ReactPlayer,\n ReactPlayerPlugin,\n Player,\n ExtendedPlayerPlugin,\n} from \"@player-ui/react\";\nimport { AssetProviderPlugin } from \"@player-ui/asset-provider-plugin-react\";\nimport type {\n InputAsset,\n TextAsset,\n CollectionAsset,\n ActionAsset,\n InfoAsset,\n ChoiceAsset,\n} from \"@player-ui/reference-assets-plugin\";\nimport { ReferenceAssetsPlugin as ReferenceAssetsCorePlugin } from \"@player-ui/reference-assets-plugin\";\nimport { Input, Text, Collection, Action, Info, Image, Choice } from \"./assets\";\n\n/**\n * A plugin to register the base reference assets\n */\nexport class ReferenceAssetsPlugin\n implements\n ReactPlayerPlugin,\n ExtendedPlayerPlugin<\n [InputAsset, TextAsset, ActionAsset, CollectionAsset, ChoiceAsset],\n [InfoAsset]\n >\n{\n name = \"reference-assets-web-plugin\";\n\n applyReact(reactPlayer: ReactPlayer) {\n reactPlayer.registerPlugin(\n new AssetProviderPlugin([\n [\"input\", Input],\n [\"text\", Text],\n [\"action\", Action],\n [\"info\", Info],\n [\"collection\", Collection],\n [\"image\", Image],\n [\"choice\", Choice],\n ]),\n );\n }\n\n apply(player: Player) {\n player.registerPlugin(new ReferenceAssetsCorePlugin());\n }\n}\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { TransformedInput } from \"@player-ui/reference-assets-plugin\";\nimport { Input as InputComp } from \"../../components/Input\";\nimport { Label } from \"../../components/Label\";\n\nimport { useInputAsset } from \"./hooks\";\n\n/** An Input */\nexport const Input = (props: TransformedInput) => {\n const { validation, label, id, note } = props;\n const inputProps = useInputAsset(props);\n\n return (\n <div className=\"grid w-full max-w-sm items-center gap-1.5\">\n {label && (\n <Label htmlFor={id}>\n <ReactAsset {...label} />\n </Label>\n )}\n <InputComp\n id={id}\n aria-invalid={Boolean(validation)}\n aria-describedby={validation ? `${id}-validation` : undefined}\n {...inputProps}\n />\n {validation && (\n <Label\n id={`${id}-validation`}\n className=\"text-[0.8rem] font-medium text-destructive\"\n >\n {validation.message}\n </Label>\n )}\n {note && (\n <Label className=\"text-[0.8rem] text-muted-foreground\">\n <ReactAsset {...note} />\n </Label>\n )}\n </div>\n );\n};\n\nexport default Input;\n","/* eslint-disable @typescript-eslint/no-empty-interface */\nimport * as React from \"react\";\n\nimport { cn } from \"../utils\";\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../utils\";\n\nconst labelVariants = cva(\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n","import React from \"react\";\nimport { useBeacon } from \"@player-ui/beacon-plugin-react\";\nimport type { TransformedInput } from \"@player-ui/reference-assets-plugin\";\nimport type { KeyDownHandler } from \"./types\";\n\nexport interface InputHookConfig {\n /** Format the input as the user keys down */\n liveFormat?: boolean;\n\n /** Skip sending beacon events for this input */\n suppressBeacons?: boolean;\n\n /** Time (ms) to wait before formatting the user input for normal keys */\n quickFormatDelay?: number;\n\n /** Time (ms) to wait before formatting the input after the user types a special _slow_ format key */\n slowFormatDelay?: number;\n\n /** Keys to use a slower formatter for. Usually reserved for backspace, arrows, tabs, etc */\n slowFormatKeys?: Array<number | string>;\n\n /** Symbol to be used for decimal point */\n decimalSymbol?: string;\n\n /** Affix to append to value - does not save to model and is only for display on input */\n prefix?: string;\n\n /** Affix to prepend to value - does not save to model and is only for display on input */\n suffix?: string;\n}\n\nconst defaultKeyStrings = [\n \"Delete\",\n \"Backspace\",\n \"Tab\",\n \"Home\",\n \"End\",\n \"ArrowLeft\",\n \"ArrowRight\",\n \"ArrowUp\",\n \"ArrowDown\",\n \"Escape\",\n];\n\n/** Create a valid config mixing in defaults and user overrides */\nexport const getConfig = (\n userConfig: InputHookConfig = {},\n): Required<InputHookConfig> => {\n return {\n liveFormat: true,\n suppressBeacons: false,\n quickFormatDelay: 200,\n slowFormatDelay: 1000,\n slowFormatKeys: defaultKeyStrings,\n decimalSymbol: \".\",\n prefix: \"\",\n suffix: \"\",\n ...userConfig,\n };\n};\n\n/** A hook to manage beacon changes for input assets */\nexport const useInputBeacon = (props: TransformedInput) => {\n const beaconHandler = useBeacon({ element: \"text_input\", asset: props });\n\n return (newValue: string) => {\n let action = \"modified\";\n\n if (newValue === props.value) {\n return;\n }\n\n if (newValue && !props.value) {\n action = \"added\";\n } else if (!newValue && props.value) {\n action = \"deleted\";\n }\n\n beaconHandler({ action });\n };\n};\n\n/**\n * A hook to manage an input html element as an asset.\n * The hook returns an object containing props that are expected to reside on any html input.\n * It will handle formatting, setting values, beaconing, aria-labels, etc.\n *\n * @param props - The output of the input transform\n * @param config - Local config to manage user interaction overrides\n */\nexport const useInputAsset = (\n props: TransformedInput,\n config?: InputHookConfig,\n) => {\n const [localValue, setLocalValue] = React.useState(props.value ?? \"\");\n const formatTimerRef = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const inputBeacon = useInputBeacon(props);\n\n const {\n liveFormat,\n suppressBeacons,\n quickFormatDelay,\n slowFormatDelay,\n slowFormatKeys,\n decimalSymbol,\n prefix,\n suffix,\n } = getConfig(config);\n\n /** Reset and pending format timers */\n function clearPending() {\n if (formatTimerRef.current) {\n clearTimeout(formatTimerRef.current);\n formatTimerRef.current = undefined;\n }\n }\n\n /** Determines whether pressed key should trigger slow format or quick format delay */\n function getFormatDelaySpeed(e: React.KeyboardEvent<HTMLInputElement>) {\n const key = slowFormatKeys.every((k) => typeof k === \"number\")\n ? e.which\n : e.key;\n\n return slowFormatKeys.includes(key) ? slowFormatDelay : quickFormatDelay;\n }\n\n /** Affix handling logic on focus */\n function handleAffixOnFocus(target: HTMLInputElement) {\n let val = target.value;\n\n if (suffix) val = val.substring(0, val.indexOf(suffix));\n\n if (prefix && !val.includes(prefix)) {\n val = `${prefix}${val}`;\n }\n\n return val;\n }\n\n /** Edge cases handling for prefix */\n function handlePrefixEdgeCases(e: React.KeyboardEvent<HTMLInputElement>) {\n const target = e.target as HTMLInputElement;\n const start = target.selectionStart;\n const end = target.selectionEnd;\n const pl = prefix.length;\n const atStart = start === pl;\n const atEnd = end === pl;\n\n if (start && end && start < pl) {\n e.preventDefault();\n target.setSelectionRange(pl, end - start + pl);\n } else if (\n (e.key === \"ArrowLeft\" && atStart) ||\n (e.key === \"Backspace\" && atStart && atEnd) ||\n e.key === \"Home\"\n ) {\n e.preventDefault();\n target.setSelectionRange(prefix.length, prefix.length);\n }\n }\n\n /** Helper to add affixes to value where appropriate */\n function formatValueWithAffix(value: string | undefined) {\n if (!value) return \"\";\n\n return `${prefix}${value}${suffix}`;\n }\n\n /** Value handling logic on key down */\n const onKeyDownHandler: KeyDownHandler = (currentValue: string) => {\n const symbolPosition = currentValue.indexOf(decimalSymbol);\n const newValue = props.format(currentValue) ?? \"\";\n const newSymbolPosition = newValue.indexOf(decimalSymbol);\n\n if (\n (symbolPosition === -1 || symbolPosition === 0) &&\n newSymbolPosition > 0\n ) {\n // formatting added dot, so set cursor before dot\n return {\n newValue: newValue.includes(prefix)\n ? `${newValue}`\n : `${prefix}${newValue}`,\n newCursorPosition: newValue.includes(prefix)\n ? newSymbolPosition\n : newSymbolPosition + prefix.length,\n };\n }\n\n return {\n newValue: newValue.includes(prefix)\n ? `${newValue}`\n : `${prefix}${newValue}`,\n };\n };\n\n /** On blur, commit the value to the model */\n const onBlur: React.FocusEventHandler<HTMLInputElement> = (e) => {\n clearPending();\n\n const formatted =\n (prefix\n ? e.target.value.replace(prefix, \"\")\n : props.format(e.target.value)) ?? \"\";\n\n if (formatted) {\n props.set(formatted);\n setLocalValue(formatValueWithAffix(formatted));\n } else {\n props.set(\"\");\n setLocalValue(\"\");\n }\n\n if (!suppressBeacons) {\n inputBeacon(formatted);\n }\n };\n\n /** Keep track of any user changes */\n const onChange: React.ChangeEventHandler<HTMLInputElement> = (e) => {\n setLocalValue(e.target.value);\n };\n\n /** Schedule a format of the current input in the future */\n const onKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (e) => {\n clearPending();\n\n if (prefix) handlePrefixEdgeCases(e);\n\n const target = e.target as HTMLInputElement;\n\n if (liveFormat) {\n formatTimerRef.current = setTimeout(() => {\n const cursorPosition = target.selectionStart;\n const currentValue = target.value;\n\n /** Skip formatting if we're in the middle of the input */\n if (cursorPosition !== currentValue.length) {\n return;\n }\n\n const obj = onKeyDownHandler(currentValue);\n\n setLocalValue(obj.newValue);\n target.selectionStart = obj.newCursorPosition ?? target.selectionStart;\n target.selectionEnd = obj.newCursorPosition ?? target.selectionEnd;\n }, getFormatDelaySpeed(e));\n }\n };\n\n /** Format value onFocus if affixes exist */\n const onFocus: React.FocusEventHandler<HTMLInputElement> = (e) => {\n const target = e.target as HTMLInputElement;\n const inputEmpty = target.value === \"\";\n\n if ((!inputEmpty && suffix) || (inputEmpty && prefix)) {\n setLocalValue(handleAffixOnFocus(target));\n }\n };\n\n // Update the stored value if data changes\n const propsValue = props.value;\n React.useEffect(() => {\n setLocalValue(formatValueWithAffix(propsValue));\n }, [propsValue]);\n\n /** clear anything pending on unmount of input */\n React.useEffect(() => clearPending, []);\n\n return {\n onBlur,\n onChange,\n onKeyDown,\n onFocus,\n value: localValue,\n };\n};\n","import React from \"react\";\nimport type {\n TextAsset,\n LinkModifier,\n} from \"@player-ui/reference-assets-plugin\";\nimport { useText } from \"./hooks\";\n\n/** Find any link modifiers on the text */\nexport const getLinkModifier = (asset: TextAsset): LinkModifier | undefined => {\n return asset.modifiers?.find(\n (mod) =>\n mod.type === \"link\" &&\n (mod.metaData as LinkModifier[\"metaData\"])?.ref !== undefined,\n ) as LinkModifier;\n};\n\n/** A text asset */\nexport const Text = (props: TextAsset) => {\n const spanProps = useText(props);\n const linkModifier = getLinkModifier(props);\n const { value } = props;\n\n if (linkModifier) {\n return (\n <a\n className=\"underline text-blue-600 hover:text-blue-800 visited:text-purple-600\"\n href={linkModifier.metaData.ref}\n >\n {value}\n </a>\n );\n }\n\n return <span {...spanProps}>{value}</span>;\n};\n","import React, { useContext } from \"react\";\nimport makeClass from \"clsx\";\nimport { useAssetProps } from \"@player-ui/react\";\nimport type { TextAsset } from \"@player-ui/reference-assets-plugin\";\n\nexport interface TextModifierContextType {\n getClassForModifier?<T>(modifier: T): string | undefined;\n}\n\nexport const TextModifierContext = React.createContext<\n TextModifierContextType | undefined\n>(undefined);\n\n/** Get the props for a basic text element */\nexport const useText = (props: TextAsset): JSX.IntrinsicElements[\"span\"] => {\n let className: string | undefined;\n\n const modifierContext = useContext(TextModifierContext);\n\n if (props.modifiers && modifierContext?.getClassForModifier) {\n className = makeClass(\n ...props.modifiers.map(modifierContext.getClassForModifier),\n );\n }\n\n return {\n ...useAssetProps(props),\n className,\n children: props.value,\n };\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { CollectionAsset } from \"@player-ui/reference-assets-plugin\";\n\nexport const Collection = (props: CollectionAsset) => {\n return (\n <div className=\"flex flex-col gap-4\">\n {props.label && (\n <h3>\n <ReactAsset {...props.label} />\n </h3>\n )}\n {props.values?.map((a) => <ReactAsset key={a.asset.id} {...a} />)}\n </div>\n );\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { ChevronLeftIcon } from \"lucide-react\";\nimport type { TransformedAction } from \"@player-ui/reference-assets-plugin\";\nimport { isBackAction } from \"@player-ui/reference-assets-plugin\";\nimport { useAction } from \"./hooks\";\nimport { Button } from \"../../components/Button\";\n\n/**\n * An action that a user can take\n */\nexport const Action = (props: TransformedAction) => {\n const { label } = props;\n const buttonProps = useAction(props);\n\n return (\n <div>\n <Button\n variant={isBackAction(props) ? \"outline\" : undefined}\n {...buttonProps}\n >\n {props?.metaData?.role === \"back\" && <ChevronLeftIcon />}\n {label && <ReactAsset {...label} />}\n </Button>\n </div>\n );\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { useBeacon } from \"@player-ui/beacon-plugin-react\";\nimport type { TransformedAction } from \"@player-ui/reference-assets-plugin\";\n\n/** Hook to get all the props for a button */\nexport const useAction = (props: TransformedAction) => {\n const { label } = props;\n const beacon = useBeacon({\n asset: props,\n action: \"clicked\",\n element: \"button\",\n });\n\n return {\n id: props.id,\n onClick: () => {\n beacon();\n props.run();\n },\n children: label?.asset ? <ReactAsset {...label?.asset} /> : null,\n } as const;\n};\n","import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../utils\";\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2\",\n sm: \"h-8 rounded-md px-3 text-xs\",\n lg: \"h-10 rounded-md px-8\",\n icon: \"h-9 w-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","import React from \"react\";\nimport type { InfoAssetTransform } from \"@player-ui/reference-assets-plugin\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { Separator } from \"../../components/Separator\";\n\n/** The info view type is used to show information to the user */\nexport const Info = (props: InfoAssetTransform) => {\n return (\n <div className=\"max-w-full\">\n <div className=\"flex flex-col gap-4\">\n {props.title && (\n <h1 className=\"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl\">\n <ReactAsset {...props.title} />\n </h1>\n )}\n {props.subTitle && (\n <h3 className=\"scroll-m-20 text-2xl font-semibold tracking-tight\">\n <ReactAsset {...props.subTitle} />\n </h3>\n )}\n {props.primaryInfo && (\n <div>\n <ReactAsset {...props.primaryInfo} />\n </div>\n )}\n <div className=\"flex flex-col gap-4\">\n {props?.segmentedActions && <Separator />}\n <div className=\"flex justify-between sm:flex-row flex-col-reverse gap-4\">\n <div className=\"flex gap-4\">\n {props?.segmentedActions?.prev?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </div>\n <div className=\"flex gap-4\">\n {props?.segmentedActions?.next?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"../utils\";\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n SeparatorPrimitive.SeparatorProps\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref,\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { TransformedImage } from \"@player-ui/reference-assets-plugin\";\n\nexport const Image = (props: TransformedImage) => {\n const { metaData, caption, altText } = props;\n\n return (\n <figure className=\"figure\">\n <img className=\"figure-img img-fluid\" src={metaData.ref} alt={altText} />\n {caption && (\n <figcaption className=\"figure-caption\" style={{ marginTop: 15 }}>\n <ReactAsset {...caption} />\n </figcaption>\n )}\n </figure>\n );\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { TransformedChoice } from \"@player-ui/reference-assets-plugin\";\nimport { ChoiceItem } from \"../../components/ChoiceItem\";\nimport { Label } from \"../../components/Label\";\nimport type { ChoiceItemProps } from \"../../components/ChoiceItem\";\n\nimport { useChoiceItems } from \"./hooks\";\n\n/** A Choice */\nexport const Choice = (props: TransformedChoice) => {\n const { validation, title, id, note } = props;\n const choiceItemProps: Array<ChoiceItemProps> = useChoiceItems(props);\n\n const renderChoices = () =>\n choiceItemProps.map((choiceItemProp) => (\n <ChoiceItem key={choiceItemProp.id} {...choiceItemProp} />\n ));\n\n return (\n <div className=\"grid w-full max-w-sm items-center gap-3\">\n {title && (\n <Label htmlFor={id}>\n <ReactAsset {...title} />\n </Label>\n )}\n <div\n id={props.id}\n className=\"grid gap-2\"\n aria-invalid={Boolean(validation)}\n aria-describedby={validation ? `${id}-validation` : undefined}\n >\n {renderChoices()}\n </div>\n {validation && (\n <Label\n id={`${id}-validation`}\n className=\"text-[0.8rem] font-medium text-destructive\"\n >\n {validation.message}\n </Label>\n )}\n {note && (\n <Label className=\"text-[0.8rem] text-muted-foreground\">\n <ReactAsset {...note} />\n </Label>\n )}\n </div>\n );\n};\n\nexport default Choice;\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { Input as InputComp } from \"./Input\";\nimport { Label } from \"./Label\";\nimport type { ChoiceItem as ChoiceItemType } from \"@player-ui/reference-assets-plugin\";\n\nexport type ChoiceItemProps = React.InputHTMLAttributes<HTMLInputElement> &\n Pick<ChoiceItemType, \"label\">;\n\n/** A choice item */\nexport const ChoiceItem = (props: ChoiceItemProps) => {\n const { label, id, ...rest } = props;\n\n return (\n <div className=\"flex items-center gap-1.5\">\n <InputComp\n type=\"radio\"\n className=\"h-fit w-fit shadow-none\"\n id={id}\n {...rest}\n />\n {label && (\n <Label htmlFor={id}>\n <ReactAsset {...label} />\n </Label>\n )}\n </div>\n );\n};\n\nexport default ChoiceItem;\n","import { useBeacon } from \"@player-ui/beacon-plugin-react\";\nimport type {\n TransformedChoice,\n TransformedChoiceItem,\n} from \"@player-ui/reference-assets-plugin\";\nimport type { ChoiceItemProps } from \"../../components/ChoiceItem\";\n\n/** Hook to get the props for all choice asset items */\nexport const useChoiceItems = (\n props: TransformedChoice,\n): Array<ChoiceItemProps> => {\n const beacon = useBeacon({\n asset: props,\n action: \"clicked\",\n element: \"choice\",\n });\n\n return (\n props.items?.map((item: TransformedChoiceItem) => {\n const { id, value, label } = item;\n return {\n id,\n label,\n name: props.id,\n value: (value ?? \"\").toString(),\n checked: value === props.value,\n onChange: () => {\n beacon();\n item.select();\n },\n };\n }) ?? []\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOA,yCAAoC;AASpC,IAAAC,kCAAmE;;;AChBnE,IAAAC,gBAAkB;AAClB,IAAAA,gBAA2B;;;ACA3B,YAAuB;;;ACDvB,kBAAsC;AACtC,4BAAwB;AAE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AAU,6CACZ,SACC,+BAAAA,QAAA,cAAC,SAAM,SAAS,MACd,+BAAAA,QAAA,cAAC,6BAAY,GAAG,OAAO,CACzB,GAEF,+BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,MAAM;AAAA,MACV,WAAU;AAAA,MACV,gBAAc,QAAQ,UAAU;AAAA,MAChC,oBAAkB,aAAa,GAAG,EAAE,gBAAgB;AAAA;AAAA,IAEnD,cAAc;AAAA,EACjB,GACC,cACC,+BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,GAAG,EAAE;AAAA,MACT,WAAU;AAAA;AAAA,IAET,WAAW;AAAA,EACd,GAED,QACC,+BAAAA,QAAA,cAAC,SAAM,WAAU,yCACf,+BAAAA,QAAA,cAAC,6BAAY,GAAG,MAAM,CACxB,CAEJ;AAEJ;;;Af3BO,IAAM,wBAAN,MAOP;AAAA,EAPO;AAQL,gBAAO;AAAA;AAAA,EAEP,WAAW,aAA0B;AACnC,gBAAY;AAAA,MACV,IAAI,uDAAoB;AAAA,QACtB,CAAC,SAASC,MAAK;AAAA,QACf,CAAC,QAAQ,IAAI;AAAA,QACb,CAAC,UAAU,MAAM;AAAA,QACjB,CAAC,QAAQ,IAAI;AAAA,QACb,CAAC,cAAc,UAAU;AAAA,QACzB,CAAC,SAAS,KAAK;AAAA,QACf,CAAC,UAAU,MAAM;AAAA,MACnB,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,MAAM,QAAgB;AACpB,WAAO,eAAe,IAAI,gCAAAC,sBAA0B,CAAC;AAAA,EACvD;AACF;","names":["Input","import_reference_assets_plugin","import_react","React","React","Input","React","import_react","import_react","import_clsx","React","makeClass","React","import_react","React","import_react","import_react","import_beacon_plugin_react","React","React","import_class_variance_authority","React","import_react","React","React","import_react","React","import_react","import_react","React","import_beacon_plugin_react","React","Input","ReferenceAssetsCorePlugin"]}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/index.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/plugin.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/input/Input.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Input.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/utils.ts","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Label.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/input/hooks.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/text/Text.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/text/hooks.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/collection/Collection.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/action/Action.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/action/hooks.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Button.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/info/Info.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/Separator.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/image/Image.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/choice/Choice.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/components/ChoiceItem.tsx","../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/reference-assets/react/src/assets/choice/hooks.tsx"],"sourcesContent":["import \"./global.css\";\n\nexport * from \"./plugin\";\nexport * from \"./assets\";\n","import React from \"react\";\nimport type {\n ReactPlayer,\n ReactPlayerPlugin,\n Player,\n ExtendedPlayerPlugin,\n} from \"@player-ui/react\";\nimport { AssetProviderPlugin } from \"@player-ui/asset-provider-plugin-react\";\nimport type {\n InputAsset,\n TextAsset,\n CollectionAsset,\n ActionAsset,\n InfoAsset,\n ChoiceAsset,\n} from \"@player-ui/reference-assets-plugin\";\nimport { ReferenceAssetsPlugin as ReferenceAssetsCorePlugin } from \"@player-ui/reference-assets-plugin\";\nimport { Input, Text, Collection, Action, Info, Image, Choice } from \"./assets\";\n\n/**\n * A plugin to register the base reference assets\n */\nexport class ReferenceAssetsPlugin\n implements\n ReactPlayerPlugin,\n ExtendedPlayerPlugin<\n [InputAsset, TextAsset, ActionAsset, CollectionAsset, ChoiceAsset],\n [InfoAsset]\n >\n{\n name = \"reference-assets-web-plugin\";\n\n applyReact(reactPlayer: ReactPlayer) {\n reactPlayer.registerPlugin(\n new AssetProviderPlugin([\n [\"input\", Input],\n [\"text\", Text],\n [\"action\", Action],\n [\"info\", Info],\n [\"collection\", Collection],\n [\"image\", Image],\n [\"choice\", Choice],\n ]),\n );\n }\n\n apply(player: Player) {\n player.registerPlugin(new ReferenceAssetsCorePlugin());\n }\n}\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { TransformedInput } from \"@player-ui/reference-assets-plugin\";\nimport { Input as InputComp } from \"../../components/Input\";\nimport { Label } from \"../../components/Label\";\n\nimport { useInputAsset } from \"./hooks\";\n\n/** An Input */\nexport const Input = (props: TransformedInput) => {\n const { validation, label, id, note } = props;\n const inputProps = useInputAsset(props);\n\n return (\n <div className=\"player-grid player-w-full player-max-w-sm player-items-center player-gap-1.5\">\n {label && (\n <Label htmlFor={id}>\n <ReactAsset {...label} />\n </Label>\n )}\n <InputComp\n id={id}\n aria-invalid={Boolean(validation)}\n aria-describedby={validation ? `${id}-validation` : undefined}\n {...inputProps}\n />\n {validation && (\n <Label\n id={`${id}-validation`}\n className=\"player-text-[0.8rem] player-font-medium player-text-destructive\"\n >\n {validation.message}\n </Label>\n )}\n {note && (\n <Label className=\"player-text-[0.8rem] player-text-muted-foreground\">\n <ReactAsset {...note} />\n </Label>\n )}\n </div>\n );\n};\n\nexport default Input;\n","/* eslint-disable @typescript-eslint/no-empty-interface */\nimport * as React from \"react\";\n\nimport { cn } from \"../utils\";\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"player-flex player-h-9 player-w-full player-rounded-md player-border player-border-input player-bg-transparent player-px-3 player-py-1 player-text-sm player-shadow-sm player-transition-colors file:player-border-0 file:player-bg-transparent file:player-text-sm file:player-font-medium placeholder:player-text-muted-foreground focus-visible:player-outline-none focus-visible:player-ring-1 focus-visible:player-ring-ring player-disabled:player-cursor-not-allowed disabled:player-opacity-50\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../utils\";\n\nconst labelVariants = cva(\n \"player-text-sm player-font-medium player-leading-none peer-disabled:player-cursor-not-allowed peer-disabled:player-opacity-70\",\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n","import React from \"react\";\nimport { useBeacon } from \"@player-ui/beacon-plugin-react\";\nimport type { TransformedInput } from \"@player-ui/reference-assets-plugin\";\nimport type { KeyDownHandler } from \"./types\";\n\nexport interface InputHookConfig {\n /** Format the input as the user keys down */\n liveFormat?: boolean;\n\n /** Skip sending beacon events for this input */\n suppressBeacons?: boolean;\n\n /** Time (ms) to wait before formatting the user input for normal keys */\n quickFormatDelay?: number;\n\n /** Time (ms) to wait before formatting the input after the user types a special _slow_ format key */\n slowFormatDelay?: number;\n\n /** Keys to use a slower formatter for. Usually reserved for backspace, arrows, tabs, etc */\n slowFormatKeys?: Array<number | string>;\n\n /** Symbol to be used for decimal point */\n decimalSymbol?: string;\n\n /** Affix to append to value - does not save to model and is only for display on input */\n prefix?: string;\n\n /** Affix to prepend to value - does not save to model and is only for display on input */\n suffix?: string;\n}\n\nconst defaultKeyStrings = [\n \"Delete\",\n \"Backspace\",\n \"Tab\",\n \"Home\",\n \"End\",\n \"ArrowLeft\",\n \"ArrowRight\",\n \"ArrowUp\",\n \"ArrowDown\",\n \"Escape\",\n];\n\n/** Create a valid config mixing in defaults and user overrides */\nexport const getConfig = (\n userConfig: InputHookConfig = {},\n): Required<InputHookConfig> => {\n return {\n liveFormat: true,\n suppressBeacons: false,\n quickFormatDelay: 200,\n slowFormatDelay: 1000,\n slowFormatKeys: defaultKeyStrings,\n decimalSymbol: \".\",\n prefix: \"\",\n suffix: \"\",\n ...userConfig,\n };\n};\n\n/** A hook to manage beacon changes for input assets */\nexport const useInputBeacon = (props: TransformedInput) => {\n const beaconHandler = useBeacon({ element: \"text_input\", asset: props });\n\n return (newValue: string) => {\n let action = \"modified\";\n\n if (newValue === props.value) {\n return;\n }\n\n if (newValue && !props.value) {\n action = \"added\";\n } else if (!newValue && props.value) {\n action = \"deleted\";\n }\n\n beaconHandler({ action });\n };\n};\n\n/**\n * A hook to manage an input html element as an asset.\n * The hook returns an object containing props that are expected to reside on any html input.\n * It will handle formatting, setting values, beaconing, aria-labels, etc.\n *\n * @param props - The output of the input transform\n * @param config - Local config to manage user interaction overrides\n */\nexport const useInputAsset = (\n props: TransformedInput,\n config?: InputHookConfig,\n) => {\n const [localValue, setLocalValue] = React.useState(props.value ?? \"\");\n const formatTimerRef = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const inputBeacon = useInputBeacon(props);\n\n const {\n liveFormat,\n suppressBeacons,\n quickFormatDelay,\n slowFormatDelay,\n slowFormatKeys,\n decimalSymbol,\n prefix,\n suffix,\n } = getConfig(config);\n\n /** Reset and pending format timers */\n function clearPending() {\n if (formatTimerRef.current) {\n clearTimeout(formatTimerRef.current);\n formatTimerRef.current = undefined;\n }\n }\n\n /** Determines whether pressed key should trigger slow format or quick format delay */\n function getFormatDelaySpeed(e: React.KeyboardEvent<HTMLInputElement>) {\n const key = slowFormatKeys.every((k) => typeof k === \"number\")\n ? e.which\n : e.key;\n\n return slowFormatKeys.includes(key) ? slowFormatDelay : quickFormatDelay;\n }\n\n /** Affix handling logic on focus */\n function handleAffixOnFocus(target: HTMLInputElement) {\n let val = target.value;\n\n if (suffix) val = val.substring(0, val.indexOf(suffix));\n\n if (prefix && !val.includes(prefix)) {\n val = `${prefix}${val}`;\n }\n\n return val;\n }\n\n /** Edge cases handling for prefix */\n function handlePrefixEdgeCases(e: React.KeyboardEvent<HTMLInputElement>) {\n const target = e.target as HTMLInputElement;\n const start = target.selectionStart;\n const end = target.selectionEnd;\n const pl = prefix.length;\n const atStart = start === pl;\n const atEnd = end === pl;\n\n if (start && end && start < pl) {\n e.preventDefault();\n target.setSelectionRange(pl, end - start + pl);\n } else if (\n (e.key === \"ArrowLeft\" && atStart) ||\n (e.key === \"Backspace\" && atStart && atEnd) ||\n e.key === \"Home\"\n ) {\n e.preventDefault();\n target.setSelectionRange(prefix.length, prefix.length);\n }\n }\n\n /** Helper to add affixes to value where appropriate */\n function formatValueWithAffix(value: string | undefined) {\n if (!value) return \"\";\n\n return `${prefix}${value}${suffix}`;\n }\n\n /** Value handling logic on key down */\n const onKeyDownHandler: KeyDownHandler = (currentValue: string) => {\n const symbolPosition = currentValue.indexOf(decimalSymbol);\n const newValue = props.format(currentValue) ?? \"\";\n const newSymbolPosition = newValue.indexOf(decimalSymbol);\n\n if (\n (symbolPosition === -1 || symbolPosition === 0) &&\n newSymbolPosition > 0\n ) {\n // formatting added dot, so set cursor before dot\n return {\n newValue: newValue.includes(prefix)\n ? `${newValue}`\n : `${prefix}${newValue}`,\n newCursorPosition: newValue.includes(prefix)\n ? newSymbolPosition\n : newSymbolPosition + prefix.length,\n };\n }\n\n return {\n newValue: newValue.includes(prefix)\n ? `${newValue}`\n : `${prefix}${newValue}`,\n };\n };\n\n /** On blur, commit the value to the model */\n const onBlur: React.FocusEventHandler<HTMLInputElement> = (e) => {\n clearPending();\n\n const formatted =\n (prefix\n ? e.target.value.replace(prefix, \"\")\n : props.format(e.target.value)) ?? \"\";\n\n if (formatted) {\n props.set(formatted);\n setLocalValue(formatValueWithAffix(formatted));\n } else {\n props.set(\"\");\n setLocalValue(\"\");\n }\n\n if (!suppressBeacons) {\n inputBeacon(formatted);\n }\n };\n\n /** Keep track of any user changes */\n const onChange: React.ChangeEventHandler<HTMLInputElement> = (e) => {\n setLocalValue(e.target.value);\n };\n\n /** Schedule a format of the current input in the future */\n const onKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (e) => {\n clearPending();\n\n if (prefix) handlePrefixEdgeCases(e);\n\n const target = e.target as HTMLInputElement;\n\n if (liveFormat) {\n formatTimerRef.current = setTimeout(() => {\n const cursorPosition = target.selectionStart;\n const currentValue = target.value;\n\n /** Skip formatting if we're in the middle of the input */\n if (cursorPosition !== currentValue.length) {\n return;\n }\n\n const obj = onKeyDownHandler(currentValue);\n\n setLocalValue(obj.newValue);\n target.selectionStart = obj.newCursorPosition ?? target.selectionStart;\n target.selectionEnd = obj.newCursorPosition ?? target.selectionEnd;\n }, getFormatDelaySpeed(e));\n }\n };\n\n /** Format value onFocus if affixes exist */\n const onFocus: React.FocusEventHandler<HTMLInputElement> = (e) => {\n const target = e.target as HTMLInputElement;\n const inputEmpty = target.value === \"\";\n\n if ((!inputEmpty && suffix) || (inputEmpty && prefix)) {\n setLocalValue(handleAffixOnFocus(target));\n }\n };\n\n // Update the stored value if data changes\n const propsValue = props.value;\n React.useEffect(() => {\n setLocalValue(formatValueWithAffix(propsValue));\n }, [propsValue]);\n\n /** clear anything pending on unmount of input */\n React.useEffect(() => clearPending, []);\n\n return {\n onBlur,\n onChange,\n onKeyDown,\n onFocus,\n value: localValue,\n };\n};\n","import React from \"react\";\nimport type {\n TextAsset,\n LinkModifier,\n} from \"@player-ui/reference-assets-plugin\";\nimport { useText } from \"./hooks\";\n\n/** Find any link modifiers on the text */\nexport const getLinkModifier = (asset: TextAsset): LinkModifier | undefined => {\n return asset.modifiers?.find(\n (mod) =>\n mod.type === \"link\" &&\n (mod.metaData as LinkModifier[\"metaData\"])?.ref !== undefined,\n ) as LinkModifier;\n};\n\n/** A text asset */\nexport const Text = (props: TextAsset) => {\n const spanProps = useText(props);\n const linkModifier = getLinkModifier(props);\n const { value } = props;\n\n if (linkModifier) {\n return (\n <a\n className=\"player-underline player-text-blue-600 hover:player-text-blue-800 visited:player-text-purple-600\"\n href={linkModifier.metaData.ref}\n >\n {value}\n </a>\n );\n }\n\n return <span {...spanProps}>{value}</span>;\n};\n","import React, { useContext } from \"react\";\nimport makeClass from \"clsx\";\nimport { useAssetProps } from \"@player-ui/react\";\nimport type { TextAsset } from \"@player-ui/reference-assets-plugin\";\n\nexport interface TextModifierContextType {\n getClassForModifier?<T>(modifier: T): string | undefined;\n}\n\nexport const TextModifierContext = React.createContext<\n TextModifierContextType | undefined\n>(undefined);\n\n/** Get the props for a basic text element */\nexport const useText = (props: TextAsset): JSX.IntrinsicElements[\"span\"] => {\n let className: string | undefined;\n\n const modifierContext = useContext(TextModifierContext);\n\n if (props.modifiers && modifierContext?.getClassForModifier) {\n className = makeClass(\n ...props.modifiers.map(modifierContext.getClassForModifier),\n );\n }\n\n return {\n ...useAssetProps(props),\n className,\n children: props.value,\n };\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { CollectionAsset } from \"@player-ui/reference-assets-plugin\";\n\nexport const Collection = (props: CollectionAsset) => {\n return (\n <div className=\"player-flex player-flex-col player-gap-4\">\n {props.label && (\n <h3>\n <ReactAsset {...props.label} />\n </h3>\n )}\n {props.values?.map((a) => <ReactAsset key={a.asset.id} {...a} />)}\n </div>\n );\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { ChevronLeftIcon } from \"lucide-react\";\nimport type { TransformedAction } from \"@player-ui/reference-assets-plugin\";\nimport { isBackAction } from \"@player-ui/reference-assets-plugin\";\nimport { useAction } from \"./hooks\";\nimport { Button } from \"../../components/Button\";\n\n/**\n * An action that a user can take\n */\nexport const Action = (props: TransformedAction) => {\n const { label } = props;\n const buttonProps = useAction(props);\n\n return (\n <div>\n <Button\n variant={isBackAction(props) ? \"outline\" : undefined}\n {...buttonProps}\n >\n {props?.metaData?.role === \"back\" && <ChevronLeftIcon />}\n {label && <ReactAsset {...label} />}\n </Button>\n </div>\n );\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { useBeacon } from \"@player-ui/beacon-plugin-react\";\nimport type { TransformedAction } from \"@player-ui/reference-assets-plugin\";\n\n/** Hook to get all the props for a button */\nexport const useAction = (props: TransformedAction) => {\n const { label } = props;\n const beacon = useBeacon({\n asset: props,\n action: \"clicked\",\n element: \"button\",\n });\n\n return {\n id: props.id,\n onClick: () => {\n beacon();\n props.run();\n },\n children: label?.asset ? <ReactAsset {...label?.asset} /> : null,\n } as const;\n};\n","import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../utils\";\n\nconst buttonVariants = cva(\n \"player-inline-flex player-items-center player-justify-center player-whitespace-nowrap player-rounded-md player-text-sm player-font-medium player-transition-colors focus-visible:player-outline-none focus-visible:player-ring-1 focus-visible:player-ring-ring disabled:player-pointer-events-none disabled:player-opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"player-bg-primary player-text-primary-foreground player-shadow hover:player-bg-primary/90\",\n destructive:\n \"player-bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"player-border player-border-input player-bg-background player-shadow-sm hover:player-bg-accent hover:player-text-accent-foreground\",\n secondary:\n \"player-bg-secondary player-text-secondary-foreground player-shadow-sm hover:player-bg-secondary/80\",\n ghost: \"hover:player-bg-accent hover:player-text-accent-foreground\",\n link: \"player-text-primary player-underline-offset-4 hover:player-underline\",\n },\n size: {\n default: \"player-h-9 player-px-4 player-py-2\",\n sm: \"player-h-8 player-rounded-md player-px-3 player-text-xs\",\n lg: \"player-h-10 player-rounded-md player-px-8\",\n icon: \"player-h-9 player-w-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","import React from \"react\";\nimport type { InfoAssetTransform } from \"@player-ui/reference-assets-plugin\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { Separator } from \"../../components/Separator\";\n\n/** The info view type is used to show information to the user */\nexport const Info = (props: InfoAssetTransform) => {\n return (\n <div className=\"player-max-w-full\">\n <div className=\"player-flex player-flex-col player-gap-4\">\n {props.title && (\n <h1 className=\"player-scroll-m-20 player-text-4xl player-font-extrabold player-tracking-tight lg:player-text-5xl\">\n <ReactAsset {...props.title} />\n </h1>\n )}\n {props.subTitle && (\n <h3 className=\"player-scroll-m-20 player-text-2xl player-font-semibold player-tracking-tight\">\n <ReactAsset {...props.subTitle} />\n </h3>\n )}\n {props.primaryInfo && (\n <div>\n <ReactAsset {...props.primaryInfo} />\n </div>\n )}\n <div className=\"player-flex player-flex-col player-gap-4\">\n {props?.segmentedActions && <Separator />}\n <div className=\"player-flex player-justify-between sm:player-flex-row player-flex-col-reverse player-gap-4\">\n <div className=\"player-flex player-gap-4\">\n {props?.segmentedActions?.prev?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </div>\n <div className=\"player-flex player-gap-4\">\n {props?.segmentedActions?.next?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n","\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"../utils\";\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n SeparatorPrimitive.SeparatorProps\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref,\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"player-shrink-0 player-bg-border\",\n orientation === \"horizontal\"\n ? \"player-h-[1px] player-w-full\"\n : \"player-h-full player-w-[1px]\",\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { TransformedImage } from \"@player-ui/reference-assets-plugin\";\n\nexport const Image = (props: TransformedImage) => {\n const { metaData, caption, altText } = props;\n\n return (\n <figure className=\"player-figure\">\n <img\n className=\"player-figure-img player-img-fluid\"\n src={metaData.ref}\n alt={altText}\n />\n {caption && (\n <figcaption className=\"player-figure-caption\" style={{ marginTop: 15 }}>\n <ReactAsset {...caption} />\n </figcaption>\n )}\n </figure>\n );\n};\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport type { TransformedChoice } from \"@player-ui/reference-assets-plugin\";\nimport { ChoiceItem } from \"../../components/ChoiceItem\";\nimport { Label } from \"../../components/Label\";\nimport type { ChoiceItemProps } from \"../../components/ChoiceItem\";\n\nimport { useChoiceItems } from \"./hooks\";\n\n/** A Choice */\nexport const Choice = (props: TransformedChoice) => {\n const { validation, title, id, note } = props;\n const choiceItemProps: Array<ChoiceItemProps> = useChoiceItems(props);\n\n const renderChoices = () =>\n choiceItemProps.map((choiceItemProp) => (\n <ChoiceItem key={choiceItemProp.id} {...choiceItemProp} />\n ));\n\n return (\n <div className=\"player-grid player-w-full player-max-w-sm player-items-center player-gap-3\">\n {title && (\n <Label htmlFor={id}>\n <ReactAsset {...title} />\n </Label>\n )}\n <div\n id={props.id}\n className=\"player-grid player-gap-2\"\n aria-invalid={Boolean(validation)}\n aria-describedby={validation ? `${id}-validation` : undefined}\n >\n {renderChoices()}\n </div>\n {validation && (\n <Label\n id={`${id}-validation`}\n className=\"player-text-[0.8rem] player-font-medium player-text-destructive\"\n >\n {validation.message}\n </Label>\n )}\n {note && (\n <Label className=\"player-text-[0.8rem] player-text-muted-foreground\">\n <ReactAsset {...note} />\n </Label>\n )}\n </div>\n );\n};\n\nexport default Choice;\n","import React from \"react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { Input as InputComp } from \"./Input\";\nimport { Label } from \"./Label\";\nimport type { ChoiceItem as ChoiceItemType } from \"@player-ui/reference-assets-plugin\";\n\nexport type ChoiceItemProps = React.InputHTMLAttributes<HTMLInputElement> &\n Pick<ChoiceItemType, \"label\">;\n\n/** A choice item */\nexport const ChoiceItem = (props: ChoiceItemProps) => {\n const { label, id, ...rest } = props;\n\n return (\n <div className=\"player-flex player-items-center player-gap-1.5\">\n <InputComp\n type=\"radio\"\n className=\"player-h-fit player-w-fit player-shadow-none\"\n id={id}\n {...rest}\n />\n {label && (\n <Label htmlFor={id}>\n <ReactAsset {...label} />\n </Label>\n )}\n </div>\n );\n};\n\nexport default ChoiceItem;\n","import { useBeacon } from \"@player-ui/beacon-plugin-react\";\nimport type {\n TransformedChoice,\n TransformedChoiceItem,\n} from \"@player-ui/reference-assets-plugin\";\nimport type { ChoiceItemProps } from \"../../components/ChoiceItem\";\n\n/** Hook to get the props for all choice asset items */\nexport const useChoiceItems = (\n props: TransformedChoice,\n): Array<ChoiceItemProps> => {\n const beacon = useBeacon({\n asset: props,\n action: \"clicked\",\n element: \"choice\",\n });\n\n return (\n props.items?.map((item: TransformedChoiceItem) => {\n const { id, value, label } = item;\n return {\n id,\n label,\n name: props.id,\n value: (value ?? \"\").toString(),\n checked: value === props.value,\n onChange: () => {\n beacon();\n item.select();\n },\n };\n }) ?? []\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOA,yCAAoC;AASpC,IAAAC,kCAAmE;;;AChBnE,IAAAC,gBAAkB;AAClB,IAAAA,gBAA2B;;;ACA3B,YAAuB;;;ACDvB,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADGA,IAAM,QAAc;AAAA,EAClB,CAAC,EAAE,WAAW,MAAM,GAAG,MAAM,GAAG,QAAQ;AACtC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AA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AA,MACV,gBAAc,QAAQ,UAAU;AAAA,MAChC,oBAAkB,aAAa,GAAG,EAAE,gBAAgB;AAAA;AAAA,IAEnD,cAAc;AAAA,EACjB,GACC,cACC,+BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,GAAG,EAAE;AAAA,MACT,WAAU;AAAA;AAAA,IAET,WAAW;AAAA,EACd,GAED,QACC,+BAAAA,QAAA,cAAC,SAAM,WAAU,uDACf,+BAAAA,QAAA,cAAC,6BAAY,GAAG,MAAM,CACxB,CAEJ;AAEJ;;;Af3BO,IAAM,wBAAN,MAOP;AAAA,EAPO;AAQL,gBAAO;AAAA;AAAA,EAEP,WAAW,aAA0B;AACnC,gBAAY;AAAA,MACV,IAAI,uDAAoB;AAAA,QACtB,CAAC,SAASC,MAAK;AAAA,QACf,CAAC,QAAQ,IAAI;AAAA,QACb,CAAC,UAAU,MAAM;AAAA,QACjB,CAAC,QAAQ,IAAI;AAAA,QACb,CAAC,cAAc,UAAU;AAAA,QACzB,CAAC,SAAS,KAAK;AAAA,QACf,CAAC,UAAU,MAAM;AAAA,MACnB,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,MAAM,QAAgB;AACpB,WAAO,eAAe,IAAI,gCAAAC,sBAA0B,CAAC;AAAA,EACvD;AACF;","names":["Input","import_reference_assets_plugin","import_react","React","React","Input","React","import_react","import_react","import_clsx","React","makeClass","React","import_react","React","import_react","import_react","import_beacon_plugin_react","React","React","import_class_variance_authority","React","import_react","React","React","import_react","React","import_react","import_react","React","import_beacon_plugin_react","React","Input","ReferenceAssetsCorePlugin"]}
|