@mappedin/react-sdk 6.18.0 → 6.19.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.
@@ -3260,6 +3260,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3260
3260
 
3261
3261
  -----------
3262
3262
 
3263
+ The following npm package may be included in this product:
3264
+
3265
+ - void-elements@3.1.0
3266
+
3267
+ This package contains the following license:
3268
+
3269
+ (The MIT License)
3270
+
3271
+ Copyright (c) 2014 hemanth
3272
+
3273
+ Permission is hereby granted, free of charge, to any person obtaining
3274
+ a copy of this software and associated documentation files (the
3275
+ 'Software'), to deal in the Software without restriction, including
3276
+ without limitation the rights to use, copy, modify, merge, publish,
3277
+ distribute, sublicense, and/or sell copies of the Software, and to
3278
+ permit persons to whom the Software is furnished to do so, subject to
3279
+ the following conditions:
3280
+
3281
+ The above copyright notice and this permission notice shall be
3282
+ included in all copies or substantial portions of the Software.
3283
+
3284
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
3285
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
3286
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
3287
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
3288
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
3289
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3290
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3291
+
3292
+ -----------
3293
+
3263
3294
  The following npm package may be included in this product:
3264
3295
 
3265
3296
  - compression@1.8.1
@@ -5166,6 +5197,69 @@ CC0-1.0
5166
5197
 
5167
5198
  -----------
5168
5199
 
5200
+ The following npm package may be included in this product:
5201
+
5202
+ - chroma-js@2.6.0
5203
+
5204
+ This package contains the following license:
5205
+
5206
+ chroma.js - JavaScript library for color conversions
5207
+
5208
+ Copyright (c) 2011-2024, Gregor Aisch
5209
+ All rights reserved.
5210
+
5211
+ Redistribution and use in source and binary forms, with or without
5212
+ modification, are permitted provided that the following conditions are met:
5213
+
5214
+ 1. Redistributions of source code must retain the above copyright notice, this
5215
+ list of conditions and the following disclaimer.
5216
+
5217
+ 2. Redistributions in binary form must reproduce the above copyright notice,
5218
+ this list of conditions and the following disclaimer in the documentation
5219
+ and/or other materials provided with the distribution.
5220
+
5221
+ 3. The name Gregor Aisch may not be used to endorse or promote products
5222
+ derived from this software without specific prior written permission.
5223
+
5224
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
5225
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
5226
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
5227
+ DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
5228
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
5229
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
5230
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
5231
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
5232
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
5233
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5234
+
5235
+ -------------------------------------------------------
5236
+
5237
+ chroma.js includes colors from colorbrewer2.org, which are released under
5238
+ the following license:
5239
+
5240
+ Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
5241
+ and The Pennsylvania State University.
5242
+
5243
+ Licensed under the Apache License, Version 2.0 (the "License");
5244
+ you may not use this file except in compliance with the License.
5245
+ You may obtain a copy of the License at
5246
+ http://www.apache.org/licenses/LICENSE-2.0
5247
+
5248
+ Unless required by applicable law or agreed to in writing,
5249
+ software distributed under the License is distributed on an
5250
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
5251
+ either express or implied. See the License for the specific
5252
+ language governing permissions and limitations under the License.
5253
+
5254
+ ------------------------------------------------------
5255
+
5256
+ Named colors are taken from X11 Color Names.
5257
+ http://www.w3.org/TR/css3-color/#svg-color
5258
+
5259
+ @preserve
5260
+
5261
+ -----------
5262
+
5169
5263
  The following npm package may be included in this product:
5170
5264
 
5171
5265
  - sprintf-js@1.0.3
@@ -6091,6 +6185,35 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6091
6185
 
6092
6186
  -----------
6093
6187
 
6188
+ The following npm package may be included in this product:
6189
+
6190
+ - color-blend@3.0.1
6191
+
6192
+ This package contains the following license:
6193
+
6194
+ Copyright (c) 2016 Florian Reuschel
6195
+
6196
+ Permission is hereby granted, free of charge, to any person obtaining
6197
+ a copy of this software and associated documentation files (the
6198
+ "Software"), to deal in the Software without restriction, including
6199
+ without limitation the rights to use, copy, modify, merge, publish,
6200
+ distribute, sublicense, and/or sell copies of the Software, and to
6201
+ permit persons to whom the Software is furnished to do so, subject to
6202
+ the following conditions:
6203
+
6204
+ The above copyright notice and this permission notice shall be
6205
+ included in all copies or substantial portions of the Software.
6206
+
6207
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
6208
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6209
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
6210
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
6211
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
6212
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
6213
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6214
+
6215
+ -----------
6216
+
6094
6217
  The following npm packages may be included in this product:
6095
6218
 
6096
6219
  - test-exclude@6.0.0
@@ -6229,11 +6352,12 @@ SOFTWARE.
6229
6352
 
6230
6353
  -----------
6231
6354
 
6232
- The following npm package may be included in this product:
6355
+ The following npm packages may be included in this product:
6233
6356
 
6234
6357
  - csstype@3.1.3
6358
+ - csstype@3.2.3
6235
6359
 
6236
- This package contains the following license:
6360
+ These packages each contain the following license:
6237
6361
 
6238
6362
  Copyright (c) 2017-2018 Fredrik Nicol
6239
6363
 
@@ -7565,7 +7689,7 @@ The following npm packages may be included in this product:
7565
7689
  - lodash.defaultsdeep@4.6.1
7566
7690
  - lodash.merge@4.6.2
7567
7691
  - lodash.mergewith@4.6.2
7568
- - lodash@4.17.21
7692
+ - lodash@4.18.1
7569
7693
 
7570
7694
  These packages each contain the following license:
7571
7695
 
@@ -7944,6 +8068,7 @@ The following npm packages may be included in this product:
7944
8068
  - @expo/sdk-runtime-versions@1.0.0
7945
8069
  - @expo/server@0.6.2
7946
8070
  - @expo/ws-tunnel@1.0.6
8071
+ - @mappedin/apps-sdk@0.2.1-eb4e2e8.0
7947
8072
  - @radix-ui/react-compose-refs@1.1.2
7948
8073
  - @radix-ui/react-slot@1.2.0
7949
8074
  - @react-native/assets-registry@0.79.2
@@ -7985,6 +8110,7 @@ The following npm packages may be included in this product:
7985
8110
  - expo-system-ui@5.0.11
7986
8111
  - expo-web-browser@14.1.6
7987
8112
  - expo@53.0.25
8113
+ - html-parse-stringify@3.0.1
7988
8114
  - imurmurhash@0.1.4
7989
8115
  - jimp-compact@0.16.1
7990
8116
  - metro-babel-transformer@0.82.4
@@ -8762,6 +8888,66 @@ SOFTWARE.
8762
8888
 
8763
8889
  -----------
8764
8890
 
8891
+ The following npm package may be included in this product:
8892
+
8893
+ - styled-components@6.4.1
8894
+
8895
+ This package contains the following license:
8896
+
8897
+ MIT License
8898
+
8899
+ Copyright (c) 2016-present Glen Maddern and Maximilian Stoiber
8900
+
8901
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8902
+ of this software and associated documentation files (the "Software"), to deal
8903
+ in the Software without restriction, including without limitation the rights
8904
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8905
+ copies of the Software, and to permit persons to whom the Software is
8906
+ furnished to do so, subject to the following conditions:
8907
+
8908
+ The above copyright notice and this permission notice shall be included in all
8909
+ copies or substantial portions of the Software.
8910
+
8911
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8912
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8913
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8914
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8915
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8916
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8917
+ SOFTWARE.
8918
+
8919
+ -----------
8920
+
8921
+ The following npm package may be included in this product:
8922
+
8923
+ - stylis@4.3.6
8924
+
8925
+ This package contains the following license:
8926
+
8927
+ MIT License
8928
+
8929
+ Copyright (c) 2016-present Sultan Tarimo
8930
+
8931
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8932
+ of this software and associated documentation files (the "Software"), to deal
8933
+ in the Software without restriction, including without limitation the rights
8934
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8935
+ copies of the Software, and to permit persons to whom the Software is
8936
+ furnished to do so, subject to the following conditions:
8937
+
8938
+ The above copyright notice and this permission notice shall be included in all
8939
+ copies or substantial portions of the Software.
8940
+
8941
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8942
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8943
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8944
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8945
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8946
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8947
+ SOFTWARE.
8948
+
8949
+ -----------
8950
+
8765
8951
  The following npm package may be included in this product:
8766
8952
 
8767
8953
  - buffer-from@1.1.2
@@ -9040,6 +9226,36 @@ SOFTWARE.
9040
9226
 
9041
9227
  -----------
9042
9228
 
9229
+ The following npm package may be included in this product:
9230
+
9231
+ - dayjs@1.11.20
9232
+
9233
+ This package contains the following license:
9234
+
9235
+ MIT License
9236
+
9237
+ Copyright (c) 2018-present, iamkun
9238
+
9239
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9240
+ of this software and associated documentation files (the "Software"), to deal
9241
+ in the Software without restriction, including without limitation the rights
9242
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9243
+ copies of the Software, and to permit persons to whom the Software is
9244
+ furnished to do so, subject to the following conditions:
9245
+
9246
+ The above copyright notice and this permission notice shall be included in all
9247
+ copies or substantial portions of the Software.
9248
+
9249
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9250
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9251
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9252
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9253
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9254
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
9255
+ SOFTWARE.
9256
+
9257
+ -----------
9258
+
9043
9259
  The following npm packages may be included in this product:
9044
9260
 
9045
9261
  - @urql/core@5.2.0
@@ -9378,6 +9594,37 @@ SOFTWARE.
9378
9594
 
9379
9595
  -----------
9380
9596
 
9597
+ The following npm packages may be included in this product:
9598
+
9599
+ - @tanstack/query-core@5.100.10
9600
+ - @tanstack/react-query@5.100.10
9601
+
9602
+ These packages each contain the following license:
9603
+
9604
+ MIT License
9605
+
9606
+ Copyright (c) 2021-present Tanner Linsley
9607
+
9608
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9609
+ of this software and associated documentation files (the "Software"), to deal
9610
+ in the Software without restriction, including without limitation the rights
9611
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9612
+ copies of the Software, and to permit persons to whom the Software is
9613
+ furnished to do so, subject to the following conditions:
9614
+
9615
+ The above copyright notice and this permission notice shall be included in all
9616
+ copies or substantial portions of the Software.
9617
+
9618
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9619
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9620
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9621
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9622
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9623
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
9624
+ SOFTWARE.
9625
+
9626
+ -----------
9627
+
9381
9628
  The following npm package may be included in this product:
9382
9629
 
9383
9630
  - supports-preserve-symlinks-flag@1.0.0
@@ -9653,6 +9900,37 @@ SOFTWARE.
9653
9900
 
9654
9901
  -----------
9655
9902
 
9903
+ The following npm packages may be included in this product:
9904
+
9905
+ - @emotion/is-prop-valid@1.4.0
9906
+ - @emotion/memoize@0.9.0
9907
+
9908
+ These packages each contain the following license:
9909
+
9910
+ MIT License
9911
+
9912
+ Copyright (c) Emotion team and other contributors
9913
+
9914
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9915
+ of this software and associated documentation files (the "Software"), to deal
9916
+ in the Software without restriction, including without limitation the rights
9917
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9918
+ copies of the Software, and to permit persons to whom the Software is
9919
+ furnished to do so, subject to the following conditions:
9920
+
9921
+ The above copyright notice and this permission notice shall be included in all
9922
+ copies or substantial portions of the Software.
9923
+
9924
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9925
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9926
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9927
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9928
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9929
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
9930
+ SOFTWARE.
9931
+
9932
+ -----------
9933
+
9656
9934
  The following npm packages may be included in this product:
9657
9935
 
9658
9936
  - babel-plugin-transform-flow-enums@0.0.2
@@ -9831,10 +10109,13 @@ The following npm packages may be included in this product:
9831
10109
  - jest-worker@29.7.0
9832
10110
  - pretty-format@29.7.0
9833
10111
  - react-dom@19.0.0
10112
+ - react-dom@19.1.1
9834
10113
  - react-is@19.2.4
9835
10114
  - react-native@0.79.2
9836
10115
  - react@19.0.0
10116
+ - react@19.1.1
9837
10117
  - scheduler@0.25.0
10118
+ - scheduler@0.26.0
9838
10119
  - use-sync-external-store@1.6.0
9839
10120
 
9840
10121
  These packages each contain the following license:
@@ -12144,6 +12425,36 @@ THE SOFTWARE.
12144
12425
 
12145
12426
  -----------
12146
12427
 
12428
+ The following npm package may be included in this product:
12429
+
12430
+ - mobx@6.15.3
12431
+
12432
+ This package contains the following license:
12433
+
12434
+ The MIT License (MIT)
12435
+
12436
+ Copyright (c) 2015 Michel Weststrate
12437
+
12438
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12439
+ of this software and associated documentation files (the "Software"), to deal
12440
+ in the Software without restriction, including without limitation the rights
12441
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12442
+ copies of the Software, and to permit persons to whom the Software is
12443
+ furnished to do so, subject to the following conditions:
12444
+
12445
+ The above copyright notice and this permission notice shall be included in all
12446
+ copies or substantial portions of the Software.
12447
+
12448
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12449
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12450
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12451
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12452
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12453
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
12454
+ SOFTWARE.
12455
+
12456
+ -----------
12457
+
12147
12458
  The following npm package may be included in this product:
12148
12459
 
12149
12460
  - inline-style-prefixer@7.0.1
@@ -12236,7 +12547,7 @@ SOFTWARE.
12236
12547
 
12237
12548
  The following npm package may be included in this product:
12238
12549
 
12239
- - ajv@8.17.1
12550
+ - ajv@8.18.0
12240
12551
 
12241
12552
  This package contains the following license:
12242
12553
 
@@ -12735,7 +13046,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12735
13046
  The following npm packages may be included in this product:
12736
13047
 
12737
13048
  - picomatch@2.3.2
12738
- - picomatch@3.0.1
13049
+ - picomatch@3.0.2
12739
13050
 
12740
13051
  These packages each contain the following license:
12741
13052
 
@@ -12840,6 +13151,36 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12840
13151
 
12841
13152
  -----------
12842
13153
 
13154
+ The following npm package may be included in this product:
13155
+
13156
+ - framer-motion@11.18.2
13157
+
13158
+ This package contains the following license:
13159
+
13160
+ The MIT License (MIT)
13161
+
13162
+ Copyright (c) 2018 Framer B.V.
13163
+
13164
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13165
+ of this software and associated documentation files (the "Software"), to deal
13166
+ in the Software without restriction, including without limitation the rights
13167
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13168
+ copies of the Software, and to permit persons to whom the Software is
13169
+ furnished to do so, subject to the following conditions:
13170
+
13171
+ The above copyright notice and this permission notice shall be included in all
13172
+ copies or substantial portions of the Software.
13173
+
13174
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13175
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13176
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13177
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
13178
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
13179
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
13180
+ SOFTWARE.
13181
+
13182
+ -----------
13183
+
12843
13184
  The following npm package may be included in this product:
12844
13185
 
12845
13186
  - cross-spawn@7.0.6
@@ -13142,6 +13483,37 @@ SOFTWARE.
13142
13483
 
13143
13484
  -----------
13144
13485
 
13486
+ The following npm packages may be included in this product:
13487
+
13488
+ - motion-dom@11.18.1
13489
+ - motion-utils@11.18.1
13490
+
13491
+ These packages each contain the following license:
13492
+
13493
+ The MIT License (MIT)
13494
+
13495
+ Copyright (c) 2024 [Motion](https://motion.dev) B.V.
13496
+
13497
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13498
+ of this software and associated documentation files (the "Software"), to deal
13499
+ in the Software without restriction, including without limitation the rights
13500
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13501
+ copies of the Software, and to permit persons to whom the Software is
13502
+ furnished to do so, subject to the following conditions:
13503
+
13504
+ The above copyright notice and this permission notice shall be included in all
13505
+ copies or substantial portions of the Software.
13506
+
13507
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13508
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13509
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13510
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
13511
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
13512
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
13513
+ SOFTWARE.
13514
+
13515
+ -----------
13516
+
13145
13517
  The following npm package may be included in this product:
13146
13518
 
13147
13519
  - i18next@25.8.0
@@ -13172,6 +13544,37 @@ SOFTWARE.
13172
13544
 
13173
13545
  -----------
13174
13546
 
13547
+ The following npm packages may be included in this product:
13548
+
13549
+ - i18next-browser-languagedetector@8.2.1
13550
+ - react-i18next@15.7.4
13551
+
13552
+ These packages each contain the following license:
13553
+
13554
+ The MIT License (MIT)
13555
+
13556
+ Copyright (c) 2025 i18next
13557
+
13558
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13559
+ of this software and associated documentation files (the "Software"), to deal
13560
+ in the Software without restriction, including without limitation the rights
13561
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13562
+ copies of the Software, and to permit persons to whom the Software is
13563
+ furnished to do so, subject to the following conditions:
13564
+
13565
+ The above copyright notice and this permission notice shall be included in all
13566
+ copies or substantial portions of the Software.
13567
+
13568
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13569
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13570
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13571
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
13572
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
13573
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
13574
+ SOFTWARE.
13575
+
13576
+ -----------
13577
+
13175
13578
  The following npm package may be included in this product:
13176
13579
 
13177
13580
  - @expo/schema-utils@0.1.8
package/lib/esm/index.js CHANGED
@@ -1 +1,2 @@
1
- var le=Object.create;var k=Object.defineProperty,Me=Object.defineProperties,xe=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols,he=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var z=(e,r,t)=>r in e?k(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,y=(e,r)=>{for(var t in r||(r={}))A.call(r,t)&&z(e,t,r[t]);if(L)for(var t of L(r))H.call(r,t)&&z(e,t,r[t]);return e},C=(e,r)=>Me(e,ye(r)),p=(e,r)=>k(e,"name",{value:r,configurable:!0});var U=(e,r)=>{var t={};for(var a in e)A.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&L)for(var a of L(e))r.indexOf(a)<0&&H.call(e,a)&&(t[a]=e[a]);return t};var Ee=(e,r)=>()=>(e&&(r=e(e=0)),r);var Pe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ge=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of we(r))!A.call(e,o)&&o!==t&&k(e,o,{get:()=>r[o],enumerable:!(a=xe(r,o))||a.enumerable});return e};var q=(e,r,t)=>(t=e!=null?le(he(e)):{},ge(r||!e||!e.__esModule?k(t,"default",{value:e,enumerable:!0}):t,e));var u,n=Ee(()=>{u={env:{NODE_ENV:"production",npm_package_version:"6.18.0"}}});var I=Pe((Ht,K)=>{"use strict";n();K.exports=p(function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var a,o,s;if(Array.isArray(r)){if(a=r.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(s=Object.keys(r),a=s.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=a;o--!==0;){var i=s[o];if(!e(r[i],t[i]))return!1}return!0}return r!==r&&t!==t},"equal")});n();n();import Se,{createContext as Ve,useCallback as F,useMemo as Te,useRef as ve}from"react";var S=Ve({getCache:p(()=>{},"getCache"),setCache:p(()=>{},"setCache")});function j({mapData:e,children:r}){let t=ve(e?{mapData:e,options:{}}:void 0),a=F(()=>t.current,[]),o=F(i=>{t.current=i},[]),s=Te(()=>({getCache:a,setCache:o}),[a,o]);return Se.createElement(S.Provider,{value:s},r)}p(j,"MapDataProvider");n();var X=q(I());import{useCallback as Ne,useContext as Le,useEffect as Q,useRef as ke,useState as J}from"react";import{getMapData as be}from"@mappedin/mappedin-js";n();var Re="[MappedinJS]";function Ce(e="",{prefix:r=Re}={}){let t="".concat(r).concat(e?"-".concat(e):""),a=p((o,s)=>{if(typeof window<"u"&&window.rnDebug){let i=s.map(M=>M instanceof Error&&M.stack?"".concat(M.message,"\n").concat(M.stack):M);window.rnDebug("".concat(e," ").concat(o,": ").concat(i.join(" ")))}},"rnDebug");return{logState:u.env.NODE_ENV==="test"?3:0,log(...o){this.logState<=0&&(console.log(t,...o),a("log",o))},warn(...o){this.logState<=1&&(console.warn(t,...o),a("warn",o))},error(...o){this.logState<=2&&(console.error(t,...o),a("error",o))},assert(...o){console.assert(...o)},time(o){console.time(o)},timeEnd(o){console.timeEnd(o)},setLevel(o){0<=o&&o<=3&&(this.logState=o)}}}p(Ce,"createLogger");var Oe=Ce();var T=Oe;n();var Y=q(I());import{useRef as B}from"react";function l(e,r){let t=B(void 0),a=B(void 0);return(0,Y.default)(r,a.current)||(t.current=e(),a.current=r),t.current}p(l,"useMemoDeep");function Ae(e){let{getCache:r,setCache:t}=Le(S),[a,o]=J(void 0),[s,i]=J(!0),[M,m]=J(void 0),g=ke(0),d=l(()=>e&&C(y({},e),{analytics:y({context:"reactsdk"},e==null?void 0:e.analytics)}),[e]),V=Ne(w=>{let D=++g.current;i(!0),m(void 0),be(w).then(h=>{g.current===D&&o(h)}).catch(h=>{g.current===D&&(T.error("Failed to fetch MapData",h),m(h))}).finally(()=>{g.current===D&&i(!1)})},[]);return Q(()=>{let w=r==null?void 0:r();if(w!=null&&(d==null||w.mapData.mapId===d.mapId&&(0,X.default)(w.options,d))){o(w.mapData),i(!1),m(void 0);return}if(!d){m(new Error("useMapData requires options if not use within a MapDataProvider or MapView component."));return}V(d)},[V,r,d]),Q(()=>{let w=r==null?void 0:r();a!=null&&(w==null||w.mapData.mapId===a.mapId)&&(t==null||t({mapData:a,options:d||{}}))},[a,d,r,t]),{mapData:a,isLoading:s,error:M}}p(Ae,"useMapData");n();import{useCallback as je,useContext as Ie,useEffect as Je}from"react";function We(e,r){let{getCache:t}=Ie(S),a=je(o=>r(o),[r]);Je(()=>{var s;let o=(s=t==null?void 0:t())==null?void 0:s.mapData;if(o==null)throw new Error("useMapDataEvent must be used within a MapDataProvider or MapView component.");return o.on(e,a),()=>{o!=null&&o.off(e,a)}},[t,e,a])}p(We,"useMapDataEvent");n();import O,{useCallback as Z,useEffect as _e,useMemo as ee,useRef as te,useState as re,forwardRef as Ge,useImperativeHandle as $e,createContext as ze}from"react";import{show3dMap as He}from"@mappedin/mappedin-js";var f=ze({mapView:void 0,extensions:{}}),Ue={width:"100%",height:"100%",position:"relative"},qe=Ge((e,r)=>{let $=e,{mapData:t,options:a,style:o,fallback:s,children:i}=$,M=U($,["mapData","options","style","fallback","children"]),m=te({extensions:{}}).current,[g,d]=re(!0),[V,w]=re(!1),D=te(null),h=ee(()=>t,[t]),G=l(()=>a,[a]);$e(r,()=>m.mapView);let ce=ee(()=>({mapView:m.mapView,extensions:m.extensions}),[h,m.mapView,m.extensions]),de=Z(E=>{try{let x=Object.keys(E);for(let v of x){let R=E[v];R&&(R.onDeregister(R.instance),delete E[v])}}catch(x){T.error("Failed to clean up extensions",x)}return{}},[]),N=Z(E=>{var v;let x=E||m.mapView;try{(v=x==null?void 0:x.destroy)==null||v.call(x)}catch(R){T.error("Failed to destroy MapView",R)}E||(m.extensions=de(m.extensions),m.mapView=void 0,w(!1))},[]);return _e(()=>{if(!h||!D.current)return;N();let E=!1;return d(!0),He(D.current,h,G).then(x=>{E?N(x):(m.mapView=x,w(!0))}).catch(x=>{T.error("Failed to render MapView",x)}).finally(()=>{E||d(!1)}),()=>{E=!0,m.mapView&&N()}},[h,G,N]),O.createElement(j,{mapData:h},O.createElement(f.Provider,{value:ce},O.createElement("div",y({"data-testid":"mappedin-map",ref:D,style:y(y({},Ue),o)},M)),g?O.createElement(O.Fragment,null,s):V?i:null))});n();import{useCallback as Fe,useContext as Ke,useEffect as Be}from"react";n();var W=class W extends Error{constructor(r){super("".concat(r," must be used within a MapView component."))}};p(W,"MapViewNullError");var c=W;function Ye(e,r){let{mapView:t}=Ke(f),a=Fe(o=>r(o),[r]);Be(()=>{if(t==null)throw new c("useMapViewEvent");return t.on(e,a),()=>{t!=null&&t.off(e,a)}},[t,e,r])}p(Ye,"useMapViewEvent");n();import{useCallback as ae,useContext as Qe}from"react";function Xe(e,r){let{extensions:t}=Qe(f);if(!(r!=null&&r.onRegister)||!(r!=null&&r.onDeregister))throw new Error("onRegister and onDeregister are required");let a=ae(()=>{let s=t[e],i=s==null?void 0:s.instance;return i||(i=r.onRegister(),t[e]={instance:i,onDeregister:r.onDeregister}),i},[t,e,r.onRegister]),o=ae(()=>{let s=t[e];s&&(s.onDeregister(s.instance),delete t[e])},[t,e,r.onDeregister]);return{register:a,deregister:o}}p(Xe,"useMapViewExtension");n();import{useContext as tt,useEffect as rt,useRef as at,forwardRef as ot,useImperativeHandle as nt,useState as it}from"react";n();import{useEffect as Ze,useRef as et}from"react";function P(e,r){let t=et(!0);Ze(()=>{if(t.current){t.current=!1;return}return e()},r)}p(P,"useUpdateEffect");var st=ot((e,r)=>{let{mapView:t}=tt(f),a=at(void 0),o=l(()=>e.options,[e.options]),[s,i]=it(!1);return nt(r,()=>a.current,[s]),rt(()=>{if(t==null)throw new c("Path");let M=t.Paths.add(e.coordinate,o);return M.animation.then(()=>{var m;(m=e.onDrawComplete)==null||m.call(e)}),a.current=M,i(!0),()=>{a.current&&t.Paths.remove(a.current),i(!1)}},[t,e.coordinate]),P(()=>{a.current&&o&&(t==null||t.updateState(a.current,o))},[o]),null});n();import{useContext as pt,useEffect as mt}from"react";function ut(e){let{mapView:r}=pt(f),t=l(()=>e.options,[e.options]);return mt(()=>{if(r==null)throw new c("Navigation");return r.Navigation.draw(e.directions,t).then(()=>{var a;(a=e.onDrawComplete)==null||a.call(e)}),()=>{r.Navigation.clear()}},[r,e.directions,t]),null}p(ut,"Navigation");n();import{useContext as ft,useEffect as ct,useRef as dt,forwardRef as lt,useImperativeHandle as Mt,useState as xt}from"react";var yt=lt((e,r)=>{let{mapView:t}=ft(f),a=dt(void 0),o=l(()=>e.style,[e.style]),[s,i]=xt(!1);return Mt(r,()=>a.current,[s]),ct(()=>{if(t==null)throw new Error("MapView not initialized");return a.current=t.Shapes.add(e.geometry,e.style,e.floor),i(!0),()=>{t==null||a.current==null||(t.Shapes.remove(a.current),i(!1))}},[t,e.geometry,e.style,e.floor]),P(()=>{a.current&&o&&(t==null||t.updateState(a.current,o))},[o]),null});n();import{useContext as wt,useEffect as ht,useRef as Et,forwardRef as Pt,useImperativeHandle as gt,useState as Dt}from"react";var St=Pt((e,r)=>{let{mapView:t}=wt(f),a=Et(void 0),o=l(()=>e.options,[e.options]),[s,i]=Dt(!1);return gt(r,()=>a.current,[s]),ht(()=>{if(t==null)throw new c("Model");return a.current=t.Models.add(e.coordinate,e.url,o),i(!0),()=>{t==null||a.current==null||(t.Models.remove(a.current),i(!1))}},[t,e.url]),P(()=>{a.current&&(t==null||t.updateState(a.current,y({position:e.coordinate},o)))},[e.coordinate,o]),null});n();import{useContext as oe}from"react";function Vt(){var t;let{mapView:e}=oe(f),{getCache:r}=oe(S);if(!e)throw new c("useMap");return{mapData:((t=r==null?void 0:r())==null?void 0:t.mapData)||e.getMapData(),mapView:e}}p(Vt,"useMap");n();import Tt,{useCallback as vt,useContext as ie,useEffect as se,useMemo as Rt,useRef as b,forwardRef as pe,useImperativeHandle as me,useState as ue}from"react";import{createPortal as Ct}from"react-dom";n();var _=[0,4,6,8,10],ne=p(()=>{let e=new Array(16).fill(0),r=Math.random()*4294967296;for(let a=0;a<e.length;a++)a>0&&(a&3)===0&&(r=Math.random()*4294967296),e[a]=r>>>((a&3)<<3)&255;let t=e.map(a=>a.toString(16).padStart(2,"0"));return t[6]="4"+t[6][1],t[8]=["8","9","a","b"].includes(t[7][0])?t[7]:"a"+t[7][1],_.map((a,o)=>t.slice(a,o===_.length-1?void 0:_[o+1]).join("")).join("-")},"randomId");var fe=pe((e,r)=>{let{mapView:t}=ie(f),a=b(void 0),[o,s]=ue(!1),i=l(()=>e.options,[e.options]);return me(r,()=>a.current,[o]),se(()=>{if(t==null)throw new c("Marker");return a.current=t.Markers.add(e.target,"",i),s(!0),()=>{t==null||a.current==null||(t.Markers.remove(a.current),s(!1))}},[t,e.target]),P(()=>{a.current&&i&&(t==null||t.updateState(a.current,i))},[i]),t==null||a.current==null?null:Ct(e.children,a.current.contentEl,a.current.id)}),Ot=pe((e,r)=>{let{mapView:t}=ie(f),a=b(ne()),o=b(void 0),[s,i]=ue(!1),M=b(e.target);me(r,()=>o.current,[s]);let m=vt(d=>{o.current=d||void 0,i(!!d)},[]);se(()=>{if(t==null)throw new c("Marker");if(o.current&&o.current.target!==e.target){let{duration:d=300,easing:V="linear"}=e;t.Markers.animateTo(o.current,e.target,{duration:d,easing:V})}return()=>{i(!1)}},[t,e.target]);let g=Rt(()=>C(y({},e),{duration:void 0,easing:void 0}),[e.duration,e.easing]);return Tt.createElement(fe,C(y({},g),{key:a.current,target:M.current,ref:m}))});n();import{forwardRef as Nt,useContext as Lt,useEffect as kt,useImperativeHandle as bt,useRef as At,useState as jt}from"react";var It=Nt((e,r)=>{let{mapView:t}=Lt(f),a=At(void 0),[o,s]=jt(!1),i=l(()=>e.options,[e.options]);return bt(r,()=>a.current,[o]),kt(()=>{if(t==null)throw new c("Label");return a.current=t.Labels.add(e.target,e.text,i),s(!0),()=>{t==null||a.current==null||(t.Labels.remove(a.current),s(!1))}},[t,e.target]),P(()=>{a.current&&(t==null||t.updateState(a.current,y({text:e.text},i)))},[e.text,i]),null});export{Ot as AnimatedMarker,It as Label,j as MapDataProvider,qe as MapView,fe as Marker,St as Model,ut as Navigation,st as Path,yt as Shape,Vt as useMap,Ae as useMapData,We as useMapDataEvent,Ye as useMapViewEvent,Xe as useMapViewExtension};
1
+ var ie=Object.create;var N=Object.defineProperty;var se=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty;var p=(e,r)=>N(e,"name",{value:r,configurable:!0});var fe=(e,r)=>()=>(e&&(r=e(e=0)),r);var ce=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var de=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of pe(r))!ue.call(e,o)&&o!==t&&N(e,o,{get:()=>r[o],enumerable:!(a=se(r,o))||a.enumerable});return e};var J=(e,r,t)=>(t=e!=null?ie(me(e)):{},de(r||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e));var m,n=fe(()=>{m={env:{NODE_ENV:"production",npm_package_version:"6.19.0"}}});var k=ce((At,_)=>{"use strict";n();_.exports=p(function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var a,o,s;if(Array.isArray(r)){if(a=r.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(s=Object.keys(r),a=s.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=a;o--!==0;){var i=s[o];if(!e(r[i],t[i]))return!1}return!0}return r!==r&&t!==t},"equal")});n();n();import Me,{createContext as ye,useCallback as W,useMemo as xe,useRef as we}from"react";var P=ye({getCache:p(()=>{},"getCache"),setCache:p(()=>{},"setCache")});function L({mapData:e,children:r}){let t=we(e?{mapData:e,options:{}}:void 0),a=W(()=>t.current,[]),o=W(i=>{t.current=i},[]),s=xe(()=>({getCache:a,setCache:o}),[a,o]);return Me.createElement(P.Provider,{value:s},r)}p(L,"MapDataProvider");n();var H=J(k());import{useCallback as Ee,useContext as Pe,useEffect as z,useRef as Ve,useState as b}from"react";import{getMapData as Se}from"@mappedin/mappedin-js";n();var he="[MappedinJS]";function ge(e="",{prefix:r=he}={}){let t=`${r}${e?`-${e}`:""}`,a=p((o,s)=>{if(typeof window<"u"&&window.rnDebug){let i=s.map(M=>M instanceof Error&&M.stack?`${M.message}
2
+ ${M.stack}`:M);window.rnDebug(`${e} ${o}: ${i.join(" ")}`)}},"rnDebug");return{logState:m.env.NODE_ENV==="test"?3:0,log(...o){this.logState<=0&&(console.log(t,...o),a("log",o))},warn(...o){this.logState<=1&&(console.warn(t,...o),a("warn",o))},error(...o){this.logState<=2&&(console.error(t,...o),a("error",o))},assert(...o){console.assert(...o)},time(o){console.time(o)},timeEnd(o){console.timeEnd(o)},setLevel(o){0<=o&&o<=3&&(this.logState=o)}}}p(ge,"createLogger");var De=ge();var S=De;n();var $=J(k());import{useRef as G}from"react";function l(e,r){let t=G(void 0),a=G(void 0);return(0,$.default)(r,a.current)||(t.current=e(),a.current=r),t.current}p(l,"useMemoDeep");function Te(e){let{getCache:r,setCache:t}=Pe(P),[a,o]=b(void 0),[s,i]=b(!0),[M,f]=b(void 0),D=Ve(0),d=l(()=>e&&{...e,analytics:{context:"reactsdk",...e?.analytics}},[e]),V=Ee(y=>{let E=++D.current;i(!0),f(void 0),Se(y).then(x=>{D.current===E&&o(x)}).catch(x=>{D.current===E&&(S.error("Failed to fetch MapData",x),f(x))}).finally(()=>{D.current===E&&i(!1)})},[]);return z(()=>{let y=r?.();if(y!=null&&(d==null||y.mapData.mapId===d.mapId&&(0,H.default)(y.options,d))){o(y.mapData),i(!1),f(void 0);return}if(!d){f(new Error("useMapData requires options if not use within a MapDataProvider or MapView component."));return}V(d)},[V,r,d]),z(()=>{let y=r?.();a!=null&&(y==null||y.mapData.mapId===a.mapId)&&t?.({mapData:a,options:d||{}})},[a,d,r,t]),{mapData:a,isLoading:s,error:M}}p(Te,"useMapData");n();import{useCallback as Ce,useContext as ve,useEffect as Re}from"react";function Oe(e,r){let{getCache:t}=ve(P),a=Ce(o=>r(o),[r]);Re(()=>{let o=t?.()?.mapData;if(o==null)throw new Error("useMapDataEvent must be used within a MapDataProvider or MapView component.");return o.on(e,a),()=>{o?.off(e,a)}},[t,e,a])}p(Oe,"useMapDataEvent");n();import T,{useCallback as U,useEffect as Ne,useMemo as q,useRef as F,useState as K,forwardRef as Le,useImperativeHandle as ke,createContext as be}from"react";import{show3dMap as Ae}from"@mappedin/mappedin-js";var u=be({mapView:void 0,extensions:{}}),je={width:"100%",height:"100%",position:"relative"},Ie=Le((e,r)=>{let{mapData:t,options:a,style:o,fallback:s,children:i,...M}=e,f=F({extensions:{}}).current,[D,d]=K(!0),[V,y]=K(!1),E=F(null),x=q(()=>t,[t]),I=l(()=>a,[a]);ke(r,()=>f.mapView);let oe=q(()=>({mapView:f.mapView,extensions:f.extensions}),[x,f.mapView,f.extensions]),ne=U(w=>{try{let h=Object.keys(w);for(let v of h){let O=w[v];O&&(O.onDeregister(O.instance),delete w[v])}}catch(h){S.error("Failed to clean up extensions",h)}return{}},[]),C=U(w=>{let h=w||f.mapView;try{h?.destroy?.()}catch(v){S.error("Failed to destroy MapView",v)}w||(f.extensions=ne(f.extensions),f.mapView=void 0,y(!1))},[]);return Ne(()=>{if(!x||!E.current)return;C();let w=!1;return d(!0),Ae(E.current,x,I).then(h=>{w?C(h):(f.mapView=h,y(!0))}).catch(h=>{S.error("Failed to render MapView",h)}).finally(()=>{w||d(!1)}),()=>{w=!0,f.mapView&&C()}},[x,I,C]),T.createElement(L,{mapData:x},T.createElement(u.Provider,{value:oe},T.createElement("div",{"data-testid":"mappedin-map",ref:E,style:{...je,...o},...M}),D?T.createElement(T.Fragment,null,s):V?i:null))});n();import{useCallback as Je,useContext as We,useEffect as _e}from"react";n();var A=class A extends Error{constructor(r){super(`${r} must be used within a MapView component.`)}};p(A,"MapViewNullError");var c=A;function Ge(e,r){let{mapView:t}=We(u),a=Je(o=>r(o),[r]);_e(()=>{if(t==null)throw new c("useMapViewEvent");return t.on(e,a),()=>{t?.off(e,a)}},[t,e,r])}p(Ge,"useMapViewEvent");n();import{useCallback as B,useContext as $e}from"react";function ze(e,r){let{extensions:t}=$e(u);if(!r?.onRegister||!r?.onDeregister)throw new Error("onRegister and onDeregister are required");let a=B(()=>{let i=t[e]?.instance;return i||(i=r.onRegister(),t[e]={instance:i,onDeregister:r.onDeregister}),i},[t,e,r.onRegister]),o=B(()=>{let s=t[e];s&&(s.onDeregister(s.instance),delete t[e])},[t,e,r.onDeregister]);return{register:a,deregister:o}}p(ze,"useMapViewExtension");n();import{useContext as qe,useEffect as Fe,useRef as Ke,forwardRef as Be,useImperativeHandle as Ye,useState as Qe}from"react";n();import{useEffect as He,useRef as Ue}from"react";function g(e,r){let t=Ue(!0);He(()=>{if(t.current){t.current=!1;return}return e()},r)}p(g,"useUpdateEffect");var Xe=Be((e,r)=>{let{mapView:t}=qe(u),a=Ke(void 0),o=l(()=>e.options,[e.options]),[s,i]=Qe(!1);return Ye(r,()=>a.current,[s]),Fe(()=>{if(t==null)throw new c("Path");let M=t.Paths.add(e.coordinate,o);return M.animation.then(()=>{e.onDrawComplete?.()}),a.current=M,i(!0),()=>{a.current&&t.Paths.remove(a.current),i(!1)}},[t,e.coordinate]),g(()=>{a.current&&o&&t?.updateState(a.current,o)},[o]),null});n();import{useContext as Ze,useEffect as et}from"react";function tt(e){let{mapView:r}=Ze(u),t=l(()=>e.options,[e.options]);return et(()=>{if(r==null)throw new c("Navigation");return r.Navigation.draw(e.directions,t).then(()=>{e.onDrawComplete?.()}),()=>{r.Navigation.clear()}},[r,e.directions,t]),null}p(tt,"Navigation");n();import{useContext as rt,useEffect as at,useRef as ot,forwardRef as nt,useImperativeHandle as it,useState as st}from"react";var pt=nt((e,r)=>{let{mapView:t}=rt(u),a=ot(void 0),o=l(()=>e.style,[e.style]),[s,i]=st(!1);return it(r,()=>a.current,[s]),at(()=>{if(t==null)throw new Error("MapView not initialized");return a.current=t.Shapes.add(e.geometry,e.style,e.floor),i(!0),()=>{t==null||a.current==null||(t.Shapes.remove(a.current),i(!1))}},[t,e.geometry,e.style,e.floor]),g(()=>{a.current&&o&&t?.updateState(a.current,o)},[o]),null});n();import{useContext as mt,useEffect as ut,useRef as ft,forwardRef as ct,useImperativeHandle as dt,useState as lt}from"react";var Mt=ct((e,r)=>{let{mapView:t}=mt(u),a=ft(void 0),o=l(()=>e.options,[e.options]),[s,i]=lt(!1);return dt(r,()=>a.current,[s]),ut(()=>{if(t==null)throw new c("Model");return a.current=t.Models.add(e.coordinate,e.url,o),i(!0),()=>{t==null||a.current==null||(t.Models.remove(a.current),i(!1))}},[t,e.url]),g(()=>{a.current&&t?.updateState(a.current,{position:e.coordinate,...o})},[e.coordinate,o]),null});n();import{useContext as Y}from"react";function yt(){let{mapView:e}=Y(u),{getCache:r}=Y(P);if(!e)throw new c("useMap");return{mapData:r?.()?.mapData||e.getMapData(),mapView:e}}p(yt,"useMap");n();import xt,{useCallback as wt,useContext as X,useEffect as Z,useMemo as ht,useRef as R,forwardRef as ee,useImperativeHandle as te,useState as re}from"react";import{createPortal as gt}from"react-dom";n();var j=[0,4,6,8,10],Q=p(()=>{let e=new Array(16).fill(0),r=Math.random()*4294967296;for(let a=0;a<e.length;a++)a>0&&(a&3)===0&&(r=Math.random()*4294967296),e[a]=r>>>((a&3)<<3)&255;let t=e.map(a=>a.toString(16).padStart(2,"0"));return t[6]="4"+t[6][1],t[8]=["8","9","a","b"].includes(t[7][0])?t[7]:"a"+t[7][1],j.map((a,o)=>t.slice(a,o===j.length-1?void 0:j[o+1]).join("")).join("-")},"randomId");var ae=ee((e,r)=>{let{mapView:t}=X(u),a=R(void 0),[o,s]=re(!1),i=l(()=>e.options,[e.options]);return te(r,()=>a.current,[o]),Z(()=>{if(t==null)throw new c("Marker");return a.current=t.Markers.add(e.target,"",i),s(!0),()=>{t==null||a.current==null||(t.Markers.remove(a.current),s(!1))}},[t,e.target]),g(()=>{a.current&&i&&t?.updateState(a.current,i)},[i]),t==null||a.current==null?null:gt(e.children,a.current.contentEl,a.current.id)}),Dt=ee((e,r)=>{let{mapView:t}=X(u),a=R(Q()),o=R(void 0),[s,i]=re(!1),M=R(e.target);te(r,()=>o.current,[s]);let f=wt(d=>{o.current=d||void 0,i(!!d)},[]);Z(()=>{if(t==null)throw new c("Marker");if(o.current&&o.current.target!==e.target){let{duration:d=300,easing:V="linear"}=e;t.Markers.animateTo(o.current,e.target,{duration:d,easing:V})}return()=>{i(!1)}},[t,e.target]);let D=ht(()=>({...e,duration:void 0,easing:void 0}),[e.duration,e.easing]);return xt.createElement(ae,{...D,key:a.current,target:M.current,ref:f})});n();import{forwardRef as Et,useContext as Pt,useEffect as Vt,useImperativeHandle as St,useRef as Tt,useState as Ct}from"react";var vt=Et((e,r)=>{let{mapView:t}=Pt(u),a=Tt(void 0),[o,s]=Ct(!1),i=l(()=>e.options,[e.options]);return St(r,()=>a.current,[o]),Vt(()=>{if(t==null)throw new c("Label");return a.current=t.Labels.add(e.target,e.text,i),s(!0),()=>{t==null||a.current==null||(t.Labels.remove(a.current),s(!1))}},[t,e.target]),g(()=>{a.current&&t?.updateState(a.current,{text:e.text,...i})},[e.text,i]),null});export{Dt as AnimatedMarker,vt as Label,L as MapDataProvider,Ie as MapView,ae as Marker,Mt as Model,tt as Navigation,Xe as Path,pt as Shape,yt as useMap,Te as useMapData,Oe as useMapDataEvent,Ge as useMapViewEvent,ze as useMapViewExtension};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/react-sdk",
3
- "version": "6.18.0",
3
+ "version": "6.19.0",
4
4
  "homepage": "https://developer.mappedin.com/",
5
5
  "private": false,
6
6
  "main": "lib/esm/index.js",
@@ -17,7 +17,7 @@
17
17
  "peerDependencies": {
18
18
  "react": ">=16.8.0",
19
19
  "react-dom": ">=16.8.0",
20
- "@mappedin/mappedin-js": "^6.18.0"
20
+ "@mappedin/mappedin-js": "^6.19.0"
21
21
  },
22
22
  "dependencies": {},
23
23
  "devDependencies": {},