Skip to content

Commit 07836eb

Browse files
ludomikulaaq-ikhwa-techFalkWolskyraheeliftikhar5
authored
Release 2.2.1 (lowcoder-org#586)
* Link accounts based on common authid(email) * fixing plugin creator * fix plugin creator 3 * fix documentation for plugin creator * plugin creator fix dependencies * Bump Vite to 4.5.1 * Updated Component Plugin Demo * fix: fix build issues * Fixes in workspaces anc comp includes * Fixes in workspaces anc comp includes * fix: avoid editor popup close on selecting suggeston using mouse * fix: enable scroll in table columns configs popup * fix: avoid editor popup close when open from config popup * fix: date input validation fix * fix: table status column's text color fix * Reverted changes for Workspaces. * Add functionality to allow users to link to auth providers while being logged in * Add handling for LOWCODER_CREATE_SIGNUP_WORKSPACE * new: simplify api service build * new: allow serving static files from mounted volume * removed lowcoder-dev-utils * fix build issues * remove create-lowcoder-plugin + version upgrade for publish * Custom plugin publishing issues (lowcoder-org#583) * fixed issues in publishing custom plugin * yarn lock updated * added hover and active color options in link styles (lowcoder-org#585) --------- Co-authored-by: Abdul Qadir <abdul.qadir@ikhwatech.com> Co-authored-by: FalkWolsky <fw@falkwolsky.com> Co-authored-by: RAHEEL <mraheeliftikhar1994@gmail.com>
1 parent e5f36ab commit 07836eb

File tree

282 files changed

+8638
-12920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+8638
-12920
lines changed

‎.DS_Store

2 KB
Binary file not shown.

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ client/.yarn/cache/*.zip
55
server/node-service/.yarn/cache/*.zip
66
.metadata/
77
.DS_Store
8+
client/node_modules/
9+
client/packages/lowcoder-plugin-demo/.yarn/install-state.gz
10+
client/packages/lowcoder-plugin-demo/yarn.lock
11+
client/packages/lowcoder-plugin-demo/.yarn/cache/@types-node-npm-16.18.68-56f72825c0-094ae9ed80.zip

‎client/.yarn/releases/yarn-3.2.4.cjs

-801
This file was deleted.

‎client/.yarn/releases/yarn-3.6.4.cjs

+874
Large diffs are not rendered by default.

‎client/.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ plugins:
66
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
77
spec: "@yarnpkg/plugin-workspace-tools"
88

9-
yarnPath: .yarn/releases/yarn-3.2.4.cjs
9+
yarnPath: .yarn/releases/yarn-3.6.4.cjs

‎client/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.0
1+
dev

‎client/config/test/jest.config.js

+21-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import path from "node:path";
2-
import { buildVars } from "../../packages/lowcoder-dev-utils/buildVars.js";
3-
import { currentDirName } from "../../packages/lowcoder-dev-utils/util.js";
1+
import path, { dirname } from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import { buildVars } from "../../scripts/buildVars.js";
4+
5+
export function currentDirName(importMetaUrl) {
6+
return dirname(fileURLToPath(importMetaUrl));
7+
}
8+
49

510
const globals = {};
611
buildVars.forEach(({ name, defaultValue }) => {
@@ -9,34 +14,34 @@ buildVars.forEach(({ name, defaultValue }) => {
914
const edition = process.env.REACT_APP_EDITION;
1015
const isEEGlobal = edition === "enterprise-global";
1116
const isEE = edition === "enterprise" || isEEGlobal;
12-
const dirname = currentDirName(import.meta.url);
17+
const currentDir = currentDirName(import.meta.url);
1318

1419
export default {
1520
testEnvironment: "jsdom",
1621
moduleNameMapper: {
17-
"react-markdown": path.resolve(dirname, "./mocks/react-markdown.js"),
18-
"\\.md\\?url$": path.resolve(dirname, "./mocks/markdown-url-module.js"),
22+
"react-markdown": path.resolve(currentDir, "./mocks/react-markdown.js"),
23+
"\\.md\\?url$": path.resolve(currentDir, "./mocks/markdown-url-module.js"),
1924
"^@lowcoder-ee(.*)$": path.resolve(
20-
dirname,
25+
currentDir,
2126
isEE ? "../../packages/lowcoder/src/ee/$1" : "../../packages/lowcoder/src/$1"
2227
),
23-
"lowcoder-sdk": path.resolve(dirname, "../../packages/lowcoder/src/index.sdk"),
28+
"lowcoder-sdk": path.resolve(currentDir, "../../packages/lowcoder/src/index.sdk"),
2429
},
2530
globals,
2631
// roots: ["<rootDir>/src"],
2732
modulePaths: [
2833
"<rootDir>/src",
29-
path.resolve(dirname, "../../packages/lowcoder/src"),
30-
path.resolve(dirname, "../../packages/lowcoder-comps/src"),
31-
path.resolve(dirname, "../../packages/lowcoder-design/src"),
34+
path.resolve(currentDir, "../../packages/lowcoder/src"),
35+
path.resolve(currentDir, "../../packages/lowcoder-comps/src"),
36+
path.resolve(currentDir, "../../packages/lowcoder-design/src"),
3237
],
33-
setupFiles: [path.resolve(dirname, "./jest.setup.js")],
34-
setupFilesAfterEnv: [path.resolve(dirname, "./jest.setup-after-env.js")],
38+
setupFiles: [path.resolve(currentDir, "./jest.setup.js")],
39+
setupFilesAfterEnv: [path.resolve(currentDir, "./jest.setup-after-env.js")],
3540
transform: {
36-
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": path.resolve(dirname, "./transform/babelTransform.js"),
37-
"^.+\\.css$": path.resolve(dirname, "./transform/cssTransform.js"),
41+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": path.resolve(currentDir, "./transform/babelTransform.js"),
42+
"^.+\\.css$": path.resolve(currentDir, "./transform/cssTransform.js"),
3843
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": path.resolve(
39-
dirname,
44+
currentDir,
4045
"./transform/fileTransform.js"
4146
),
4247
},

‎client/jest.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export default {
22
projects: ["<rootDir>/packages/lowcoder", "<rootDir>/packages/lowcoder-core"],
33
};
4+
// we use this for testing.

‎client/package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,21 @@
5050
"jest": "^29.5.0",
5151
"jest-environment-jsdom": "^29.5.0",
5252
"lint-staged": "^13.0.1",
53-
"lowcoder-dev-utils": "workspace:^",
53+
"lowcoder-cli": "workspace:^",
5454
"mq-polyfill": "^1.1.8",
55-
"prettier": "^2.7.0",
55+
"prettier": "^3.1.0",
5656
"rimraf": "^3.0.2",
5757
"rollup": "^2.79.0",
5858
"shelljs": "^0.8.5",
5959
"svgo": "^3.0.0",
6060
"typescript": "^4.8.4",
61-
"whatwg-fetch": "^3.6.2",
62-
"yarn": "^1.22.19"
61+
"whatwg-fetch": "^3.6.2"
6362
},
6463
"lint-staged": {
6564
"**/*.{mjs,ts,tsx,json,md,html}": "prettier --write --ignore-unknown",
6665
"**/*.svg": "svgo"
6766
},
68-
"packageManager": "yarn@3.2.4",
67+
"packageManager": "yarn@3.6.4",
6968
"resolutions": {
7069
"@types/react": "^17",
7170
"moment": "2.29.2",

‎client/packages/create-lowcoder-plugin/README.md

-11
This file was deleted.

‎client/packages/create-lowcoder-plugin/index.js

-153
This file was deleted.

‎client/packages/create-lowcoder-plugin/package.json

-17
This file was deleted.

‎client/packages/lowcoder-cli-template-typescript/README-template.md

+10
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ yarn build
2525

2626
npm run build
2727
```
28+
29+
## Publish
30+
To publish your plugin on NPM, use following command.
31+
```bash
32+
yarn build_publish
33+
34+
# or
35+
36+
npm run build_publish
37+
```

‎client/packages/lowcoder-cli-template-typescript/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "lowcoder-cli-template-typescript",
3-
"version": "0.0.12",
3+
"version": "0.0.14",
44
"type": "module",
55
"scripts": {
66
"start": "vite",
7-
"build": "lowcoder-cli build"
7+
"build": "lowcoder-cli build",
8+
"build_publish": "lowcoder-cli build --publish"
89
},
910
"lowcoder": {
1011
"description": "",
@@ -22,7 +23,7 @@
2223
"vite": "^4.3.9"
2324
},
2425
"keywords": [
25-
"lowcoder"
26+
"Lowcoder, Component, Template, Plugin"
2627
],
2728
"license": "MIT"
2829
}

‎client/packages/lowcoder-cli/actions/init.js

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default async function initAction(options) {
7878
appPackageJson.scripts = {
7979
start: "vite",
8080
build: "lowcoder-cli build",
81+
build_publish: "lowcoder-cli build --publish",
8182
};
8283
fs.writeFileSync(paths.appPackageJson, JSON.stringify(appPackageJson, null, 2));
8384
console.log("package.json updated");

‎client/packages/lowcoder-cli/config/paths.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "node:path";
22
import fs from "node:fs";
3-
import { currentDirName } from "../../lowcoder-dev-utils/util.js";
3+
import { currentDirName } from "../dev-utils/util.js";
44

55
const currentDir = currentDirName(import.meta.url);
66
const appDirectory = fs.realpathSync(process.cwd());

‎client/packages/lowcoder-cli/config/vite.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import react from "@vitejs/plugin-react";
22
import svgrPlugin from "vite-plugin-svgr";
33
import global from "rollup-plugin-external-globals";
4-
import { buildVars } from "../../lowcoder-dev-utils/buildVars.js";
4+
import { buildVars } from "../dev-utils/buildVars.js";
55
import injectCss from "vite-plugin-css-injected-by-js";
6-
import { getLibNames, getAllLibGlobalVarNames } from "../../lowcoder-dev-utils/external.js";
6+
import { getLibNames, getAllLibGlobalVarNames } from "../dev-utils/external.js";
77
import paths from "./paths.js";
88
import { defineConfig } from "vite";
9-
import { readJson } from "../../lowcoder-dev-utils/util.js";
9+
import { readJson } from "../dev-utils/util.js";
1010

1111
const isProduction = process.env.NODE_ENV === "production";
1212
const packageJson = readJson(paths.appPackageJson);

‎client/packages/lowcoder-cli/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lowcoder-cli",
33
"description": "CLI tool used to start build publish lowcoder components",
4-
"version": "0.0.25",
4+
"version": "0.0.27",
55
"license": "MIT",
66
"bin": "./index.js",
77
"type": "module",
@@ -29,7 +29,6 @@
2929
"commander": "^9.4.1",
3030
"cross-spawn": "^7.0.3",
3131
"fs-extra": "^10.1.0",
32-
"lowcoder-dev-utils": "workspace:^",
3332
"react": "^17",
3433
"react-dom": "^17",
3534
"react-json-view": "^1.21.3",

0 commit comments

Comments
 (0)