cozy-intent
Version:
Event-based library allowing interactions between React-Native and React applications
34 lines (33 loc) • 2.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.strings = void 0;
var strings = {
flagshipButNoRNAPI: '<WebviewIntentProvider /> can not instantiate its service. The application was detected as running in a Flagship webview but has no access to `window.ReactNativeWebView`, which is contradictory.',
noListenerFound: 'Could not handle event, this `NativeMessenger` instance does not have a listener.',
noWebviewFound: 'error: no WebView was found when trying to post message. This might mean we exited a CozyApp without waiting the call("backToHome") response.',
postMeSignature: '@post-me',
webviewIsRendered: 'webviewIsRendered',
errorRegisterWebview: 'Cannot register webview. A webview is already registered into cozy-intent with the uri: ${uri}',
errorUnregisterWebview: 'Cannot unregister webview. No webview is registered into cozy-intent with the uri: ${uri}',
errorEmitMessage: 'Cannot emit message. No webview is registered with uri: ${webviewUri}',
errorCozyBarAPIMissing: 'Cozy-bar was detected by WebviewIntentProvider but the required setWebviewContext() API was not found. Cozy-bar webview intents will not work. Your cozy-bar version is most likely outdated.',
errorParentHandshake: 'Handshake failed for uri: "${uri}". ConcreteConnection will not be available for this uri\'s messenger, but messages should still work. Error was: "${errorMessage}".',
errorNoMessengerToInit: 'Could not initialise messenger for uri: "${uri}. No WebView has been registered from react-native with this uri. Please use NativeService.registerWebview(WebviewRef).',
logging: {
registering: function registering(uri) {
return "- REGISTERING \u25B6\uFE0F \"".concat(uri, "\"");
},
registered: function registered(uri) {
return "- REGISTERED \u25B6\uFE0F \"".concat(uri, "\"");
},
unregistering: function unregistering(uri) {
return "- UNREGISTERING \u25B6\uFE0F \"".concat(uri, "\"");
},
unregistered: function unregistered(uri) {
return "- UNREGISTERED \u25B6\uFE0F \"".concat(uri, "\"");
}
}
};
exports.strings = strings;