Include dist files
This commit is contained in:
17
native-input/dist/esm/web.js
vendored
Normal file
17
native-input/dist/esm/web.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { WebPlugin } from '@capacitor/core';
|
||||
|
||||
// No-op web implementation so the plugin import resolves in the browser build.
|
||||
// The HTML composer (textarea) is used on web; these methods are never the
|
||||
// active path there, but must exist to avoid runtime crashes.
|
||||
export class NativeInputWeb extends WebPlugin {
|
||||
async present() { /* no-op on web */ }
|
||||
async dismiss() { /* no-op on web */ }
|
||||
async setText() { /* no-op on web */ }
|
||||
async getText() { return { text: '' }; }
|
||||
async focus() { /* no-op on web */ }
|
||||
async blur() { /* no-op on web */ }
|
||||
async setPlaceholder() { /* no-op on web */ }
|
||||
async setEnabled() { /* no-op on web */ }
|
||||
async setTheme() { /* no-op on web */ }
|
||||
async setVisible() { /* no-op on web */ }
|
||||
}
|
||||
Reference in New Issue
Block a user