Skip to content

Commit be8c3fb

Browse files
authored
Merge pull request #1027 from layer5io/share-modal
Share modal
2 parents 9211bc3 + f19357d commit be8c3fb

File tree

7 files changed

+578
-310
lines changed

7 files changed

+578
-310
lines changed

package-lock.json

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"commitlint": "commitlint --edit",
1919
"coverage": "jest --coverage",
2020
"dev": "NODE_ENV=development tsup",
21+
"dev:watch": "NODE_ENV=development tsup",
2122
"format:check": "prettier --check \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
2223
"format:write": "prettier --write \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
2324
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
@@ -109,6 +110,7 @@
109110
"mui-datatables": "*",
110111
"re-resizable": "^6.10.3",
111112
"react-draggable": "^4.4.6",
112-
"react-share": "^5.1.0"
113+
"react-share": "^5.1.0",
114+
"use-debounce": "^10.0.4"
113115
}
114116
}

src/constants/constants.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,24 @@ export const CARIBBEAN_GREEN_FILL = '#00D3A9';
77
export const DEFAULT_STROKE = '#000';
88
export const DEFAULT_STROKE_WIDTH = '2';
99
export const CLOUD_URL = 'https://cloud.layer5.io';
10-
export const PLAYGROUND_MODES = {
10+
11+
export const KANVAS_MODE = {
1112
DESIGNER: 'design',
1213
OPERATOR: 'operator'
1314
} as const;
15+
16+
export const PLAYGROUND_MODES = KANVAS_MODE;
17+
18+
export const VISIBILITY = {
19+
PUBLIC: 'public',
20+
PRIVATE: 'private'
21+
};
22+
23+
export const RESOURCE_TYPE = {
24+
FILTER: 'filter',
25+
DESIGN: 'design',
26+
CATALOG: 'catalog',
27+
VIEW: 'view'
28+
} as const;
29+
30+
export type ResourceType = (typeof RESOURCE_TYPE)[keyof typeof RESOURCE_TYPE];

0 commit comments

Comments
 (0)