Replace lask with lfg

This commit is contained in:
Steve Ruiz 2022-06-16 14:23:27 +01:00
parent 6608b07ab0
commit 702016a3ef
8 changed files with 38 additions and 33 deletions

View file

@ -56,7 +56,7 @@
"husky": "^7.0.4", "husky": "^7.0.4",
"init-package-json": "^2.0.5", "init-package-json": "^2.0.5",
"jest": "^27.4.7", "jest": "^27.4.7",
"lask": "^0.1.1", "@tldraw/lfg": "latest",
"lint-staged": "^12.3.3", "lint-staged": "^12.3.3",
"mobx": "^6.3.8", "mobx": "^6.3.8",
"prettier": "^2.5.1", "prettier": "^2.5.1",

View file

@ -23,8 +23,8 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./dist/index.ts", "source": "./dist/index.ts",
"scripts": { "scripts": {
"start": "yarn lask -d", "start": "yarn lfg -d",
"build": "yarn lask", "build": "yarn lfg",
"start:packages": "yarn start", "start:packages": "yarn start",
"start:core": "yarn start", "start:core": "yarn start",
"build:core": "yarn build", "build:core": "yarn build",
@ -60,7 +60,7 @@
"@typescript-eslint/eslint-plugin": "^5.10.2", "@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2", "@typescript-eslint/parser": "^5.10.2",
"eslint": "^8.8.0", "eslint": "^8.8.0",
"lask": "^0.1.1", "@tldraw/lfg": "latest",
"mobx": "^6.3.8", "mobx": "^6.3.8",
"react": "^18.1.0", "react": "^18.1.0",
"react-dom": "^18.1.0" "react-dom": "^18.1.0"

View file

@ -24,8 +24,8 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./dist/index.ts", "source": "./dist/index.ts",
"scripts": { "scripts": {
"start": "yarn lask -d", "start": "yarn lfg -d",
"build": "yarn lask", "build": "yarn lfg",
"start:packages": "yarn start", "start:packages": "yarn start",
"start:core": "yarn start", "start:core": "yarn start",
"build:core": "yarn build", "build:core": "yarn build",
@ -35,6 +35,6 @@
}, },
"gitHead": "3ab5db27b9e83736fdae934474e80e90c854922c", "gitHead": "3ab5db27b9e83736fdae934474e80e90c854922c",
"devDependencies": { "devDependencies": {
"lask": "^0.1.1" "@tldraw/lfg": "latest"
} }
} }

View file

@ -23,8 +23,8 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./src/index.ts", "source": "./src/index.ts",
"scripts": { "scripts": {
"start": "yarn lask -d", "start": "yarn lfg -d",
"build": "yarn lask", "build": "yarn lfg",
"start:packages": "yarn start", "start:packages": "yarn start",
"start:core": "yarn start", "start:core": "yarn start",
"build:core": "yarn build", "build:core": "yarn build",
@ -37,7 +37,7 @@
}, },
"devDependencies": { "devDependencies": {
"@tldraw/vec": "*", "@tldraw/vec": "*",
"lask": "^0.1.1" "@tldraw/lfg": "latest"
}, },
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296" "gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296"
} }

View file

@ -23,8 +23,8 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./src/index.ts", "source": "./src/index.ts",
"scripts": { "scripts": {
"start": "yarn lask -d", "start": "yarn lfg -d",
"build": "yarn lask", "build": "yarn lfg",
"start:packages": "yarn start", "start:packages": "yarn start",
"start:core": "yarn start", "start:core": "yarn start",
"build:core": "yarn build", "build:core": "yarn build",
@ -47,7 +47,6 @@
"@radix-ui/react-icons": "^1.1.1", "@radix-ui/react-icons": "^1.1.1",
"@radix-ui/react-tooltip": "^0.1.7", "@radix-ui/react-tooltip": "^0.1.7",
"@stitches/react": "^1.2.8", "@stitches/react": "^1.2.8",
"@testing-library/react": "^13.3.0",
"@tldraw/core": "^1.14.0", "@tldraw/core": "^1.14.0",
"@tldraw/intersect": "^1.7.1", "@tldraw/intersect": "^1.7.1",
"@tldraw/vec": "^1.7.0", "@tldraw/vec": "^1.7.0",
@ -63,9 +62,10 @@
"devDependencies": { "devDependencies": {
"@swc-node/jest": "^1.4.3", "@swc-node/jest": "^1.4.3",
"@testing-library/jest-dom": "^5.16.4", "@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.2", "@testing-library/react": "^13.3.0",
"@tldraw/core": "*", "@tldraw/core": "*",
"@tldraw/intersect": "*", "@tldraw/intersect": "*",
"@tldraw/lfg": "latest",
"@tldraw/vec": "*", "@tldraw/vec": "*",
"@types/lz-string": "^1.3.34", "@types/lz-string": "^1.3.34",
"@types/node": "^17.0.14", "@types/node": "^17.0.14",
@ -74,7 +74,6 @@
"@typescript-eslint/eslint-plugin": "^5.10.2", "@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2", "@typescript-eslint/parser": "^5.10.2",
"eslint": "^8.8.0", "eslint": "^8.8.0",
"lask": "^0.1.1",
"mobx": "^6.3.8", "mobx": "^6.3.8",
"react": "^18.1.0", "react": "^18.1.0",
"react-dom": "^18.1.0", "react-dom": "^18.1.0",

View file

@ -1,5 +1,5 @@
import * as React from 'react' import * as React from 'react'
import { Content } from '@radix-ui/react-dropdown-menu' import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
import { styled } from '~styles/stitches.config' import { styled } from '~styles/stitches.config'
import { MenuContent } from '~components/Primitives/MenuContent' import { MenuContent } from '~components/Primitives/MenuContent'
import { stopPropagation } from '~components/stopPropagation' import { stopPropagation } from '~components/stopPropagation'
@ -14,7 +14,7 @@ export interface DMContentProps {
export function DMContent({ sideOffset = 8, children, align, variant, id }: DMContentProps) { export function DMContent({ sideOffset = 8, children, align, variant, id }: DMContentProps) {
return ( return (
<Content <DropdownMenu.Content
dir="ltr" dir="ltr"
align={align} align={align}
sideOffset={sideOffset} sideOffset={sideOffset}
@ -23,7 +23,7 @@ export function DMContent({ sideOffset = 8, children, align, variant, id }: DMCo
id={id} id={id}
> >
<StyledContent variant={variant}>{children}</StyledContent> <StyledContent variant={variant}>{children}</StyledContent>
</Content> </DropdownMenu.Content>
) )
} }

View file

@ -22,8 +22,8 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./src/index.ts", "source": "./src/index.ts",
"scripts": { "scripts": {
"start": "yarn lask -d", "start": "yarn lfg -d",
"build": "yarn lask", "build": "yarn lfg",
"start:packages": "yarn start", "start:packages": "yarn start",
"start:core": "yarn start", "start:core": "yarn start",
"build:core": "yarn build", "build:core": "yarn build",
@ -33,6 +33,6 @@
}, },
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296", "gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",
"devDependencies": { "devDependencies": {
"lask": "^0.1.1" "@tldraw/lfg": "latest"
} }
} }

View file

@ -2912,6 +2912,18 @@
"@testing-library/dom" "^8.5.0" "@testing-library/dom" "^8.5.0"
"@types/react-dom" "^18.0.0" "@types/react-dom" "^18.0.0"
"@tldraw/lfg@latest":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@tldraw/lfg/-/lfg-1.1.3.tgz#23b36664dc5057902f7f2ad0b68f5cfd5b9cc133"
integrity sha512-wzN5l6OaAgqgtoefHY03zT05XrQL4/ry07j8gLvmvJLMQocNXWR75zORzXKbWtUmM6jKcaO6iAB8tonaGUREYw==
dependencies:
commander "^2.20.0"
dotenv "^16.0.0"
esbuild "^0.14.18"
tsconfig-paths "^3.12.0"
tsconfig-replace-paths "^0.0.11"
zlib "^1.0.5"
"@tootallnate/once@1": "@tootallnate/once@1":
version "1.1.2" version "1.1.2"
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
@ -5245,6 +5257,11 @@ dotenv@10.0.0:
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==
dotenv@^16.0.0:
version "16.0.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.1.tgz#8f8f9d94876c35dac989876a5d3a82a267fdce1d"
integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ==
dotenv@^9.0.2: dotenv@^9.0.2:
version "9.0.2" version "9.0.2"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-9.0.2.tgz#dacc20160935a37dea6364aa1bef819fb9b6ab05" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-9.0.2.tgz#dacc20160935a37dea6364aa1bef819fb9b6ab05"
@ -8018,17 +8035,6 @@ language-tags@^1.0.5:
dependencies: dependencies:
language-subtag-registry "~0.3.2" language-subtag-registry "~0.3.2"
lask@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/lask/-/lask-0.1.1.tgz#b896deed1661e87af0c9f29aec96690c314d6cd0"
integrity sha512-dmBE6wQ4J8UuYSWuJiyy147AvZDyzeWCwgOH8h5rkCljdaE3cXOxVbt4kSAOcy2eNoD4JM3fZHi5BHxMJj+c4A==
dependencies:
commander "^2.20.0"
esbuild "^0.14.18"
tsconfig-paths "^3.12.0"
tsconfig-replace-paths "^0.0.11"
zlib "^1.0.5"
latest-version@^5.1.0: latest-version@^5.1.0:
version "5.1.0" version "5.1.0"
resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face"