ts-glitter 21.9.1 → 21.9.2

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/lowcode/Entry.js CHANGED
@@ -19,8 +19,13 @@ import { PayConfig } from './cms-plugin/pos-pages/pay-config.js';
19
19
  import { ApiCart } from './glitter-base/route/api-cart.js';
20
20
  import { ApiUser } from './glitter-base/route/user.js';
21
21
  import { ApplicationConfig } from './application-config.js';
22
+ import { TriggerEvent } from './glitterBundle/plugins/trigger-event.js';
23
+ import { Ad } from './public-components/public/ad.js';
22
24
  export class Entry {
23
25
  static onCreate(glitter) {
26
+ glitter.share.ad = Ad;
27
+ glitter.share.TriggerEvent = TriggerEvent;
28
+ glitter.share.PayConfig = PayConfig;
24
29
  config.url = location.origin;
25
30
  window.glitterBackend = location.origin;
26
31
  const originalReplaceState = history.replaceState;
@@ -146,7 +151,7 @@ export class Entry {
146
151
  }
147
152
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
148
153
  console.log(`Entry-time:`, window.renderClock.stop());
149
- glitter.share.editerVersion = 'V_21.9.1';
154
+ glitter.share.editerVersion = 'V_21.9.2';
150
155
  glitter.share.start = new Date();
151
156
  const vm = { appConfig: [] };
152
157
  window.saasConfig = {
package/lowcode/Entry.ts CHANGED
@@ -12,10 +12,15 @@ import { ApiCart } from './glitter-base/route/api-cart.js';
12
12
  import { ApiUser } from './glitter-base/route/user.js';
13
13
  import { ApplicationConfig } from './application-config.js';
14
14
  import { TriggerEvent } from './glitterBundle/plugins/trigger-event.js';
15
+ import { Ad } from './public-components/public/ad.js';
15
16
 
16
17
  export class Entry {
17
18
  // 建立初始函式
18
19
  public static onCreate(glitter: Glitter) {
20
+ //設定GA和Pixel的橋接
21
+ glitter.share.ad=Ad;
22
+ glitter.share.TriggerEvent=TriggerEvent;
23
+ glitter.share.PayConfig=PayConfig;
19
24
  //設定後端路徑API
20
25
  config.url=location.origin;
21
26
  (window as any).glitterBackend=location.origin;
@@ -150,7 +155,7 @@ export class Entry {
150
155
  }
151
156
  (window as any).renderClock = (window as any).renderClock ?? createClock();
152
157
  console.log(`Entry-time:`, (window as any).renderClock.stop());
153
- glitter.share.editerVersion = 'V_21.9.1';
158
+ glitter.share.editerVersion = 'V_21.9.2';
154
159
  glitter.share.start = new Date();
155
160
  const vm = { appConfig: [] };
156
161
  (window as any).saasConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "21.9.1",
3
+ "version": "21.9.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {