@devtools-ui/collection 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,16 +45,16 @@ var CollectionComponent = (props) => {
45
45
 
46
46
  // ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.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 Collection = (props) => {
51
51
  const { children, ...rest } = props;
52
- return /* @__PURE__ */ import_react4.default.createElement(import_dsl.Asset, { type: "collection", ...rest }, children);
52
+ return /* @__PURE__ */ import_react4.default.createElement(import_react_dsl.Asset, { type: "collection", ...rest }, children);
53
53
  };
54
54
  var CollectionComp = (props) => {
55
55
  return /* @__PURE__ */ import_react4.default.createElement(Collection, null, /* @__PURE__ */ import_react4.default.createElement(Collection.Values, null, props.children));
56
56
  };
57
- Collection.Values = (0, import_dsl.createSlot)({
57
+ Collection.Values = (0, import_react_dsl.createSlot)({
58
58
  name: "values",
59
59
  TextComp: import_text.Text,
60
60
  CollectionComp,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/index.ts","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/components/CollectionComponent.tsx","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.tsx"],"sourcesContent":["export * from \"./types\";\nexport * from \"./components\";\nexport * from \"./dsl\";\n","import React from \"react\";\nimport { Flex } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { CollectionAsset } from \"../types\";\n\nexport const CollectionComponent = (props: CollectionAsset) => {\n return (\n <Flex direction=\"column\" gap=\"5\">\n {props.values?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </Flex>\n );\n};\n","import React from \"react\";\nimport { AssetPropsWithChildren, Asset, createSlot } from \"@player-tools/dsl\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { CollectionAsset } from \"../types\";\nimport { Text } from \"@devtools-ui/text\";\n\nexport const Collection = (props: AssetPropsWithChildren<CollectionAsset>) => {\n const { children, ...rest } = props;\n return (\n <Asset type=\"collection\" {...rest}>\n {children}\n </Asset>\n );\n};\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nCollection.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,gBAAqB;AACrB,IAAAA,gBAA2B;AAGpB,IAAM,sBAAsB,CAAC,UAA2B;AAC7D,SACE,6BAAAC,QAAA,cAAC,sBAAK,WAAU,UAAS,KAAI,OAC1B,MAAM,QAAQ,IAAI,CAAC,MAClB,6BAAAA,QAAA,cAAC,4BAAW,KAAK,EAAE,MAAM,IAAK,GAAG,GAAG,CACrC,CACH;AAEJ;;;ACbA,IAAAC,gBAAkB;AAClB,iBAA0D;AAG1D,kBAAqB;AAEd,IAAM,aAAa,CAAC,UAAmD;AAC5E,QAAM,EAAE,UAAU,GAAG,KAAK,IAAI;AAC9B,SACE,8BAAAC,QAAA,cAAC,oBAAM,MAAK,cAAc,GAAG,QAC1B,QACH;AAEJ;AAEA,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,8BAAAA,QAAA,cAAC,kBACC,8BAAAA,QAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,WAAW,aAAS,uBAAW;AAAA,EAC7B,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/collection/src/index.ts","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/components/CollectionComponent.tsx","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.tsx"],"sourcesContent":["export * from \"./types\";\nexport * from \"./components\";\nexport * from \"./dsl\";\n","import React from \"react\";\nimport { Flex } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { CollectionAsset } from \"../types\";\n\nexport const CollectionComponent = (props: CollectionAsset) => {\n return (\n <Flex direction=\"column\" gap=\"5\">\n {props.values?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </Flex>\n );\n};\n","import React from \"react\";\nimport {\n AssetPropsWithChildren,\n Asset,\n createSlot,\n} from \"@player-lang/react-dsl\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { CollectionAsset } from \"../types\";\nimport { Text } from \"@devtools-ui/text\";\n\nexport const Collection = (props: AssetPropsWithChildren<CollectionAsset>) => {\n const { children, ...rest } = props;\n return (\n <Asset type=\"collection\" {...rest}>\n {children}\n </Asset>\n );\n};\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nCollection.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,gBAAqB;AACrB,IAAAA,gBAA2B;AAGpB,IAAM,sBAAsB,CAAC,UAA2B;AAC7D,SACE,6BAAAC,QAAA,cAAC,sBAAK,WAAU,UAAS,KAAI,OAC1B,MAAM,QAAQ,IAAI,CAAC,MAClB,6BAAAA,QAAA,cAAC,4BAAW,KAAK,EAAE,MAAM,IAAK,GAAG,GAAG,CACrC,CACH;AAEJ;;;ACbA,IAAAC,gBAAkB;AAClB,uBAIO;AAGP,kBAAqB;AAEd,IAAM,aAAa,CAAC,UAAmD;AAC5E,QAAM,EAAE,UAAU,GAAG,KAAK,IAAI;AAC9B,SACE,8BAAAC,QAAA,cAAC,0BAAM,MAAK,cAAc,GAAG,QAC1B,QACH;AAEJ;AAEA,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,8BAAAA,QAAA,cAAC,kBACC,8BAAAA,QAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,WAAW,aAAS,6BAAW;AAAA,EAC7B,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 CollectionComponent = (props) => {
8
8
 
9
9
  // ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.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
  var Collection = (props) => {
14
17
  const { children, ...rest } = props;
package/dist/index.mjs CHANGED
@@ -8,7 +8,10 @@ var CollectionComponent = (props) => {
8
8
 
9
9
  // ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.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
  var Collection = (props) => {
14
17
  const { children, ...rest } = props;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/components/CollectionComponent.tsx","../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.tsx"],"sourcesContent":["import React from \"react\";\nimport { Flex } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { CollectionAsset } from \"../types\";\n\nexport const CollectionComponent = (props: CollectionAsset) => {\n return (\n <Flex direction=\"column\" gap=\"5\">\n {props.values?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </Flex>\n );\n};\n","import React from \"react\";\nimport { AssetPropsWithChildren, Asset, createSlot } from \"@player-tools/dsl\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { CollectionAsset } from \"../types\";\nimport { Text } from \"@devtools-ui/text\";\n\nexport const Collection = (props: AssetPropsWithChildren<CollectionAsset>) => {\n const { children, ...rest } = props;\n return (\n <Asset type=\"collection\" {...rest}>\n {children}\n </Asset>\n );\n};\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nCollection.Values = createSlot({\n name: \"values\",\n TextComp: Text,\n CollectionComp,\n isArray: true,\n wrapInAsset: true,\n});\n"],"mappings":";AAAA,OAAO,WAAW;AAClB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAGpB,IAAM,sBAAsB,CAAC,UAA2B;AAC7D,SACE,oCAAC,QAAK,WAAU,UAAS,KAAI,OAC1B,MAAM,QAAQ,IAAI,CAAC,MAClB,oCAAC,cAAW,KAAK,EAAE,MAAM,IAAK,GAAG,GAAG,CACrC,CACH;AAEJ;;;ACbA,OAAOA,YAAW;AAClB,SAAiC,OAAO,kBAAkB;AAG1D,SAAS,YAAY;AAEd,IAAM,aAAa,CAAC,UAAmD;AAC5E,QAAM,EAAE,UAAU,GAAG,KAAK,IAAI;AAC9B,SACE,gBAAAA,OAAA,cAAC,SAAM,MAAK,cAAc,GAAG,QAC1B,QACH;AAEJ;AAEA,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,gBAAAA,OAAA,cAAC,kBACC,gBAAAA,OAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,WAAW,SAAS,WAAW;AAAA,EAC7B,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/collection/src/components/CollectionComponent.tsx","../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/collection/src/dsl/Collection.tsx"],"sourcesContent":["import React from \"react\";\nimport { Flex } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport { CollectionAsset } from \"../types\";\n\nexport const CollectionComponent = (props: CollectionAsset) => {\n return (\n <Flex direction=\"column\" gap=\"5\">\n {props.values?.map((a) => (\n <ReactAsset key={a.asset.id} {...a} />\n ))}\n </Flex>\n );\n};\n","import React from \"react\";\nimport {\n AssetPropsWithChildren,\n Asset,\n createSlot,\n} from \"@player-lang/react-dsl\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { CollectionAsset } from \"../types\";\nimport { Text } from \"@devtools-ui/text\";\n\nexport const Collection = (props: AssetPropsWithChildren<CollectionAsset>) => {\n const { children, ...rest } = props;\n return (\n <Asset type=\"collection\" {...rest}>\n {children}\n </Asset>\n );\n};\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nCollection.Values = createSlot({\n name: \"values\",\n TextComp: Text,\n CollectionComp,\n isArray: true,\n wrapInAsset: true,\n});\n"],"mappings":";AAAA,OAAO,WAAW;AAClB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAGpB,IAAM,sBAAsB,CAAC,UAA2B;AAC7D,SACE,oCAAC,QAAK,WAAU,UAAS,KAAI,OAC1B,MAAM,QAAQ,IAAI,CAAC,MAClB,oCAAC,cAAW,KAAK,EAAE,MAAM,IAAK,GAAG,GAAG,CACrC,CACH;AAEJ;;;ACbA,OAAOA,YAAW;AAClB;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AAGP,SAAS,YAAY;AAEd,IAAM,aAAa,CAAC,UAAmD;AAC5E,QAAM,EAAE,UAAU,GAAG,KAAK,IAAI;AAC9B,SACE,gBAAAA,OAAA,cAAC,SAAM,MAAK,cAAc,GAAG,QAC1B,QACH;AAEJ;AAEA,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,gBAAAA,OAAA,cAAC,kBACC,gBAAAA,OAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,WAAW,SAAS,WAAW;AAAA,EAC7B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["React"]}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@devtools-ui/collection",
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/text": "0.4.0-next.1",
6
+ "@devtools-ui/text": "0.4.1--canary.62.3837",
7
7
  "@chakra-ui/react": "^2.8.2",
8
8
  "@emotion/react": "^11.11.4",
9
9
  "@emotion/styled": "^11.11.0",
@@ -31,9 +31,9 @@
31
31
  "types"
32
32
  ],
33
33
  "peerDependencies": {
34
- "@player-ui/player": "0.9.1-next.0",
35
- "@player-tools/dsl": "0.7.0-next.3",
36
- "@player-ui/types": "0.9.1-next.0",
37
- "@player-ui/react": "0.9.1-next.0"
34
+ "@player-ui/player": "0.15.5",
35
+ "@player-lang/react-dsl": "1.0.1",
36
+ "@player-ui/types": "0.15.5",
37
+ "@player-ui/react": "0.15.5"
38
38
  }
39
39
  }
@@ -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 type { Asset as AssetType } from "@player-ui/player";
4
8
  import { CollectionAsset } from "../types";
5
9
  import { Text } from "@devtools-ui/text";
@@ -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 { Collection } from "../Collection";
5
5
 
6
6
  describe("DSL: Collection", () => {
@@ -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 { CollectionAsset } from "../types";
4
4
  export declare const Collection: {
5
5
  (props: AssetPropsWithChildren<CollectionAsset>): React.JSX.Element;