From d3ff10f0a8be6764dac71302bf6c1479b4520888 Mon Sep 17 00:00:00 2001 From: sakuntala_motukuri Date: Wed, 7 Aug 2024 14:33:30 -0400 Subject: [PATCH 1/3] Remove the changes made to expose Async Node DSL component as part of CG preset --- plugins/async-node/components/BUILD | 23 ------------------- plugins/async-node/components/package.json | 11 --------- .../components/src/__tests__/index.test.tsx | 11 --------- plugins/async-node/components/src/index.tsx | 19 --------------- 4 files changed, 64 deletions(-) delete mode 100644 plugins/async-node/components/BUILD delete mode 100644 plugins/async-node/components/package.json delete mode 100644 plugins/async-node/components/src/__tests__/index.test.tsx delete mode 100644 plugins/async-node/components/src/index.tsx diff --git a/plugins/async-node/components/BUILD b/plugins/async-node/components/BUILD deleted file mode 100644 index 551e5a608..000000000 --- a/plugins/async-node/components/BUILD +++ /dev/null @@ -1,23 +0,0 @@ -load("@npm//:defs.bzl", "npm_link_all_packages") -load("//tools:defs.bzl", "tsup_config", "vitest_config") -load("@rules_player//javascript:defs.bzl", "js_pipeline") - -npm_link_all_packages(name = "node_modules") - -tsup_config(name = "tsup_config") - -vitest_config(name = "vitest_config") - -js_pipeline( - package_name = "@player-ui/async-node-components", - peer_deps = [ - "//:node_modules/react", - "//:node_modules/@types/react", - "//:node_modules/@player-tools/dsl", - ":node_modules/@player-ui/player", - "//:node_modules/react-json-reconciler", - ], - deps = [ - ":node_modules/@player-ui/async-node-plugin", - ], -) \ No newline at end of file diff --git a/plugins/async-node/components/package.json b/plugins/async-node/components/package.json deleted file mode 100644 index e24d8ad84..000000000 --- a/plugins/async-node/components/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@player-ui/async-node-plugin-components", - "version": "0.0.0-PLACEHOLDER", - "main": "src/index.tsx", - "peerDependencies": { - "@player-ui/player": "workspace:*" - }, - "dependencies": { - "@player-ui/async-node-plugin": "workspace:*" - } -} diff --git a/plugins/async-node/components/src/__tests__/index.test.tsx b/plugins/async-node/components/src/__tests__/index.test.tsx deleted file mode 100644 index 211f087f9..000000000 --- a/plugins/async-node/components/src/__tests__/index.test.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from "react"; -import { test, expect } from "vitest"; -import { render } from "@player-tools/dsl"; -import { AsyncNode } from "../index"; - -test("works for id prop", async () => { - expect((await render()).jsonValue).toStrictEqual({ - id: "nodeId", - async: "true", - }); -}); diff --git a/plugins/async-node/components/src/index.tsx b/plugins/async-node/components/src/index.tsx deleted file mode 100644 index 85c273692..000000000 --- a/plugins/async-node/components/src/index.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from "react"; -import type { ObjectNode } from "react-json-reconciler"; - -export type AsyncNodeProps = { - id: string; -}; - -export const AsyncNode = React.forwardRef( - ({ id }, ref) => { - return ( - - {id} - true - - ); - }, -); - -AsyncNode.displayName = "AsyncNode"; From 7daaad423bb6fec31c3d56abff4a1b4fe4f7ec85 Mon Sep 17 00:00:00 2001 From: sakuntala_motukuri Date: Wed, 7 Aug 2024 14:34:21 -0400 Subject: [PATCH 2/3] Remove the changes made to expose Async Node DSL component as part of CG preset --- .bazelignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.bazelignore b/.bazelignore index debd2f487..1470fd42a 100644 --- a/.bazelignore +++ b/.bazelignore @@ -37,7 +37,6 @@ plugins/asset-provider/react/node_modules plugins/asset-transform/core/node_modules plugins/async-node/core/node_modules plugins/common-types/core/node_modules -plugins/async-node/components/node_modules plugins/types-provider/core/node_modules plugins/auto-scroll/react/node_modules plugins/beacon/react/node_modules From fbf685c93d286d11124383431946b9ad72685009 Mon Sep 17 00:00:00 2001 From: sakuntala_motukuri Date: Wed, 7 Aug 2024 15:44:52 -0400 Subject: [PATCH 3/3] updated lock file --- pnpm-lock.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b1c7874d..cb97f03c5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -611,15 +611,6 @@ importers: specifier: workspace:* version: link:../../../core/types - plugins/async-node/components: - dependencies: - '@player-ui/async-node-plugin': - specifier: workspace:* - version: link:../core - '@player-ui/player': - specifier: workspace:* - version: link:../../../core/player - plugins/async-node/core: dependencies: '@player-ui/player':