@tachybase/plugin-action-share 1.3.25 → 1.5.0
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/client/collection/sharePageConfig.d.ts +220 -0
- package/dist/client/component/ShareButton.d.ts +2 -0
- package/dist/client/component/ShareConfigFrom.d.ts +2 -0
- package/dist/client/component/VerifyModal.d.ts +1 -0
- package/dist/client/component/style.d.ts +13 -0
- package/dist/client/hook/useShareActions.d.ts +3 -6
- package/dist/client/hook/useShareVisible.d.ts +1 -0
- package/dist/client/index.js +229 -81
- package/dist/client/mobile/component/style.d.ts +1 -2
- package/dist/client/provider/shareModelProvider.d.ts +24 -0
- package/dist/client/provider/sharePageProvider.d.ts +7 -0
- package/dist/externalVersion.js +2 -1
- package/dist/locale/zh-CN.json +16 -0
- package/dist/server/actions/share.d.ts +2 -0
- package/dist/server/actions/share.js +39 -0
- package/dist/server/collections/rolesShareUiSchemas.d.ts +2 -0
- package/dist/server/collections/rolesShareUiSchemas.js +27 -0
- package/dist/server/collections/sharePage.d.ts +2 -0
- package/dist/server/collections/sharePage.js +44 -0
- package/dist/server/collections/sharePageConfig.d.ts +2 -0
- package/dist/server/collections/sharePageConfig.js +68 -0
- package/dist/server/middlewares/share-acl-action.d.ts +1 -0
- package/dist/server/middlewares/share-acl-action.js +67 -0
- package/dist/server/plugin.js +18 -1
- package/package.json +4 -3
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
export declare const sharePageConfig: {
|
|
2
|
+
title: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: ({
|
|
5
|
+
name: string;
|
|
6
|
+
interface: string;
|
|
7
|
+
type: string;
|
|
8
|
+
field: string;
|
|
9
|
+
uiSchema: {
|
|
10
|
+
type: string;
|
|
11
|
+
title: string;
|
|
12
|
+
'x-component': string;
|
|
13
|
+
'x-component-props': {
|
|
14
|
+
fieldNames?: undefined;
|
|
15
|
+
shouUnchecked?: undefined;
|
|
16
|
+
dateFormat?: undefined;
|
|
17
|
+
gmt?: undefined;
|
|
18
|
+
showTime?: undefined;
|
|
19
|
+
style?: undefined;
|
|
20
|
+
};
|
|
21
|
+
'x-read-pretty': boolean;
|
|
22
|
+
tye?: undefined;
|
|
23
|
+
enum?: undefined;
|
|
24
|
+
};
|
|
25
|
+
target?: undefined;
|
|
26
|
+
foreignKey?: undefined;
|
|
27
|
+
primaryKey?: undefined;
|
|
28
|
+
autoIncrement?: undefined;
|
|
29
|
+
hidden?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
name: string;
|
|
32
|
+
interface: string;
|
|
33
|
+
type: string;
|
|
34
|
+
target: string;
|
|
35
|
+
foreignKey: string;
|
|
36
|
+
uiSchema: {
|
|
37
|
+
type: string;
|
|
38
|
+
title: string;
|
|
39
|
+
'x-component': string;
|
|
40
|
+
'x-component-props': {
|
|
41
|
+
fieldNames: {
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
};
|
|
45
|
+
shouUnchecked?: undefined;
|
|
46
|
+
dateFormat?: undefined;
|
|
47
|
+
gmt?: undefined;
|
|
48
|
+
showTime?: undefined;
|
|
49
|
+
style?: undefined;
|
|
50
|
+
};
|
|
51
|
+
'x-read-pretty': boolean;
|
|
52
|
+
tye?: undefined;
|
|
53
|
+
enum?: undefined;
|
|
54
|
+
};
|
|
55
|
+
field?: undefined;
|
|
56
|
+
primaryKey?: undefined;
|
|
57
|
+
autoIncrement?: undefined;
|
|
58
|
+
hidden?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
type: string;
|
|
61
|
+
name: string;
|
|
62
|
+
primaryKey: boolean;
|
|
63
|
+
autoIncrement: boolean;
|
|
64
|
+
interface: string;
|
|
65
|
+
uiSchema: {
|
|
66
|
+
type: string;
|
|
67
|
+
title: string;
|
|
68
|
+
'x-component': string;
|
|
69
|
+
'x-read-pretty': boolean;
|
|
70
|
+
'x-component-props'?: undefined;
|
|
71
|
+
tye?: undefined;
|
|
72
|
+
enum?: undefined;
|
|
73
|
+
};
|
|
74
|
+
field?: undefined;
|
|
75
|
+
target?: undefined;
|
|
76
|
+
foreignKey?: undefined;
|
|
77
|
+
hidden?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
interface: string;
|
|
80
|
+
name: string;
|
|
81
|
+
type: string;
|
|
82
|
+
uiSchema: {
|
|
83
|
+
title: string;
|
|
84
|
+
type: string;
|
|
85
|
+
'x-component': string;
|
|
86
|
+
'x-component-props': {
|
|
87
|
+
shouUnchecked: boolean;
|
|
88
|
+
fieldNames?: undefined;
|
|
89
|
+
dateFormat?: undefined;
|
|
90
|
+
gmt?: undefined;
|
|
91
|
+
showTime?: undefined;
|
|
92
|
+
style?: undefined;
|
|
93
|
+
};
|
|
94
|
+
'x-read-pretty'?: undefined;
|
|
95
|
+
tye?: undefined;
|
|
96
|
+
enum?: undefined;
|
|
97
|
+
};
|
|
98
|
+
field?: undefined;
|
|
99
|
+
target?: undefined;
|
|
100
|
+
foreignKey?: undefined;
|
|
101
|
+
primaryKey?: undefined;
|
|
102
|
+
autoIncrement?: undefined;
|
|
103
|
+
hidden?: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
type: string;
|
|
106
|
+
name: string;
|
|
107
|
+
interface: string;
|
|
108
|
+
hidden: boolean;
|
|
109
|
+
uiSchema: {
|
|
110
|
+
type: string;
|
|
111
|
+
title: string;
|
|
112
|
+
'x-component': string;
|
|
113
|
+
'x-component-props'?: undefined;
|
|
114
|
+
'x-read-pretty'?: undefined;
|
|
115
|
+
tye?: undefined;
|
|
116
|
+
enum?: undefined;
|
|
117
|
+
};
|
|
118
|
+
field?: undefined;
|
|
119
|
+
target?: undefined;
|
|
120
|
+
foreignKey?: undefined;
|
|
121
|
+
primaryKey?: undefined;
|
|
122
|
+
autoIncrement?: undefined;
|
|
123
|
+
} | {
|
|
124
|
+
interface: string;
|
|
125
|
+
name: string;
|
|
126
|
+
type: string;
|
|
127
|
+
uiSchema: {
|
|
128
|
+
title: string;
|
|
129
|
+
type: string;
|
|
130
|
+
'x-component': string;
|
|
131
|
+
'x-component-props': {
|
|
132
|
+
dateFormat: string;
|
|
133
|
+
gmt: boolean;
|
|
134
|
+
showTime: boolean;
|
|
135
|
+
fieldNames?: undefined;
|
|
136
|
+
shouUnchecked?: undefined;
|
|
137
|
+
style?: undefined;
|
|
138
|
+
};
|
|
139
|
+
'x-read-pretty'?: undefined;
|
|
140
|
+
tye?: undefined;
|
|
141
|
+
enum?: undefined;
|
|
142
|
+
};
|
|
143
|
+
field?: undefined;
|
|
144
|
+
target?: undefined;
|
|
145
|
+
foreignKey?: undefined;
|
|
146
|
+
primaryKey?: undefined;
|
|
147
|
+
autoIncrement?: undefined;
|
|
148
|
+
hidden?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
interface: string;
|
|
151
|
+
name: string;
|
|
152
|
+
type: string;
|
|
153
|
+
uiSchema: {
|
|
154
|
+
title: string;
|
|
155
|
+
tye: string;
|
|
156
|
+
'x-component': string;
|
|
157
|
+
enum: {
|
|
158
|
+
value: string;
|
|
159
|
+
label: string;
|
|
160
|
+
color: string;
|
|
161
|
+
}[];
|
|
162
|
+
type?: undefined;
|
|
163
|
+
'x-component-props'?: undefined;
|
|
164
|
+
'x-read-pretty'?: undefined;
|
|
165
|
+
};
|
|
166
|
+
field?: undefined;
|
|
167
|
+
target?: undefined;
|
|
168
|
+
foreignKey?: undefined;
|
|
169
|
+
primaryKey?: undefined;
|
|
170
|
+
autoIncrement?: undefined;
|
|
171
|
+
hidden?: undefined;
|
|
172
|
+
} | {
|
|
173
|
+
interface: string;
|
|
174
|
+
name: string;
|
|
175
|
+
type: string;
|
|
176
|
+
uiSchema: {
|
|
177
|
+
title: string;
|
|
178
|
+
tye: string;
|
|
179
|
+
'x-component': string;
|
|
180
|
+
type?: undefined;
|
|
181
|
+
'x-component-props'?: undefined;
|
|
182
|
+
'x-read-pretty'?: undefined;
|
|
183
|
+
enum?: undefined;
|
|
184
|
+
};
|
|
185
|
+
field?: undefined;
|
|
186
|
+
target?: undefined;
|
|
187
|
+
foreignKey?: undefined;
|
|
188
|
+
primaryKey?: undefined;
|
|
189
|
+
autoIncrement?: undefined;
|
|
190
|
+
hidden?: undefined;
|
|
191
|
+
} | {
|
|
192
|
+
interface: string;
|
|
193
|
+
type: string;
|
|
194
|
+
name: string;
|
|
195
|
+
uiSchema: {
|
|
196
|
+
type: string;
|
|
197
|
+
title: string;
|
|
198
|
+
'x-component': string;
|
|
199
|
+
'x-component-props': {
|
|
200
|
+
style: {
|
|
201
|
+
height: string;
|
|
202
|
+
};
|
|
203
|
+
fieldNames?: undefined;
|
|
204
|
+
shouUnchecked?: undefined;
|
|
205
|
+
dateFormat?: undefined;
|
|
206
|
+
gmt?: undefined;
|
|
207
|
+
showTime?: undefined;
|
|
208
|
+
};
|
|
209
|
+
'x-read-pretty'?: undefined;
|
|
210
|
+
tye?: undefined;
|
|
211
|
+
enum?: undefined;
|
|
212
|
+
};
|
|
213
|
+
field?: undefined;
|
|
214
|
+
target?: undefined;
|
|
215
|
+
foreignKey?: undefined;
|
|
216
|
+
primaryKey?: undefined;
|
|
217
|
+
autoIncrement?: undefined;
|
|
218
|
+
hidden?: undefined;
|
|
219
|
+
})[];
|
|
220
|
+
};
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export declare const ShareButton: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
|
|
2
|
+
export declare const ShareModal: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ShareHistory: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VerifyModal: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,4 +16,17 @@ export declare const useModalStyles: (props?: unknown) => import("antd-style").R
|
|
|
16
16
|
firstmodal: import("antd-style").SerializedStyles;
|
|
17
17
|
secondmodal: import("antd-style").SerializedStyles;
|
|
18
18
|
imageModal: import("antd-style").SerializedStyles;
|
|
19
|
+
historyModal: import("antd-style").SerializedStyles;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const useShareConfigStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
22
|
+
form: import("antd-style").SerializedStyles;
|
|
23
|
+
collapse: import("antd-style").SerializedStyles;
|
|
24
|
+
datePickFooter: import("antd-style").SerializedStyles;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const useSharePageModelStyle: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
27
|
+
modal: import("antd-style").SerializedStyles;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const useShareCollapseStyle: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
30
|
+
collapse: import("antd-style").SerializedStyles;
|
|
31
|
+
collapseExtra: import("antd-style").SerializedStyles;
|
|
19
32
|
}>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export declare const useShareActions: (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}) => {
|
|
5
|
-
copyLink: () => void;
|
|
6
|
-
imageAction: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const useShareActions: (props: any) => {
|
|
2
|
+
copyLink: (copyLink?: any) => void;
|
|
3
|
+
imageAction: (copyLink?: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useShareVisible: () => boolean;
|