react-native-maplibre-gl-js 1.2.1 → 1.3.1
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/lib/module/react-native/components/Map/{Map.test.js → Map.test.unit.js} +1 -1
- package/lib/module/react-native/components/Map/Map.test.unit.js.map +1 -0
- package/lib/module/react-native/components/MapProvider/{MapProvider.test.js → MapProvider.test.unit.js} +3 -1
- package/lib/module/react-native/components/MapProvider/MapProvider.test.unit.js.map +1 -0
- package/lib/module/react-native/components/Marker/{Marker.test.js → Marker.test.unit.js} +2 -1
- package/lib/module/react-native/components/Marker/Marker.test.unit.js.map +1 -0
- package/lib/module/react-native/components/Popup/{Popup.test.js → Popup.test.unit.js} +1 -1
- package/lib/module/react-native/components/Popup/Popup.test.unit.js.map +1 -0
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.js +5 -7
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.js.map +1 -1
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.test.integration.js +85 -0
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.test.integration.js.map +1 -0
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.test.unit.js +30 -0
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.test.unit.js.map +1 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.js +79 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.js.map +1 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.mock.js +10 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.mock.js.map +1 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.types.js +2 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.types.js.map +1 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.js +57 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.js.map +1 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.mock.js +5 -0
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.mock.js.map +1 -0
- package/lib/module/react-native/hooks/atoms/useMapAtoms.mock.js +5 -0
- package/lib/module/react-native/hooks/atoms/useMapAtoms.mock.js.map +1 -1
- package/lib/module/react-native/hooks/atoms/useMapAtoms.utils.js +17 -3
- package/lib/module/react-native/hooks/atoms/useMapAtoms.utils.js.map +1 -1
- package/lib/module/web/generated/webview_static_html.js +5 -2
- package/lib/module/web/generated/webview_static_html.js.map +1 -1
- package/lib/module/web/maplibre-gl-js/MapController.js +7 -0
- package/lib/module/web/maplibre-gl-js/MapController.js.map +1 -1
- package/lib/typescript/src/react-native/components/Map/Map.test.unit.d.ts +2 -0
- package/lib/typescript/src/react-native/components/Map/Map.test.unit.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.test.unit.d.ts +2 -0
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.test.unit.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components/Marker/Marker.test.unit.d.ts +2 -0
- package/lib/typescript/src/react-native/components/Marker/Marker.test.unit.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components/Popup/Popup.test.unit.d.ts +2 -0
- package/lib/typescript/src/react-native/components/Popup/Popup.test.unit.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.test.integration.d.ts +2 -0
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.test.integration.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.test.unit.d.ts +2 -0
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.test.unit.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.d.ts +19 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.mock.d.ts +9 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.mock.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.types.d.ts +8 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.types.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.d.ts +14 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.d.ts.map +1 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.mock.d.ts +3 -0
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.mock.d.ts.map +1 -0
- package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.mock.d.ts +2 -0
- package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.mock.d.ts.map +1 -1
- package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.utils.d.ts +2 -1
- package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.utils.d.ts.map +1 -1
- package/lib/typescript/src/web/generated/webview_static_html.d.ts +1 -1
- package/lib/typescript/src/web/generated/webview_static_html.d.ts.map +1 -1
- package/lib/typescript/src/web/maplibre-gl-js/MapController.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/module/react-native/components/Map/Map.test.js.map +0 -1
- package/lib/module/react-native/components/MapProvider/MapProvider.test.js.map +0 -1
- package/lib/module/react-native/components/Marker/Marker.test.js.map +0 -1
- package/lib/module/react-native/components/Popup/Popup.test.js.map +0 -1
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.test.js +0 -28
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.test.js.map +0 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.js +0 -69
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.js.map +0 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.mock.js +0 -5
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.mock.js.map +0 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.js +0 -14
- package/lib/module/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.js.map +0 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.mock.js +0 -5
- package/lib/module/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.mock.js.map +0 -1
- package/lib/typescript/src/react-native/components/Map/Map.test.d.ts +0 -2
- package/lib/typescript/src/react-native/components/Map/Map.test.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.test.d.ts +0 -2
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.test.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components/Marker/Marker.test.d.ts +0 -2
- package/lib/typescript/src/react-native/components/Marker/Marker.test.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components/Popup/Popup.test.d.ts +0 -2
- package/lib/typescript/src/react-native/components/Popup/Popup.test.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.test.d.ts +0 -2
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.test.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.d.ts +0 -12
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.mock.d.ts +0 -3
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.mock.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.d.ts +0 -4
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.d.ts.map +0 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.mock.d.ts +0 -3
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectPropertiesUpdater.mock.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["maplibregl","WebLogger","isWebObjectListenerOnHTMLElement","isWebObjectListenerOnMapLayer","isWebObjectListenerOnObject","MapController","reactNativeBridge","objects","Map","mapId","Error","bridge","map","get","handleMessage","message","info","name","type","handleWebObjectMountMessage","handleWebObjectUnmountMessage","handleWebObjectMethodCall","then","payload","objectType","container","document","getElementById","options","set","objectId","setObjectListeners","listeners","element","buildHTMLElement","marker","Marker","setLngLat","
|
|
1
|
+
{"version":3,"names":["maplibregl","WebLogger","isWebObjectListenerOnHTMLElement","isWebObjectListenerOnMapLayer","isWebObjectListenerOnObject","MapController","reactNativeBridge","objects","Map","mapId","Error","bridge","map","get","handleMessage","message","info","name","type","handleWebObjectMountMessage","handleWebObjectUnmountMessage","handleWebObjectMethodCall","then","payload","objectType","container","document","getElementById","options","set","objectId","setObjectListeners","listeners","entries","forEach","object","addTo","element","buildHTMLElement","marker","Marker","setLngLat","popup","Popup","postMessage","eventName","remove","delete","result","runIfSpecialMethod","runNormalMethod","requestId","#runIfSpecialMethod","method","parentId","args","parent","setEventedParent","popupId","setPopup","#runNormalMethod","descriptor","undefined","createElement","tagName","className","attributes","value","Object","setAttribute","style","assign","dataset","innerHTML","#setObjectListeners","listener","sendEventToReactNative","event","target","on","layerId","getElement","addEventListener"],"sourceRoot":"../../../../src","sources":["web/maplibre-gl-js/MapController.ts"],"mappings":";;AAAA,OAAOA,UAAU,MAAkC,aAAa;AAOhE,OAAOC,SAAS,MAAM,yBAAsB;AAC5C,SACEC,gCAAgC,EAChCC,6BAA6B,EAC7BC,2BAA2B,QACtB,uCAAoC;AAM3C;A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OAAO,EAAE;YACPO,QAAQ;YACRe,SAAS;YACTgC;UACF;QACF,CAAC,CAAC;MACJ,CAAC;;MAED;MACA,IAAIzE,2BAA2B,CAACuE,QAAQ,CAAC,EAAE;QACzCxC,MAAM,CAAC4C,EAAE,CAAClC,SAAS,EAAE+B,sBAAsB,CAAC;MAC9C;MACA;MACA,IAAIzE,6BAA6B,CAACwE,QAAQ,CAAC,EAAE;QAC3C;QACA;QACA,IAAIxC,MAAM,YAAYnC,UAAU,CAACQ,GAAG,EAAE;UACpC2B,MAAM,CAAC4C,EAAE,CACPlC,SAAS,EACR8B,QAAQ,CAAsCK,OAAO,EACtDJ,sBACF,CAAC;QACH;MACF;MACA;MACA,IAAI1E,gCAAgC,CAACyE,QAAQ,CAAC,EAAE;QAC9C;QACA;QACA,IAAI,EAAExC,MAAM,YAAYnC,UAAU,CAACQ,GAAG,CAAC,EAAE;UACvC2B,MAAM,CACH8C,UAAU,CAAC,CAAC,CACZC,gBAAgB,CAACrC,SAAS,EAAE+B,sBAAsB,CAAC;QACxD;MACF;IACF,CAAC,CAAC;EACJ,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.test.unit.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Map/Map.test.unit.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapProvider.test.unit.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/MapProvider/MapProvider.test.unit.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Marker.test.unit.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Marker/Marker.test.unit.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.test.unit.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Popup/Popup.test.unit.tsx"],"names":[],"mappings":""}
|
package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWebObjectAsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/react-native/components-factory/createWebObjectAsComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,YAAY,EACb,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"createWebObjectAsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/react-native/components-factory/createWebObjectAsComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,YAAY,EACb,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAIvE,QAAA,MAAM,0BAA0B,GAC9B,GAAG,SAAS,YAAY,CAAC,GAAG,CAAC,EAC7B,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EAEtC,YAAY,aAAa,KACxB,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAY/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWebObjectAsComponent.test.integration.d.ts","sourceRoot":"","sources":["../../../../../src/react-native/components-factory/createWebObjectAsComponent.test.integration.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWebObjectAsComponent.test.unit.d.ts","sourceRoot":"","sources":["../../../../../src/react-native/components-factory/createWebObjectAsComponent.test.unit.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WebObjectProps } from '../createWebObjectAsComponent.types';
|
|
2
|
+
import { type PropsWithoutRef } from 'react';
|
|
3
|
+
import type { WebObjectType } from '../../../communication/messages.types';
|
|
4
|
+
import type { MountUnmountCallbacksOptions } from './useWebObjectMountUnmountCallbacks.types';
|
|
5
|
+
/**
|
|
6
|
+
* @param props - The RN object props.
|
|
7
|
+
* @param objectId - The ID of the web object that owns the method.
|
|
8
|
+
* @param objectType - The type of the associated web object.
|
|
9
|
+
* @returns – The callbacks used to mount and unmount the web object. They
|
|
10
|
+
* internally handle edge cases where execution must be prevented, with no
|
|
11
|
+
* external management required. They allow (un)mounting the web objects with
|
|
12
|
+
* their options, but also their listeners.
|
|
13
|
+
*/
|
|
14
|
+
declare const useWebObjectMountUnmountCallbacks: <Props extends WebObjectProps<any, any>>(props: PropsWithoutRef<Props>, objectId: string, objectType: WebObjectType) => {
|
|
15
|
+
mount: ({ options, listeners, }?: MountUnmountCallbacksOptions) => void;
|
|
16
|
+
unmount: ({ options, listeners, }?: MountUnmountCallbacksOptions) => void;
|
|
17
|
+
};
|
|
18
|
+
export default useWebObjectMountUnmountCallbacks;
|
|
19
|
+
//# sourceMappingURL=useWebObjectMountUnmountCallbacks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWebObjectMountUnmountCallbacks.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,KAAK,eAAe,EAAuB,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAE1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAA;AAE7F;;;;;;;;GAQG;AACH,QAAA,MAAM,iCAAiC,GACrC,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EAEtC,OAAO,eAAe,CAAC,KAAK,CAAC,EAC7B,UAAU,MAAM,EAChB,YAAY,aAAa;sCAcpB,4BAA4B;wCAqC5B,4BAA4B;CAmBlC,CAAA;AAED,eAAe,iCAAiC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MountUnmountCallbacksOptions } from './useWebObjectMountUnmountCallbacks.types';
|
|
2
|
+
export declare const mount: jest.Mock<any, any, any>;
|
|
3
|
+
export declare const unmount: jest.Mock<any, any, any>;
|
|
4
|
+
declare const useWebObjectMountUnmountCallbacksMock: () => {
|
|
5
|
+
mount: (options?: MountUnmountCallbacksOptions) => void;
|
|
6
|
+
unmount: (options?: MountUnmountCallbacksOptions) => void;
|
|
7
|
+
};
|
|
8
|
+
export default useWebObjectMountUnmountCallbacksMock;
|
|
9
|
+
//# sourceMappingURL=useWebObjectMountUnmountCallbacks.mock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWebObjectMountUnmountCallbacks.mock.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAA;AAE7F,eAAO,MAAM,KAAK,0BAAY,CAAA;AAC9B,eAAO,MAAM,OAAO,0BAAY,CAAA;AAEhC,QAAA,MAAM,qCAAqC,QAAO;IAChD,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,IAAI,CAAA;IACvD,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,IAAI,CAAA;CAIzD,CAAA;AAEF,eAAe,qCAAqC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWebObjectMountUnmountCallbacks.types.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMountUnmountCallbacks.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WebObjectProps } from '../createWebObjectAsComponent.types';
|
|
2
|
+
import { type PropsWithoutRef } from 'react';
|
|
3
|
+
import type { WebObjectType } from '../../../communication/messages.types';
|
|
4
|
+
/**
|
|
5
|
+
* Mount the component as a web object within the web world on component mount.
|
|
6
|
+
* Propagate any change in the component props to the web world by unmounting
|
|
7
|
+
* and mounting the web object with the new options.
|
|
8
|
+
* @param props - The RN object props.
|
|
9
|
+
* @param objectId - The ID of the web object that owns the method.
|
|
10
|
+
* @param objectType - The type of the associated web object.
|
|
11
|
+
*/
|
|
12
|
+
export declare const useWebObjectMountUnmountWithProps: <Props extends WebObjectProps<any, any>>(props: PropsWithoutRef<Props>, objectId: string, objectType: WebObjectType) => void;
|
|
13
|
+
export default useWebObjectMountUnmountWithProps;
|
|
14
|
+
//# sourceMappingURL=useWebObjectMountUnmountWithProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWebObjectMountUnmountWithProps.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,KAAK,eAAe,EAA8B,MAAM,OAAO,CAAA;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,GAC5C,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EAEtC,OAAO,eAAe,CAAC,KAAK,CAAC,EAC7B,UAAU,MAAM,EAChB,YAAY,aAAa,SAwD1B,CAAA;AAED,eAAe,iCAAiC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWebObjectMountUnmountWithProps.mock.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMountUnmountWithProps.mock.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qCAAqC,0BAAY,CAAA;AAEvD,eAAe,qCAAqC,CAAA"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const setIsWebWorldReadyMock: jest.Mock<any, any, any>;
|
|
2
2
|
export declare const getWebObjectListenersMock: jest.Mock<any, any, any>;
|
|
3
3
|
export declare const resolveWebObjectPendingMethodResponseMock: jest.Mock<any, any, any>;
|
|
4
|
+
export declare const setIsWebWorldReady: (value: boolean) => void;
|
|
4
5
|
declare const useMapAtomsMock: () => {
|
|
6
|
+
isWebWorldReady: boolean;
|
|
5
7
|
setIsWebWorldReady: jest.Mock<any, any, any>;
|
|
6
8
|
getWebObjectListeners: jest.Mock<any, any, any>;
|
|
7
9
|
resolveWebObjectPendingMethodResponse: jest.Mock<any, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapAtoms.mock.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/hooks/atoms/useMapAtoms.mock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMapAtoms.mock.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/hooks/atoms/useMapAtoms.mock.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,0BAAY,CAAA;AAC/C,eAAO,MAAM,yBAAyB,0BAAY,CAAA;AAClD,eAAO,MAAM,yCAAyC,0BAAY,CAAA;AAClE,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,SAEhD,CAAA;AAED,QAAA,MAAM,eAAe;;;;;CAMnB,CAAA;AAEF,eAAe,eAAe,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Stable stringify for messages that may contain functions. Keep the function
|
|
3
|
-
* members as '...' to allow identification of the object type (by default a
|
|
3
|
+
* members as '...' to allow identification of the object type (by default, a
|
|
4
4
|
* function cannot be stringified and is removed from the final string).
|
|
5
|
+
* Keys are sorted alphabetically to ensure consistent output.
|
|
5
6
|
* @param message - The message to be stringified.
|
|
6
7
|
* @returns - The stringified message.
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapAtoms.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/hooks/atoms/useMapAtoms.utils.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"useMapAtoms.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/hooks/atoms/useMapAtoms.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,GAAG,KAAG,MAwB9C,CAAA"}
|