@devvit/ui-renderer 0.11.3-next-2024-11-13-8e77b0e7d.0 → 0.11.3-next-2024-11-13-ad36b8d4e.0
Sign up to get free protection for your applications and to get access to all the features.
- package/client/devvit-surface.d.ts +4 -2
- package/client/devvit-surface.d.ts.map +1 -1
- package/client/devvit-surface.js +17 -1
- package/client/devvit-surface.js.map +1 -1
- package/client/dispatcher/events.d.ts +31 -0
- package/client/dispatcher/events.d.ts.map +1 -1
- package/client/dispatcher/events.js +2 -0
- package/client/dispatcher/events.js.map +1 -1
- package/client/dispatcher/webDispatcher.d.ts +9 -4
- package/client/dispatcher/webDispatcher.d.ts.map +1 -1
- package/client/dispatcher/webDispatcher.js +17 -9
- package/client/dispatcher/webDispatcher.js.map +1 -1
- package/devvit-custom-post-meta.min.json +2 -2
- package/devvit-custom-post.min.js.map +1 -1
- package/devvit-surface-meta.min.json +8 -8
- package/devvit-surface.min.js +42 -42
- package/devvit-surface.min.js.map +3 -3
- package/package.json +9 -9
@@ -6,8 +6,8 @@ import { UIDimensions } from '@devvit/protos/types/devvit/ui/common/v1alpha/comm
|
|
6
6
|
import type { FaceplateEvent } from '@reddit/faceplate/event-types.js';
|
7
7
|
import type { PropertyValues } from 'lit';
|
8
8
|
import { LitElement } from 'lit';
|
9
|
-
import type { DevvitClientPerformanceEvent, DevvitRealtimeSendEvent, DevvitUIEffectEvent, DevvitUIError } from './dispatcher/events.js';
|
10
|
-
import { DevvitClientPerformanceEventName } from './dispatcher/events.js';
|
9
|
+
import type { DevvitClientPerformanceEvent, DevvitRealtimeSendEvent, DevvitRuntimeErrorEvent, DevvitRuntimePerformanceEvent, DevvitUIEffectEvent, DevvitUIError } from './dispatcher/events.js';
|
10
|
+
import { DevvitClientPerformanceEventName, DevvitRuntimeErrorEventName, DevvitRuntimePerformanceEventName } from './dispatcher/events.js';
|
11
11
|
import { type UIProps } from './dispatcher/mappers.js';
|
12
12
|
import type { UIApp } from './dispatcher/remote-app.js';
|
13
13
|
declare global {
|
@@ -18,6 +18,8 @@ declare global {
|
|
18
18
|
'devvit-realtime-send': DevvitRealtimeSendEvent;
|
19
19
|
'devvit-ui-effect': DevvitUIEffectEvent;
|
20
20
|
[DevvitClientPerformanceEventName]: DevvitClientPerformanceEvent;
|
21
|
+
[DevvitRuntimePerformanceEventName]: DevvitRuntimePerformanceEvent;
|
22
|
+
[DevvitRuntimeErrorEventName]: DevvitRuntimeErrorEvent;
|
21
23
|
'devvit-ui-error': Omit<FaceplateEvent<'devvit-ui-error'>, 'detail'> & {
|
22
24
|
detail: DevvitUIError;
|
23
25
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devvit-surface.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-surface.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,OAAO,gDAAgD,CAAC;AACxD,OAAO,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"devvit-surface.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-surface.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,OAAO,gDAAgD,CAAC;AACxD,OAAO,gDAAgD,CAAC;AAGxD,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,QAAQ,EAMb,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAOvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAUvC,OAAO,KAAK,EACV,4BAA4B,EAE5B,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAE7B,mBAAmB,EACnB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAChC,OA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AM,CAAM;IAEhC,mBAAmB,EAAE,OAAO,CAAS;IACrC,cAAc,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACxC,+FAA+F;IACtF,UAAU,CAAC,EAAE,YAAY,CAAC;IAE1B,OAAO,CAAC,UAAU,CAAC,CAAoB;IAUhD,OAAO,CAAC,eAAe,CAAmC;;IAO3C,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA8DxC,oBAAoB,IAAI,IAAI;cAYlB,MAAM;cAiBA,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cAwFtD,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;CA2G/D"}
|
package/client/devvit-surface.js
CHANGED
@@ -36,7 +36,7 @@ import { DevvitBlocksWebView } from '../blocks/components/devvit-blocks-web-view
|
|
36
36
|
import { DEFAULT_ROOT_HEIGHT } from '../blocks/templates/renderBlock.js';
|
37
37
|
import { styles } from '../styles.js';
|
38
38
|
import { buildDimensions } from './dimensions.js';
|
39
|
-
import { DevvitClientPerformanceEventName } from './dispatcher/events.js';
|
39
|
+
import { DevvitClientPerformanceEventName, DevvitRuntimeErrorEventName, DevvitRuntimePerformanceEventName, } from './dispatcher/events.js';
|
40
40
|
import { WrappedEvent } from './dispatcher/mappers.js';
|
41
41
|
import { WebDispatcher } from './dispatcher/webDispatcher.js';
|
42
42
|
import { resolveWebViewUrl } from './web-view.js';
|
@@ -166,6 +166,22 @@ let DevvitSurface = class DevvitSurface extends LitElement {
|
|
166
166
|
timezone: this.metadata?.[Header.Timezone]?.values?.[0],
|
167
167
|
}, {
|
168
168
|
useSpeculativeExecution: this.useSpeculativeExecution,
|
169
|
+
performanceTracker: (runtimeTrace) => {
|
170
|
+
__classPrivateFieldGet(this, _DevvitSurface_instances, "m", _DevvitSurface_bubble).call(this, DevvitRuntimePerformanceEventName, {
|
171
|
+
name: runtimeTrace.spanName,
|
172
|
+
duration: parseInt(runtimeTrace.durationMs),
|
173
|
+
target: runtimeTrace.target,
|
174
|
+
intent: runtimeTrace.intent,
|
175
|
+
eventCount: runtimeTrace.eventCount,
|
176
|
+
});
|
177
|
+
},
|
178
|
+
errorTracker: (errorTrace) => {
|
179
|
+
__classPrivateFieldGet(this, _DevvitSurface_instances, "m", _DevvitSurface_bubble).call(this, DevvitRuntimeErrorEventName, {
|
180
|
+
message: errorTrace.message,
|
181
|
+
origin: errorTrace.origin,
|
182
|
+
version: errorTrace.version,
|
183
|
+
});
|
184
|
+
},
|
169
185
|
}), "f");
|
170
186
|
__classPrivateFieldGet(this, _DevvitSurface_dispatcher, "f").onPluginCall = __classPrivateFieldGet(this, _DevvitSurface_onPluginCall, "f");
|
171
187
|
__classPrivateFieldGet(this, _DevvitSurface_dispatcher, "f").onError = __classPrivateFieldGet(this, _DevvitSurface_onError, "f");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devvit-surface.js","sourceRoot":"","sources":["../../library/src/client/devvit-surface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,kEAAkE,CAAC;AAC1E,OAAO,gDAAgD,CAAC;AACxD,OAAO,gDAAgD,CAAC;AAExD,OAAO,EAEL,eAAe,EACf,mBAAmB,EAInB,kBAAkB,EAGlB,YAAY,GAGb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAGvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,Q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VzB"}
|
@@ -30,4 +30,35 @@ export type DevvitClientPerformanceEvent = {
|
|
30
30
|
*/
|
31
31
|
name: 'time_to_first_frame' | 'init_runtime' | 'fetch_full_bundle' | 'load_full_bundle' | 'blocks_layout';
|
32
32
|
};
|
33
|
+
export declare const DevvitRuntimePerformanceEventName = "devvit-runtime-performance-report";
|
34
|
+
export type DevvitRuntimePerformanceEvent = {
|
35
|
+
/**
|
36
|
+
* Name of the process that was measured.
|
37
|
+
* For now, it's only "runtime_trace".
|
38
|
+
*/
|
39
|
+
name: string;
|
40
|
+
/**
|
41
|
+
* Duration of the process in ms.
|
42
|
+
*/
|
43
|
+
duration: number;
|
44
|
+
/** Specifies if runtime call was "local" or "remote". */
|
45
|
+
target: string;
|
46
|
+
/** Event count of a single request. */
|
47
|
+
eventCount: number;
|
48
|
+
/**
|
49
|
+
* If target is remote, specify why we are targeting the remote runtime – i.e. `remote_only`, `circuit_break`, `app_error`, etc.
|
50
|
+
*
|
51
|
+
* Empty string for local runtime calls.
|
52
|
+
* */
|
53
|
+
intent?: string;
|
54
|
+
};
|
55
|
+
export declare const DevvitRuntimeErrorEventName = "devvit-runtime-error";
|
56
|
+
export type DevvitRuntimeErrorEvent = {
|
57
|
+
/** Exception message */
|
58
|
+
message: string;
|
59
|
+
/** "local" or "remote" -- which runtime the error originates from */
|
60
|
+
origin: string;
|
61
|
+
/** Version of the runtime, may be unavailable for remote runtimes */
|
62
|
+
version: string;
|
63
|
+
};
|
33
64
|
//# sourceMappingURL=events.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../library/src/client/dispatcher/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,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AChB,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
@@ -1,2 +1,4 @@
|
|
1
1
|
export const DevvitClientPerformanceEventName = 'devvit-client-performance-report';
|
2
|
+
export const DevvitRuntimePerformanceEventName = 'devvit-runtime-performance-report';
|
3
|
+
export const DevvitRuntimeErrorEventName = 'devvit-runtime-error';
|
2
4
|
//# sourceMappingURL=events.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../library/src/client/dispatcher/events.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,gCAAgC,GAAG,kCAAkC,CAAC"}
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../library/src/client/dispatcher/events.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,gCAAgC,GAAG,kCAAkC,CAAC;AAgBnF,MAAM,CAAC,MAAM,iCAAiC,GAAG,mCAAmC,CAAC;AAuBrF,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC"}
|
@@ -1,11 +1,18 @@
|
|
1
|
-
import type { Dispatcher, SubscribeCallbackParams } from '@devvit/multiplatform/ui-shared-shared.js';
|
1
|
+
import type { Dispatcher, ErrorInfo, RuntimeTrace, SubscribeCallbackParams } from '@devvit/multiplatform/ui-shared-shared.js';
|
2
2
|
import { JsDispatcherImpl } from '@devvit/multiplatform/ui-shared-shared.js';
|
3
3
|
import type { Effect, Metadata, UIEnvironment } from '@devvit/protos';
|
4
4
|
import type { LiteLoadResponse } from '@devvit/runtime-lite/client/ClientShared.js';
|
5
5
|
import type { PluginCallback } from '@devvit/runtime-lite/runtime/RuntimeLite.js';
|
6
6
|
import type { UIProps, UIState, WrappedEvent, WrappedRequest, WrappedResponse } from './mappers.js';
|
7
7
|
import { LocalRuntime, RemoteRuntime } from './runtimes.js';
|
8
|
+
type PerformanceTracker = (runtimeTrace: RuntimeTrace) => void;
|
9
|
+
type ErrorTracker = (errorTrace: ErrorInfo) => void;
|
8
10
|
type KMPDispatcher = JsDispatcherImpl<WrappedEvent>;
|
11
|
+
export type DispatcherConfig = {
|
12
|
+
useSpeculativeExecution: boolean;
|
13
|
+
performanceTracker: PerformanceTracker;
|
14
|
+
errorTracker: ErrorTracker;
|
15
|
+
};
|
9
16
|
export declare class WebDispatcher {
|
10
17
|
#private;
|
11
18
|
/**
|
@@ -20,9 +27,7 @@ export declare class WebDispatcher {
|
|
20
27
|
onWebViewMessage?: ((fx: Effect) => void) | undefined;
|
21
28
|
onError?: (error: Error) => void | undefined;
|
22
29
|
get state(): KMPDispatcher['state'];
|
23
|
-
constructor(initialState: Record<string, unknown>, env: UIEnvironment, config:
|
24
|
-
useSpeculativeExecution: boolean;
|
25
|
-
});
|
30
|
+
constructor(initialState: Record<string, unknown>, env: UIEnvironment, config: DispatcherConfig);
|
26
31
|
set metadata(metadata: Readonly<Metadata> | undefined);
|
27
32
|
set onPluginCall(cb: PluginCallback);
|
28
33
|
set runtimeDebugLogging(runtimeDebugLogging: boolean);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webDispatcher.d.ts","sourceRoot":"","sources":["../../../library/src/client/dispatcher/webDispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,
|
1
|
+
{"version":3,"file":"webDispatcher.d.ts","sourceRoot":"","sources":["../../../library/src/client/dispatcher/webDispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,SAAS,EAGT,YAAY,EACZ,uBAAuB,EAExB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAmB,MAAM,2CAA2C,CAAC;AAE9F,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AACpF,O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AAS,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,uBAAuB,CAAC,cAAc,EAAE,eAAe,CAAC,KAAK,IAAI,GAAG,IAAI;IAmD1F,MAAM,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI;IAIvF,WAAW,IAAI,IAAI;IAInB,IAAI,IAAI,IAAI;IAIZ,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAUjC,aAAa,IAAI,IAAI;IAKrB,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;IAIhC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAI9B,UAAU,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI;IAItD,SAAS,CACb,GAAG,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GACxC,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAKxC,eAAe,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,GAAG,IAAI;CAGxE"}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
5
|
-
};
|
6
1
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
7
2
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
8
3
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
9
4
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
10
5
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
11
6
|
};
|
12
|
-
var
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
11
|
+
};
|
12
|
+
var _UIPerformanceAnalyticsDelegate_performanceTracker, _UIPerformanceAnalyticsDelegate_errorTracker, _WebDispatcher_requestBuilder, _WebDispatcher_timers, _WebDispatcher_dispatcher, _WebDispatcher_dispatcherUnsubscribe, _WebDispatcher_remoteRuntime, _WebDispatcher_localRuntime, _WebDispatcher_pauseSnapshot;
|
13
13
|
import { JsDispatcherImpl, TimerDefinition } from '@devvit/multiplatform/ui-shared-shared.js';
|
14
14
|
import { Header } from '@devvit/shared-types/Header.js';
|
15
15
|
import { initDevvitGlobal } from '../../types/devvit-global.js';
|
@@ -37,23 +37,31 @@ class Logger {
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
class UIPerformanceAnalyticsDelegate {
|
40
|
-
constructor() {
|
40
|
+
constructor(performanceTracker, errorTracker) {
|
41
|
+
_UIPerformanceAnalyticsDelegate_performanceTracker.set(this, void 0);
|
42
|
+
_UIPerformanceAnalyticsDelegate_errorTracker.set(this, void 0);
|
41
43
|
// @ts-expect-error No clue
|
42
44
|
this.__doNotUseOrImplementIt = {
|
43
45
|
'net.devvit.analytics.PerformanceAnalyticsDelegate': Symbol('net.devvit.analytics.PerformanceAnalyticsDelegate'),
|
44
46
|
};
|
47
|
+
__classPrivateFieldSet(this, _UIPerformanceAnalyticsDelegate_performanceTracker, performanceTracker, "f");
|
48
|
+
__classPrivateFieldSet(this, _UIPerformanceAnalyticsDelegate_errorTracker, errorTracker, "f");
|
45
49
|
}
|
46
50
|
logRuntimeError(errorInfo) {
|
47
|
-
if (isCircuitBreakError(errorInfo))
|
51
|
+
if (isCircuitBreakError(errorInfo)) {
|
48
52
|
return;
|
53
|
+
}
|
49
54
|
console.error('[kmp-dispatcher-perf-analytics] error', errorInfo);
|
55
|
+
__classPrivateFieldGet(this, _UIPerformanceAnalyticsDelegate_errorTracker, "f")?.call(this, errorInfo);
|
50
56
|
}
|
51
57
|
logRuntimeTrace(runtimeTrace) {
|
52
58
|
if (devvit?.debug.runtime) {
|
53
59
|
console.debug('[kmp-dispatcher-perf-analytics]', runtimeTrace);
|
54
60
|
}
|
61
|
+
__classPrivateFieldGet(this, _UIPerformanceAnalyticsDelegate_performanceTracker, "f")?.call(this, runtimeTrace);
|
55
62
|
}
|
56
63
|
}
|
64
|
+
_UIPerformanceAnalyticsDelegate_performanceTracker = new WeakMap(), _UIPerformanceAnalyticsDelegate_errorTracker = new WeakMap();
|
57
65
|
/**
|
58
66
|
* The web dispatcher an attempt to give web a unified interface for working with the
|
59
67
|
* KMP dispatcher and local/remote runtimes. It also provides a home for a living local
|
@@ -123,7 +131,7 @@ export class WebDispatcher {
|
|
123
131
|
isVerboseLoggingEnabled: !!devvit?.debug.runtime,
|
124
132
|
},
|
125
133
|
// @ts-expect-error Idk how to work around the type error for __doNotUseOrImplementIt
|
126
|
-
performanceAnalyticsDelegate: new UIPerformanceAnalyticsDelegate(),
|
134
|
+
performanceAnalyticsDelegate: new UIPerformanceAnalyticsDelegate(config.performanceTracker, config.errorTracker),
|
127
135
|
errorHandler: (error) => this.onError?.(error),
|
128
136
|
}), "f");
|
129
137
|
__classPrivateFieldSet(this, _WebDispatcher_timers, new Timers(__classPrivateFieldGet(this, _WebDispatcher_dispatcher, "f")), "f");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webDispatcher.js","sourceRoot":"","sources":["../../../library/src/client/dispatcher/webDispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAK9F,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,mBAAmB,GAAG,CAAC,CAAU,EAAW,EAAE,CACjD,CAAuB,CAAC,OAAO,KAAK,oBAAoB,CAAC;AAE5D,MAAM,MAAM;IACV,KAAK,CAAC,QAAmB;QACvB,IAAI,MAAM,EAAE,KAAK,CAAC,OAAO;YAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC;IACD,KAAK,CAAC,QAAmB;QACvB,IAAI,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO;QAE7C,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC,CAAC;IACzC,CAAC;IACD,IAAI,CAAC,QAAmB;QACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC,CAAC;IACxC,CAAC;IACD,IAAI,CAAC,QAAmB;QACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC,CAAC;IACxC,CAAC;IACD,GAAG;QACD,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF;
|
1
|
+
{"version":3,"file":"webDispatcher.js","sourceRoot":"","sources":["../../../library/src/client/dispatcher/webDispatcher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CAAC,CAAC;IAC/E,CAAC;IAED,WAAW,CAAC,KAAc;QACxB,IAAI,KAAK,EAAE,CAAC;YACV,uBAAA,IAAI,gCAAkB,uBAAA,IAAI,iCAAY,CAAC,KAAK,EAAE,MAAA,CAAC;QACjD,CAAC;aAAM,CAAC;YACN,IAAI,uBAAA,IAAI,oCAAe,EAAE,CAAC;gBACxB,uBAAA,IAAI,iCAAY,CAAC,MAAM,CAAC,uBAAA,IAAI,oCAAe,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;IACH,CAAC;IAED,aAAa;QACX,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,uBAAA,IAAI,iCAAY,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,GAAkB;QACvB,uBAAA,IAAI,qCAAgB,CAAC,GAAG,GAAG,GAAG,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,KAAc;QACrB,uBAAA,IAAI,qCAAgB,CAAC,KAAK,GAAG,KAAK,CAAC;IACrC,CAAC;IAED,UAAU,CAAC,GAAG,IAAuC;QACnD,uBAAA,IAAI,oCAAe,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,SAAS,CACb,GAAG,IAAsC;QAEzC,uBAAA,IAAI,mCAAc,CAAC,KAAK,EAAE,CAAC;QAC3B,OAAO,MAAM,uBAAA,IAAI,mCAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,eAAe,CAAC,GAAG,IAA6C;QAC9D,uBAAA,IAAI,mCAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
@@ -7927,7 +7927,7 @@
|
|
7927
7927
|
"format": "esm"
|
7928
7928
|
},
|
7929
7929
|
"library/src/client/dispatcher/events.ts": {
|
7930
|
-
"bytes":
|
7930
|
+
"bytes": 2139,
|
7931
7931
|
"imports": [],
|
7932
7932
|
"format": "esm"
|
7933
7933
|
},
|
@@ -8992,7 +8992,7 @@
|
|
8992
8992
|
"imports": [],
|
8993
8993
|
"exports": [],
|
8994
8994
|
"inputs": {},
|
8995
|
-
"bytes":
|
8995
|
+
"bytes": 6492493
|
8996
8996
|
},
|
8997
8997
|
"dist/devvit-custom-post.min.js": {
|
8998
8998
|
"imports": [
|