@ionic/portals-react-native 0.8.5 → 0.9.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/LICENSE.md +103 -67
- package/README.md +3 -4
- package/ReactNativePortals.podspec +5 -5
- package/android/build.gradle +3 -3
- package/android/gradle.properties +4 -4
- package/android/src/main/java/io/ionic/portals/reactnative/ReactNativePortalManager.kt +1 -5
- package/ios/PortalsConfig.swift +0 -1
- package/ios/PortalsReactNative.swift +0 -5
- package/lib/commonjs/index.js +2 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +2 -6
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -4
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +11 -10
- package/src/index.tsx +2 -6
package/LICENSE.md
CHANGED
|
@@ -1,67 +1,103 @@
|
|
|
1
|
-
# Ionic Portals License
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
##
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
The
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
# Ionic Portals License 2.0.0
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Based on the text of the licenses in the Polyform Project with new conditions requiring a separate commercial agreement.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Copyright License
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it, but only so long as you comply with the Separate Commercial Agreement requirement below. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Separate Commercial Agreement
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
You must have a valid and active Separate Commercial Agreement in place with Drifty Co., d/b/a Ionic, under which you have purchased or otherwise received rights to use Ionic Portals.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Distribution License
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
The licensor grants you an additional copyright license to distribute copies of the software, but only so long as you comply with the Separate Commercial Agreement requirement above and the Notice requirement below. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Notices
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software, but only so long as you comply with the Separate Commercial Agreement requirement above.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Fair Use
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## No Other Rights
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## Patent Defense
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## Violations
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 30 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## No Liability
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Order of Precedence
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
To the extent there is a conflict between the scope of license rights defined in the Separate Commercial Agreement and in this license, the Separate Commercial Agreement shall take precedence.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## Definitions
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/README.md
CHANGED
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
</div>
|
|
8
8
|
<br />
|
|
9
9
|
<p align="center">
|
|
10
|
-
<img src="https://img.shields.io/badge/platform-iOS%
|
|
11
|
-
<img src="https://img.shields.io/badge/platform-Android%20SDK%
|
|
12
|
-
<img src="https://img.shields.io/badge/platform-React%20Native%200.
|
|
10
|
+
<img src="https://img.shields.io/badge/platform-iOS%2015.1%2B-lightgrey?style=flat-square" alt="Supports iOS 15.1 and up" />
|
|
11
|
+
<img src="https://img.shields.io/badge/platform-Android%20SDK%2024%2B-brightgreen?style=flat-square" alt="Supports Android SDK 24 and up" />
|
|
12
|
+
<img src="https://img.shields.io/badge/platform-React%20Native%200.80.3%2B-blue?style=flat-square" alt="Supports React Native 0.80.3 and up" />
|
|
13
13
|
</p>
|
|
14
14
|
<p align="center">
|
|
15
|
-
<a href="https://github.com/ionic-team/react-native-ionic-portals/actions/workflows/verify.yml"><img src="https://img.shields.io/github/actions/workflow/status/ionic-team/react-native-ionic-portals/verify.yml?branch=main&style=flat-square" /></a>
|
|
16
15
|
<a href="https://www.npmjs.com/package/@ionic/portals-react-native"><img src="https://img.shields.io/npm/l/@ionic/portals-react-native?style=flat-square" /></a>
|
|
17
16
|
</p>
|
|
18
17
|
<p align="center">
|
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.license = package["license"]
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
|
-
s.platforms = { :ios => '
|
|
14
|
+
s.platforms = { :ios => '15.1' }
|
|
15
15
|
s.source = { :git => "https://github.com/ionic-team/ionic-portals-react-native.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
@@ -19,14 +19,14 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
20
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
21
|
if respond_to?(:install_modules_dependencies, true)
|
|
22
|
-
s.dependency 'IonicPortals', '~> 0.
|
|
23
|
-
s.dependency 'IonicLiveUpdates', '~> 0.5.
|
|
22
|
+
s.dependency 'IonicPortals', '~> 0.13.0'
|
|
23
|
+
s.dependency 'IonicLiveUpdates', '~> 0.5.7'
|
|
24
24
|
install_modules_dependencies(s)
|
|
25
25
|
|
|
26
26
|
else
|
|
27
27
|
s.dependency "React-Core"
|
|
28
|
-
s.dependency 'IonicPortals', '~> 0.
|
|
29
|
-
s.dependency 'IonicLiveUpdates', '~> 0.5.
|
|
28
|
+
s.dependency 'IonicPortals', '~> 0.13.0'
|
|
29
|
+
s.dependency 'IonicLiveUpdates', '~> 0.5.7'
|
|
30
30
|
|
|
31
31
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
32
32
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
package/android/build.gradle
CHANGED
|
@@ -8,7 +8,7 @@ buildscript {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
dependencies {
|
|
11
|
-
classpath "com.android.tools.build:gradle:8.
|
|
11
|
+
classpath "com.android.tools.build:gradle:8.13.0"
|
|
12
12
|
// noinspection DifferentKotlinGradleVersion
|
|
13
13
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
14
14
|
}
|
|
@@ -93,9 +93,9 @@ dependencies {
|
|
|
93
93
|
// For < 0.71, this will be from the local maven repo
|
|
94
94
|
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
95
95
|
//noinspection GradleDynamicVersion
|
|
96
|
-
implementation "com.facebook.react:react-
|
|
96
|
+
implementation "com.facebook.react:react-android"
|
|
97
97
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
98
|
-
implementation "io.ionic:portals:0.
|
|
98
|
+
implementation "io.ionic:portals:0.13.0-rn.1"
|
|
99
99
|
implementation "io.ionic:liveupdates:0.5.+"
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
PortalsReactNative_kotlinVersion=1.
|
|
2
|
-
PortalsReactNative_minSdkVersion=
|
|
3
|
-
PortalsReactNative_targetSdkVersion=
|
|
4
|
-
PortalsReactNative_compileSdkVersion=
|
|
1
|
+
PortalsReactNative_kotlinVersion=2.1.20
|
|
2
|
+
PortalsReactNative_minSdkVersion=24
|
|
3
|
+
PortalsReactNative_targetSdkVersion=36
|
|
4
|
+
PortalsReactNative_compileSdkVersion=36
|
|
5
5
|
PortalsReactNative_ndkversion=21.4.7075529
|
|
6
6
|
android.useAndroidX=true
|
|
@@ -44,7 +44,7 @@ internal object RNPortalManager {
|
|
|
44
44
|
private lateinit var reactApplicationContext: ReactApplicationContext
|
|
45
45
|
private var usesSecureLiveUpdates = false
|
|
46
46
|
|
|
47
|
-
fun register(key: String) =
|
|
47
|
+
fun register(key: String) = Unit
|
|
48
48
|
|
|
49
49
|
fun createPortal(map: ReadableMap): RNPortal? {
|
|
50
50
|
val name = map.getString("name") ?: return null
|
|
@@ -162,10 +162,6 @@ internal object RNPortalManager {
|
|
|
162
162
|
throw Error("Portals config data is malformed. Aborting.", e)
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
val registrationKey =
|
|
166
|
-
if (!configJson.isNull("registrationKey")) configJson.getString("registrationKey") else null
|
|
167
|
-
registrationKey?.let(::register)
|
|
168
|
-
|
|
169
165
|
val liveUpdatesKey =
|
|
170
166
|
if (!configJson.isNull("liveUpdatesKey")) configJson.getString("liveUpdatesKey") else null
|
|
171
167
|
liveUpdatesKey?.let {
|
package/ios/PortalsConfig.swift
CHANGED
|
@@ -19,10 +19,6 @@ public class PortalsReactNative: NSObject {
|
|
|
19
19
|
let portalsConfig = try? JSONDecoder().decode(PortalsConfig.self, from: configData)
|
|
20
20
|
else { fatalError("Portals config data is malformed. Aborting.") }
|
|
21
21
|
|
|
22
|
-
if let registrationKey = portalsConfig.registrationKey {
|
|
23
|
-
PortalsRegistrationManager.shared.register(key: registrationKey)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
if let publicKeyPath = portalsConfig.secureLiveUpdatesPublicKey {
|
|
27
23
|
guard let publicKeyUrl = Bundle.main.url(forResource: publicKeyPath, withExtension: nil) else { fatalError("Public key not found at \(publicKeyPath)") }
|
|
28
24
|
Self.lum = SecureLiveUpdateManager(named: "secure-updates", publicKeyUrl: publicKeyUrl)
|
|
@@ -30,7 +26,6 @@ public class PortalsReactNative: NSObject {
|
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
@objc func register(_ key: String, resolver: RCTPromiseResolveBlock, rejector: RCTPromiseRejectBlock) {
|
|
33
|
-
PortalsRegistrationManager.shared.register(key: key)
|
|
34
29
|
resolver(())
|
|
35
30
|
}
|
|
36
31
|
|
package/lib/commonjs/index.js
CHANGED
|
@@ -84,13 +84,9 @@ const registerVital = (portalName, vital, callback) => {
|
|
|
84
84
|
webVitalsMap.set(`${portalName}-vitals:${vital}`, listener);
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
88
|
-
* @param key The registration key
|
|
89
|
-
* @returns Promise<void>
|
|
87
|
+
* @deprecated Registration keys are no longer required. This function is a no-op and will be removed in a future release.
|
|
90
88
|
*/
|
|
91
|
-
const register = async
|
|
92
|
-
return IONPortalsReactNative.register(key);
|
|
93
|
-
};
|
|
89
|
+
const register = async _key => {};
|
|
94
90
|
|
|
95
91
|
/**
|
|
96
92
|
* The configuration of a web application to be embedded in a React Native application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_BasePortalView","e","__esModule","default","IONPortalPubSub","IONPortalsReactNative","IONPortalsWebVitals","NativeModules","PortalView","props","webVitals","firstContentfulPaint","push","registerVital","portal","name","firstInputDelay","timeToFirstByte","newProps","undefined","createElement","exports","PortalsPubSub","NativeEventEmitter","subscribe","topic","onMessageReceived","addListener","message","publish","data","msg","webVitalsMap","Map","WebVitals","portalName","vital","callback","Platform","OS","listener","event","duration","set","register","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_BasePortalView","e","__esModule","default","IONPortalPubSub","IONPortalsReactNative","IONPortalsWebVitals","NativeModules","PortalView","props","webVitals","firstContentfulPaint","push","registerVital","portal","name","firstInputDelay","timeToFirstByte","newProps","undefined","createElement","exports","PortalsPubSub","NativeEventEmitter","subscribe","topic","onMessageReceived","addListener","message","publish","data","msg","webVitalsMap","Map","WebVitals","portalName","vital","callback","Platform","OS","listener","event","duration","set","register","_key","enableSecureLiveUpdates","pathToKey","syncOne","appId","syncSome","appIds","syncAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA8C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CA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A;;AAiCA;AAAAxB,OAAA,CAAAuB,QAAA,GAAAA,QAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,uBAAuB,GAAG,MACrCC,SAAiB,IACC;EAClB,OAAO1C,qBAAqB,CAACyC,uBAAuB,CAACC,SAAS,CAAC;AACjE,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AALA1B,OAAA,CAAAyB,uBAAA,GAAAA,uBAAA;AAMO,MAAME,OAAO,GAAG,MAAOC,KAAa,IAA0B;EACnE,OAAO5C,qBAAqB,CAAC2C,OAAO,CAACC,KAAK,CAAC;AAC7C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AALA5B,OAAA,CAAA2B,OAAA,GAAAA,OAAA;AAMO,MAAME,QAAQ,GAAG,MAAOC,MAAgB,IAA2B;EACxE,OAAO9C,qBAAqB,CAAC6C,QAAQ,CAACC,MAAM,CAAC;AAC/C,CAAC;;AAED;AACA;AACA;AACA;AAHA9B,OAAA,CAAA6B,QAAA,GAAAA,QAAA;AAIO,MAAME,OAAO,GAAG,MAAAA,CAAA,KAAkC;EACvD,OAAO/C,qBAAqB,CAAC+C,OAAO,CAAC,CAAC;AACxC,CAAC;AAAC/B,OAAA,CAAA+B,OAAA,GAAAA,OAAA","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -75,13 +75,9 @@ const registerVital = (portalName, vital, callback) => {
|
|
|
75
75
|
webVitalsMap.set(`${portalName}-vitals:${vital}`, listener);
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @param key The registration key
|
|
80
|
-
* @returns Promise<void>
|
|
78
|
+
* @deprecated Registration keys are no longer required. This function is a no-op and will be removed in a future release.
|
|
81
79
|
*/
|
|
82
|
-
export const register = async
|
|
83
|
-
return IONPortalsReactNative.register(key);
|
|
84
|
-
};
|
|
80
|
+
export const register = async _key => {};
|
|
85
81
|
|
|
86
82
|
/**
|
|
87
83
|
* The configuration of a web application to be embedded in a React Native application.
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","NativeEventEmitter","NativeModules","Platform","BasePortalView","IONPortalPubSub","IONPortalsReactNative","IONPortalsWebVitals","PortalView","props","webVitals","firstContentfulPaint","push","registerVital","portal","name","firstInputDelay","timeToFirstByte","newProps","undefined","createElement","PortalsPubSub","subscribe","topic","onMessageReceived","addListener","message","publish","data","msg","webVitalsMap","Map","WebVitals","portalName","vital","callback","OS","listener","event","duration","set","register","
|
|
1
|
+
{"version":3,"names":["React","NativeEventEmitter","NativeModules","Platform","BasePortalView","IONPortalPubSub","IONPortalsReactNative","IONPortalsWebVitals","PortalView","props","webVitals","firstContentfulPaint","push","registerVital","portal","name","firstInputDelay","timeToFirstByte","newProps","undefined","createElement","PortalsPubSub","subscribe","topic","onMessageReceived","addListener","message","publish","data","msg","webVitalsMap","Map","WebVitals","portalName","vital","callback","OS","listener","event","duration","set","register","_key","enableSecureLiveUpdates","pathToKey","syncOne","appId","syncSome","appIds","syncAll"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,kBAAkB,EAClBC,aAAa,EACbC,QAAQ,QAEH,cAAc;AACrB,OAAOC,cAAc,MAAM,kBAAkB;AAE7C,MAAM;EAAEC,eAAe;EAAEC,qBAAqB;EAAEC;AAAoB,CAAC,GACnEL,aAAa;AAEf,OAAO,MAAMM,UAAU,GAAIC,KAAkB,IAAK;EAChD,IAAIC,SAA+B;EACnC,IAAID,KAAK,CAACC,SAAS,EAAE;IACnBA,SAAS,GAAG,EAAE;IACd,IAAID,KAAK,CAACC,SAAS,CAACC,oBAAoB,EAAE;MACxCD,SAAS,CAACE,IAAI,CAAC,KAAK,CAAC;MACrBC,aAAa,CACXJ,KAAK,CAACK,MAAM,CAACC,IAAI,EACjB,KAAK,EACLN,KAAK,CAACC,SAAS,CAACC,oBAClB,CAAC;IACH;IACA,IAAI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C,CAAC","ignoreList":[]}
|
|
@@ -32,11 +32,9 @@ export type WebVitals = {
|
|
|
32
32
|
timeToFirstByte?: (duration: number) => void;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @param key The registration key
|
|
37
|
-
* @returns Promise<void>
|
|
35
|
+
* @deprecated Registration keys are no longer required. This function is a no-op and will be removed in a future release.
|
|
38
36
|
*/
|
|
39
|
-
export declare const register: (
|
|
37
|
+
export declare const register: (_key: string) => Promise<void>;
|
|
40
38
|
/**
|
|
41
39
|
* The configuration of a web application to be embedded in a React Native application.
|
|
42
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,KAAK,mBAAmB,EAIxB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,eAAO,MAAM,UAAU,UAAW,WAAW,sBA2B5C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,uEAAuE;IACvE,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,GAAG,CAAC;IACV,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;CACf;AAID;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,UACb,MAAM,+BACgB,OAAO,KAAK,IAAI,KAC5C,mBAOF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,UAAW,MAAM,QAAQ,GAAG,SAG/C,CAAC;AA4BF,MAAM,MAAM,SAAS,GAAG;IACtB,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC;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AE,UAAU,GAAG,OAAO,CAAC;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,OAAO,CAAC;CACvC;AAED,mEAAmE;AACnE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,cACvB,MAAM,KAChB,QAAQ,IAAI,CAEd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,UAAiB,MAAM,KAAG,QAAQ,UAAU,CAE/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,WAAkB,MAAM,EAAE,KAAG,QAAQ,WAAW,CAEpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,QAAa,QAAQ,WAAW,CAEnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/portals-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Portals for React Native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -58,24 +58,25 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@commitlint/config-conventional": "^17.0.2",
|
|
60
60
|
"@evilmartians/lefthook": "^1.5.0",
|
|
61
|
-
"@react-native/babel-preset": "0.
|
|
62
|
-
"@react-native/eslint-config": "0.
|
|
63
|
-
"@react-native/metro-config": "0.
|
|
64
|
-
"@react-native/typescript-config": "0.
|
|
61
|
+
"@react-native/babel-preset": "0.80.3",
|
|
62
|
+
"@react-native/eslint-config": "0.80.3",
|
|
63
|
+
"@react-native/metro-config": "0.80.3",
|
|
64
|
+
"@react-native/typescript-config": "0.80.3",
|
|
65
65
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
66
66
|
"@types/jest": "^29.5.5",
|
|
67
|
-
"@types/react": "
|
|
67
|
+
"@types/react": "19.1.0",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "latest",
|
|
69
69
|
"commitlint": "^17.0.2",
|
|
70
70
|
"del-cli": "^5.1.0",
|
|
71
71
|
"eslint": "^8.51.0",
|
|
72
72
|
"eslint-config-prettier": "^9.0.0",
|
|
73
|
+
"eslint-plugin-ft-flow": "^2.0.1",
|
|
73
74
|
"eslint-plugin-jest": "^28.11.0",
|
|
74
75
|
"eslint-plugin-prettier": "^5.2.3",
|
|
75
76
|
"jest": "^29.7.0",
|
|
76
77
|
"prettier": "^3.0.3",
|
|
77
|
-
"react": "
|
|
78
|
-
"react-native": "0.
|
|
78
|
+
"react": "19.1.0",
|
|
79
|
+
"react-native": "0.80.3",
|
|
79
80
|
"react-native-builder-bob": "^0.23.2",
|
|
80
81
|
"release-it": "^15.0.0",
|
|
81
82
|
"turbo": "^1.10.7",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"typescript": "^5.2.2"
|
|
84
85
|
},
|
|
85
86
|
"resolutions": {
|
|
86
|
-
"@types/react": "
|
|
87
|
+
"@types/react": "19.1.0",
|
|
87
88
|
"typescript": "5.2.2"
|
|
88
89
|
},
|
|
89
90
|
"peerDependencies": {
|
|
@@ -162,4 +163,4 @@
|
|
|
162
163
|
]
|
|
163
164
|
]
|
|
164
165
|
}
|
|
165
|
-
}
|
|
166
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -116,13 +116,9 @@ export type WebVitals = {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @param key The registration key
|
|
121
|
-
* @returns Promise<void>
|
|
119
|
+
* @deprecated Registration keys are no longer required. This function is a no-op and will be removed in a future release.
|
|
122
120
|
*/
|
|
123
|
-
export const register = async (
|
|
124
|
-
return IONPortalsReactNative.register(key);
|
|
125
|
-
};
|
|
121
|
+
export const register = async (_key: string): Promise<void> => {};
|
|
126
122
|
|
|
127
123
|
/**
|
|
128
124
|
* The configuration of a web application to be embedded in a React Native application.
|