@ws-ui/http-handlers-editor 1.11.12-rc7 → 1.13.0-dev.1
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.
- package/dist/Standalone/style.css +1 -1
- package/dist/SwitchToEditorIcon.d.ts +1 -1
- package/dist/adapter/provider.d.ts +4 -7
- package/dist/adapter/redux/adapter.d.ts +2 -2
- package/dist/adapter/types.d.ts +17 -15
- package/dist/http-handlers-editor.css +1 -1
- package/dist/index.cjs.js +17 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +7189 -6051
- package/dist/index.es.js.map +1 -1
- package/dist/json-schema.json +41 -0
- package/dist/json-schema.json.d.ts +44 -0
- package/package.json +11 -10
- package/dist/Provider/index.d.ts +0 -47
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"$ref": "#/definitions/HTTPHandler"
|
|
5
|
+
},
|
|
6
|
+
"definitions": {
|
|
7
|
+
"HTTPHandler": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"class": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"method": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"pattern": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"regexPattern": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"verbs": {
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"$ref": "#/definitions/HTTPHandler"
|
|
5
|
+
},
|
|
6
|
+
"definitions": {
|
|
7
|
+
"HTTPHandler": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"class": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"method": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"pattern": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"regexPattern": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"verbs": {
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
;
|
|
43
|
+
|
|
44
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/http-handlers-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "tsc && vite build && npm run build:styles:standalone",
|
|
14
|
-
"build:styles:standalone": "npx
|
|
14
|
+
"build:styles:standalone": "npx postcss src/Standalone/style.css -o dist/Standalone/style.css --config ./postcss.config.scoped.js --no-map",
|
|
15
15
|
"prepack": "npm run build",
|
|
16
16
|
"publish": "yarn npm publish --access public"
|
|
17
17
|
},
|
|
@@ -22,10 +22,9 @@
|
|
|
22
22
|
"@emotion/react": "^11.4.0",
|
|
23
23
|
"@emotion/styled": "^11.14.0",
|
|
24
24
|
"@headlessui/react": "^1.7.19",
|
|
25
|
-
"@ws-ui/icons": "1.
|
|
26
|
-
"@ws-ui/shared": "1.
|
|
27
|
-
"@ws-ui/store": "1.
|
|
28
|
-
"@ws-ui/ui-components": "^1.0.17",
|
|
25
|
+
"@ws-ui/icons": "1.13.0",
|
|
26
|
+
"@ws-ui/shared": "1.13.0-dev.1",
|
|
27
|
+
"@ws-ui/store": "1.13.0-dev.1",
|
|
29
28
|
"classnames": "^2.3.1",
|
|
30
29
|
"downshift": "^6.1.3",
|
|
31
30
|
"lodash": "^4.17.21",
|
|
@@ -38,7 +37,8 @@
|
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@jest/globals": "^29.7.0",
|
|
41
|
-
"@tailwindcss/
|
|
40
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
41
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
42
42
|
"@testing-library/jest-dom": "^6.4.2",
|
|
43
43
|
"@testing-library/react": "^12.1.5",
|
|
44
44
|
"@types/classnames": "^2.3.0",
|
|
@@ -48,14 +48,15 @@
|
|
|
48
48
|
"@types/react": "^17.0.24",
|
|
49
49
|
"@types/react-dom": "^17.0.5",
|
|
50
50
|
"@vitejs/plugin-react": "^4.3.4",
|
|
51
|
-
"autoprefixer": "^10.4.2",
|
|
52
51
|
"jest": "^29.7.0",
|
|
53
52
|
"postcss": "^8.4.31",
|
|
53
|
+
"postcss-cli": "^11.0.0",
|
|
54
54
|
"postcss-prefix-selector": "^2.1.1",
|
|
55
|
-
"tailwindcss": "^
|
|
55
|
+
"tailwindcss": "^4.1.18",
|
|
56
56
|
"ts-jest": "^29.2.6",
|
|
57
57
|
"typescript": "^5.8.3",
|
|
58
58
|
"vite": "^6.2.1",
|
|
59
|
-
"vite-plugin-dts": "^4.5.3"
|
|
59
|
+
"vite-plugin-dts": "^4.5.3",
|
|
60
|
+
"vite-plugin-static-copy": "^0.17.0"
|
|
60
61
|
}
|
|
61
62
|
}
|
package/dist/Provider/index.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { HTTPHandler } from '../adapter/types';
|
|
3
|
-
type HandlerState = {
|
|
4
|
-
content: HTTPHandler[];
|
|
5
|
-
editing: string | null;
|
|
6
|
-
newlyCreatedHandlerID: string | null;
|
|
7
|
-
};
|
|
8
|
-
type HandlerContextType = {
|
|
9
|
-
state: HandlerState;
|
|
10
|
-
dispatch: React.Dispatch<HandlerAction>;
|
|
11
|
-
};
|
|
12
|
-
type HandlerAction = {
|
|
13
|
-
type: 'ADD_HANDLER';
|
|
14
|
-
payload: Omit<HTTPHandler, 'id'>;
|
|
15
|
-
} | {
|
|
16
|
-
type: 'UPDATE_HANDLER';
|
|
17
|
-
id: string;
|
|
18
|
-
payload: Partial<HTTPHandler>;
|
|
19
|
-
} | {
|
|
20
|
-
type: 'DELETE_HANDLER';
|
|
21
|
-
id: string;
|
|
22
|
-
} | {
|
|
23
|
-
type: 'TOGGLE_EXPANDED';
|
|
24
|
-
id: string;
|
|
25
|
-
} | {
|
|
26
|
-
type: 'DUPLICATE_HANDLER';
|
|
27
|
-
id: string;
|
|
28
|
-
} | {
|
|
29
|
-
type: 'TOGGLE_ALL_EXPANDED';
|
|
30
|
-
payload: boolean;
|
|
31
|
-
} | {
|
|
32
|
-
type: 'UPDATE_HANDLERS';
|
|
33
|
-
payload: HTTPHandler[];
|
|
34
|
-
} | {
|
|
35
|
-
type: 'SYNC_DATA';
|
|
36
|
-
payload: HTTPHandler[];
|
|
37
|
-
} | {
|
|
38
|
-
type: 'SET_EDITING_HANDLER';
|
|
39
|
-
payload: string | null;
|
|
40
|
-
};
|
|
41
|
-
type HandlerProviderProps = {
|
|
42
|
-
children: ReactNode;
|
|
43
|
-
content: HTTPHandler[];
|
|
44
|
-
};
|
|
45
|
-
export declare const HandlerProvider: React.FC<HandlerProviderProps>;
|
|
46
|
-
export declare const useHTTPHandlers: () => HandlerContextType;
|
|
47
|
-
export {};
|