@dao42/d42paas-front 0.5.28 → 0.5.40
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/DaoPaaS.es.js +20352 -8697
- package/dist/DaoPaaS.umd.js +1124 -543
- package/dist/editor.d.ts +31 -1
- package/dist/index.html +9 -4
- package/dist/style.css +2 -2
- package/package.json +13 -3
package/dist/editor.d.ts
CHANGED
|
@@ -21,6 +21,13 @@ export type TReplay = 'stop' | 'disabled' | 'pause';
|
|
|
21
21
|
* the arguments of the Playground.
|
|
22
22
|
*/
|
|
23
23
|
interface TConstructor {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* initing the playground ticket needed.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
env?: string;
|
|
30
|
+
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
26
33
|
* initing the playground ticket needed.
|
|
@@ -69,6 +76,21 @@ interface TConstructor {
|
|
|
69
76
|
*
|
|
70
77
|
*/
|
|
71
78
|
avatarUrl?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* this argument is to ingnore replaying patterns.
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
ignoreReplayers?: keyof D42_FrontType['CRDT'][];
|
|
86
|
+
|
|
87
|
+
components?: UserComponent[];
|
|
88
|
+
|
|
89
|
+
// render?: () => TComponentArgs[];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface UserComponent extends TComponentArgs {
|
|
93
|
+
item: string;
|
|
72
94
|
}
|
|
73
95
|
|
|
74
96
|
/**
|
|
@@ -78,7 +100,7 @@ interface TConstructor {
|
|
|
78
100
|
*
|
|
79
101
|
*/
|
|
80
102
|
|
|
81
|
-
interface TComponentArgs {
|
|
103
|
+
export interface TComponentArgs {
|
|
82
104
|
/**
|
|
83
105
|
*
|
|
84
106
|
* the DOM for the component.
|
|
@@ -112,6 +134,14 @@ export class DaoPaaS {
|
|
|
112
134
|
*/
|
|
113
135
|
record(arg: boolean): void;
|
|
114
136
|
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* async method to set Replayers.
|
|
140
|
+
* @param {keyof D42_FrontType['CRDT'][]} arg
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
setReplayers(arg: keyof D42_FrontType['CRDT'][]): void;
|
|
144
|
+
|
|
115
145
|
/**
|
|
116
146
|
*
|
|
117
147
|
* Here you can switch language services by calling this method.
|
package/dist/index.html
CHANGED
|
@@ -32,12 +32,17 @@
|
|
|
32
32
|
window.daopaas = DaoPaaS;
|
|
33
33
|
|
|
34
34
|
var qs = new URLSearchParams(document.location.search.substring(1));
|
|
35
|
+
const env = qs.get('env')
|
|
35
36
|
window.daopaas = new DaoPaaS.DaoPaaS({
|
|
36
|
-
ticket:
|
|
37
|
-
playgroundId:
|
|
37
|
+
ticket: 'MXwzNDUwMTU4NjU4MDYyOTA5NDR8MXx8MTczNzg5MjAwMDAwMA==',
|
|
38
|
+
playgroundId: '345015865806290944',
|
|
38
39
|
userId: qs.get('userId'),
|
|
39
|
-
tenantId:
|
|
40
|
-
username: qs.get('username')
|
|
40
|
+
tenantId: '1',
|
|
41
|
+
username: qs.get('username'),
|
|
42
|
+
env: env ? env : 'develop'
|
|
43
|
+
// playgroundId: qs.get('playgroundId'),
|
|
44
|
+
// playgroundId: qs.get('playgroundId'),
|
|
45
|
+
// tenantId: qs.get('tenantId'),
|
|
41
46
|
});
|
|
42
47
|
daopaas.Page({
|
|
43
48
|
container: document.querySelector('.edit-container'),
|