@snap/camera-kit 1.11.0 → 1.12.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/README.md +1 -1
- package/dist/CameraKit.d.ts +1 -0
- package/dist/CameraKit.d.ts.map +1 -1
- package/dist/configuration.d.ts +9 -9
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +4 -2
- package/dist/configuration.js.map +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lens-core-module/generated-types.d.ts +7 -1
- package/dist/lens-core-module/generated-types.d.ts.map +1 -1
- package/dist/lens-core-module/generated-types.js.map +1 -1
- package/dist/lensCoreWasmVersions.js +3 -3
- package/dist/lensCoreWasmVersions.js.map +1 -1
- package/dist/logger/logger.d.ts +45 -9
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.js +21 -1
- package/dist/logger/logger.js.map +1 -1
- package/dist/logger/registerLogEntriesSubscriber.d.ts.map +1 -1
- package/dist/logger/registerLogEntriesSubscriber.js +2 -15
- package/dist/logger/registerLogEntriesSubscriber.js.map +1 -1
- package/dist/metrics/businessEventsReporter.js +1 -1
- package/dist/metrics/businessEventsReporter.js.map +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/CameraKit.html +2 -2
- package/docs/html/classes/CameraKitSession.html +2 -2
- package/docs/html/classes/CameraKitSource.html +2 -2
- package/docs/html/classes/LensPerformanceMeasurement.html +2 -2
- package/docs/html/classes/LensPerformanceMetrics.html +2 -2
- package/docs/html/classes/LensRepository.html +2 -2
- package/docs/html/classes/Transform2D.html +2 -2
- package/docs/html/classes/TypedCustomEvent.html +2 -2
- package/docs/html/classes/TypedEventTarget.html +2 -2
- package/docs/html/enums/Lens_CameraFacing.html +2 -2
- package/docs/html/functions/bootstrapCameraKit.html +2 -2
- package/docs/html/functions/createExtension.html +2 -2
- package/docs/html/functions/createImageSource.html +2 -2
- package/docs/html/functions/createMediaStreamSource.html +2 -2
- package/docs/html/functions/createVideoSource.html +2 -2
- package/docs/html/functions/estimateLensPerformance.html +2 -2
- package/docs/html/functions/filePickerFactory.html +2 -2
- package/docs/html/functions/getExtensionRequestContext.html +2 -2
- package/docs/html/functions/lensSourcesFactory.html +2 -2
- package/docs/html/functions/remoteApiServicesFactory.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +3 -3
- package/docs/html/interfaces/BitmojiUserInfo.html +2 -2
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +9 -9
- package/docs/html/interfaces/CameraKitDeviceOptions.html +2 -2
- package/docs/html/interfaces/CameraKitSourceInfo.html +2 -2
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +2 -2
- package/docs/html/interfaces/ComputedFrameMetrics.html +2 -2
- package/docs/html/interfaces/CreateSessionOptions.html +2 -2
- package/docs/html/interfaces/EstimatedLensPerformance.html +2 -2
- package/docs/html/interfaces/Font.html +2 -2
- package/docs/html/interfaces/FriendUserInfo.html +2 -2
- package/docs/html/interfaces/FunctionSourceOptions.html +2 -2
- package/docs/html/interfaces/Keyboard.html +2 -2
- package/docs/html/interfaces/KeyboardActiveEvent.html +2 -2
- package/docs/html/interfaces/Lens.html +2 -2
- package/docs/html/interfaces/LensCreator.html +2 -2
- package/docs/html/interfaces/LensHttpRequest.html +2 -2
- package/docs/html/interfaces/LensLaunchData.html +2 -2
- package/docs/html/interfaces/LensSource.html +2 -2
- package/docs/html/interfaces/LensUserData.html +2 -2
- package/docs/html/interfaces/LoadAssetRequest.html +2 -2
- package/docs/html/interfaces/MediaStreamSourceOptions.html +2 -2
- package/docs/html/interfaces/Preview.html +2 -2
- package/docs/html/interfaces/RemoteApiRequest.html +2 -2
- package/docs/html/interfaces/RemoteApiResponse.html +2 -2
- package/docs/html/interfaces/RemoteApiService.html +2 -2
- package/docs/html/interfaces/ScreenRegion.html +2 -2
- package/docs/html/interfaces/Snapcode.html +2 -2
- package/docs/html/interfaces/UriCancelRequest.html +2 -2
- package/docs/html/interfaces/UriRequest.html +2 -2
- package/docs/html/interfaces/UriResponse.html +2 -2
- package/docs/html/interfaces/VideoSourceOptions.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/ArgumentValidationError.html +2 -2
- package/docs/html/types/AssetLoader.html +2 -2
- package/docs/html/types/AssetResponse.html +1 -1
- package/docs/html/types/AssetTiming.html +2 -2
- package/docs/html/types/BenchmarkError.html +1 -1
- package/docs/html/types/BootstrapError.html +2 -2
- package/docs/html/types/CacheKeyNotFoundError.html +1 -1
- package/docs/html/types/CameraKitSessionEventListener.html +2 -2
- package/docs/html/types/CameraKitSessionEvents.html +2 -2
- package/docs/html/types/CameraKitSourceError.html +1 -1
- package/docs/html/types/ConfigurationError.html +2 -2
- package/docs/html/types/FetchHandler.html +1 -1
- package/docs/html/types/FilePicker.html +2 -2
- package/docs/html/types/FilePickerOptions.html +2 -2
- package/docs/html/types/FilePickerResult.html +2 -2
- package/docs/html/types/KeyboardEventListener.html +2 -2
- package/docs/html/types/KeyboardEvents.html +2 -2
- package/docs/html/types/LegalError.html +1 -1
- package/docs/html/types/LensAbortError.html +2 -2
- package/docs/html/types/LensAssetError.html +2 -2
- package/docs/html/types/LensContentValidationError.html +1 -1
- package/docs/html/types/LensError.html +1 -1
- package/docs/html/types/LensExecutionError.html +2 -2
- package/docs/html/types/LensHttpHandler.html +2 -2
- package/docs/html/types/LensImagePickerError.html +2 -2
- package/docs/html/types/LensLaunchParams.html +2 -2
- package/docs/html/types/LensMetricsEvents.html +2 -2
- package/docs/html/types/LensPerformanceCluster.html +1 -1
- package/docs/html/types/LensView.html +2 -2
- package/docs/html/types/LensWait.html +2 -2
- package/docs/html/types/LogLevel.html +11 -0
- package/docs/html/types/Logger.html +5 -0
- package/docs/html/types/Matrix.html +2 -2
- package/docs/html/types/PersistentStoreError.html +2 -2
- package/docs/html/types/PlatformNotSupportedError.html +2 -2
- package/docs/html/types/PublicContainer.html +2 -2
- package/docs/html/types/PublicServices.html +2 -2
- package/docs/html/types/RemoteApiCancelRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiServices.html +1 -1
- package/docs/html/types/RemoteApiStatus.html +2 -2
- package/docs/html/types/RenderTarget.html +2 -2
- package/docs/html/types/ScreenRegionType.html +2 -2
- package/docs/html/types/ScreenRegions.html +2 -2
- package/docs/html/types/Uri.html +1 -1
- package/docs/html/types/WebGLError.html +1 -1
- package/docs/html/types/Zodiac.html +1 -1
- package/docs/html/variables/extensionRequestContext.html +2 -2
- package/docs/md/README.md +2 -2
- package/docs/md/classes/CameraKit.md +1 -1
- package/docs/md/classes/CameraKitSession.md +1 -1
- package/docs/md/classes/CameraKitSource.md +1 -1
- package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
- package/docs/md/classes/LensPerformanceMetrics.md +1 -1
- package/docs/md/classes/LensRepository.md +1 -1
- package/docs/md/classes/Transform2D.md +1 -1
- package/docs/md/classes/TypedCustomEvent.md +1 -1
- package/docs/md/classes/TypedEventTarget.md +1 -1
- package/docs/md/enumerations/Lens_CameraFacing.md +1 -1
- package/docs/md/functions/bootstrapCameraKit.md +1 -1
- package/docs/md/functions/createExtension.md +1 -1
- package/docs/md/functions/createImageSource.md +1 -1
- package/docs/md/functions/createMediaStreamSource.md +1 -1
- package/docs/md/functions/createVideoSource.md +1 -1
- package/docs/md/functions/estimateLensPerformance.md +1 -1
- package/docs/md/functions/filePickerFactory.md +1 -1
- package/docs/md/functions/getExtensionRequestContext.md +1 -1
- package/docs/md/functions/lensSourcesFactory.md +1 -1
- package/docs/md/functions/remoteApiServicesFactory.md +1 -1
- package/docs/md/globals.md +4 -2
- package/docs/md/interfaces/BitmojiUserInfo.md +1 -1
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +7 -7
- package/docs/md/interfaces/CameraKitDeviceOptions.md +1 -1
- package/docs/md/interfaces/CameraKitSourceInfo.md +1 -1
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
- package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
- package/docs/md/interfaces/CreateSessionOptions.md +1 -1
- package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
- package/docs/md/interfaces/Font.md +1 -1
- package/docs/md/interfaces/FriendUserInfo.md +1 -1
- package/docs/md/interfaces/FunctionSourceOptions.md +1 -1
- package/docs/md/interfaces/Keyboard.md +1 -1
- package/docs/md/interfaces/KeyboardActiveEvent.md +1 -1
- package/docs/md/interfaces/Lens.md +1 -1
- package/docs/md/interfaces/LensCreator.md +1 -1
- package/docs/md/interfaces/LensHttpRequest.md +1 -1
- package/docs/md/interfaces/LensLaunchData.md +1 -1
- package/docs/md/interfaces/LensSource.md +1 -1
- package/docs/md/interfaces/LensUserData.md +1 -1
- package/docs/md/interfaces/LoadAssetRequest.md +1 -1
- package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
- package/docs/md/interfaces/Preview.md +1 -1
- package/docs/md/interfaces/RemoteApiRequest.md +1 -1
- package/docs/md/interfaces/RemoteApiResponse.md +1 -1
- package/docs/md/interfaces/RemoteApiService.md +1 -1
- package/docs/md/interfaces/ScreenRegion.md +1 -1
- package/docs/md/interfaces/Snapcode.md +1 -1
- package/docs/md/interfaces/UriCancelRequest.md +1 -1
- package/docs/md/interfaces/UriRequest.md +1 -1
- package/docs/md/interfaces/UriResponse.md +1 -1
- package/docs/md/interfaces/VideoSourceOptions.md +1 -1
- package/docs/md/type-aliases/ArgumentValidationError.md +1 -1
- package/docs/md/type-aliases/AssetLoader.md +1 -1
- package/docs/md/type-aliases/AssetResponse.md +1 -1
- package/docs/md/type-aliases/AssetTiming.md +1 -1
- package/docs/md/type-aliases/BenchmarkError.md +1 -1
- package/docs/md/type-aliases/BootstrapError.md +1 -1
- package/docs/md/type-aliases/CacheKeyNotFoundError.md +1 -1
- package/docs/md/type-aliases/CameraKitSessionEventListener.md +1 -1
- package/docs/md/type-aliases/CameraKitSessionEvents.md +1 -1
- package/docs/md/type-aliases/CameraKitSourceError.md +1 -1
- package/docs/md/type-aliases/ConfigurationError.md +1 -1
- package/docs/md/type-aliases/FetchHandler.md +1 -1
- package/docs/md/type-aliases/FilePicker.md +1 -1
- package/docs/md/type-aliases/FilePickerOptions.md +1 -1
- package/docs/md/type-aliases/FilePickerResult.md +1 -1
- package/docs/md/type-aliases/KeyboardEventListener.md +1 -1
- package/docs/md/type-aliases/KeyboardEvents.md +1 -1
- package/docs/md/type-aliases/LegalError.md +1 -1
- package/docs/md/type-aliases/LensAbortError.md +1 -1
- package/docs/md/type-aliases/LensAssetError.md +1 -1
- package/docs/md/type-aliases/LensContentValidationError.md +1 -1
- package/docs/md/type-aliases/LensError.md +1 -1
- package/docs/md/type-aliases/LensExecutionError.md +1 -1
- package/docs/md/type-aliases/LensHttpHandler.md +1 -1
- package/docs/md/type-aliases/LensImagePickerError.md +1 -1
- package/docs/md/type-aliases/LensLaunchParams.md +1 -1
- package/docs/md/type-aliases/LensMetricsEvents.md +1 -1
- package/docs/md/type-aliases/LensPerformanceCluster.md +1 -1
- package/docs/md/type-aliases/LensView.md +1 -1
- package/docs/md/type-aliases/LensWait.md +1 -1
- package/docs/md/type-aliases/LogLevel.md +20 -0
- package/docs/md/type-aliases/Logger.md +15 -0
- package/docs/md/type-aliases/Matrix.md +1 -1
- package/docs/md/type-aliases/PersistentStoreError.md +1 -1
- package/docs/md/type-aliases/PlatformNotSupportedError.md +1 -1
- package/docs/md/type-aliases/PublicContainer.md +1 -1
- package/docs/md/type-aliases/PublicServices.md +1 -1
- package/docs/md/type-aliases/RemoteApiCancelRequestHandler.md +1 -1
- package/docs/md/type-aliases/RemoteApiRequestHandler.md +1 -1
- package/docs/md/type-aliases/RemoteApiServices.md +1 -1
- package/docs/md/type-aliases/RemoteApiStatus.md +1 -1
- package/docs/md/type-aliases/RenderTarget.md +1 -1
- package/docs/md/type-aliases/ScreenRegionType.md +1 -1
- package/docs/md/type-aliases/ScreenRegions.md +1 -1
- package/docs/md/type-aliases/Uri.md +1 -1
- package/docs/md/type-aliases/WebGLError.md +1 -1
- package/docs/md/type-aliases/Zodiac.md +1 -1
- package/docs/md/variables/extensionRequestContext.md +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -182,7 +182,7 @@ session.pause("capture");
|
|
|
182
182
|
|
|
183
183
|
## Error Handling
|
|
184
184
|
|
|
185
|
-
Camera Kit Web SDK methods may throw errors, or return rejected Promises -- these are documented in the [API docs](https://kit.snapchat.com/reference/CameraKit/web/1.
|
|
185
|
+
Camera Kit Web SDK methods may throw errors, or return rejected Promises -- these are documented in the [API docs](https://kit.snapchat.com/reference/CameraKit/web/1.12.0/index.html). It is good practice to handle such cases, to provide a good experience to your users.
|
|
186
186
|
|
|
187
187
|
Errors may also occur during Lens rendering. For example, Lenses contain their own scripting, which could throw an error. A rendering error could also occur if a Lens attempts to use a feature that is not supported by Camera Kit Web SDK.
|
|
188
188
|
|
package/dist/CameraKit.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export declare const cameraKitFactory: {
|
|
|
208
208
|
setClientInterfaceRequestHandler: (callback: import("./lens-core-module/generated-types").ClientInterfaceRequestHandler) => void;
|
|
209
209
|
setPreloadedConfiguration: (config: import("./lens-core-module/generated-types").SetPreloadedConfigurationInput) => void;
|
|
210
210
|
setAllSoundsMuted: (config: import("./lens-core-module/generated-types").SetAllSoundsMutedInput) => void;
|
|
211
|
+
setSystemFontFamilies: (config: import("./lens-core-module/generated-types").SetSystemFontFamiliesInput) => void;
|
|
211
212
|
setSystemFonts: (config: import("./lens-core-module/generated-types").SetSystemFontsInput) => void;
|
|
212
213
|
registerBeginWebXrHandler: (handler: ((config: import("./lens-core-module/generated-types").BeginWebXrInput) => void) | null) => void;
|
|
213
214
|
registerEndWebXrHandler: (handler: (() => void) | null) => void;
|
package/dist/CameraKit.d.ts.map
CHAN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AA0B;IAE1C,gBAAgB;;IAEZ;;OAEG;IACM,cAAc,EAAE,cAAc,EAEtB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,CAAC,YAAY,CAAC,EAClC,YAAY,EAAE,mBAAmB,EAClD,UAAU,EAAE,kBAAkB;IAUlC;;;;;;;;;;;;;;;;OAgBG;IAEG,aAAa,CAAC,EAChB,gBAAgB,EAChB,oBAAoB,GACvB,GAAE,oBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA0GxD;;OAEG;IAEG,OAAO;CAMhB;AAED,gBAAgB;AAChB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB5B,CAAC"}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { EstimatedLensPerformance } from "./benchmark/estimateLensPerformanceCluster";
|
|
2
2
|
import type { Lens } from "./lens/Lens";
|
|
3
|
-
import type
|
|
3
|
+
import { type Logger, type LogLevel } from "./logger/logger";
|
|
4
4
|
interface CameraKitRuntimeConfiguration {
|
|
5
5
|
lensPerformance: EstimatedLensPerformance | Promise<EstimatedLensPerformance>;
|
|
6
|
-
logger:
|
|
7
|
-
logLevel:
|
|
6
|
+
logger: Logger;
|
|
7
|
+
logLevel: LogLevel;
|
|
8
8
|
shouldUseWorker: boolean;
|
|
9
9
|
apiHostname: CameraKitApiHostname;
|
|
10
10
|
userAgentFlavor: "release" | "debug";
|
|
@@ -87,17 +87,17 @@ export interface CameraKitBootstrapConfiguration {
|
|
|
87
87
|
* Determine where to print CameraKit log messages. By default no logs will be printed.
|
|
88
88
|
*
|
|
89
89
|
* CameraKit emits log messages to help diagnose and root cause issues that may occur during the development of a
|
|
90
|
-
* host application. The printing of these can be controlled via the following
|
|
91
|
-
*
|
|
92
|
-
* - `
|
|
93
|
-
* -
|
|
90
|
+
* host application. The printing of these can be controlled via the following options:
|
|
91
|
+
* - `"noop"`: log messages are ignored.
|
|
92
|
+
* - `"console"`: log messages are printed to console.
|
|
93
|
+
* - A custom {@link Logger} instance can be provided to integrate with an existing logging system.
|
|
94
94
|
*/
|
|
95
|
-
logger?: "noop" | "console";
|
|
95
|
+
logger?: "noop" | "console" | Logger;
|
|
96
96
|
/**
|
|
97
97
|
* Log only if a logged entry level is greater than or equal to this level. Here is the order of levels:
|
|
98
98
|
* error > warn > log = info > debug. Default value is "info".
|
|
99
99
|
*/
|
|
100
|
-
logLevel?:
|
|
100
|
+
logLevel?: LogLevel;
|
|
101
101
|
/**
|
|
102
102
|
* Some lenses may decide to modify their behavior based on the performance of the current environment. If you are
|
|
103
103
|
* using such lenses, providing an estimation of lens performance may lead to better user experience (especially on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAG3F,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAG3F,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAyB,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AA2BpF,U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C,EAAE,QAAQ,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,eAAe,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAE/E;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAEpD;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,GAAG,+BAA+B,CAAC;AAErG,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAelD,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,kBAAmB,+BAA+B;;;;CA2BjG,CAAC"}
|
package/dist/configuration.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Injectable } from "@snap/ts-inject";
|
|
2
2
|
import { copyDefinedProperties } from "./common/copyDefinedProperties";
|
|
3
3
|
import { getConfigurationOverrides } from "./configurationOverrides";
|
|
4
|
+
import { mapLogger, noopLogger } from "./logger/logger";
|
|
4
5
|
const defaultConfiguration = {
|
|
5
6
|
lensPerformance: { cluster: 0, benchmarks: [], webglRendererInfo: "unknown" },
|
|
6
|
-
logger:
|
|
7
|
+
logger: noopLogger,
|
|
7
8
|
logLevel: "info",
|
|
8
9
|
shouldUseWorker: true,
|
|
9
10
|
apiHostname: "camera-kit-api.snapar.com",
|
|
@@ -22,11 +23,12 @@ export const createCameraKitConfigurationFactory = (configuration) => {
|
|
|
22
23
|
console.warn("Configuration overrides applied", overrides);
|
|
23
24
|
}
|
|
24
25
|
return Injectable(configurationToken, () => {
|
|
26
|
+
var _a;
|
|
25
27
|
const safeConfig = Object.assign(Object.assign({}, configuration), { lensPerformance: configuration.lensPerformance instanceof Promise
|
|
26
28
|
?
|
|
27
29
|
configuration.lensPerformance.catch(() => defaultConfiguration.lensPerformance)
|
|
28
30
|
: configuration.lensPerformance });
|
|
29
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, defaultConfiguration), { shouldUseWorker: isHandledAppleDevice() ? false : defaultConfiguration.shouldUseWorker }), copyDefinedProperties(safeConfig)), copyDefinedProperties(overrides !== null && overrides !== void 0 ? overrides : {}));
|
|
31
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, defaultConfiguration), { shouldUseWorker: isHandledAppleDevice() ? false : defaultConfiguration.shouldUseWorker }), copyDefinedProperties(safeConfig)), copyDefinedProperties(overrides !== null && overrides !== void 0 ? overrides : {})), { logger: mapLogger((_a = safeConfig.logger) !== null && _a !== void 0 ? _a : overrides === null || overrides === void 0 ? void 0 : overrides.logger) });
|
|
30
32
|
});
|
|
31
33
|
};
|
|
32
34
|
//# sourceMappingURL=configuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAerE,MAAM,oBAAoB,GAAmF;IAIzG,eAAe,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE;IAC7E,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,2BAA2B;IACxC,eAAe,EAAE,SAAS;IAC1B,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,iBAAiB;CAC5C,CAAC;AAwOF,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAKlD,SAAS,oBAAoB;IAIzB,OAAO,CACH,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC3C,CAAC,SAAS,CAAC,QAAQ,KAAK,UAAU,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAC,CACtE,CAAC;AACN,CAAC;AAGD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,aAA8C,EAAE,EAAE;IAElG,MAAM,SAAS,GAAG,yBAAyB,EAAE,CAAC;IAC9C,IAAI,SAAS,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;KAC9D;IACD,OAAO,UAAU,CAAC,kBAAkB,EAAE,GAA2B,EAAE;QAG/D,MAAM,UAAU,mCACT,aAAa,KAChB,eAAe,EACX,aAAa,CAAC,eAAe,YAAY,OAAO;gBAC5C,CAAC;oBACC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,eAAgB,CAAC;gBAClF,CAAC,CAAC,aAAa,CAAC,eAAe,GAC1C,CAAC;QACF,mEACO,oBAAoB,KAGvB,eAAe,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,eAAe,KACnF,qBAAqB,CAAC,UAAU,CAAC,GACjC,qBAAqB,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAC,EAC3C;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["import { Injectable } from \"@snap/ts-inject\";\nimport type { EstimatedLensPerformance } from \"./benchmark/estimateLensPerformanceCluster\";\nimport { copyDefinedProperties } from \"./common/copyDefinedProperties\";\nimport { getConfigurationOverrides } from \"./configurationOverrides\";\nimport type { Lens } from \"./lens/Lens\";\nimport type { LogLevelName } from \"./logger/logger\";\n\n/**\n * From T, pick the set of properties whose values are optional. Create a new type containing only those properties.\n */\ntype PickOptionals<T> = {\n [K in keyof T as T[K] extends Exclude<T[K], undefined> ? never : K]: T[K];\n};\n\n/**\n * Defaults are provided for runtime configuration and any optional bootstrap configuration properties which require\n * defaults.\n */\nconst defaultConfiguration: CameraKitRuntimeConfiguration & PickOptionals<CameraKitBootstrapConfiguration> = {\n // If the applications doesn't provide performance data (e.g. via estimateLensPerformance), we'll use 0 to indicate\n // no performance estimation occurred. This is indicative of typical performance-targeting logic, which often\n // defaults to the lowest-tier experience in the absence of performance cluster data.\n lensPerformance: { cluster: 0, benchmarks: [], webglRendererInfo: \"unknown\" },\n logger: \"noop\",\n logLevel: \"info\",\n shouldUseWorker: true,\n apiHostname: \"camera-kit-api.snapar.com\",\n userAgentFlavor: \"release\",\n fonts: [],\n trustedTypesPolicyName: \"snap-camera-kit\",\n};\n\ninterface CameraKitRuntimeConfiguration {\n lensPerformance: EstimatedLensPerformance | Promise<EstimatedLensPerformance>;\n logger: \"noop\" | \"console\";\n logLevel: LogLevelName;\n shouldUseWorker: boolean;\n apiHostname: CameraKitApiHostname;\n userAgentFlavor: \"release\" | \"debug\";\n fonts: Font[];\n lensHttpHandler?: LensHttpHandler;\n trustedTypesPolicyName: string;\n}\n\nexport type CameraKitApiHostname = \"camera-kit-api.snapar.com\" | \"api-kit.snapchat.com\";\n\n/**\n * Represents a font to be used by Camera Kit for text rendering.\n */\nexport interface Font {\n /**\n * A unique name for the font.\n */\n name: string;\n\n /**\n * A buffer containing the font data (e.g., the contents of a `.ttf` file).\n */\n data: ArrayBuffer;\n}\n\n/**\n * Represents context for an HTTP request made by a Lens.\n *\n * This interface provides detailed information about the request, such as its identifier,\n * method, data payload, headers, and associated Lens object.\n */\nexport interface LensHttpRequest {\n /**\n * The URL of the HTTP request.\n */\n url: string;\n\n /**\n * A unique identifier for the HTTP request.\n */\n identifier: string;\n\n /**\n * The HTTP method of the request (e.g., GET, POST, PUT, DELETE).\n */\n method: string;\n\n /**\n * The raw data payload for the HTTP request, represented as an `ArrayBuffer`.\n */\n data: ArrayBuffer;\n\n /**\n * The headers included in the HTTP request.\n */\n headers: Record<string, string>;\n\n /**\n * The {@link Lens} that initiated this request.\n */\n lens: Lens;\n}\n\n/**\n * A handler function for customizing HTTP requests made by a Lens.\n *\n * This function is called whenever a Lens makes an HTTP request.\n * It allows you to modify the request or response, integrate custom HTTP libraries,\n * add authentication, or log request details.\n *\n * @param url - The URL for the HTTP request.\n * @param init - The initial configuration for the HTTP request, following the Fetch API's `RequestInit`.\n * @param lensRequest - Additional context about the Lens-specific request.\n * @returns A Promise resolving to the HTTP response (`Response`).\n */\nexport type LensHttpHandler = (url: string, init: RequestInit, lensRequest: LensHttpRequest) => Promise<Response>;\n\n/**\n * Configuration which must be provided when calling {@link bootstrapCameraKit}. These values are used to create various\n * CameraKit components.\n *\n * @category Bootstrapping and Configuration\n */\nexport interface CameraKitBootstrapConfiguration {\n /**\n * Long-lived token granting your application access to CameraKit APIs. This is found in the SnapKit Dev Portal,\n * where it's called the API Token.\n */\n apiToken: string;\n\n /**\n * Determine where to print CameraKit log messages. By default no logs will be printed.\n *\n * CameraKit emits log messages to help diagnose and root cause issues that may occur during the development of a\n * host application. The printing of these can be controlled via the following\n * options:\n * - `noop`: log messages are ignored.\n * - `console`: log messages are printed to console.\n */\n logger?: \"noop\" | \"console\";\n\n /**\n * Log only if a logged entry level is greater than or equal to this level. Here is the order of levels:\n * error > warn > log = info > debug. Default value is \"info\".\n */\n logLevel?: LogLevelName;\n\n /**\n * Some lenses may decide to modify their behavior based on the performance of the current environment. If you are\n * using such lenses, providing an estimation of lens performance may lead to better user experience (especially on\n * low-performance devices).\n *\n * Running the {@link estimateLensPerformance} function will run benchmarks and estimate an appropriate lens\n * performance cluster (i.e. a performance rating) based on the current environment.\n *\n * Lower cluster = worse expected performance capability.\n *\n * @example\n * ```ts\n * import { bootstrapCameraKit, estimateLensPerformance } from '@snap/camera-kit`\n *\n * const cameraKit = await bootstrapCameraKit({\n * apiToken: '...',\n * lensPerformance: estimateLensPerformance(),\n * })\n * ```\n */\n lensPerformance?: EstimatedLensPerformance | Promise<EstimatedLensPerformance>;\n\n /**\n * In recommended production deployments, the WebAssembly assets required by CameraKit will be downloaded from an\n * optimized CDN. But sometimes (e.g. during development or within a CI pipeline), it may be necessary to download\n * these assets from somewhere else.\n *\n * This configuration option allows the application to specify URLs to be used for both the WebAssembly and JS glue\n * file that are used to run and interact with CameraKit's rendering engine.\n */\n lensCoreOverrideUrls?: { wasm: string; js: string };\n\n /**\n * In recommended production deployments, the WebAssembly assets required by CameraKit will be downloaded from an\n * optimized CDN. But sometimes during development or within a CI pipeline, it may be necessary to download these\n * assets from somewhere else. With a provided `wasmEndpointOverride`, asset URLs will be automatically generated\n * based on this root endpoint.\n */\n wasmEndpointOverride?: string;\n\n /**\n * Applications may optionally provide a unique identifier called analyticsId. This ID would enable Camera Kit to\n * improve data reporting and accuracy and to better support potential needs related to an application's lens and\n * user analytics.\n */\n analyticsId?: string;\n\n /**\n * An array of fonts to be used by Camera Kit for text rendering.\n *\n * Lenses usually have their own font assets, but emojis are often not embedded.\n * As a result, you may need to provide additional fonts (e.g., an emoji font) to ensure all glyphs render\n * correctly.\n *\n * @example\n * fonts: [\n * {\n * name: 'EmojiFont',\n * data: emojiFontArrayBuffer, // Your emoji font data goes here\n * },\n * ]\n */\n fonts?: Font[];\n\n /**\n * An optional custom HTTP handler for requests made by a Lens.\n *\n * This handler allows you to intercept and customize the behavior of HTTP requests,\n * such as adding authentication headers, logging request details, or replacing the default\n * HTTP library used by the Lens system.\n *\n * If not specified, the Lens system will use a default HTTP implementation.\n *\n * @example\n * Here is an example of how to configure a custom `LensHttpHandler` to add an authentication token:\n *\n * ```typescript\n * const customLensHttpHandler: LensHttpHandler = async (url, init, lensRequest) => {\n * // Add an authentication token to the headers\n * const sessionToken = await getAuthToken();\n * const updatedInit = {\n * ...init,\n * headers: {\n * ...init.headers,\n * 'Authorization': `Bearer ${sessionToken}`,\n * },\n * };\n *\n * // Log the request details for debugging\n * console.log(`Requesting ${lensRequest.url} from lens: ${lensRequest.lens.name}`);\n *\n * // Use fetch to perform the HTTP request\n * return fetch(url, updatedInit);\n * };\n *\n * const cameraKit = bootstrapCameraKit({\n * apiToken,\n * lensHttpHandler: customLensHttpHandler,\n * });\n * ```\n */\n lensHttpHandler?: LensHttpHandler;\n\n /**\n * The name of the Trusted Types policy to use when loading scripts.\n * Defaults to \"snap-camera-kit\".\n */\n trustedTypesPolicyName?: string;\n}\n\n/**\n * This type represents the result of merging user-supplied config with default config -- as such, it has no nullable\n * fields, making it a more convenient type for other components to use.\n *\n * @internal\n */\nexport type CameraKitConfiguration = CameraKitRuntimeConfiguration & CameraKitBootstrapConfiguration;\n\n/** @internal */\nexport const configurationToken = \"configuration\";\n\n/**\n * Returns true if given browser is iPhone, iPad or iPod.\n */\nfunction isHandledAppleDevice() {\n // We use the same approach LC uses:\n // eslint-disable-next-line max-len\n // https://github.sc-corp.net/Snapchat/LensCore/blob/285ac47cad7fe5268f38d1bab82d51b7b19d6b48/Src/PlatformSpecific/WebAssembly/WebEnvironmentInfo.cpp#L81\n return (\n /iPad|iPhone|iPod/.test(navigator.platform) ||\n (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 2)\n );\n}\n\n/** @internal */\nexport const createCameraKitConfigurationFactory = (configuration: CameraKitBootstrapConfiguration) => {\n // always leave debug mode warning about overrides in console\n const overrides = getConfigurationOverrides();\n if (overrides) {\n console.warn(\"Configuration overrides applied\", overrides);\n }\n return Injectable(configurationToken, (): CameraKitConfiguration => {\n // We'll ensure that we handle errors on any Promises passed as config values, otherwise we either must\n // handle them separately wherever they're used, or rejections would go unhandled.\n const safeConfig: CameraKitBootstrapConfiguration = {\n ...configuration,\n lensPerformance:\n configuration.lensPerformance instanceof Promise\n ? // Safety: defaultConfiguration.lensPerformance is defined (it's hardcoded above).\n configuration.lensPerformance.catch(() => defaultConfiguration.lensPerformance!)\n : configuration.lensPerformance,\n };\n return {\n ...defaultConfiguration,\n // TODO: Safari 17 has an issue with offscreen canvas which results in stuttering effect on iOS.\n // Once Safari has that fixed, we should remove this check, see https://jira.sc-corp.net/browse/CAMKIT-5985\n shouldUseWorker: isHandledAppleDevice() ? false : defaultConfiguration.shouldUseWorker,\n ...copyDefinedProperties(safeConfig),\n ...copyDefinedProperties(overrides ?? {}),\n };\n });\n};\n"]}
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,UAAU,EAA8B,MAAM,iBAAiB,CAAC;AAapF,MAAM,oBAAoB,GAAmF;IAIzG,eAAe,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE;IAC7E,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,2BAA2B;IACxC,eAAe,EAAE,SAAS;IAC1B,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,iBAAiB;CAC5C,CAAC;AAwOF,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAKlD,SAAS,oBAAoB;IAIzB,OAAO,CACH,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC3C,CAAC,SAAS,CAAC,QAAQ,KAAK,UAAU,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAC,CACtE,CAAC;AACN,CAAC;AAGD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,aAA8C,EAAE,EAAE;IAElG,MAAM,SAAS,GAAG,yBAAyB,EAAE,CAAC;IAC9C,IAAI,SAAS,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;KAC9D;IACD,OAAO,UAAU,CAAC,kBAAkB,EAAE,GAA2B,EAAE;;QAG/D,MAAM,UAAU,mCACT,aAAa,KAChB,eAAe,EACX,aAAa,CAAC,eAAe,YAAY,OAAO;gBAC5C,CAAC;oBACC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,eAAgB,CAAC;gBAClF,CAAC,CAAC,aAAa,CAAC,eAAe,GAC1C,CAAC;QACF,iFACO,oBAAoB,KAGvB,eAAe,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,eAAe,KACnF,qBAAqB,CAAC,UAAU,CAAC,GACjC,qBAAqB,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAC,KACzC,MAAM,EAAE,SAAS,CAAC,MAAA,UAAU,CAAC,MAAM,mCAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,CAAC,IAC3D;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["import { Injectable } from \"@snap/ts-inject\";\nimport type { EstimatedLensPerformance } from \"./benchmark/estimateLensPerformanceCluster\";\nimport { copyDefinedProperties } from \"./common/copyDefinedProperties\";\nimport { getConfigurationOverrides } from \"./configurationOverrides\";\nimport type { Lens } from \"./lens/Lens\";\nimport { mapLogger, noopLogger, type Logger, type LogLevel } from \"./logger/logger\";\n\n/**\n * From T, pick the set of properties whose values are optional. Create a new type containing only those properties.\n */\ntype PickOptionals<T> = {\n [K in keyof T as T[K] extends Exclude<T[K], undefined> ? never : K]: T[K];\n};\n\n/**\n * Defaults are provided for runtime configuration and any optional bootstrap configuration properties which require\n * defaults.\n */\nconst defaultConfiguration: CameraKitRuntimeConfiguration & PickOptionals<CameraKitBootstrapConfiguration> = {\n // If the applications doesn't provide performance data (e.g. via estimateLensPerformance), we'll use 0 to indicate\n // no performance estimation occurred. This is indicative of typical performance-targeting logic, which often\n // defaults to the lowest-tier experience in the absence of performance cluster data.\n lensPerformance: { cluster: 0, benchmarks: [], webglRendererInfo: \"unknown\" },\n logger: noopLogger,\n logLevel: \"info\",\n shouldUseWorker: true,\n apiHostname: \"camera-kit-api.snapar.com\",\n userAgentFlavor: \"release\",\n fonts: [],\n trustedTypesPolicyName: \"snap-camera-kit\",\n};\n\ninterface CameraKitRuntimeConfiguration {\n lensPerformance: EstimatedLensPerformance | Promise<EstimatedLensPerformance>;\n logger: Logger;\n logLevel: LogLevel;\n shouldUseWorker: boolean;\n apiHostname: CameraKitApiHostname;\n userAgentFlavor: \"release\" | \"debug\";\n fonts: Font[];\n lensHttpHandler?: LensHttpHandler;\n trustedTypesPolicyName: string;\n}\n\nexport type CameraKitApiHostname = \"camera-kit-api.snapar.com\" | \"api-kit.snapchat.com\";\n\n/**\n * Represents a font to be used by Camera Kit for text rendering.\n */\nexport interface Font {\n /**\n * A unique name for the font.\n */\n name: string;\n\n /**\n * A buffer containing the font data (e.g., the contents of a `.ttf` file).\n */\n data: ArrayBuffer;\n}\n\n/**\n * Represents context for an HTTP request made by a Lens.\n *\n * This interface provides detailed information about the request, such as its identifier,\n * method, data payload, headers, and associated Lens object.\n */\nexport interface LensHttpRequest {\n /**\n * The URL of the HTTP request.\n */\n url: string;\n\n /**\n * A unique identifier for the HTTP request.\n */\n identifier: string;\n\n /**\n * The HTTP method of the request (e.g., GET, POST, PUT, DELETE).\n */\n method: string;\n\n /**\n * The raw data payload for the HTTP request, represented as an `ArrayBuffer`.\n */\n data: ArrayBuffer;\n\n /**\n * The headers included in the HTTP request.\n */\n headers: Record<string, string>;\n\n /**\n * The {@link Lens} that initiated this request.\n */\n lens: Lens;\n}\n\n/**\n * A handler function for customizing HTTP requests made by a Lens.\n *\n * This function is called whenever a Lens makes an HTTP request.\n * It allows you to modify the request or response, integrate custom HTTP libraries,\n * add authentication, or log request details.\n *\n * @param url - The URL for the HTTP request.\n * @param init - The initial configuration for the HTTP request, following the Fetch API's `RequestInit`.\n * @param lensRequest - Additional context about the Lens-specific request.\n * @returns A Promise resolving to the HTTP response (`Response`).\n */\nexport type LensHttpHandler = (url: string, init: RequestInit, lensRequest: LensHttpRequest) => Promise<Response>;\n\n/**\n * Configuration which must be provided when calling {@link bootstrapCameraKit}. These values are used to create various\n * CameraKit components.\n *\n * @category Bootstrapping and Configuration\n */\nexport interface CameraKitBootstrapConfiguration {\n /**\n * Long-lived token granting your application access to CameraKit APIs. This is found in the SnapKit Dev Portal,\n * where it's called the API Token.\n */\n apiToken: string;\n\n /**\n * Determine where to print CameraKit log messages. By default no logs will be printed.\n *\n * CameraKit emits log messages to help diagnose and root cause issues that may occur during the development of a\n * host application. The printing of these can be controlled via the following options:\n * - `\"noop\"`: log messages are ignored.\n * - `\"console\"`: log messages are printed to console.\n * - A custom {@link Logger} instance can be provided to integrate with an existing logging system.\n */\n logger?: \"noop\" | \"console\" | Logger;\n\n /**\n * Log only if a logged entry level is greater than or equal to this level. Here is the order of levels:\n * error > warn > log = info > debug. Default value is \"info\".\n */\n logLevel?: LogLevel;\n\n /**\n * Some lenses may decide to modify their behavior based on the performance of the current environment. If you are\n * using such lenses, providing an estimation of lens performance may lead to better user experience (especially on\n * low-performance devices).\n *\n * Running the {@link estimateLensPerformance} function will run benchmarks and estimate an appropriate lens\n * performance cluster (i.e. a performance rating) based on the current environment.\n *\n * Lower cluster = worse expected performance capability.\n *\n * @example\n * ```ts\n * import { bootstrapCameraKit, estimateLensPerformance } from '@snap/camera-kit`\n *\n * const cameraKit = await bootstrapCameraKit({\n * apiToken: '...',\n * lensPerformance: estimateLensPerformance(),\n * })\n * ```\n */\n lensPerformance?: EstimatedLensPerformance | Promise<EstimatedLensPerformance>;\n\n /**\n * In recommended production deployments, the WebAssembly assets required by CameraKit will be downloaded from an\n * optimized CDN. But sometimes (e.g. during development or within a CI pipeline), it may be necessary to download\n * these assets from somewhere else.\n *\n * This configuration option allows the application to specify URLs to be used for both the WebAssembly and JS glue\n * file that are used to run and interact with CameraKit's rendering engine.\n */\n lensCoreOverrideUrls?: { wasm: string; js: string };\n\n /**\n * In recommended production deployments, the WebAssembly assets required by CameraKit will be downloaded from an\n * optimized CDN. But sometimes during development or within a CI pipeline, it may be necessary to download these\n * assets from somewhere else. With a provided `wasmEndpointOverride`, asset URLs will be automatically generated\n * based on this root endpoint.\n */\n wasmEndpointOverride?: string;\n\n /**\n * Applications may optionally provide a unique identifier called analyticsId. This ID would enable Camera Kit to\n * improve data reporting and accuracy and to better support potential needs related to an application's lens and\n * user analytics.\n */\n analyticsId?: string;\n\n /**\n * An array of fonts to be used by Camera Kit for text rendering.\n *\n * Lenses usually have their own font assets, but emojis are often not embedded.\n * As a result, you may need to provide additional fonts (e.g., an emoji font) to ensure all glyphs render\n * correctly.\n *\n * @example\n * fonts: [\n * {\n * name: 'EmojiFont',\n * data: emojiFontArrayBuffer, // Your emoji font data goes here\n * },\n * ]\n */\n fonts?: Font[];\n\n /**\n * An optional custom HTTP handler for requests made by a Lens.\n *\n * This handler allows you to intercept and customize the behavior of HTTP requests,\n * such as adding authentication headers, logging request details, or replacing the default\n * HTTP library used by the Lens system.\n *\n * If not specified, the Lens system will use a default HTTP implementation.\n *\n * @example\n * Here is an example of how to configure a custom `LensHttpHandler` to add an authentication token:\n *\n * ```typescript\n * const customLensHttpHandler: LensHttpHandler = async (url, init, lensRequest) => {\n * // Add an authentication token to the headers\n * const sessionToken = await getAuthToken();\n * const updatedInit = {\n * ...init,\n * headers: {\n * ...init.headers,\n * 'Authorization': `Bearer ${sessionToken}`,\n * },\n * };\n *\n * // Log the request details for debugging\n * console.log(`Requesting ${lensRequest.url} from lens: ${lensRequest.lens.name}`);\n *\n * // Use fetch to perform the HTTP request\n * return fetch(url, updatedInit);\n * };\n *\n * const cameraKit = bootstrapCameraKit({\n * apiToken,\n * lensHttpHandler: customLensHttpHandler,\n * });\n * ```\n */\n lensHttpHandler?: LensHttpHandler;\n\n /**\n * The name of the Trusted Types policy to use when loading scripts.\n * Defaults to \"snap-camera-kit\".\n */\n trustedTypesPolicyName?: string;\n}\n\n/**\n * This type represents the result of merging user-supplied config with default config -- as such, it has no nullable\n * fields, making it a more convenient type for other components to use.\n *\n * @internal\n */\nexport type CameraKitConfiguration = CameraKitRuntimeConfiguration & CameraKitBootstrapConfiguration;\n\n/** @internal */\nexport const configurationToken = \"configuration\";\n\n/**\n * Returns true if given browser is iPhone, iPad or iPod.\n */\nfunction isHandledAppleDevice() {\n // We use the same approach LC uses:\n // eslint-disable-next-line max-len\n // https://github.sc-corp.net/Snapchat/LensCore/blob/285ac47cad7fe5268f38d1bab82d51b7b19d6b48/Src/PlatformSpecific/WebAssembly/WebEnvironmentInfo.cpp#L81\n return (\n /iPad|iPhone|iPod/.test(navigator.platform) ||\n (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 2)\n );\n}\n\n/** @internal */\nexport const createCameraKitConfigurationFactory = (configuration: CameraKitBootstrapConfiguration) => {\n // always leave debug mode warning about overrides in console\n const overrides = getConfigurationOverrides();\n if (overrides) {\n console.warn(\"Configuration overrides applied\", overrides);\n }\n return Injectable(configurationToken, (): CameraKitConfiguration => {\n // We'll ensure that we handle errors on any Promises passed as config values, otherwise we either must\n // handle them separately wherever they're used, or rejections would go unhandled.\n const safeConfig: CameraKitBootstrapConfiguration = {\n ...configuration,\n lensPerformance:\n configuration.lensPerformance instanceof Promise\n ? // Safety: defaultConfiguration.lensPerformance is defined (it's hardcoded above).\n configuration.lensPerformance.catch(() => defaultConfiguration.lensPerformance!)\n : configuration.lensPerformance,\n };\n return {\n ...defaultConfiguration,\n // TODO: Safari 17 has an issue with offscreen canvas which results in stuttering effect on iOS.\n // Once Safari has that fixed, we should remove this check, see https://jira.sc-corp.net/browse/CAMKIT-5985\n shouldUseWorker: isHandledAppleDevice() ? false : defaultConfiguration.shouldUseWorker,\n ...copyDefinedProperties(safeConfig),\n ...copyDefinedProperties(overrides ?? {}),\n logger: mapLogger(safeConfig.logger ?? overrides?.logger),\n };\n });\n};\n"]}
|
package/dist/environment.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default { PACKAGE_VERSION: "1.
|
|
1
|
+
export default { PACKAGE_VERSION: "1.12.0" };
|
|
2
2
|
//# sourceMappingURL=environment.js.map
|
package/dist/environment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["export default { PACKAGE_VERSION: \"1.
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["export default { PACKAGE_VERSION: \"1.12.0\" };\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -42,4 +42,5 @@ export { LensCore } from "./lens-core-module/lensCore";
|
|
|
42
42
|
export { FilePickerOptions, FilePickerResult, FilePicker, filePickerFactory } from "./lens-client-interface/filePicker";
|
|
43
43
|
export { userDataAccessResolverFactory, UserDataAccessResolver } from "./lens/userDataAccessResolver";
|
|
44
44
|
export { geoDataProviderFactory, GeoDataProvider, GeoData, WeatherData, HourlyWeatherForecast, } from "./geo/geoDataProvider";
|
|
45
|
+
export { Logger, LogLevel } from "./logger/logger";
|
|
45
46
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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keyboard, KeyboardEvents, KeyboardActiveEvent, KeyboardEventListener } from \"./session/LensKeyboard\";\nexport {\n CameraKitConfiguration,\n CameraKitBootstrapConfiguration,\n configurationToken,\n Font,\n LensHttpRequest,\n LensHttpHandler,\n} from \"./configuration\";\nexport {\n estimateLensPerformance,\n EstimatedLensPerformance,\n LensPerformanceCluster,\n} from \"./benchmark/estimateLensPerformanceCluster\";\nexport { createExtension, bootstrapCameraKit, PublicContainer } from \"./bootstrapCameraKit\";\nexport { PublicServices } from \"./RootServices\";\nexport { extensionRequestContext, getExtensionRequestContext } from \"./extensions/extensionRequestContext\";\nexport { LensSource, lensSourcesFactory } from \"./lens/LensSource\";\nexport {\n Uri,\n UriRequest,\n UriResponse,\n UriCancelRequest,\n UriHandler,\n UriHandlers,\n uriHandlersFactory,\n} from \"./uri-handlers/UriHandlers\";\nexport {\n RemoteApiCancelRequestHandler,\n RemoteApiRequest,\n RemoteApiRequestHandler,\n RemoteApiResponse,\n RemoteApiService,\n RemoteApiServices,\n RemoteApiStatus,\n remoteApiServicesFactory,\n} from \"./uri-handlers/internal-handlers/remoteApiUriHandler\";\nexport { CameraKit, CreateSessionOptions, LensMetricsEvents } from \"./CameraKit\";\nexport { externalMetricsSubjectFactory } from \"./clients/metricsClient\";\nexport { Count } from \"./metrics/operational/Count\";\nexport { Histogram } from \"./metrics/operational/Histogram\";\nexport { Metric } from \"./metrics/operational/Metric\";\nexport { Timer } from \"./metrics/operational/Timer\";\nexport { LensView } from \"./metrics/reporters/reportLensView\";\nexport { LensWait } from \"./metrics/reporters/reportLensWait\";\nexport { Lens, toPublicLens, Snapcode, Preview, Lens_CameraFacing, LensCreator } from \"./lens/Lens\";\nexport { AssetTiming, LensRepository } from \"./lens/LensRepository\";\nexport {\n LensLaunchData,\n LensUserData,\n BitmojiUserInfo,\n FriendUserInfo,\n LensLaunchParams,\n Zodiac,\n} from \"./lens/LensLaunchData\";\nexport { AssetLoader, LoadAssetRequest, AssetResponse } from \"./lens/assets/LensAssetRepository\";\nexport { defaultFetchHandlerFactory, FetchHandler } from \"./handlers/defaultFetchHandler\";\nexport { remoteMediaAssetLoaderFactory } from \"./lens/assets/remoteMediaAssetLoaderFactory\";\nexport {\n CameraKitSource,\n CameraKitSourceInfo,\n CameraKitDeviceOptions,\n CameraKitSourceSubscriber,\n} from \"./media-sources/CameraKitSource\";\nexport { createMediaStreamSource, MediaStreamSourceOptions } from \"./media-sources/MediaStreamSource\";\nexport {\n createFunctionSource,\n FrameFormat,\n FrameInput,\n FrameOutput,\n FunctionSourceOptions,\n MediaSourceFunction,\n} from \"./media-sources/FunctionSource\";\nexport { createVideoSource, VideoSourceOptions } from \"./media-sources/VideoSource\";\nexport { createImageSource } from \"./media-sources/ImageSource\";\nexport { RenderTarget, CameraKitSession } from \"./session/CameraKitSession\";\nexport { ScreenRegionType, ScreenRegion, ScreenRegions } from \"./session/screenRegions\";\nexport { CameraKitSessionEvents, CameraKitSessionEventListener } from \"./session/CameraKitSessionEvents\";\nexport { Transform2D, Matrix } from \"./transforms/Transform2D\";\nexport * from \"./namedErrors\";\nexport { LensPerformanceMeasurement, ComputedFrameMetrics } from \"./session/LensPerformanceMeasurement\";\nexport { LensPerformanceMetrics } from \"./session/LensPerformanceMetrics\";\nexport { TypedCustomEvent } from \"./events/TypedCustomEvent\";\nexport { TypedEventTarget } from \"./events/TypedEventTarget\";\nexport { namedError } from \"./namedErrors\";\nexport { Any } from \"./generated-proto/pb_schema/google/protobuf/any\";\nexport { LensCore } from \"./lens-core-module/lensCore\";\n\nexport { FilePickerOptions, FilePickerResult, FilePicker, filePickerFactory } from \"./lens-client-interface/filePicker\";\n\nexport { userDataAccessResolverFactory, UserDataAccessResolver } from \"./lens/userDataAccessResolver\";\n\nexport {\n geoDataProviderFactory,\n GeoDataProvider,\n GeoData,\n WeatherData,\n HourlyWeatherForecast,\n} from \"./geo/geoDataProvider\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[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AiB,EAAsB,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAgB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG5E,OAAO,EAAE,WAAW,EAAU,MAAM,0BAA0B,CAAC;AAC/D,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,0BAA0B,EAAwB,MAAM,sCAAsC,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,iDAAiD,CAAC;AAGtE,OAAO,EAAmD,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAExH,OAAO,EAAE,6BAA6B,EAA0B,MAAM,+BAA+B,CAAC;AAEtG,OAAO,EACH,sBAAsB,GAKzB,MAAM,uBAAuB,CAAC","sourcesContent":["export { Container, Injectable, InjectableCompat, ConcatInjectable, PartialContainer } from \"@snap/ts-inject\";\n\nexport { Keyboard, KeyboardEvents, KeyboardActiveEvent, KeyboardEventListener } from \"./session/LensKeyboard\";\nexport {\n CameraKitConfiguration,\n CameraKitBootstrapConfiguration,\n configurationToken,\n Font,\n LensHttpRequest,\n LensHttpHandler,\n} from \"./configuration\";\nexport {\n estimateLensPerformance,\n EstimatedLensPerformance,\n LensPerformanceCluster,\n} from \"./benchmark/estimateLensPerformanceCluster\";\nexport { createExtension, bootstrapCameraKit, PublicContainer } from \"./bootstrapCameraKit\";\nexport { PublicServices } from \"./RootServices\";\nexport { extensionRequestContext, getExtensionRequestContext } from \"./extensions/extensionRequestContext\";\nexport { LensSource, lensSourcesFactory } from \"./lens/LensSource\";\nexport {\n Uri,\n UriRequest,\n UriResponse,\n UriCancelRequest,\n UriHandler,\n UriHandlers,\n uriHandlersFactory,\n} from \"./uri-handlers/UriHandlers\";\nexport {\n RemoteApiCancelRequestHandler,\n RemoteApiRequest,\n RemoteApiRequestHandler,\n RemoteApiResponse,\n RemoteApiService,\n RemoteApiServices,\n RemoteApiStatus,\n remoteApiServicesFactory,\n} from \"./uri-handlers/internal-handlers/remoteApiUriHandler\";\nexport { CameraKit, CreateSessionOptions, LensMetricsEvents } from \"./CameraKit\";\nexport { externalMetricsSubjectFactory } from \"./clients/metricsClient\";\nexport { Count } from \"./metrics/operational/Count\";\nexport { Histogram } from \"./metrics/operational/Histogram\";\nexport { Metric } from \"./metrics/operational/Metric\";\nexport { Timer } from \"./metrics/operational/Timer\";\nexport { LensView } from \"./metrics/reporters/reportLensView\";\nexport { LensWait } from \"./metrics/reporters/reportLensWait\";\nexport { Lens, toPublicLens, Snapcode, Preview, Lens_CameraFacing, LensCreator } from \"./lens/Lens\";\nexport { AssetTiming, LensRepository } from \"./lens/LensRepository\";\nexport {\n LensLaunchData,\n LensUserData,\n BitmojiUserInfo,\n FriendUserInfo,\n LensLaunchParams,\n Zodiac,\n} from \"./lens/LensLaunchData\";\nexport { AssetLoader, LoadAssetRequest, AssetResponse } from \"./lens/assets/LensAssetRepository\";\nexport { defaultFetchHandlerFactory, FetchHandler } from \"./handlers/defaultFetchHandler\";\nexport { remoteMediaAssetLoaderFactory } from \"./lens/assets/remoteMediaAssetLoaderFactory\";\nexport {\n CameraKitSource,\n CameraKitSourceInfo,\n CameraKitDeviceOptions,\n CameraKitSourceSubscriber,\n} from \"./media-sources/CameraKitSource\";\nexport { createMediaStreamSource, MediaStreamSourceOptions } from \"./media-sources/MediaStreamSource\";\nexport {\n createFunctionSource,\n FrameFormat,\n FrameInput,\n FrameOutput,\n FunctionSourceOptions,\n MediaSourceFunction,\n} from \"./media-sources/FunctionSource\";\nexport { createVideoSource, VideoSourceOptions } from \"./media-sources/VideoSource\";\nexport { createImageSource } from \"./media-sources/ImageSource\";\nexport { RenderTarget, CameraKitSession } from \"./session/CameraKitSession\";\nexport { ScreenRegionType, ScreenRegion, ScreenRegions } from \"./session/screenRegions\";\nexport { CameraKitSessionEvents, CameraKitSessionEventListener } from \"./session/CameraKitSessionEvents\";\nexport { Transform2D, Matrix } from \"./transforms/Transform2D\";\nexport * from \"./namedErrors\";\nexport { LensPerformanceMeasurement, ComputedFrameMetrics } from \"./session/LensPerformanceMeasurement\";\nexport { LensPerformanceMetrics } from \"./session/LensPerformanceMetrics\";\nexport { TypedCustomEvent } from \"./events/TypedCustomEvent\";\nexport { TypedEventTarget } from \"./events/TypedEventTarget\";\nexport { namedError } from \"./namedErrors\";\nexport { Any } from \"./generated-proto/pb_schema/google/protobuf/any\";\nexport { LensCore } from \"./lens-core-module/lensCore\";\n\nexport { FilePickerOptions, FilePickerResult, FilePicker, filePickerFactory } from \"./lens-client-interface/filePicker\";\n\nexport { userDataAccessResolverFactory, UserDataAccessResolver } from \"./lens/userDataAccessResolver\";\n\nexport {\n geoDataProviderFactory,\n GeoDataProvider,\n GeoData,\n WeatherData,\n HourlyWeatherForecast,\n} from \"./geo/geoDataProvider\";\n\nexport { Logger, LogLevel } from \"./logger/logger\";\n"]}
|
|
@@ -358,6 +358,12 @@ export interface SetAudioParametersInput {
|
|
|
358
358
|
export interface SystemFont {
|
|
359
359
|
name: string;
|
|
360
360
|
data: Uint8Array | ArrayBuffer;
|
|
361
|
+
weight?: number;
|
|
362
|
+
italic?: boolean;
|
|
363
|
+
}
|
|
364
|
+
export type SystemFontFamily = SystemFont[];
|
|
365
|
+
export interface SetSystemFontFamiliesInput {
|
|
366
|
+
fontFamilies: SystemFontFamily[];
|
|
361
367
|
}
|
|
362
368
|
export interface SetSystemFontsInput {
|
|
363
369
|
fonts: SystemFont[];
|
|
@@ -377,7 +383,6 @@ export interface BeginWebXrInput {
|
|
|
377
383
|
export interface InitialEmscriptenModule {
|
|
378
384
|
mainScriptUrlOrBlob: string;
|
|
379
385
|
compiledModule?: WebAssembly.Module;
|
|
380
|
-
pthreadWorkerScriptUrl?: string;
|
|
381
386
|
instantiateWasm?: (importObject: WebAssembly.Imports, receiveInstance: ReceiveInstanceCallback) => void;
|
|
382
387
|
print?: (text: string) => void;
|
|
383
388
|
printErr?: (text: string) => void;
|
|
@@ -532,6 +537,7 @@ export interface LensCoreModule extends InitialEmscriptenModule {
|
|
|
532
537
|
setPreloadedConfiguration: (config: SetPreloadedConfigurationInput) => void;
|
|
533
538
|
setAllSoundsMuted: (config: SetAllSoundsMutedInput) => void;
|
|
534
539
|
setDeviceClass: (config: SetDeviceClassInput) => void;
|
|
540
|
+
setSystemFontFamilies: (config: SetSystemFontFamiliesInput) => void;
|
|
535
541
|
setSystemFonts: (config: SetSystemFontsInput) => void;
|
|
536
542
|
setAudioParameters: (config: SetAudioParametersInput) => void;
|
|
537
543
|
processAudioSampleBuffer: (config: ProcessAudioSampleBufferInput) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.d.ts","sourceRoot":"","sources":["../../src/lens-core-module/generated-types.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,sCAAsC,GAAG,0BAA0B,CAAC;AAErG,MAAM,MAAM,4BAA4B,GAAG,CAAC,eAAe,EAAE,eAAe,KAAK,IAAI,CAAC;AAEtF,MAAM,MAAM,iCAAiC,GAAG,CAAC,qBAAqB,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAEvG,MAAM,MAAM,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AC5D,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACtD,qBAAqB,EAAE,CAAC,MAAM,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACpE,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACtD,kBAAkB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC9D,wBAAwB,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAC;IAC1E,yBAAyB,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACzF,uBAAuB,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAChE,WAAW,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAChE,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACtD,wBAAwB,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACpE,gBAAgB,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC1D;AAED,OAAO,CAAC,MAAM,CAAC;IAQX,SAAS,kBAAkB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,uBAAuB,GAAG,cAAc,CAAC,CAAC;CACnH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../src/lens-core-module/generated-types.ts"],"names":[],"mappings":"","sourcesContent":["export type DefaultEventHandler = (...data: any[]) => void;\n\nexport type DefaultErrorHandler = (err: LensCoreError) => void;\n\nexport type LensCoreEnumValue = { value: number };\n\nexport type GetOutputCanvasesOutput = Record<number, HTMLCanvasElement>;\n\nexport type SetRenderSizeInput = SetRenderSizeMatchInputResolutionInput | SetRenderSizeExplicitInput;\n\nexport type SetRemoteAssetsProviderInput = (assetDescriptor: AssetDescriptor) => void;\n\nexport type SetRemoteAssetsUploadHandlerInput = (assetUploadDescriptor: AssetUploadDescriptor) => void;\n\nexport type ContentType =\n | \"text/plain\"\n | \"text/html\"\n | \"application/json\"\n | \"application/octet-stream\"\n | \"application/x-protobuf\"\n | \"application/grpc\";\n\nexport type SavePersistentStoreCallback = (id: string, data: ArrayBuffer) => void;\n\nexport type ShowHintCallback = (lensId: string, hintId: string) => void;\n\nexport type HideHintCallback = (lensId: string) => void;\n\nexport type ReceiveInstanceCallback = (instance: WebAssembly.Instance, module: WebAssembly.Module) => void;\n\nexport type AssetType = LensCoreEnumValue;\n\nexport type CanvasType = LensCoreEnumValue;\n\nexport type RenderLoopMode = LensCoreEnumValue;\n\nexport type LensApiVisibility = LensCoreEnumValue;\n\nexport type DeviceClass = LensCoreEnumValue;\n\nexport type UserDataAccess = LensCoreEnumValue;\n\nexport type InterfaceControl = LensCoreEnumValue;\n\nexport type InterfaceAction = LensCoreEnumValue;\n\nexport type ExternalMediaOrientation = LensCoreEnumValue;\n\nexport type ErrorType = LensCoreEnumValue;\n\nexport type Uri = `${string}://${string}`;\n\nexport type Dimensions = { width: number; height: number };\n\nexport type Size2D = { width: number; height: number };\n\nexport type Vec2D = { x: number; y: number };\n\nexport type Rect = { origin: Vec2D; size: Size2D };\n\nexport interface ClearAllLensesInput {\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface OnFrameProcessedParam {\n processingTimeMs: number;\n}\n\nexport interface XrCapabilities {\n sixDofSupported: boolean;\n sceneDepthSupported: boolean;\n}\n\nexport interface OnTurnOnParam {\n needsAudioInput: boolean;\n}\n\nexport type TurnOnEventHandler = (arg: OnTurnOnParam) => void;\n\nexport interface InitializeInput {\n canvas?: HTMLCanvasElement | string;\n outputResolution?: Dimensions;\n showFpsPanel?: boolean;\n shouldUseWorker?: boolean;\n onFrameProcessed?: (arg: OnFrameProcessedParam) => void;\n xrCapabilities?: XrCapabilities;\n onFailure?: DefaultErrorHandler;\n onSuccess?: DefaultEventHandler;\n exceptionHandler?: (error: LensCoreError) => void;\n trustedTypes?: {\n policyName: string;\n getTrustedUrls: () => string[];\n trustUrl: (url: string) => string | TrustedScriptURL;\n };\n}\n\nexport interface PlayCanvasInput {\n type: CanvasType;\n onReady?: () => void;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface PauseCanvasInput {\n type: CanvasType;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetFpsLimitInput {\n fps: number;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetInputTransformInput {\n matrix: Float32Array | ArrayBuffer;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetOnFrameProcessedInput {\n onFrameProcessed: (arg: OnFrameProcessedParam) => void;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetRenderSizeMatchInputResolutionInput {\n mode: \"matchInputResolution\";\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetRenderSizeExplicitInput {\n mode: \"explicit\";\n target: Dimensions;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetRenderLoopInput {\n mode: RenderLoopMode;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface TeardownInput {\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultEventHandler;\n}\n\nexport interface ReplayTrackingDataInput {\n buffer: Uint8Array | ArrayBuffer;\n}\n\nexport type CameraType = LensCoreEnumValue;\n\nexport type LensAnalyticsEvent = {\n interactionName: string;\n interactionValue: string;\n count: number;\n sequence: number;\n cameraType: CameraType;\n};\n\nexport type CreatorAnalyticsEvent = {\n interactionName: string;\n count: number;\n};\n\nexport type LensAnalytics = {\n lensId: string;\n lensEvents: Array<LensAnalyticsEvent>;\n creatorEvents: Array<CreatorAnalyticsEvent>;\n};\n\nexport type AnalyticsEventsHandler = (lensAnalytics: LensAnalytics) => void;\n\nexport interface UseMediaElementInput {\n media?: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | MediaStream | ImageBitmap | VideoFrame;\n requestWebcam?: boolean;\n startOnFrontCamera?: boolean;\n mirrorMedia?: boolean;\n pauseExistingMedia?: boolean;\n autoplayNewMedia?: boolean;\n autoplayPreviewCanvas?: boolean;\n useManualFrameProcessing?: boolean;\n replayTrackingData?: ReplayTrackingDataInput;\n onFailure?: DefaultErrorHandler;\n onSuccess?: DefaultEventHandler;\n}\n\nexport interface UriListener {\n handleRequest: (request: UriRequest) => void;\n cancelRequest?: (request: UriCancelRequest) => void;\n}\n\nexport interface UriRequest {\n uri: Uri;\n identifier: string;\n method: \"GET\" | \"POST\";\n contentType: ContentType;\n data: ArrayBuffer;\n metadata: Record<string, string>;\n}\n\nexport interface UriResponse {\n code: number;\n description: string;\n contentType: ContentType;\n data: ArrayBuffer;\n metadata?: Record<string, string>;\n}\n\nexport interface UriCancelRequest {\n uri: Uri;\n requestId: string;\n}\n\nexport interface LensDescriptor {\n lensId: string;\n lensChecksum: string;\n lensPath?: string;\n lensDataBuffer?: Uint8Array | ArrayBuffer;\n onTurnOn?: TurnOnEventHandler;\n onTurnOff?: DefaultEventHandler;\n onFirstFrameProcessed?: DefaultEventHandler;\n onResourcesLoaded?: DefaultEventHandler;\n launchData?: Uint8Array | ArrayBuffer;\n apiVisibility?: LensApiVisibility;\n publicApiUserDataAccess?: UserDataAccess;\n}\n\nexport interface AddLensInput extends LensDescriptor {\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface ReplaceLensesInput {\n lenses: LensDescriptor | Array<LensDescriptor>;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface RemoveLensInput {\n lensId: string;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface AssetDescriptor {\n assetId: string;\n assetType: AssetType;\n avatarId?: string;\n lensId?: string;\n encryptionKey?: ArrayBuffer;\n}\n\nexport interface AssetUploadDescriptor {\n requestId: number;\n assetId: string;\n assetType: AssetType;\n lensId: string;\n assetBuffer: ArrayBuffer;\n encryptionKey?: ArrayBuffer;\n encryptionIv?: ArrayBuffer;\n assetBatchId?: string;\n}\n\nexport interface ProvideRemoteAssetsResponseInput {\n assetId: string;\n assetType: AssetType;\n assetBuffer?: ArrayBuffer;\n assetChecksum?: string;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface ProvideRemoteAssetsUploadResponseInput {\n requestId: number;\n success: boolean;\n assetUrl?: string;\n assetUploadMetadata?: ArrayBuffer;\n}\n\nexport interface XRInput {\n layer: XRWebGLLayer;\n binding: XRWebGLBinding;\n frame: XRFrame;\n referenceSpace: XRReferenceSpace;\n}\n\nexport interface ProcessFrameInput {\n inputFrame: ImageBitmap | HTMLCanvasElement | HTMLImageElement | VideoFrame | XRInput;\n timestampMillis: number;\n renderTimestampMillis?: number;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface LensCoreError extends Error {\n otherExceptions?: Array<Error>;\n cause: { type: ErrorType; metadata?: any };\n}\n\nexport interface ImageToYuvBufferInput {\n image: Uint8Array | ArrayBuffer | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap;\n width: number;\n height: number;\n outputBuffer?: Uint8Array | ArrayBuffer;\n onSuccess: (buffer: ArrayBuffer) => void;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface YuvBufferToBitmapInput {\n buffer: Uint8Array | ArrayBuffer;\n width: number;\n height: number;\n targetWidth?: number;\n targetHeight?: number;\n preserveCanvasState?: boolean;\n allowBufferTransfer?: boolean;\n onSuccess: (bitmap: ImageBitmap) => void;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetInterfaceControlVisibilityInput {\n lensId: string;\n interfaceControl: InterfaceControl;\n visibility: boolean;\n}\n\nexport interface HandleClientInterfaceActionInput {\n lensId: string;\n interfaceControl: InterfaceControl;\n interfaceAction: InterfaceAction;\n}\n\nexport interface ProvideExternalImageInput {\n data: Uint8Array | ArrayBuffer;\n orientation: ExternalMediaOrientation;\n faceRects?: Array<Rect>;\n}\n\nexport interface ProvideExternalVideoInput {\n data: Uint8Array | ArrayBuffer;\n orientation: ExternalMediaOrientation;\n relStartPosition?: number;\n relEndPosition?: number;\n volume?: number;\n}\n\nexport interface ScreenDimmingRequestInput {\n lensId: string;\n enabled: boolean;\n}\n\nexport type ScreenDimmingRequestHandler = (config: ScreenDimmingRequestInput) => void;\n\nexport interface ClientInterfaceData {\n HeaderId?: string;\n DescriptionId?: string;\n FaceFilteringEnabled?: \"0\" | \"1\";\n FaceFilteringMultipleFaces?: \"0\" | \"1\";\n ImageEnabled?: \"0\" | \"1\";\n VideoEnabled?: \"0\" | \"1\";\n}\n\nexport interface ClientInterfaceRequestInput {\n lensId: string;\n interfaceControl: InterfaceControl;\n interfaceAction: InterfaceAction;\n data: ClientInterfaceData;\n}\n\nexport type ClientInterfaceRequestHandler = (config: ClientInterfaceRequestInput) => void;\n\nexport interface LensCoreConfig {\n configId: string;\n value:\n | { stringValue: string }\n | { boolValue: boolean }\n | { intValue: number }\n | { longValue: number }\n | { floatValue: number }\n | {\n anyValue: {\n typeUrl: string;\n value: Uint8Array | ArrayBuffer;\n };\n };\n}\n\nexport type SetPreloadedConfigurationInput = Array<LensCoreConfig>;\n\nexport interface ConfigurationRequest {\n configId: string;\n}\n\nexport type ConfigurationProvider = (configurationRequest: ConfigurationRequest) => Promise<LensCoreConfig | undefined>;\n\nexport interface SetAllSoundsMutedInput {\n muted: boolean;\n fade: boolean;\n}\n\nexport interface SetDeviceClassInput {\n deviceClass: DeviceClass;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetAudioParametersInput {\n parameters: {\n numChannels?: number;\n sampleRate?: number;\n };\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SystemFont {\n name: string;\n data: Uint8Array | ArrayBuffer;\n}\n\nexport interface SetSystemFontsInput {\n fonts: SystemFont[];\n}\n\nexport interface ProcessAudioSampleBufferInput {\n input: Float32Array[] | ArrayBuffer[];\n output?: Float32Array[] | ArrayBuffer[];\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface BeginWebXrInput {\n glContext: WebGL2RenderingContext;\n requestConfig: {\n requiredFeatures?: string[];\n };\n}\n\nexport interface InitialEmscriptenModule {\n mainScriptUrlOrBlob: string;\n compiledModule?: WebAssembly.Module;\n pthreadWorkerScriptUrl?: string;\n instantiateWasm?: (importObject: WebAssembly.Imports, receiveInstance: ReceiveInstanceCallback) => void;\n print?: (text: string) => void;\n printErr?: (text: string) => void;\n}\n\nexport interface SetGpuIndexInput {\n gpuIndex: number;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport type SetGeoDataProviderInput = () => void;\n\nexport interface HourlyWeatherForecast {\n celsius: number;\n fahrenheit: number;\n displayTime: string;\n weatherCondition: string;\n localizedWeatherCondition: string;\n}\n\nexport interface WeatherData {\n locationName: string;\n celsius: number;\n fahrenheit: number;\n hourlyForecasts: HourlyWeatherForecast[];\n}\n\nexport interface GeoData {\n weather: WeatherData;\n}\n\nexport interface ProvideGeoDataInput {\n geoData: GeoData;\n}\n\nexport type ScreenRegionType = \"round_button\" | \"top_bar\" | \"keyboard\" | \"safe_render\" | \"capture_exit_button\";\nexport interface ScreenRegion {\n normalizedRect: Rect;\n}\nexport interface ScreenRegionsInput {\n regions: {\n [K in ScreenRegionType]?: ScreenRegion;\n };\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface LensCoreModule extends InitialEmscriptenModule {\n AssetType: {\n RemoteMediaByUrl: AssetType;\n DeviceDependent: AssetType;\n Static: AssetType;\n URL: AssetType;\n BitmojiDynamicAsset: AssetType;\n };\n\n CanvasType: {\n None: CanvasType;\n Preview: CanvasType;\n Capture: CanvasType;\n All: CanvasType;\n };\n\n CameraType: {\n NotInitialized: CameraType;\n Front: CameraType;\n Back: CameraType;\n };\n\n LensApiVisibility: {\n Dev: LensApiVisibility;\n Private: LensApiVisibility;\n Public: LensApiVisibility;\n };\n\n DeviceClass: {\n Undefined: DeviceClass;\n BarelyWorking: DeviceClass;\n LowEnd: DeviceClass;\n MidEnd: DeviceClass;\n HighEnd: DeviceClass;\n };\n\n RenderLoopMode: {\n SetTimeout: RenderLoopMode;\n RequestAnimationFrame: RenderLoopMode;\n };\n\n UserDataAccess: {\n Restricted: UserDataAccess;\n Unrestricted: UserDataAccess;\n };\n\n InterfaceControl: {\n ToggleCameraButton: InterfaceControl;\n ImagePicker: InterfaceControl;\n Hint: InterfaceControl;\n Modal: InterfaceControl;\n LinkBitmojiCallToAction: InterfaceControl;\n SnapButton: InterfaceControl;\n PlayButton: InterfaceControl;\n All: InterfaceControl;\n ExitFullScreenButton: InterfaceControl;\n MemoriesButton: InterfaceControl;\n LensAttachmentButton: InterfaceControl;\n ReverseCamera: InterfaceControl;\n };\n\n InterfaceAction: {\n EnableHighlight: InterfaceAction;\n DisableHighlight: InterfaceAction;\n Trigger: InterfaceAction;\n Show: InterfaceAction;\n Hide: InterfaceAction;\n };\n\n ExternalMediaOrientation: {\n CW0: ExternalMediaOrientation;\n CW90: ExternalMediaOrientation;\n CW180: ExternalMediaOrientation;\n CW270: ExternalMediaOrientation;\n };\n\n ErrorType: {\n LensDeserialization: ErrorType;\n Validation: ErrorType;\n Uncategorized: ErrorType;\n LensExecution: ErrorType;\n Abort: ErrorType;\n Uninitialized: ErrorType;\n };\n\n initialize: (config: InitializeInput) => void;\n processFrame: (config: ProcessFrameInput) => void;\n addLens: (config: AddLensInput) => void;\n replaceLenses: (config: ReplaceLensesInput) => void;\n removeLens: (config: RemoveLensInput) => void;\n clearAllLenses: (config: ClearAllLensesInput) => void;\n teardown: (config: TeardownInput) => void;\n useMediaElement: (config: UseMediaElementInput) => void;\n setFPSLimit: (config: SetFpsLimitInput) => void;\n setRenderLoopMode: (config: SetRenderLoopInput) => void;\n getCoreVersion: () => number;\n playCanvas: (input: PlayCanvasInput) => void;\n pauseCanvas: (input: PauseCanvasInput) => void;\n getOutputCanvases: () => GetOutputCanvasesOutput;\n setRenderSize: (input: SetRenderSizeInput) => void;\n startProfiling: () => void;\n endProfiling: () => void;\n setInputTransform: (config: SetInputTransformInput) => void;\n registerUriListener: (scheme: string, route: string, listener: UriListener) => void;\n provideUriResponse: (requestId: string, response: UriResponse) => void;\n setAnalyticsEventsHandler: (handler: AnalyticsEventsHandler) => void;\n setRemoteAssetsProvider: (provider: SetRemoteAssetsProviderInput) => void;\n provideRemoteAssetsResponse: (assetResponse: ProvideRemoteAssetsResponseInput) => void;\n setRemoteAssetsUploadHandler: (provider: SetRemoteAssetsUploadHandlerInput) => void;\n provideRemoteAssetsUploadResponse: (assetResponse: ProvideRemoteAssetsUploadResponseInput) => void;\n registerShowHintCallback: (callback: ShowHintCallback) => void;\n registerHideHintCallback: (callback: HideHintCallback) => void;\n registerSavePersistentStoreCallback: (callback: SavePersistentStoreCallback) => void;\n imageToYuvBuffer: (config: ImageToYuvBufferInput) => void;\n yuvBufferToBitmap: (config: YuvBufferToBitmapInput) => void;\n setOnFrameProcessedCallback: (config: SetOnFrameProcessedInput) => void;\n setInterfaceControlVisibility: (config: SetInterfaceControlVisibilityInput) => void;\n handleClientInterfaceAction: (config: HandleClientInterfaceActionInput) => void;\n provideExternalImage: (config: ProvideExternalImageInput) => void;\n provideExternalVideo: (config: ProvideExternalVideoInput) => void;\n setScreenDimmingRequestHandler: (callback: ScreenDimmingRequestHandler) => void;\n setClientInterfaceRequestHandler: (callback: ClientInterfaceRequestHandler) => void;\n setPreloadedConfiguration: (config: SetPreloadedConfigurationInput) => void;\n setAllSoundsMuted: (config: SetAllSoundsMutedInput) => void;\n setDeviceClass: (config: SetDeviceClassInput) => void;\n setSystemFonts: (config: SetSystemFontsInput) => void;\n setAudioParameters: (config: SetAudioParametersInput) => void;\n processAudioSampleBuffer: (config: ProcessAudioSampleBufferInput) => void;\n registerBeginWebXrHandler: (handler: ((config: BeginWebXrInput) => void) | null) => void;\n registerEndWebXrHandler: (handler: (() => void) | null) => void;\n setGpuIndex: (config: SetGpuIndexInput) => void;\n setGeoDataProvider: (provider: SetGeoDataProviderInput) => void;\n provideGeoData: (config: ProvideGeoDataInput) => void;\n setConfigurationProvider: (provider: ConfigurationProvider) => void;\n setScreenRegions: (config: ScreenRegionsInput) => void;\n}\n\ndeclare global {\n // This function is provided by the Emscripten glue file and responsible for initialization, will be fullfiled\n // when everything is loaded and it is safe to call compiled functions\n // eslint-disable-next-line max-len\n // https://emscripten.org/docs/getting_started/FAQ.html#how-can-i-tell-when-the-page-is-fully-loaded-and-it-is-safe-to-call-compiled-functions\n // Function is defined by the LensCore web assembly\n // eslint-disable-next-line max-len\n // https://github.sc-corp.net/Snapchat/LensCore/blob/6715da8c877d593e4fe133f4145eb3022204525d/Platforms/WebAssembly/LookserySDK/CMakeLists.txt#L65\n function createLensesModule(module: InitialEmscriptenModule): Promise<InitialEmscriptenModule & LensCoreModule>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../src/lens-core-module/generated-types.ts"],"names":[],"mappings":"","sourcesContent":["export type DefaultEventHandler = (...data: any[]) => void;\n\nexport type DefaultErrorHandler = (err: LensCoreError) => void;\n\nexport type LensCoreEnumValue = { value: number };\n\nexport type GetOutputCanvasesOutput = Record<number, HTMLCanvasElement>;\n\nexport type SetRenderSizeInput = SetRenderSizeMatchInputResolutionInput | SetRenderSizeExplicitInput;\n\nexport type SetRemoteAssetsProviderInput = (assetDescriptor: AssetDescriptor) => void;\n\nexport type SetRemoteAssetsUploadHandlerInput = (assetUploadDescriptor: AssetUploadDescriptor) => void;\n\nexport type ContentType =\n | \"text/plain\"\n | \"text/html\"\n | \"application/json\"\n | \"application/octet-stream\"\n | \"application/x-protobuf\"\n | \"application/grpc\";\n\nexport type SavePersistentStoreCallback = (id: string, data: ArrayBuffer) => void;\n\nexport type ShowHintCallback = (lensId: string, hintId: string) => void;\n\nexport type HideHintCallback = (lensId: string) => void;\n\nexport type ReceiveInstanceCallback = (instance: WebAssembly.Instance, module: WebAssembly.Module) => void;\n\nexport type AssetType = LensCoreEnumValue;\n\nexport type CanvasType = LensCoreEnumValue;\n\nexport type RenderLoopMode = LensCoreEnumValue;\n\nexport type LensApiVisibility = LensCoreEnumValue;\n\nexport type DeviceClass = LensCoreEnumValue;\n\nexport type UserDataAccess = LensCoreEnumValue;\n\nexport type InterfaceControl = LensCoreEnumValue;\n\nexport type InterfaceAction = LensCoreEnumValue;\n\nexport type ExternalMediaOrientation = LensCoreEnumValue;\n\nexport type ErrorType = LensCoreEnumValue;\n\nexport type Uri = `${string}://${string}`;\n\nexport type Dimensions = { width: number; height: number };\n\nexport type Size2D = { width: number; height: number };\n\nexport type Vec2D = { x: number; y: number };\n\nexport type Rect = { origin: Vec2D; size: Size2D };\n\nexport interface ClearAllLensesInput {\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface OnFrameProcessedParam {\n processingTimeMs: number;\n}\n\nexport interface XrCapabilities {\n sixDofSupported: boolean;\n sceneDepthSupported: boolean;\n}\n\nexport interface OnTurnOnParam {\n needsAudioInput: boolean;\n}\n\nexport type TurnOnEventHandler = (arg: OnTurnOnParam) => void;\n\nexport interface InitializeInput {\n canvas?: HTMLCanvasElement | string;\n outputResolution?: Dimensions;\n showFpsPanel?: boolean;\n shouldUseWorker?: boolean;\n onFrameProcessed?: (arg: OnFrameProcessedParam) => void;\n xrCapabilities?: XrCapabilities;\n onFailure?: DefaultErrorHandler;\n onSuccess?: DefaultEventHandler;\n exceptionHandler?: (error: LensCoreError) => void;\n trustedTypes?: {\n policyName: string;\n getTrustedUrls: () => string[];\n trustUrl: (url: string) => string | TrustedScriptURL;\n };\n}\n\nexport interface PlayCanvasInput {\n type: CanvasType;\n onReady?: () => void;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface PauseCanvasInput {\n type: CanvasType;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetFpsLimitInput {\n fps: number;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetInputTransformInput {\n matrix: Float32Array | ArrayBuffer;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetOnFrameProcessedInput {\n onFrameProcessed: (arg: OnFrameProcessedParam) => void;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetRenderSizeMatchInputResolutionInput {\n mode: \"matchInputResolution\";\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetRenderSizeExplicitInput {\n mode: \"explicit\";\n target: Dimensions;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetRenderLoopInput {\n mode: RenderLoopMode;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface TeardownInput {\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultEventHandler;\n}\n\nexport interface ReplayTrackingDataInput {\n buffer: Uint8Array | ArrayBuffer;\n}\n\nexport type CameraType = LensCoreEnumValue;\n\nexport type LensAnalyticsEvent = {\n interactionName: string;\n interactionValue: string;\n count: number;\n sequence: number;\n cameraType: CameraType;\n};\n\nexport type CreatorAnalyticsEvent = {\n interactionName: string;\n count: number;\n};\n\nexport type LensAnalytics = {\n lensId: string;\n lensEvents: Array<LensAnalyticsEvent>;\n creatorEvents: Array<CreatorAnalyticsEvent>;\n};\n\nexport type AnalyticsEventsHandler = (lensAnalytics: LensAnalytics) => void;\n\nexport interface UseMediaElementInput {\n media?: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | MediaStream | ImageBitmap | VideoFrame;\n requestWebcam?: boolean;\n startOnFrontCamera?: boolean;\n mirrorMedia?: boolean;\n pauseExistingMedia?: boolean;\n autoplayNewMedia?: boolean;\n autoplayPreviewCanvas?: boolean;\n useManualFrameProcessing?: boolean;\n replayTrackingData?: ReplayTrackingDataInput;\n onFailure?: DefaultErrorHandler;\n onSuccess?: DefaultEventHandler;\n}\n\nexport interface UriListener {\n handleRequest: (request: UriRequest) => void;\n cancelRequest?: (request: UriCancelRequest) => void;\n}\n\nexport interface UriRequest {\n uri: Uri;\n identifier: string;\n method: \"GET\" | \"POST\";\n contentType: ContentType;\n data: ArrayBuffer;\n metadata: Record<string, string>;\n}\n\nexport interface UriResponse {\n code: number;\n description: string;\n contentType: ContentType;\n data: ArrayBuffer;\n metadata?: Record<string, string>;\n}\n\nexport interface UriCancelRequest {\n uri: Uri;\n requestId: string;\n}\n\nexport interface LensDescriptor {\n lensId: string;\n lensChecksum: string;\n lensPath?: string;\n lensDataBuffer?: Uint8Array | ArrayBuffer;\n onTurnOn?: TurnOnEventHandler;\n onTurnOff?: DefaultEventHandler;\n onFirstFrameProcessed?: DefaultEventHandler;\n onResourcesLoaded?: DefaultEventHandler;\n launchData?: Uint8Array | ArrayBuffer;\n apiVisibility?: LensApiVisibility;\n publicApiUserDataAccess?: UserDataAccess;\n}\n\nexport interface AddLensInput extends LensDescriptor {\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface ReplaceLensesInput {\n lenses: LensDescriptor | Array<LensDescriptor>;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface RemoveLensInput {\n lensId: string;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface AssetDescriptor {\n assetId: string;\n assetType: AssetType;\n avatarId?: string;\n lensId?: string;\n encryptionKey?: ArrayBuffer;\n}\n\nexport interface AssetUploadDescriptor {\n requestId: number;\n assetId: string;\n assetType: AssetType;\n lensId: string;\n assetBuffer: ArrayBuffer;\n encryptionKey?: ArrayBuffer;\n encryptionIv?: ArrayBuffer;\n assetBatchId?: string;\n}\n\nexport interface ProvideRemoteAssetsResponseInput {\n assetId: string;\n assetType: AssetType;\n assetBuffer?: ArrayBuffer;\n assetChecksum?: string;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface ProvideRemoteAssetsUploadResponseInput {\n requestId: number;\n success: boolean;\n assetUrl?: string;\n assetUploadMetadata?: ArrayBuffer;\n}\n\nexport interface XRInput {\n layer: XRWebGLLayer;\n binding: XRWebGLBinding;\n frame: XRFrame;\n referenceSpace: XRReferenceSpace;\n}\n\nexport interface ProcessFrameInput {\n inputFrame: ImageBitmap | HTMLCanvasElement | HTMLImageElement | VideoFrame | XRInput;\n timestampMillis: number;\n renderTimestampMillis?: number;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface LensCoreError extends Error {\n otherExceptions?: Array<Error>;\n cause: { type: ErrorType; metadata?: any };\n}\n\nexport interface ImageToYuvBufferInput {\n image: Uint8Array | ArrayBuffer | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap;\n width: number;\n height: number;\n outputBuffer?: Uint8Array | ArrayBuffer;\n onSuccess: (buffer: ArrayBuffer) => void;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface YuvBufferToBitmapInput {\n buffer: Uint8Array | ArrayBuffer;\n width: number;\n height: number;\n targetWidth?: number;\n targetHeight?: number;\n preserveCanvasState?: boolean;\n allowBufferTransfer?: boolean;\n onSuccess: (bitmap: ImageBitmap) => void;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetInterfaceControlVisibilityInput {\n lensId: string;\n interfaceControl: InterfaceControl;\n visibility: boolean;\n}\n\nexport interface HandleClientInterfaceActionInput {\n lensId: string;\n interfaceControl: InterfaceControl;\n interfaceAction: InterfaceAction;\n}\n\nexport interface ProvideExternalImageInput {\n data: Uint8Array | ArrayBuffer;\n orientation: ExternalMediaOrientation;\n faceRects?: Array<Rect>;\n}\n\nexport interface ProvideExternalVideoInput {\n data: Uint8Array | ArrayBuffer;\n orientation: ExternalMediaOrientation;\n relStartPosition?: number;\n relEndPosition?: number;\n volume?: number;\n}\n\nexport interface ScreenDimmingRequestInput {\n lensId: string;\n enabled: boolean;\n}\n\nexport type ScreenDimmingRequestHandler = (config: ScreenDimmingRequestInput) => void;\n\nexport interface ClientInterfaceData {\n HeaderId?: string;\n DescriptionId?: string;\n FaceFilteringEnabled?: \"0\" | \"1\";\n FaceFilteringMultipleFaces?: \"0\" | \"1\";\n ImageEnabled?: \"0\" | \"1\";\n VideoEnabled?: \"0\" | \"1\";\n}\n\nexport interface ClientInterfaceRequestInput {\n lensId: string;\n interfaceControl: InterfaceControl;\n interfaceAction: InterfaceAction;\n data: ClientInterfaceData;\n}\n\nexport type ClientInterfaceRequestHandler = (config: ClientInterfaceRequestInput) => void;\n\nexport interface LensCoreConfig {\n configId: string;\n value:\n | { stringValue: string }\n | { boolValue: boolean }\n | { intValue: number }\n | { longValue: number }\n | { floatValue: number }\n | {\n anyValue: {\n typeUrl: string;\n value: Uint8Array | ArrayBuffer;\n };\n };\n}\n\nexport type SetPreloadedConfigurationInput = Array<LensCoreConfig>;\n\nexport interface ConfigurationRequest {\n configId: string;\n}\n\nexport type ConfigurationProvider = (configurationRequest: ConfigurationRequest) => Promise<LensCoreConfig | undefined>;\n\nexport interface SetAllSoundsMutedInput {\n muted: boolean;\n fade: boolean;\n}\n\nexport interface SetDeviceClassInput {\n deviceClass: DeviceClass;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SetAudioParametersInput {\n parameters: {\n numChannels?: number;\n sampleRate?: number;\n };\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface SystemFont {\n name: string;\n data: Uint8Array | ArrayBuffer;\n weight?: number;\n italic?: boolean;\n}\n\nexport type SystemFontFamily = SystemFont[];\n\nexport interface SetSystemFontFamiliesInput {\n fontFamilies: SystemFontFamily[];\n}\n\nexport interface SetSystemFontsInput {\n fonts: SystemFont[];\n}\n\nexport interface ProcessAudioSampleBufferInput {\n input: Float32Array[] | ArrayBuffer[];\n output?: Float32Array[] | ArrayBuffer[];\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface BeginWebXrInput {\n glContext: WebGL2RenderingContext;\n requestConfig: {\n requiredFeatures?: string[];\n };\n}\n\nexport interface InitialEmscriptenModule {\n mainScriptUrlOrBlob: string;\n compiledModule?: WebAssembly.Module;\n instantiateWasm?: (importObject: WebAssembly.Imports, receiveInstance: ReceiveInstanceCallback) => void;\n print?: (text: string) => void;\n printErr?: (text: string) => void;\n}\n\nexport interface SetGpuIndexInput {\n gpuIndex: number;\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport type SetGeoDataProviderInput = () => void;\n\nexport interface HourlyWeatherForecast {\n celsius: number;\n fahrenheit: number;\n displayTime: string;\n weatherCondition: string;\n localizedWeatherCondition: string;\n}\n\nexport interface WeatherData {\n locationName: string;\n celsius: number;\n fahrenheit: number;\n hourlyForecasts: HourlyWeatherForecast[];\n}\n\nexport interface GeoData {\n weather: WeatherData;\n}\n\nexport interface ProvideGeoDataInput {\n geoData: GeoData;\n}\n\nexport type ScreenRegionType = \"round_button\" | \"top_bar\" | \"keyboard\" | \"safe_render\" | \"capture_exit_button\";\nexport interface ScreenRegion {\n normalizedRect: Rect;\n}\nexport interface ScreenRegionsInput {\n regions: {\n [K in ScreenRegionType]?: ScreenRegion;\n };\n onSuccess?: DefaultEventHandler;\n onFailure?: DefaultErrorHandler;\n}\n\nexport interface LensCoreModule extends InitialEmscriptenModule {\n AssetType: {\n RemoteMediaByUrl: AssetType;\n DeviceDependent: AssetType;\n Static: AssetType;\n URL: AssetType;\n BitmojiDynamicAsset: AssetType;\n };\n\n CanvasType: {\n None: CanvasType;\n Preview: CanvasType;\n Capture: CanvasType;\n All: CanvasType;\n };\n\n CameraType: {\n NotInitialized: CameraType;\n Front: CameraType;\n Back: CameraType;\n };\n\n LensApiVisibility: {\n Dev: LensApiVisibility;\n Private: LensApiVisibility;\n Public: LensApiVisibility;\n };\n\n DeviceClass: {\n Undefined: DeviceClass;\n BarelyWorking: DeviceClass;\n LowEnd: DeviceClass;\n MidEnd: DeviceClass;\n HighEnd: DeviceClass;\n };\n\n RenderLoopMode: {\n SetTimeout: RenderLoopMode;\n RequestAnimationFrame: RenderLoopMode;\n };\n\n UserDataAccess: {\n Restricted: UserDataAccess;\n Unrestricted: UserDataAccess;\n };\n\n InterfaceControl: {\n ToggleCameraButton: InterfaceControl;\n ImagePicker: InterfaceControl;\n Hint: InterfaceControl;\n Modal: InterfaceControl;\n LinkBitmojiCallToAction: InterfaceControl;\n SnapButton: InterfaceControl;\n PlayButton: InterfaceControl;\n All: InterfaceControl;\n ExitFullScreenButton: InterfaceControl;\n MemoriesButton: InterfaceControl;\n LensAttachmentButton: InterfaceControl;\n ReverseCamera: InterfaceControl;\n };\n\n InterfaceAction: {\n EnableHighlight: InterfaceAction;\n DisableHighlight: InterfaceAction;\n Trigger: InterfaceAction;\n Show: InterfaceAction;\n Hide: InterfaceAction;\n };\n\n ExternalMediaOrientation: {\n CW0: ExternalMediaOrientation;\n CW90: ExternalMediaOrientation;\n CW180: ExternalMediaOrientation;\n CW270: ExternalMediaOrientation;\n };\n\n ErrorType: {\n LensDeserialization: ErrorType;\n Validation: ErrorType;\n Uncategorized: ErrorType;\n LensExecution: ErrorType;\n Abort: ErrorType;\n Uninitialized: ErrorType;\n };\n\n initialize: (config: InitializeInput) => void;\n processFrame: (config: ProcessFrameInput) => void;\n addLens: (config: AddLensInput) => void;\n replaceLenses: (config: ReplaceLensesInput) => void;\n removeLens: (config: RemoveLensInput) => void;\n clearAllLenses: (config: ClearAllLensesInput) => void;\n teardown: (config: TeardownInput) => void;\n useMediaElement: (config: UseMediaElementInput) => void;\n setFPSLimit: (config: SetFpsLimitInput) => void;\n setRenderLoopMode: (config: SetRenderLoopInput) => void;\n getCoreVersion: () => number;\n playCanvas: (input: PlayCanvasInput) => void;\n pauseCanvas: (input: PauseCanvasInput) => void;\n getOutputCanvases: () => GetOutputCanvasesOutput;\n setRenderSize: (input: SetRenderSizeInput) => void;\n startProfiling: () => void;\n endProfiling: () => void;\n setInputTransform: (config: SetInputTransformInput) => void;\n registerUriListener: (scheme: string, route: string, listener: UriListener) => void;\n provideUriResponse: (requestId: string, response: UriResponse) => void;\n setAnalyticsEventsHandler: (handler: AnalyticsEventsHandler) => void;\n setRemoteAssetsProvider: (provider: SetRemoteAssetsProviderInput) => void;\n provideRemoteAssetsResponse: (assetResponse: ProvideRemoteAssetsResponseInput) => void;\n setRemoteAssetsUploadHandler: (provider: SetRemoteAssetsUploadHandlerInput) => void;\n provideRemoteAssetsUploadResponse: (assetResponse: ProvideRemoteAssetsUploadResponseInput) => void;\n registerShowHintCallback: (callback: ShowHintCallback) => void;\n registerHideHintCallback: (callback: HideHintCallback) => void;\n registerSavePersistentStoreCallback: (callback: SavePersistentStoreCallback) => void;\n imageToYuvBuffer: (config: ImageToYuvBufferInput) => void;\n yuvBufferToBitmap: (config: YuvBufferToBitmapInput) => void;\n setOnFrameProcessedCallback: (config: SetOnFrameProcessedInput) => void;\n setInterfaceControlVisibility: (config: SetInterfaceControlVisibilityInput) => void;\n handleClientInterfaceAction: (config: HandleClientInterfaceActionInput) => void;\n provideExternalImage: (config: ProvideExternalImageInput) => void;\n provideExternalVideo: (config: ProvideExternalVideoInput) => void;\n setScreenDimmingRequestHandler: (callback: ScreenDimmingRequestHandler) => void;\n setClientInterfaceRequestHandler: (callback: ClientInterfaceRequestHandler) => void;\n setPreloadedConfiguration: (config: SetPreloadedConfigurationInput) => void;\n setAllSoundsMuted: (config: SetAllSoundsMutedInput) => void;\n setDeviceClass: (config: SetDeviceClassInput) => void;\n setSystemFontFamilies: (config: SetSystemFontFamiliesInput) => void;\n setSystemFonts: (config: SetSystemFontsInput) => void;\n setAudioParameters: (config: SetAudioParametersInput) => void;\n processAudioSampleBuffer: (config: ProcessAudioSampleBufferInput) => void;\n registerBeginWebXrHandler: (handler: ((config: BeginWebXrInput) => void) | null) => void;\n registerEndWebXrHandler: (handler: (() => void) | null) => void;\n setGpuIndex: (config: SetGpuIndexInput) => void;\n setGeoDataProvider: (provider: SetGeoDataProviderInput) => void;\n provideGeoData: (config: ProvideGeoDataInput) => void;\n setConfigurationProvider: (provider: ConfigurationProvider) => void;\n setScreenRegions: (config: ScreenRegionsInput) => void;\n}\n\ndeclare global {\n // This function is provided by the Emscripten glue file and responsible for initialization, will be fullfiled\n // when everything is loaded and it is safe to call compiled functions\n // eslint-disable-next-line max-len\n // https://emscripten.org/docs/getting_started/FAQ.html#how-can-i-tell-when-the-page-is-fully-loaded-and-it-is-safe-to-call-compiled-functions\n // Function is defined by the LensCore web assembly\n // eslint-disable-next-line max-len\n // https://github.sc-corp.net/Snapchat/LensCore/blob/6715da8c877d593e4fe133f4145eb3022204525d/Platforms/WebAssembly/LookserySDK/CMakeLists.txt#L65\n function createLensesModule(module: InitialEmscriptenModule): Promise<InitialEmscriptenModule & LensCoreModule>;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
version: "
|
|
3
|
-
buildNumber: "
|
|
4
|
-
baseUrl: "https://cf-st.sc-cdn.net/d/
|
|
2
|
+
version: "336",
|
|
3
|
+
buildNumber: "6e89b26",
|
|
4
|
+
baseUrl: "https://cf-st.sc-cdn.net/d/f6yM8M2wOJhDq914q9fue?go=IgsKCTIBBEgBUFxgAQ%3D%3D&uc=92",
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=lensCoreWasmVersions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lensCoreWasmVersions.js","sourceRoot":"","sources":["../src/lensCoreWasmVersions.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,oFAAoF;CAChG,CAAC","sourcesContent":["export default {\n version: \"
|
|
1
|
+
{"version":3,"file":"lensCoreWasmVersions.js","sourceRoot":"","sources":["../src/lensCoreWasmVersions.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,oFAAoF;CAChG,CAAC","sourcesContent":["export default {\n version: \"336\",\n buildNumber: \"6e89b26\",\n baseUrl: \"https://cf-st.sc-cdn.net/d/f6yM8M2wOJhDq914q9fue?go=IgsKCTIBBEgBUFxgAQ%3D%3D&uc=92\",\n};\n"]}
|
package/dist/logger/logger.d.ts
CHANGED
|
@@ -3,14 +3,10 @@ import { Subject } from "rxjs";
|
|
|
3
3
|
* This map associates log level names with their corresponding level value.
|
|
4
4
|
* This means that a configured log level will match all log entries with a level value greater than
|
|
5
5
|
* or equal to the configured value.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
6
8
|
*/
|
|
7
|
-
export declare const logLevelMap:
|
|
8
|
-
error: number;
|
|
9
|
-
warn: number;
|
|
10
|
-
log: number;
|
|
11
|
-
info: number;
|
|
12
|
-
debug: number;
|
|
13
|
-
};
|
|
9
|
+
export declare const logLevelMap: Record<LogLevel, number>;
|
|
14
10
|
/**
|
|
15
11
|
* Initializes a new logger subject.
|
|
16
12
|
*
|
|
@@ -18,17 +14,40 @@ export declare const logLevelMap: {
|
|
|
18
14
|
* necessary to avoid sharing the same subject between multiple `CameraKit` instances by calling`resetLogger()`.
|
|
19
15
|
* Also, `resetLogger()` should be called when there is no interest in logged messages.
|
|
20
16
|
* This allows the previous logEntriesSubject to be GCec.
|
|
17
|
+
*
|
|
21
18
|
* @internal
|
|
22
19
|
*/
|
|
23
20
|
export declare function resetLogger(): Subject<LogEntry>;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
24
|
export interface LogEntry {
|
|
25
25
|
time: Date;
|
|
26
26
|
module: string;
|
|
27
27
|
level: keyof Logger;
|
|
28
28
|
messages: any[];
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Defines the available logging levels for the Camera Kit SDK.
|
|
32
|
+
*
|
|
33
|
+
* Possible values are:
|
|
34
|
+
* - `"error"` - Log only errors (most restrictive)
|
|
35
|
+
* - `"warn"` - Log warnings and errors
|
|
36
|
+
* - `"info"` - Log informational messages, warnings, and errors
|
|
37
|
+
* - `"debug"` - Log all messages including debug information (most verbose)
|
|
38
|
+
*
|
|
39
|
+
* When a log level is set, all messages at that level and higher priority levels will be logged.
|
|
40
|
+
* For example, setting the log level to `"warn"` will log warnings and errors, but not info or debug messages.
|
|
41
|
+
*/
|
|
42
|
+
export type LogLevel = "error" | "warn" | "info" | "debug";
|
|
43
|
+
/**
|
|
44
|
+
* A logger interface that provides methods for logging messages at different severity levels.
|
|
45
|
+
*
|
|
46
|
+
* Each method corresponds to a {@link LogLevel} and accepts a message with optional additional parameters.
|
|
47
|
+
* All logged messages are emitted through the internal logging subject and can be consumed by configuring
|
|
48
|
+
* a logger in the Camera Kit configuration.
|
|
49
|
+
*/
|
|
50
|
+
export type Logger = Record<LogLevel, (message?: any, ...optionalParams: any[]) => void>;
|
|
32
51
|
/**
|
|
33
52
|
* Gets logger for a given module.
|
|
34
53
|
*
|
|
@@ -38,4 +57,21 @@ export type Logger = Record<LogLevelName, (message?: any, ...optionalParams: any
|
|
|
38
57
|
* @returns Logger instance.
|
|
39
58
|
*/
|
|
40
59
|
export declare function getLogger(module: string): Logger;
|
|
60
|
+
/**
|
|
61
|
+
* Maps a logger configuration to a Logger instance.
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
*
|
|
65
|
+
* @param logger - Either "noop" for no logging, "console" for console output, or a custom Logger instance
|
|
66
|
+
* @returns A Logger instance
|
|
67
|
+
* @throws Error if the provided logger instance doesn't implement all required methods
|
|
68
|
+
*/
|
|
69
|
+
export declare function mapLogger(logger: undefined | "noop" | "console" | Logger): Logger;
|
|
70
|
+
/**
|
|
71
|
+
* A no-op logger that discards all log messages.
|
|
72
|
+
* Useful when logging should be disabled entirely.
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
export declare const noopLogger: Logger;
|
|
41
77
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAW/B;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAKhD,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,sBAE1B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,MAAM,CAAC;IACpB,QAAQ,EAAE,GAAG,EAAE,CAAC;CACnB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC;AAEzF;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAYhD;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAmBjF;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,MAKxB,CAAC"}
|
package/dist/logger/logger.js
CHANGED
|
@@ -4,7 +4,6 @@ let logEntriesSubject = new Subject();
|
|
|
4
4
|
export const logLevelMap = {
|
|
5
5
|
error: 3,
|
|
6
6
|
warn: 2,
|
|
7
|
-
log: 1,
|
|
8
7
|
info: 1,
|
|
9
8
|
debug: 0,
|
|
10
9
|
};
|
|
@@ -24,4 +23,25 @@ export function getLogger(module) {
|
|
|
24
23
|
return logger;
|
|
25
24
|
}, {});
|
|
26
25
|
}
|
|
26
|
+
export function mapLogger(logger) {
|
|
27
|
+
if (!logger || logger === "noop") {
|
|
28
|
+
return noopLogger;
|
|
29
|
+
}
|
|
30
|
+
if (logger === "console") {
|
|
31
|
+
return console;
|
|
32
|
+
}
|
|
33
|
+
for (const level of Object.keys(logLevelMap)) {
|
|
34
|
+
const logMethod = logger[level];
|
|
35
|
+
if (typeof logMethod !== "function") {
|
|
36
|
+
throw new Error(`Logger method '${level}' is not available on the provided logger instance.`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return logger;
|
|
40
|
+
}
|
|
41
|
+
export const noopLogger = {
|
|
42
|
+
error: () => { },
|
|
43
|
+
warn: () => { },
|
|
44
|
+
info: () => { },
|
|
45
|
+
debug: () => { },
|
|
46
|
+
};
|
|
27
47
|
//# sourceMappingURL=logger.js.map
|