@devtools-ui/list 0.4.0-next.1 → 0.4.1--canary.62.3837

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.
@@ -45,14 +45,14 @@ var ListComponent = (props) => {
45
45
 
46
46
  // ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx
47
47
  var import_react4 = __toESM(require("react"));
48
- var import_dsl = require("@player-tools/dsl");
48
+ var import_react_dsl = require("@player-lang/react-dsl");
49
49
  var import_text = require("@devtools-ui/text");
50
50
  var import_collection = require("@devtools-ui/collection");
51
- var List = (props) => /* @__PURE__ */ import_react4.default.createElement(import_dsl.Asset, { type: "list", ...props });
51
+ var List = (props) => /* @__PURE__ */ import_react4.default.createElement(import_react_dsl.Asset, { type: "list", ...props });
52
52
  var CollectionComp = (props) => {
53
53
  return /* @__PURE__ */ import_react4.default.createElement(import_collection.Collection, null, /* @__PURE__ */ import_react4.default.createElement(import_collection.Collection.Values, null, props.children));
54
54
  };
55
- List.Values = (0, import_dsl.createSlot)({
55
+ List.Values = (0, import_react_dsl.createSlot)({
56
56
  name: "values",
57
57
  TextComp: import_text.Text,
58
58
  CollectionComp,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/index.ts","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/components/ListComponent.tsx","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx"],"sourcesContent":["export * from \"./types\";\nexport * from \"./components\";\nexport * from \"./dsl\";\n","import React from \"react\";\nimport { ListItem, OrderedList, UnorderedList } from \"@chakra-ui/react\";\nimport { ListAsset } from \"../types\";\nimport { ReactAsset } from \"@player-ui/react\";\n\nexport const ListComponent = (props: ListAsset) => {\n return props.metaData?.ordered ? (\n <UnorderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </UnorderedList>\n ) : (\n <OrderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </OrderedList>\n );\n};\n","import React from \"react\";\nimport { AssetPropsWithChildren, Asset, createSlot } from \"@player-tools/dsl\";\nimport { Text } from \"@devtools-ui/text\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { Collection } from \"@devtools-ui/collection\";\nimport { ListAsset } from \"../types\";\n\nexport const List = (props: AssetPropsWithChildren<ListAsset>) => (\n <Asset type={\"list\"} {...props}></Asset>\n);\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nList.Values = createSlot({\n name: \"values\",\n TextComp: Text,\n CollectionComp,\n isArray: true,\n wrapInAsset: true,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAClB,IAAAA,gBAAqD;AAErD,IAAAA,gBAA2B;AAEpB,IAAM,gBAAgB,CAAC,UAAqB;AACjD,SAAO,MAAM,UAAU,UACrB,6BAAAC,QAAA,cAAC,mCACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,6BAAAA,QAAA,cAAC,0BAAS,KAAK,MAAM,MACnB,6BAAAA,QAAA,cAAC,4BAAY,GAAG,OAAO,CACzB,CACD,CACL,IAEA,6BAAAA,QAAA,cAAC,iCACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,6BAAAA,QAAA,cAAC,0BAAS,KAAK,MAAM,MACnB,6BAAAA,QAAA,cAAC,4BAAY,GAAG,OAAO,CACzB,CACD,CACL;AAEJ;;;ACzBA,IAAAC,gBAAkB;AAClB,iBAA0D;AAC1D,kBAAqB;AAErB,wBAA2B;AAGpB,IAAM,OAAO,CAAC,UACnB,8BAAAC,QAAA,cAAC,oBAAM,MAAM,QAAS,GAAG,OAAO;AAGlC,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,8BAAAA,QAAA,cAAC,oCACC,8BAAAA,QAAA,cAAC,6BAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,KAAK,aAAS,uBAAW;AAAA,EACvB,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["import_react","React","import_react","React"]}
1
+ {"version":3,"sources":["../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/index.ts","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/components/ListComponent.tsx","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx"],"sourcesContent":["export * from \"./types\";\nexport * from \"./components\";\nexport * from \"./dsl\";\n","import React from \"react\";\nimport { ListItem, OrderedList, UnorderedList } from \"@chakra-ui/react\";\nimport { ListAsset } from \"../types\";\nimport { ReactAsset } from \"@player-ui/react\";\n\nexport const ListComponent = (props: ListAsset) => {\n return props.metaData?.ordered ? (\n <UnorderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </UnorderedList>\n ) : (\n <OrderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </OrderedList>\n );\n};\n","import React from \"react\";\nimport {\n AssetPropsWithChildren,\n Asset,\n createSlot,\n} from \"@player-lang/react-dsl\";\nimport { Text } from \"@devtools-ui/text\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { Collection } from \"@devtools-ui/collection\";\nimport { ListAsset } from \"../types\";\n\nexport const List = (props: AssetPropsWithChildren<ListAsset>) => (\n <Asset type={\"list\"} {...props}></Asset>\n);\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nList.Values = createSlot({\n name: \"values\",\n TextComp: Text,\n CollectionComp,\n isArray: true,\n wrapInAsset: true,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAClB,IAAAA,gBAAqD;AAErD,IAAAA,gBAA2B;AAEpB,IAAM,gBAAgB,CAAC,UAAqB;AACjD,SAAO,MAAM,UAAU,UACrB,6BAAAC,QAAA,cAAC,mCACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,6BAAAA,QAAA,cAAC,0BAAS,KAAK,MAAM,MACnB,6BAAAA,QAAA,cAAC,4BAAY,GAAG,OAAO,CACzB,CACD,CACL,IAEA,6BAAAA,QAAA,cAAC,iCACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,6BAAAA,QAAA,cAAC,0BAAS,KAAK,MAAM,MACnB,6BAAAA,QAAA,cAAC,4BAAY,GAAG,OAAO,CACzB,CACD,CACL;AAEJ;;;ACzBA,IAAAC,gBAAkB;AAClB,uBAIO;AACP,kBAAqB;AAErB,wBAA2B;AAGpB,IAAM,OAAO,CAAC,UACnB,8BAAAC,QAAA,cAAC,0BAAM,MAAM,QAAS,GAAG,OAAO;AAGlC,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,8BAAAA,QAAA,cAAC,oCACC,8BAAAA,QAAA,cAAC,6BAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,KAAK,aAAS,6BAAW;AAAA,EACvB,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["import_react","React","import_react","React"]}
@@ -8,7 +8,10 @@ var ListComponent = (props) => {
8
8
 
9
9
  // ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx
10
10
  import React2 from "react";
11
- import { Asset, createSlot } from "@player-tools/dsl";
11
+ import {
12
+ Asset,
13
+ createSlot
14
+ } from "@player-lang/react-dsl";
12
15
  import { Text } from "@devtools-ui/text";
13
16
  import { Collection } from "@devtools-ui/collection";
14
17
  var List = (props) => /* @__PURE__ */ React2.createElement(Asset, { type: "list", ...props });
package/dist/index.mjs CHANGED
@@ -8,7 +8,10 @@ var ListComponent = (props) => {
8
8
 
9
9
  // ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx
10
10
  import React2 from "react";
11
- import { Asset, createSlot } from "@player-tools/dsl";
11
+ import {
12
+ Asset,
13
+ createSlot
14
+ } from "@player-lang/react-dsl";
12
15
  import { Text } from "@devtools-ui/text";
13
16
  import { Collection } from "@devtools-ui/collection";
14
17
  var List = (props) => /* @__PURE__ */ React2.createElement(Asset, { type: "list", ...props });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/components/ListComponent.tsx","../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx"],"sourcesContent":["import React from \"react\";\nimport { ListItem, OrderedList, UnorderedList } from \"@chakra-ui/react\";\nimport { ListAsset } from \"../types\";\nimport { ReactAsset } from \"@player-ui/react\";\n\nexport const ListComponent = (props: ListAsset) => {\n return props.metaData?.ordered ? (\n <UnorderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </UnorderedList>\n ) : (\n <OrderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </OrderedList>\n );\n};\n","import React from \"react\";\nimport { AssetPropsWithChildren, Asset, createSlot } from \"@player-tools/dsl\";\nimport { Text } from \"@devtools-ui/text\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { Collection } from \"@devtools-ui/collection\";\nimport { ListAsset } from \"../types\";\n\nexport const List = (props: AssetPropsWithChildren<ListAsset>) => (\n <Asset type={\"list\"} {...props}></Asset>\n);\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nList.Values = createSlot({\n name: \"values\",\n TextComp: Text,\n CollectionComp,\n isArray: true,\n wrapInAsset: true,\n});\n"],"mappings":";AAAA,OAAO,WAAW;AAClB,SAAS,UAAU,aAAa,qBAAqB;AAErD,SAAS,kBAAkB;AAEpB,IAAM,gBAAgB,CAAC,UAAqB;AACjD,SAAO,MAAM,UAAU,UACrB,oCAAC,qBACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,oCAAC,YAAS,KAAK,MAAM,MACnB,oCAAC,cAAY,GAAG,OAAO,CACzB,CACD,CACL,IAEA,oCAAC,mBACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,oCAAC,YAAS,KAAK,MAAM,MACnB,oCAAC,cAAY,GAAG,OAAO,CACzB,CACD,CACL;AAEJ;;;ACzBA,OAAOA,YAAW;AAClB,SAAiC,OAAO,kBAAkB;AAC1D,SAAS,YAAY;AAErB,SAAS,kBAAkB;AAGpB,IAAM,OAAO,CAAC,UACnB,gBAAAA,OAAA,cAAC,SAAM,MAAM,QAAS,GAAG,OAAO;AAGlC,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,gBAAAA,OAAA,cAAC,kBACC,gBAAAA,OAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,KAAK,SAAS,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["React"]}
1
+ {"version":3,"sources":["../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/components/ListComponent.tsx","../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/list/src/dsl/List.tsx"],"sourcesContent":["import React from \"react\";\nimport { ListItem, OrderedList, UnorderedList } from \"@chakra-ui/react\";\nimport { ListAsset } from \"../types\";\nimport { ReactAsset } from \"@player-ui/react\";\n\nexport const ListComponent = (props: ListAsset) => {\n return props.metaData?.ordered ? (\n <UnorderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </UnorderedList>\n ) : (\n <OrderedList>\n {props.values &&\n props.values.map(({ asset }) => (\n <ListItem key={asset.id}>\n <ReactAsset {...asset} />\n </ListItem>\n ))}\n </OrderedList>\n );\n};\n","import React from \"react\";\nimport {\n AssetPropsWithChildren,\n Asset,\n createSlot,\n} from \"@player-lang/react-dsl\";\nimport { Text } from \"@devtools-ui/text\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { Collection } from \"@devtools-ui/collection\";\nimport { ListAsset } from \"../types\";\n\nexport const List = (props: AssetPropsWithChildren<ListAsset>) => (\n <Asset type={\"list\"} {...props}></Asset>\n);\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nList.Values = createSlot({\n name: \"values\",\n TextComp: Text,\n CollectionComp,\n isArray: true,\n wrapInAsset: true,\n});\n"],"mappings":";AAAA,OAAO,WAAW;AAClB,SAAS,UAAU,aAAa,qBAAqB;AAErD,SAAS,kBAAkB;AAEpB,IAAM,gBAAgB,CAAC,UAAqB;AACjD,SAAO,MAAM,UAAU,UACrB,oCAAC,qBACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,oCAAC,YAAS,KAAK,MAAM,MACnB,oCAAC,cAAY,GAAG,OAAO,CACzB,CACD,CACL,IAEA,oCAAC,mBACE,MAAM,UACL,MAAM,OAAO,IAAI,CAAC,EAAE,MAAM,MACxB,oCAAC,YAAS,KAAK,MAAM,MACnB,oCAAC,cAAY,GAAG,OAAO,CACzB,CACD,CACL;AAEJ;;;ACzBA,OAAOA,YAAW;AAClB;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AACP,SAAS,YAAY;AAErB,SAAS,kBAAkB;AAGpB,IAAM,OAAO,CAAC,UACnB,gBAAAA,OAAA,cAAC,SAAM,MAAM,QAAS,GAAG,OAAO;AAGlC,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,gBAAAA,OAAA,cAAC,kBACC,gBAAAA,OAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,KAAK,SAAS,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["React"]}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@devtools-ui/list",
3
- "version": "0.4.0-next.1",
3
+ "version": "0.4.1--canary.62.3837",
4
4
  "main": "dist/cjs/index.cjs",
5
5
  "dependencies": {
6
- "@devtools-ui/collection": "0.4.0-next.1",
7
- "@devtools-ui/text": "0.4.0-next.1",
6
+ "@devtools-ui/collection": "0.4.1--canary.62.3837",
7
+ "@devtools-ui/text": "0.4.1--canary.62.3837",
8
8
  "@chakra-ui/react": "^2.8.2",
9
9
  "@emotion/react": "^11.11.4",
10
10
  "@emotion/styled": "^11.11.0",
@@ -32,9 +32,9 @@
32
32
  "types"
33
33
  ],
34
34
  "peerDependencies": {
35
- "@player-tools/dsl": "0.7.0-next.3",
36
- "@player-ui/types": "0.9.1-next.0",
37
- "@player-ui/player": "0.9.1-next.0",
38
- "@player-ui/react": "0.9.1-next.0"
35
+ "@player-lang/react-dsl": "1.0.1",
36
+ "@player-ui/types": "0.15.5",
37
+ "@player-ui/player": "0.15.5",
38
+ "@player-ui/react": "0.15.5"
39
39
  }
40
40
  }
package/src/dsl/List.tsx CHANGED
@@ -1,5 +1,9 @@
1
1
  import React from "react";
2
- import { AssetPropsWithChildren, Asset, createSlot } from "@player-tools/dsl";
2
+ import {
3
+ AssetPropsWithChildren,
4
+ Asset,
5
+ createSlot,
6
+ } from "@player-lang/react-dsl";
3
7
  import { Text } from "@devtools-ui/text";
4
8
  import type { Asset as AssetType } from "@player-ui/player";
5
9
  import { Collection } from "@devtools-ui/collection";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { describe, expect, test } from "vitest";
3
- import { Asset, render } from "@player-tools/dsl";
3
+ import { Asset, render } from "@player-lang/react-dsl";
4
4
  import { List } from "../List";
5
5
 
6
6
  describe("DSL: List", () => {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AssetPropsWithChildren } from "@player-tools/dsl";
2
+ import { AssetPropsWithChildren } from "@player-lang/react-dsl";
3
3
  import { ListAsset } from "../types";
4
4
  export declare const List: {
5
5
  (props: AssetPropsWithChildren<ListAsset>): React.JSX.Element;