@dao42/d42paas-front 0.5.27 → 0.5.39

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/editor.d.ts CHANGED
@@ -2,11 +2,17 @@
2
2
  * Copyright (c) dao42. All rights reserved.
3
3
  * Type definitions for @dao42/d42paas-front
4
4
  * Released under the MIT license
5
- *-----------------------------------------------------------*/
5
+ *-----------------------------------------------------------*/
6
+
7
+ // import React from 'react';
8
+
6
9
  /*---------------------------------------------------------------------------------------------
7
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
11
  * Licensed under the MIT License. See License.txt in the project root for license information.
9
12
  *--------------------------------------------------------------------------------------------*/
13
+ // type TStyle = HTMLAttributes<T>.style?: React.CSSProperties | undefined;
14
+ // type TStyle = React.CSSProperties | undefined;
15
+ // import * as CSS from 'csstype';
10
16
 
11
17
  export type T_PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
12
18
  export type TReplay = 'stop' | 'disabled' | 'pause';
@@ -15,6 +21,13 @@ export type TReplay = 'stop' | 'disabled' | 'pause';
15
21
  * the arguments of the Playground.
16
22
  */
17
23
  interface TConstructor {
24
+ /**
25
+ *
26
+ * initing the playground ticket needed.
27
+ *
28
+ */
29
+ env?: string;
30
+
18
31
  /**
19
32
  *
20
33
  * initing the playground ticket needed.
@@ -64,6 +77,14 @@ interface TConstructor {
64
77
  */
65
78
  avatarUrl?: string;
66
79
 
80
+ /**
81
+ *
82
+ * this argument is to ingnore replaying patterns.
83
+ *
84
+ */
85
+ ignoreReplayers?: keyof D42_FrontType['CRDT'][];
86
+
87
+ components?: TComponentArgs[];
67
88
  }
68
89
 
69
90
  /**
@@ -73,8 +94,7 @@ interface TConstructor {
73
94
  *
74
95
  */
75
96
 
76
- interface TComponentArgs {
77
-
97
+ export interface TComponentArgs {
78
98
  /**
79
99
  *
80
100
  * the DOM for the component.
@@ -108,6 +128,13 @@ export class DaoPaaS {
108
128
  */
109
129
  record(arg: boolean): void;
110
130
 
131
+ /**
132
+ *
133
+ * async method to set Replayers.
134
+ * @param {keyof D42_FrontType['CRDT'][]} arg
135
+ *
136
+ */
137
+ setReplayers(arg: keyof D42_FrontType['CRDT'][]): void;
111
138
 
112
139
  /**
113
140
  *
@@ -117,7 +144,6 @@ export class DaoPaaS {
117
144
  */
118
145
  switchLspServer(arg: boolean): void;
119
146
 
120
-
121
147
  /**
122
148
  *
123
149
  * Active the playground handler.
@@ -146,9 +172,17 @@ export class DaoPaaS {
146
172
  *
147
173
  * Editor component.
148
174
  * @memberof DaoPaaS
149
- *
175
+ * CSS.Properties<string | number>
150
176
  */
151
- Editor(args: TComponentArgs): void;
177
+ Editor(
178
+ args:
179
+ | TComponentArgs
180
+ | {
181
+ containerStyle: any;
182
+ editorStyle: any;
183
+ menuStyle: any;
184
+ },
185
+ ): void;
152
186
 
153
187
  /**
154
188
  *
@@ -189,5 +223,4 @@ export class DaoPaaS {
189
223
  *
190
224
  */
191
225
  Console(args: TComponentArgs): void;
192
-
193
226
  }
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: qs.get('ticket'),
37
- playgroundId: qs.get('playgroundId'),
37
+ ticket: 'MXwzNDUwMTU4NjU4MDYyOTA5NDR8MXx8MTczNzg5MjAwMDAwMA==',
38
+ playgroundId: '345015865806290944',
38
39
  userId: qs.get('userId'),
39
- tenantId: qs.get('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'),