react-native-worklets 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/cpp/worklets/SharedItems/Shareable.cpp +7 -5
- package/README.md +1 -1
- package/package.json +3 -2
- package/src/debug/jsVersion.ts +1 -1
- package/src/memory/serializable.native.ts +3 -4
- package/lib/module/WorkletsModule/NativeWorklets.js +0 -4
- package/lib/module/WorkletsModule/NativeWorklets.js.map +0 -1
- package/lib/module/WorkletsModule/NativeWorklets.native.js +0 -152
- package/lib/module/WorkletsModule/NativeWorklets.native.js.map +0 -1
- package/lib/module/WorkletsModule/workletsModuleProxy.js +0 -4
- package/lib/module/WorkletsModule/workletsModuleProxy.js.map +0 -1
- package/lib/module/bundleMode/metroOverrides.native.js +0 -115
- package/lib/module/bundleMode/metroOverrides.native.js.map +0 -1
- package/lib/module/bundleMode/network.native.js +0 -41
- package/lib/module/bundleMode/network.native.js.map +0 -1
- package/lib/module/callGuard.native.js +0 -30
- package/lib/module/callGuard.native.js.map +0 -1
- package/lib/module/debug/WorkletsError.js +0 -12
- package/lib/module/debug/WorkletsError.js.map +0 -1
- package/lib/module/debug/WorkletsError.native.js +0 -27
- package/lib/module/debug/WorkletsError.native.js.map +0 -1
- package/lib/module/debug/checkCppVersion.js +0 -30
- package/lib/module/debug/checkCppVersion.js.map +0 -1
- package/lib/module/debug/errors.native.js +0 -69
- package/lib/module/debug/errors.native.js.map +0 -1
- package/lib/module/debug/jsVersion.js +0 -9
- package/lib/module/debug/jsVersion.js.map +0 -1
- package/lib/module/debug/logger.js +0 -15
- package/lib/module/debug/logger.js.map +0 -1
- package/lib/module/debug/types.js +0 -2
- package/lib/module/debug/types.js.map +0 -1
- package/lib/module/deprecated.js +0 -27
- package/lib/module/deprecated.js.map +0 -1
- package/lib/module/featureFlags/featureFlags.js +0 -12
- package/lib/module/featureFlags/featureFlags.js.map +0 -1
- package/lib/module/featureFlags/featureFlags.native.js +0 -51
- package/lib/module/featureFlags/featureFlags.native.js.map +0 -1
- package/lib/module/featureFlags/staticFlags.json +0 -5
- package/lib/module/featureFlags/types.js +0 -13
- package/lib/module/featureFlags/types.js.map +0 -1
- package/lib/module/guardImplementation.native.js +0 -17
- package/lib/module/guardImplementation.native.js.map +0 -1
- package/lib/module/index.js +0 -28
- package/lib/module/index.js.map +0 -1
- package/lib/module/initializers/initializers.js +0 -24
- package/lib/module/initializers/initializers.js.map +0 -1
- package/lib/module/initializers/initializers.native.js +0 -174
- package/lib/module/initializers/initializers.native.js.map +0 -1
- package/lib/module/initializers/workletRuntimeEntry.js +0 -6
- package/lib/module/initializers/workletRuntimeEntry.js.map +0 -1
- package/lib/module/initializers/workletRuntimeEntry.native.js +0 -37
- package/lib/module/initializers/workletRuntimeEntry.native.js.map +0 -1
- package/lib/module/memory/bundleUnpacker.native.js +0 -47
- package/lib/module/memory/bundleUnpacker.native.js.map +0 -1
- package/lib/module/memory/customSerializableUnpacker.native.js +0 -18
- package/lib/module/memory/customSerializableUnpacker.native.js.map +0 -1
- package/lib/module/memory/isShareable.js +0 -8
- package/lib/module/memory/isShareable.js.map +0 -1
- package/lib/module/memory/isSynchronizable.js +0 -8
- package/lib/module/memory/isSynchronizable.js.map +0 -1
- package/lib/module/memory/serializable.js +0 -18
- package/lib/module/memory/serializable.js.map +0 -1
- package/lib/module/memory/serializable.native.js +0 -643
- package/lib/module/memory/serializable.native.js.map +0 -1
- package/lib/module/memory/serializableMappingCache.js +0 -11
- package/lib/module/memory/serializableMappingCache.js.map +0 -1
- package/lib/module/memory/serializableMappingCache.native.js +0 -29
- package/lib/module/memory/serializableMappingCache.native.js.map +0 -1
- package/lib/module/memory/shareable.js +0 -28
- package/lib/module/memory/shareable.js.map +0 -1
- package/lib/module/memory/shareable.native.js +0 -53
- package/lib/module/memory/shareable.native.js.map +0 -1
- package/lib/module/memory/shareableGuestUnpacker.native.js +0 -96
- package/lib/module/memory/shareableGuestUnpacker.native.js.map +0 -1
- package/lib/module/memory/shareableHostUnpacker.native.js +0 -18
- package/lib/module/memory/shareableHostUnpacker.native.js.map +0 -1
- package/lib/module/memory/synchronizable.js +0 -7
- package/lib/module/memory/synchronizable.js.map +0 -1
- package/lib/module/memory/synchronizable.native.js +0 -9
- package/lib/module/memory/synchronizable.native.js.map +0 -1
- package/lib/module/memory/synchronizableUnpacker.native.js +0 -42
- package/lib/module/memory/synchronizableUnpacker.native.js.map +0 -1
- package/lib/module/memory/types.js +0 -12
- package/lib/module/memory/types.js.map +0 -1
- package/lib/module/memory/valueUnpacker.native.js +0 -61
- package/lib/module/memory/valueUnpacker.native.js.map +0 -1
- package/lib/module/mock.js +0 -85
- package/lib/module/mock.js.map +0 -1
- package/lib/module/platformChecker.js +0 -8
- package/lib/module/platformChecker.js.map +0 -1
- package/lib/module/platformChecker.native.js +0 -4
- package/lib/module/platformChecker.native.js.map +0 -1
- package/lib/module/privateGlobals.d.js +0 -6
- package/lib/module/privateGlobals.d.js.map +0 -1
- package/lib/module/runLoop/common/setImmediatePolyfill.js +0 -15
- package/lib/module/runLoop/common/setImmediatePolyfill.js.map +0 -1
- package/lib/module/runLoop/common/setIntervalPolyfill.js +0 -26
- package/lib/module/runLoop/common/setIntervalPolyfill.js.map +0 -1
- package/lib/module/runLoop/uiRuntime/mockedRequestAnimationFrame.js +0 -10
- package/lib/module/runLoop/uiRuntime/mockedRequestAnimationFrame.js.map +0 -1
- package/lib/module/runLoop/uiRuntime/requestAnimationFrame.js +0 -63
- package/lib/module/runLoop/uiRuntime/requestAnimationFrame.js.map +0 -1
- package/lib/module/runLoop/uiRuntime/setTimeoutPolyfill.js +0 -32
- package/lib/module/runLoop/uiRuntime/setTimeoutPolyfill.js.map +0 -1
- package/lib/module/runLoop/workletRuntime/index.js +0 -19
- package/lib/module/runLoop/workletRuntime/index.js.map +0 -1
- package/lib/module/runLoop/workletRuntime/queueMicrotask.js +0 -11
- package/lib/module/runLoop/workletRuntime/queueMicrotask.js.map +0 -1
- package/lib/module/runLoop/workletRuntime/requestAnimationFramePolyfill.js +0 -48
- package/lib/module/runLoop/workletRuntime/requestAnimationFramePolyfill.js.map +0 -1
- package/lib/module/runLoop/workletRuntime/setTimeout.js +0 -28
- package/lib/module/runLoop/workletRuntime/setTimeout.js.map +0 -1
- package/lib/module/runLoop/workletRuntime/taskQueue.js +0 -37
- package/lib/module/runLoop/workletRuntime/taskQueue.js.map +0 -1
- package/lib/module/runtimeKind.js +0 -92
- package/lib/module/runtimeKind.js.map +0 -1
- package/lib/module/runtimes.js +0 -33
- package/lib/module/runtimes.js.map +0 -1
- package/lib/module/runtimes.native.js +0 -331
- package/lib/module/runtimes.native.js.map +0 -1
- package/lib/module/specs/NativeWorkletsModule.js +0 -5
- package/lib/module/specs/NativeWorkletsModule.js.map +0 -1
- package/lib/module/specs/index.js +0 -10
- package/lib/module/specs/index.js.map +0 -1
- package/lib/module/threads.js +0 -61
- package/lib/module/threads.js.map +0 -1
- package/lib/module/threads.native.js +0 -290
- package/lib/module/threads.native.js.map +0 -1
- package/lib/module/types.js +0 -5
- package/lib/module/types.js.map +0 -1
- package/lib/module/workletFunction.js +0 -36
- package/lib/module/workletFunction.js.map +0 -1
- package/lib/typescript/WorkletsModule/NativeWorklets.d.ts +0 -4
- package/lib/typescript/WorkletsModule/NativeWorklets.d.ts.map +0 -1
- package/lib/typescript/WorkletsModule/NativeWorklets.native.d.ts +0 -3
- package/lib/typescript/WorkletsModule/NativeWorklets.native.d.ts.map +0 -1
- package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts +0 -45
- package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts.map +0 -1
- package/lib/typescript/bundleMode/metroOverrides.native.d.ts +0 -28
- package/lib/typescript/bundleMode/metroOverrides.native.d.ts.map +0 -1
- package/lib/typescript/bundleMode/network.native.d.ts +0 -7
- package/lib/typescript/bundleMode/network.native.d.ts.map +0 -1
- package/lib/typescript/callGuard.native.d.ts +0 -4
- package/lib/typescript/callGuard.native.d.ts.map +0 -1
- package/lib/typescript/debug/WorkletsError.d.ts +0 -3
- package/lib/typescript/debug/WorkletsError.d.ts.map +0 -1
- package/lib/typescript/debug/WorkletsError.native.d.ts +0 -8
- package/lib/typescript/debug/WorkletsError.native.d.ts.map +0 -1
- package/lib/typescript/debug/checkCppVersion.d.ts +0 -3
- package/lib/typescript/debug/checkCppVersion.d.ts.map +0 -1
- package/lib/typescript/debug/errors.native.d.ts +0 -16
- package/lib/typescript/debug/errors.native.d.ts.map +0 -1
- package/lib/typescript/debug/jsVersion.d.ts +0 -7
- package/lib/typescript/debug/jsVersion.d.ts.map +0 -1
- package/lib/typescript/debug/logger.d.ts +0 -5
- package/lib/typescript/debug/logger.d.ts.map +0 -1
- package/lib/typescript/debug/types.d.ts +0 -9
- package/lib/typescript/debug/types.d.ts.map +0 -1
- package/lib/typescript/deprecated.d.ts +0 -19
- package/lib/typescript/deprecated.d.ts.map +0 -1
- package/lib/typescript/featureFlags/featureFlags.d.ts +0 -5
- package/lib/typescript/featureFlags/featureFlags.d.ts.map +0 -1
- package/lib/typescript/featureFlags/featureFlags.native.d.ts +0 -6
- package/lib/typescript/featureFlags/featureFlags.native.d.ts.map +0 -1
- package/lib/typescript/featureFlags/types.d.ts +0 -21
- package/lib/typescript/featureFlags/types.d.ts.map +0 -1
- package/lib/typescript/guardImplementation.native.d.ts +0 -2
- package/lib/typescript/guardImplementation.native.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -17
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/initializers/initializers.d.ts +0 -2
- package/lib/typescript/initializers/initializers.d.ts.map +0 -1
- package/lib/typescript/initializers/initializers.native.d.ts +0 -18
- package/lib/typescript/initializers/initializers.native.d.ts.map +0 -1
- package/lib/typescript/initializers/workletRuntimeEntry.d.ts +0 -2
- package/lib/typescript/initializers/workletRuntimeEntry.d.ts.map +0 -1
- package/lib/typescript/initializers/workletRuntimeEntry.native.d.ts +0 -14
- package/lib/typescript/initializers/workletRuntimeEntry.native.d.ts.map +0 -1
- package/lib/typescript/memory/bundleUnpacker.native.d.ts +0 -7
- package/lib/typescript/memory/bundleUnpacker.native.d.ts.map +0 -1
- package/lib/typescript/memory/customSerializableUnpacker.native.d.ts +0 -3
- package/lib/typescript/memory/customSerializableUnpacker.native.d.ts.map +0 -1
- package/lib/typescript/memory/isShareable.d.ts +0 -3
- package/lib/typescript/memory/isShareable.d.ts.map +0 -1
- package/lib/typescript/memory/isSynchronizable.d.ts +0 -3
- package/lib/typescript/memory/isSynchronizable.d.ts.map +0 -1
- package/lib/typescript/memory/serializable.d.ts +0 -7
- package/lib/typescript/memory/serializable.d.ts.map +0 -1
- package/lib/typescript/memory/serializable.native.d.ts +0 -37
- package/lib/typescript/memory/serializable.native.d.ts.map +0 -1
- package/lib/typescript/memory/serializableMappingCache.d.ts +0 -6
- package/lib/typescript/memory/serializableMappingCache.d.ts.map +0 -1
- package/lib/typescript/memory/serializableMappingCache.native.d.ts +0 -13
- package/lib/typescript/memory/serializableMappingCache.native.d.ts.map +0 -1
- package/lib/typescript/memory/shareable.d.ts +0 -23
- package/lib/typescript/memory/shareable.d.ts.map +0 -1
- package/lib/typescript/memory/shareable.native.d.ts +0 -23
- package/lib/typescript/memory/shareable.native.d.ts.map +0 -1
- package/lib/typescript/memory/shareableGuestUnpacker.native.d.ts +0 -4
- package/lib/typescript/memory/shareableGuestUnpacker.native.d.ts.map +0 -1
- package/lib/typescript/memory/shareableHostUnpacker.native.d.ts +0 -4
- package/lib/typescript/memory/shareableHostUnpacker.native.d.ts.map +0 -1
- package/lib/typescript/memory/synchronizable.d.ts +0 -3
- package/lib/typescript/memory/synchronizable.d.ts.map +0 -1
- package/lib/typescript/memory/synchronizable.native.d.ts +0 -3
- package/lib/typescript/memory/synchronizable.native.d.ts.map +0 -1
- package/lib/typescript/memory/synchronizableUnpacker.native.d.ts +0 -4
- package/lib/typescript/memory/synchronizableUnpacker.native.d.ts.map +0 -1
- package/lib/typescript/memory/types.d.ts +0 -132
- package/lib/typescript/memory/types.d.ts.map +0 -1
- package/lib/typescript/memory/valueUnpacker.native.d.ts +0 -6
- package/lib/typescript/memory/valueUnpacker.native.d.ts.map +0 -1
- package/lib/typescript/mock.d.ts +0 -2
- package/lib/typescript/mock.d.ts.map +0 -1
- package/lib/typescript/platformChecker.d.ts +0 -5
- package/lib/typescript/platformChecker.d.ts.map +0 -1
- package/lib/typescript/platformChecker.native.d.ts +0 -2
- package/lib/typescript/platformChecker.native.d.ts.map +0 -1
- package/lib/typescript/runLoop/common/setImmediatePolyfill.d.ts +0 -2
- package/lib/typescript/runLoop/common/setImmediatePolyfill.d.ts.map +0 -1
- package/lib/typescript/runLoop/common/setIntervalPolyfill.d.ts +0 -2
- package/lib/typescript/runLoop/common/setIntervalPolyfill.d.ts.map +0 -1
- package/lib/typescript/runLoop/uiRuntime/mockedRequestAnimationFrame.d.ts +0 -6
- package/lib/typescript/runLoop/uiRuntime/mockedRequestAnimationFrame.d.ts.map +0 -1
- package/lib/typescript/runLoop/uiRuntime/requestAnimationFrame.d.ts +0 -2
- package/lib/typescript/runLoop/uiRuntime/requestAnimationFrame.d.ts.map +0 -1
- package/lib/typescript/runLoop/uiRuntime/setTimeoutPolyfill.d.ts +0 -2
- package/lib/typescript/runLoop/uiRuntime/setTimeoutPolyfill.d.ts.map +0 -1
- package/lib/typescript/runLoop/workletRuntime/index.d.ts +0 -2
- package/lib/typescript/runLoop/workletRuntime/index.d.ts.map +0 -1
- package/lib/typescript/runLoop/workletRuntime/queueMicrotask.d.ts +0 -2
- package/lib/typescript/runLoop/workletRuntime/queueMicrotask.d.ts.map +0 -1
- package/lib/typescript/runLoop/workletRuntime/requestAnimationFramePolyfill.d.ts +0 -2
- package/lib/typescript/runLoop/workletRuntime/requestAnimationFramePolyfill.d.ts.map +0 -1
- package/lib/typescript/runLoop/workletRuntime/setTimeout.d.ts +0 -2
- package/lib/typescript/runLoop/workletRuntime/setTimeout.d.ts.map +0 -1
- package/lib/typescript/runLoop/workletRuntime/taskQueue.d.ts +0 -10
- package/lib/typescript/runLoop/workletRuntime/taskQueue.d.ts.map +0 -1
- package/lib/typescript/runtimeKind.d.ts +0 -56
- package/lib/typescript/runtimeKind.d.ts.map +0 -1
- package/lib/typescript/runtimes.d.ts +0 -14
- package/lib/typescript/runtimes.d.ts.map +0 -1
- package/lib/typescript/runtimes.native.d.ts +0 -137
- package/lib/typescript/runtimes.native.d.ts.map +0 -1
- package/lib/typescript/specs/NativeWorkletsModule.d.ts +0 -7
- package/lib/typescript/specs/NativeWorkletsModule.d.ts.map +0 -1
- package/lib/typescript/specs/index.d.ts +0 -3
- package/lib/typescript/specs/index.d.ts.map +0 -1
- package/lib/typescript/threads.d.ts +0 -8
- package/lib/typescript/threads.d.ts.map +0 -1
- package/lib/typescript/threads.native.d.ts +0 -132
- package/lib/typescript/threads.native.d.ts.map +0 -1
- package/lib/typescript/types.d.ts +0 -127
- package/lib/typescript/types.d.ts.map +0 -1
- package/lib/typescript/workletFunction.d.ts +0 -26
- package/lib/typescript/workletFunction.d.ts.map +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type DynamicFlagsType = {
|
|
2
|
-
EXAMPLE_DYNAMIC_FLAG: boolean;
|
|
3
|
-
init(): void;
|
|
4
|
-
setFlag(name: DynamicFlagName, value: boolean): void;
|
|
5
|
-
getFlag(name: DynamicFlagName): boolean;
|
|
6
|
-
};
|
|
7
|
-
export type DynamicFlagName = keyof Omit<Omit<DynamicFlagsType, 'setFlag' | 'getFlag'>, 'init'>;
|
|
8
|
-
/**
|
|
9
|
-
* This constant is needed for typechecking and preserving static typechecks in
|
|
10
|
-
* generated .d.ts files. Without it, the static flags resolve to an object
|
|
11
|
-
* without specific keys.
|
|
12
|
-
*/
|
|
13
|
-
export declare const DefaultStaticFeatureFlags: {
|
|
14
|
-
readonly RUNTIME_TEST_FLAG: false;
|
|
15
|
-
readonly FETCH_PREVIEW_ENABLED: false;
|
|
16
|
-
readonly IOS_DYNAMIC_FRAMERATE_ENABLED: true;
|
|
17
|
-
};
|
|
18
|
-
export type StaticFeatureFlagsSchema = {
|
|
19
|
-
-readonly [K in keyof typeof DefaultStaticFeatureFlags]: boolean;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/featureFlags/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,IAAI,IAAI,IAAI,CAAC;IACb,OAAO,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACrD,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,CACtC,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,SAAS,CAAC,EAC7C,MAAM,CACP,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;CAIY,CAAC;AAEnD,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,UAAU,CAAC,IAAI,MAAM,OAAO,yBAAyB,GAAG,OAAO;CACjE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guardImplementation.native.d.ts","sourceRoot":"","sources":["../../src/guardImplementation.native.ts"],"names":[],"mappings":"AAOA,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI,CASzD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { callMicrotasks, isShareableRef, makeShareable, type MakeShareableClone, makeShareableCloneOnUIRecursive, makeShareableCloneRecursive, shareableMappingCache, type ShareableRef, } from './deprecated';
|
|
2
|
-
export { getDynamicFeatureFlag, getStaticFeatureFlag, setDynamicFeatureFlag, } from './featureFlags/featureFlags';
|
|
3
|
-
export { isShareable } from './memory/isShareable';
|
|
4
|
-
export { isSynchronizable } from './memory/isSynchronizable';
|
|
5
|
-
export { createSerializable, isSerializableRef, registerCustomSerializable, } from './memory/serializable';
|
|
6
|
-
export { serializableMappingCache } from './memory/serializableMappingCache';
|
|
7
|
-
export { createShareable } from './memory/shareable';
|
|
8
|
-
export { createSynchronizable } from './memory/synchronizable';
|
|
9
|
-
export type { RegistrationData, SerializableRef, Shareable, ShareableConfig, ShareableGuest, ShareableGuestDecorator, ShareableGuestMeta, ShareableGuestProps, ShareableHost, ShareableHostDecorator, ShareableHostMeta, ShareableHostProps, Synchronizable, SynchronizableRef, } from './memory/types';
|
|
10
|
-
export { getRuntimeKind, isRNRuntime, isUIRuntime, isWorkerRuntime, isWorkletRuntime, RuntimeKind, } from './runtimeKind';
|
|
11
|
-
export { createWorkletRuntime, getUIRuntimeHolder, getUISchedulerHolder, runOnRuntime, runOnRuntimeAsync, runOnRuntimeSync, runOnRuntimeSyncWithId, scheduleOnRuntime, scheduleOnRuntimeWithId, UIRuntimeId, } from './runtimes';
|
|
12
|
-
export { executeOnUIRuntimeSync, runOnJS, runOnUI, runOnUIAsync, runOnUISync, scheduleOnRN, scheduleOnUI, } from './threads';
|
|
13
|
-
export type { WorkletFunction, WorkletRuntime, WorkletStackDetails, } from './types';
|
|
14
|
-
export { isWorkletFunction } from './workletFunction';
|
|
15
|
-
export { WorkletsModule } from './WorkletsModule/NativeWorklets';
|
|
16
|
-
export type { IWorkletsModule, WorkletsModuleProxy, } from './WorkletsModule/workletsModuleProxy';
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,cAAc,EACd,cAAc,EACd,aAAa,EACb,KAAK,kBAAkB,EACvB,+BAA+B,EAC/B,2BAA2B,EAC3B,qBAAqB,EACrB,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EACd,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EACtB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EACV,eAAe,EACf,mBAAmB,GACpB,MAAM,sCAAsC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializers.d.ts","sourceRoot":"","sources":["../../../src/initializers/initializers.ts"],"names":[],"mappings":"AAMA,wBAAgB,IAAI,SAiBnB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Currently there seems to be a bug in the JSI layer which causes a crash when
|
|
3
|
-
* we try to copy some of the console methods, i.e. `clear` or `dirxml`.
|
|
4
|
-
*
|
|
5
|
-
* The crash happens only in React Native 0.75. It's not reproducible in neither
|
|
6
|
-
* 0.76 nor 0.74. It also happens only in the configuration of a debug app and
|
|
7
|
-
* production bundle.
|
|
8
|
-
*
|
|
9
|
-
* I haven't yet discovered what exactly causes the crash. It's tied to the
|
|
10
|
-
* console methods sometimes being `HostFunction`s. Therefore, as a workaround
|
|
11
|
-
* we don't copy the methods as they are in the original console object, we copy
|
|
12
|
-
* JavaScript wrappers instead.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getMemorySafeCapturableConsole(): typeof console;
|
|
15
|
-
export declare function setupConsole(boundCapturableConsole: typeof console): void;
|
|
16
|
-
export declare function setupSerializer(): void;
|
|
17
|
-
export declare function init(): void;
|
|
18
|
-
//# sourceMappingURL=initializers.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializers.native.d.ts","sourceRoot":"","sources":["../../../src/initializers/initializers.native.ts"],"names":[],"mappings":"AAoCA;;;;;;;;;;;;GAYG;AACH,wBAAgB,8BAA8B,IAAI,OAAO,OAAO,CA8B/D;AAED,wBAAgB,YAAY,CAAC,sBAAsB,EAAE,OAAO,OAAO,QAWlE;AAED,wBAAgB,eAAe,SAG9B;AAID,wBAAgB,IAAI,SAcnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workletRuntimeEntry.d.ts","sourceRoot":"","sources":["../../../src/initializers/workletRuntimeEntry.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,SAE7B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function is an entry point for Worklet Runtimes. We can use it to setup
|
|
3
|
-
* necessary tools, like the ValueUnpacker.
|
|
4
|
-
*
|
|
5
|
-
* We must throw an error at the end of this function to prevent the bundle to
|
|
6
|
-
* continue executing. This is because the next module to be ran would be the
|
|
7
|
-
* React Native one, and it would break the Worklet Runtime if initialized. The
|
|
8
|
-
* error is caught in C++ code.
|
|
9
|
-
*
|
|
10
|
-
* This function has no effect on the RN Runtime beside setting the
|
|
11
|
-
* `_WORKLETS_BUNDLE_MODE_ENABLED` flag.
|
|
12
|
-
*/
|
|
13
|
-
export declare function bundleModeInit(): void;
|
|
14
|
-
//# sourceMappingURL=workletRuntimeEntry.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workletRuntimeEntry.native.d.ts","sourceRoot":"","sources":["../../../src/initializers/workletRuntimeEntry.native.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,SAkB7B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { WorkletFunction } from '../types';
|
|
2
|
-
export declare function bundleValueUnpacker(objectToUnpack: ObjectToUnpack, category?: string, remoteFunctionName?: string): unknown;
|
|
3
|
-
interface ObjectToUnpack extends WorkletFunction {
|
|
4
|
-
_recur: unknown;
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=bundleUnpacker.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundleUnpacker.native.d.ts","sourceRoot":"","sources":["../../../src/memory/bundleUnpacker.native.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhE,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,cAAc,EAC9B,QAAQ,CAAC,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,MAAM,GAC1B,OAAO,CA4BT;AA+BD,UAAU,cAAe,SAAQ,eAAe;IAC9C,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customSerializableUnpacker.native.d.ts","sourceRoot":"","sources":["../../../src/memory/customSerializableUnpacker.native.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,SAoBhC;AAED,MAAM,MAAM,0BAA0B,GAAG,CACvC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,KACX,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isShareable.d.ts","sourceRoot":"","sources":["../../../src/memory/isShareable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,WAAW,CACzB,MAAM,GAAG,OAAO,EAChB,cAAc,GAAG,OAAO,EACxB,eAAe,GAAG,OAAO,EACzB,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,CAO7E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSynchronizable.d.ts","sourceRoot":"","sources":["../../../src/memory/isSynchronizable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,MAAM,EACrC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,cAAc,CAAC,MAAM,CAAC,CAOjC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FlatSerializableRef, RegistrationData, SerializableRef } from './types';
|
|
2
|
-
export declare function isSerializableRef<TValue = unknown>(value: unknown): value is SerializableRef<TValue>;
|
|
3
|
-
export declare function createSerializable<TValue>(value: TValue): SerializableRef<TValue>;
|
|
4
|
-
export declare function makeShareableCloneOnUIRecursive<TValue>(value: TValue): FlatSerializableRef<TValue>;
|
|
5
|
-
export declare function makeShareable<TValue>(value: TValue): TValue;
|
|
6
|
-
export declare function registerCustomSerializable<TValue extends object, TPacked extends object>(_registrationData: RegistrationData<TValue, TPacked>): void;
|
|
7
|
-
//# sourceMappingURL=serializable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializable.d.ts","sourceRoot":"","sources":["../../../src/memory/serializable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,MAAM,GAAG,OAAO,EAChD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC,CAElC;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EACvC,KAAK,EAAE,MAAM,GACZ,eAAe,CAAC,MAAM,CAAC,CAEzB;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EACpD,KAAK,EAAE,MAAM,GACZ,mBAAmB,CAAC,MAAM,CAAC,CAE7B;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,0BAA0B,CACxC,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,EACtB,iBAAiB,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,QAErD"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { FlatSerializableRef, RegistrationData, SerializableRef } from './types';
|
|
2
|
-
export declare function isSerializableRef<TValue = unknown>(value: unknown): value is SerializableRef<TValue>;
|
|
3
|
-
export declare function createSerializable<TValue>(value: TValue, shouldPersistRemote?: boolean, depth?: number): SerializableRef<TValue>;
|
|
4
|
-
export declare namespace createSerializable {
|
|
5
|
-
var __bundleData: {
|
|
6
|
-
imported: string;
|
|
7
|
-
source: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* `registerCustomSerializable` lets you register your own pre-serialization and
|
|
12
|
-
* post-deserialization logic. This is necessary for objects with prototypes
|
|
13
|
-
* different than just `Object.prototype` or some other built-in prototypes like
|
|
14
|
-
* `Map` etc. Worklets can't handle such objects by default to convert into
|
|
15
|
-
* [Serializables](https://docs.swmansion.com/react-native-worklets/docs/memory/serializable)
|
|
16
|
-
* hence you need to register them as **Custom Serializables**. This way you can
|
|
17
|
-
* tell Worklets how to transfer your custom data structures between different
|
|
18
|
-
* Runtimes without manually serializing and deserializing them every time.
|
|
19
|
-
*
|
|
20
|
-
* @param registrationData - The registration data for the custom serializable -
|
|
21
|
-
* {@link RegistrationData}
|
|
22
|
-
* @see https://docs.swmansion.com/react-native-worklets/docs/memory/registerCustomSerializable/
|
|
23
|
-
*/
|
|
24
|
-
export declare function registerCustomSerializable<TValue extends object, TPacked extends object>(registrationData: RegistrationData<TValue, TPacked>): void;
|
|
25
|
-
declare function makeShareableCloneOnUIRecursiveLEGACY<TValue>(value: TValue): FlatSerializableRef<TValue>;
|
|
26
|
-
/** @deprecated This function is no longer supported. */
|
|
27
|
-
export declare const makeShareableCloneOnUIRecursive: typeof makeShareableCloneOnUIRecursiveLEGACY;
|
|
28
|
-
/**
|
|
29
|
-
* This function creates a value on UI with persistent state - changes to it on
|
|
30
|
-
* the UI thread will be seen by all worklets. Use it when you want to create a
|
|
31
|
-
* value that is read and written only on the UI thread.
|
|
32
|
-
*
|
|
33
|
-
* @deprecated This function is no longer supported.
|
|
34
|
-
*/
|
|
35
|
-
export declare function makeShareable<TValue extends object>(value: TValue): TValue;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=serializable.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializable.native.d.ts","sourceRoot":"","sources":["../../../src/memory/serializable.native.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EAGhB,MAAM,SAAS,CAAC;AAajB,wBAAgB,iBAAiB,CAAC,MAAM,GAAG,OAAO,EAChD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC,CAQlC;AAqFD,wBAAgB,kBAAkB,CAAC,MAAM,EACvC,KAAK,EAAE,MAAM,EACb,mBAAmB,UAAQ,EAC3B,KAAK,SAAI,GACR,eAAe,CAAC,MAAM,CAAC,CA+GzB;yBAnHe,kBAAkB;;;;;;AAmIlC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,EACtB,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,QA+BpD;AAkeD,iBAAS,qCAAqC,CAAC,MAAM,EACnD,KAAK,EAAE,MAAM,GACZ,mBAAmB,CAAC,MAAM,CAAC,CAqF7B;AAED,wDAAwD;AACxD,eAAO,MAAM,+BAA+B,EAIvC,OAAO,qCAAqC,CAAC;AAElD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY1E"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SerializableRef } from './types';
|
|
2
|
-
export declare const serializableMappingCache: {
|
|
3
|
-
set(_serializable: object, _serializableRef?: SerializableRef): void;
|
|
4
|
-
get(_key: object): object | symbol | SerializableRef;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=serializableMappingCache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializableMappingCache.d.ts","sourceRoot":"","sources":["../../../src/memory/serializableMappingCache.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,wBAAwB;uBAChB,MAAM,qBAAqB,eAAe,GAAG,IAAI;cAG1D,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe;CAGrD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SerializableRef } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* This symbol is used to represent a mapping from the value to itself.
|
|
4
|
-
*
|
|
5
|
-
* It's used to prevent converting a serializable that's already converted - for
|
|
6
|
-
* example a Shared Value that's in worklet's closure.
|
|
7
|
-
*/
|
|
8
|
-
export declare const serializableMappingFlag: unique symbol;
|
|
9
|
-
export declare const serializableMappingCache: {
|
|
10
|
-
set(serializable: object, serializableRef?: SerializableRef): void;
|
|
11
|
-
get: (key: object) => symbol | SerializableRef | undefined;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=serializableMappingCache.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializableMappingCache.native.d.ts","sourceRoot":"","sources":["../../../src/memory/serializableMappingCache.native.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,eAA8B,CAAC;AAenE,eAAO,MAAM,wBAAwB;sBACjB,MAAM,oBAAoB,eAAe,GAAG,IAAI;;CAInE,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { UIRuntimeId } from '../runtimes';
|
|
2
|
-
import type { Shareable, ShareableConfig } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Creates a new {@link Shareable} holding the provided initial value. You must
|
|
5
|
-
* explicitly declare which Worklet Runtime will host the Shareable by passing
|
|
6
|
-
* its `runtimeId`.
|
|
7
|
-
*
|
|
8
|
-
* Currently only hosting a Shareable on the UI Runtime is supported.
|
|
9
|
-
*
|
|
10
|
-
* @param hostRuntimeId - The `runtimeId` of the Worklet Runtime that will host
|
|
11
|
-
* the Shareable. Use {@link UIRuntimeId}.
|
|
12
|
-
* @param initial - The initial value of the Shareable.
|
|
13
|
-
* @param config - Optional advanced configuration.
|
|
14
|
-
* @returns The created {@link Shareable}.
|
|
15
|
-
* @see {@link https://docs.swmansion.com/react-native-worklets/docs/memory/createShareable | createShareable docs}
|
|
16
|
-
*/
|
|
17
|
-
export declare function createShareable<TValue = unknown, THostDecorated = unknown, TGuestDecorated = unknown>(hostRuntimeId: typeof UIRuntimeId, initial: TValue, config?: ShareableConfig<TValue, THostDecorated, TGuestDecorated>): Shareable<TValue, THostDecorated, TGuestDecorated>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Only UI host runtime is supported now. Use {@link UIRuntimeId} as
|
|
20
|
-
* the `hostRuntimeId` argument.
|
|
21
|
-
*/
|
|
22
|
-
export declare function createShareable<TValue = unknown, THostDecorated = unknown, TGuestDecorated = unknown>(hostRuntimeId: number, initial: TValue, config?: ShareableConfig<TValue, THostDecorated, TGuestDecorated>): Shareable<TValue, THostDecorated, TGuestDecorated>;
|
|
23
|
-
//# sourceMappingURL=shareable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shareable.d.ts","sourceRoot":"","sources":["../../../src/memory/shareable.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,MAAM,GAAG,OAAO,EAChB,cAAc,GAAG,OAAO,EACxB,eAAe,GAAG,OAAO,EAEzB,aAAa,EAAE,OAAO,WAAW,EACjC,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,GAChE,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,GAAG,OAAO,EAChB,cAAc,GAAG,OAAO,EACxB,eAAe,GAAG,OAAO,EAEzB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,GAChE,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UIRuntimeId } from '../runtimes';
|
|
2
|
-
import type { Shareable, ShareableConfig } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Creates a new {@link Shareable} holding the provided initial value. You must
|
|
5
|
-
* explicitly declare which Worklet Runtime will host the Shareable by passing
|
|
6
|
-
* its `runtimeId`.
|
|
7
|
-
*
|
|
8
|
-
* Currently only hosting a Shareable on the UI Runtime is supported.
|
|
9
|
-
*
|
|
10
|
-
* @param hostRuntimeId - The `runtimeId` of the Worklet Runtime that will host
|
|
11
|
-
* the Shareable. Use {@link UIRuntimeId}.
|
|
12
|
-
* @param initial - The initial value of the Shareable.
|
|
13
|
-
* @param config - Optional advanced configuration.
|
|
14
|
-
* @returns The created {@link Shareable}.
|
|
15
|
-
* @see {@link https://docs.swmansion.com/react-native-worklets/docs/memory/createShareable | createShareable docs}
|
|
16
|
-
*/
|
|
17
|
-
export declare function createShareable<TValue = unknown, THostDecorated = unknown, TGuestDecorated = unknown>(hostRuntimeId: typeof UIRuntimeId, initial: TValue, config?: ShareableConfig<TValue, THostDecorated, TGuestDecorated>): Shareable<TValue, THostDecorated, TGuestDecorated>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Only UI host runtime is supported now. Use {@link UIRuntimeId} as
|
|
20
|
-
* the `hostRuntimeId` argument.
|
|
21
|
-
*/
|
|
22
|
-
export declare function createShareable<TValue = unknown, THostDecorated = unknown, TGuestDecorated = unknown>(hostRuntimeId: number, initial: TValue, config?: ShareableConfig<TValue, THostDecorated, TGuestDecorated>): Shareable<TValue, THostDecorated, TGuestDecorated>;
|
|
23
|
-
//# sourceMappingURL=shareable.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shareable.native.d.ts","sourceRoot":"","sources":["../../../src/memory/shareable.native.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,MAAM,GAAG,OAAO,EAChB,cAAc,GAAG,OAAO,EACxB,eAAe,GAAG,OAAO,EAEzB,aAAa,EAAE,OAAO,WAAW,EACjC,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,GAChE,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,GAAG,OAAO,EAChB,cAAc,GAAG,OAAO,EACxB,eAAe,GAAG,OAAO,EAEzB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,GAChE,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SerializableRef, Shareable, ShareableGuestDecorator } from './types';
|
|
2
|
-
export declare function __installUnpacker(): void;
|
|
3
|
-
export type ShareableGuestUnpacker<TValue = unknown> = (hostId: number, shareableRef: SerializableRef<TValue>, decorateGuest?: ShareableGuestDecorator<TValue>) => Shareable<TValue>;
|
|
4
|
-
//# sourceMappingURL=shareableGuestUnpacker.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shareableGuestUnpacker.native.d.ts","sourceRoot":"","sources":["../../../src/memory/shareableGuestUnpacker.native.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EAET,uBAAuB,EAExB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iBAAiB,SAsIhC;AAED,MAAM,MAAM,sBAAsB,CAAC,MAAM,GAAG,OAAO,IAAI,CACrD,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,eAAe,CAAC,MAAM,CAAC,EACrC,aAAa,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,KAC5C,SAAS,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Shareable, ShareableHostDecorator } from './types';
|
|
2
|
-
export declare function __installUnpacker(): void;
|
|
3
|
-
export type ShareableHostUnpacker<TValue = unknown> = (initial: TValue, decorateHost?: ShareableHostDecorator<TValue>) => Shareable<TValue>;
|
|
4
|
-
//# sourceMappingURL=shareableHostUnpacker.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shareableHostUnpacker.native.d.ts","sourceRoot":"","sources":["../../../src/memory/shareableHostUnpacker.native.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAiB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEhF,wBAAgB,iBAAiB,SAoBhC;AAED,MAAM,MAAM,qBAAqB,CAAC,MAAM,GAAG,OAAO,IAAI,CACpD,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,KAC1C,SAAS,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"synchronizable.d.ts","sourceRoot":"","sources":["../../../src/memory/synchronizable.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,MAAM,GAAG,OAAO,EACnD,MAAM,EAAE,MAAM,GACb,cAAc,CAAC,MAAM,CAAC,CAExB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"synchronizable.native.d.ts","sourceRoot":"","sources":["../../../src/memory/synchronizable.native.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,MAAM,GAAG,OAAO,EACnD,YAAY,EAAE,MAAM,GACnB,cAAc,CAAC,MAAM,CAAC,CAQxB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Synchronizable, type SynchronizableRef } from './types';
|
|
2
|
-
export declare function __installUnpacker(): void;
|
|
3
|
-
export type SynchronizableUnpacker = <TValue>(synchronizableRef: SynchronizableRef<TValue>) => Synchronizable<TValue>;
|
|
4
|
-
//# sourceMappingURL=synchronizableUnpacker.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"synchronizableUnpacker.native.d.ts","sourceRoot":"","sources":["../../../src/memory/synchronizableUnpacker.native.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEtE,wBAAgB,iBAAiB,SAmDhC;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAC1C,iBAAiB,EAAE,iBAAiB,CAAC,MAAM,CAAC,KACzC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The below type is used for HostObjects returned by the JSI API that don't
|
|
3
|
-
* have any accessible fields or methods but can carry data that is accessed
|
|
4
|
-
* from the c++ side. We add a field to the type to make it possible for
|
|
5
|
-
* typescript to recognize which JSI methods accept those types as arguments and
|
|
6
|
-
* to be able to correctly type check other methods that may use them. However,
|
|
7
|
-
* this field is not actually defined nor should be used for anything else as
|
|
8
|
-
* assigning any data to those objects will throw an error.
|
|
9
|
-
*/
|
|
10
|
-
export type SerializableRef<TValue = unknown> = {
|
|
11
|
-
__serializableRef: true;
|
|
12
|
-
__nativeStateSerializableJSRef: TValue;
|
|
13
|
-
};
|
|
14
|
-
export type FlatSerializableRef<TValue> = TValue extends SerializableRef<infer TRecursive> ? SerializableRef<TRecursive> : SerializableRef<TValue>;
|
|
15
|
-
export type SynchronizableRef<TValue = unknown> = {
|
|
16
|
-
__synchronizableRef: true;
|
|
17
|
-
__nativeStateSynchronizableJSRef: TValue;
|
|
18
|
-
};
|
|
19
|
-
export type Synchronizable<TValue = unknown> = SerializableRef<TValue> & SynchronizableRef<TValue> & {
|
|
20
|
-
__synchronizableRef: true;
|
|
21
|
-
getDirty(): TValue;
|
|
22
|
-
getBlocking(): TValue;
|
|
23
|
-
setBlocking(value: TValue | ((prev: TValue) => TValue)): void;
|
|
24
|
-
lock(): void;
|
|
25
|
-
unlock(): void;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Registration data for
|
|
29
|
-
* [registerCustomSerializable](https://docs.swmansion.com/react-native-worklets/docs/memory/registerCustomSerializable)
|
|
30
|
-
* function.
|
|
31
|
-
*/
|
|
32
|
-
export type RegistrationData<TValue extends object, TPacked = unknown> = {
|
|
33
|
-
/**
|
|
34
|
-
* A unique name for the Custom Serializable. It's used to prevent duplicate
|
|
35
|
-
* registrations of the same Custom Serializable. You will get warned if you
|
|
36
|
-
* attempt to register a Custom Serializable with a name that has already been
|
|
37
|
-
* used.
|
|
38
|
-
*/
|
|
39
|
-
name: string;
|
|
40
|
-
/**
|
|
41
|
-
* A worklet that checks whether a given JavaScript value is of the type
|
|
42
|
-
* handled by this Custom Serializable.
|
|
43
|
-
*/
|
|
44
|
-
determine: (value: object) => value is TValue;
|
|
45
|
-
/**
|
|
46
|
-
* A worklet that packs the JavaScript value of type `TValue` into a value
|
|
47
|
-
* that can be serialized by default as Serializable. The function must return
|
|
48
|
-
* a [supported type for
|
|
49
|
-
* Serialization](https://docs.swmansion.com/react-native-worklets/docs/memory/serializable#supported-types).
|
|
50
|
-
*/
|
|
51
|
-
pack: (value: TValue) => TPacked;
|
|
52
|
-
/**
|
|
53
|
-
* A worklet that unpacks the packed value, after it's been deserialized from
|
|
54
|
-
* it's packed form, back into the JavaScript value of type `TValue`.
|
|
55
|
-
*/
|
|
56
|
-
unpack: (value: TPacked) => TValue;
|
|
57
|
-
};
|
|
58
|
-
export type SerializationData<TValue extends object, TPacked = unknown> = Omit<RegistrationData<TValue, TPacked>, 'name'> & {
|
|
59
|
-
/** Only defined on the RN Runtime. */
|
|
60
|
-
name?: string;
|
|
61
|
-
};
|
|
62
|
-
export type CustomSerializationRegistry = SerializationData<object, unknown>[];
|
|
63
|
-
export type ShareableHostProps<TValue = unknown> = {
|
|
64
|
-
value: TValue;
|
|
65
|
-
};
|
|
66
|
-
export type ShareableHostMeta = {
|
|
67
|
-
isHost: true;
|
|
68
|
-
__shareableRef: true;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* A worklet that takes the created {@link ShareableHost} and decorates it with
|
|
72
|
-
* additional properties or methods. It must return the same reference it
|
|
73
|
-
* received.
|
|
74
|
-
*/
|
|
75
|
-
export type ShareableHostDecorator<TValue = unknown, TDecorated = unknown> = (shareable: ShareableHost<TValue> & TDecorated) => ShareableHost<TValue> & TDecorated;
|
|
76
|
-
export type ShareableGuestMeta = {
|
|
77
|
-
isHost: false;
|
|
78
|
-
__shareableRef: true;
|
|
79
|
-
};
|
|
80
|
-
export type ShareableGuestProps<TValue = unknown> = {
|
|
81
|
-
getAsync(): Promise<TValue>;
|
|
82
|
-
getSync(): TValue;
|
|
83
|
-
setAsync(value: TValue | ((prev: TValue) => TValue)): void;
|
|
84
|
-
setSync(value: TValue | ((prev: TValue) => TValue)): void;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* A worklet that decorates each {@link ShareableGuest} created for the Shareable
|
|
88
|
-
* with additional properties or methods. It must return the same reference it
|
|
89
|
-
* received.
|
|
90
|
-
*/
|
|
91
|
-
export type ShareableGuestDecorator<TValue = unknown, TDecorated = unknown> = (shareable: ShareableGuest<TValue> & TDecorated) => ShareableGuest<TValue> & TDecorated;
|
|
92
|
-
/**
|
|
93
|
-
* The host-side representation of a {@link Shareable}, living on the
|
|
94
|
-
* {@link https://docs.swmansion.com/react-native-worklets/docs/fundamentals/runtimeKinds#worklet-runtime | Worklet Runtime}
|
|
95
|
-
* that hosts the Shareable.
|
|
96
|
-
*/
|
|
97
|
-
export type ShareableHost<TValue = unknown, THostDecorated = unknown> = ShareableHostMeta & ShareableHostProps<TValue> & (THostDecorated extends object ? THostDecorated : object);
|
|
98
|
-
/**
|
|
99
|
-
* A guest-side representation of a {@link Shareable}, used on any runtime other
|
|
100
|
-
* than the host runtime.
|
|
101
|
-
*/
|
|
102
|
-
export type ShareableGuest<TValue = unknown, TGuestDecorated = unknown> = ShareableGuestMeta & ShareableGuestProps<TValue> & (TGuestDecorated extends object ? TGuestDecorated : object);
|
|
103
|
-
/**
|
|
104
|
-
* A type of shared memory tied to a given runtime, called the Host Runtime.
|
|
105
|
-
* Depending on the context it's either a {@link ShareableHost} (on the hosting
|
|
106
|
-
* Worklet Runtime) or a {@link ShareableGuest} (on every other runtime).
|
|
107
|
-
*
|
|
108
|
-
* @see {@link https://docs.swmansion.com/react-native-worklets/docs/memory/shareable | Shareable docs}
|
|
109
|
-
*/
|
|
110
|
-
export type Shareable<TValue = unknown, THostDecorated = unknown, TGuestDecorated = unknown> = (ShareableHost<TValue, THostDecorated> & Partial<ShareableGuestProps<TValue> & (TGuestDecorated extends object ? Partial<TGuestDecorated> : object)>) | (ShareableGuest<TValue, TGuestDecorated> & Partial<ShareableHostProps<TValue> & (THostDecorated extends object ? Partial<THostDecorated> : object)>);
|
|
111
|
-
/** Optional advanced configuration for a {@link Shareable}. */
|
|
112
|
-
export type ShareableConfig<TValue, THostDecorated, TGuestDecorated> = {
|
|
113
|
-
/**
|
|
114
|
-
* A worklet that decorates the {@link ShareableHost} with additional
|
|
115
|
-
* properties or methods.
|
|
116
|
-
*/
|
|
117
|
-
hostDecorator?: ShareableHostDecorator<TValue, THostDecorated>;
|
|
118
|
-
/**
|
|
119
|
-
* A worklet that decorates each {@link ShareableGuest} with additional
|
|
120
|
-
* properties or methods.
|
|
121
|
-
*/
|
|
122
|
-
guestDecorator?: ShareableGuestDecorator<TValue, TGuestDecorated>;
|
|
123
|
-
/**
|
|
124
|
-
* When `true`, the {@link ShareableHost} is created synchronously during the
|
|
125
|
-
* call to `createShareable` instead of lazily on first access. Use this when
|
|
126
|
-
* the host initialization triggers side effects that must happen eagerly.
|
|
127
|
-
*
|
|
128
|
-
* @defaultValue `false`
|
|
129
|
-
*/
|
|
130
|
-
initSynchronously?: boolean;
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/memory/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var evalWithSourceMap: ((js: string, sourceURL: string, sourceMap: string) => () => unknown) | undefined;
|
|
3
|
-
var evalWithSourceUrl: ((js: string, sourceURL: string) => () => unknown) | undefined;
|
|
4
|
-
}
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=valueUnpacker.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valueUnpacker.native.d.ts","sourceRoot":"","sources":["../../../src/memory/valueUnpacker.native.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,iBAAiB,EACjB,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,OAAO,CAAC,GACrE,SAAS,CAAC;IACd,IAAI,iBAAiB,EACjB,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,OAAO,CAAC,GAClD,SAAS,CAAC;CACf"}
|
package/lib/typescript/mock.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/mock.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platformChecker.d.ts","sourceRoot":"","sources":["../../src/platformChecker.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,EAAE,OAAsC,CAAC;AAC7D,eAAO,MAAM,MAAM,EAAE,OAAyD,CAAC;AAC/E,eAAO,MAAM,UAAU,EAAE,OACK,CAAC;AAC/B,eAAO,MAAM,iBAAiB,EAAE,OAAyC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platformChecker.native.d.ts","sourceRoot":"","sources":["../../src/platformChecker.native.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setImmediatePolyfill.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/common/setImmediatePolyfill.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,SAiBhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setIntervalPolyfill.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/common/setIntervalPolyfill.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,SAmC/B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is Jest implementation of `requestAnimationFrame` that is required by
|
|
3
|
-
* React Native for test purposes.
|
|
4
|
-
*/
|
|
5
|
-
export declare function mockedRequestAnimationFrame(callback: (timestamp: number) => void): ReturnType<typeof setTimeout>;
|
|
6
|
-
//# sourceMappingURL=mockedRequestAnimationFrame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockedRequestAnimationFrame.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/uiRuntime/mockedRequestAnimationFrame.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GACpC,UAAU,CAAC,OAAO,UAAU,CAAC,CAE/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requestAnimationFrame.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/uiRuntime/requestAnimationFrame.ts"],"names":[],"mappings":"AAEA,wBAAgB,0BAA0B,SA0EzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setTimeoutPolyfill.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/uiRuntime/setTimeoutPolyfill.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,SAqC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/workletRuntime/index.ts"],"names":[],"mappings":"AASA,wBAAgB,YAAY,CAAC,yBAAyB,EAAE,MAAM,QAQ7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queueMicrotask.d.ts","sourceRoot":"","sources":["../../../../src/runLoop/workletRuntime/queueMicrotask.ts"],"names":[],"mappings":"AAIA,wBAAgB,mBAAmB,SAQlC"}
|