@capgo/inappbrowser 6.11.1 → 6.13.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.
- package/README.md +50 -42
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java +161 -41
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/Options.java +83 -22
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewCallbacks.java +2 -0
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewDialog.java +749 -96
- package/android/src/main/res/drawable/ic_share.xml +10 -0
- package/android/src/main/res/layout/activity_browser.xml +8 -0
- package/android/src/main/res/layout/content_browser.xml +10 -1
- package/android/src/main/res/layout/tool_bar.xml +19 -7
- package/android/src/main/res/values/strings.xml +2 -0
- package/android/src/main/res/values/themes.xml +27 -0
- package/dist/docs.json +211 -37
- package/dist/esm/definitions.d.ts +244 -31
- package/dist/esm/definitions.js +12 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/plugin.cjs.js +12 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +12 -1
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/InAppBrowserPlugin.swift +344 -44
- package/ios/Plugin/WKWebViewController.swift +499 -45
- package/package.json +7 -8
- package/ios/Plugin/Assets.xcassets/Back.imageset/Back.png +0 -0
- package/ios/Plugin/Assets.xcassets/Back.imageset/Back@2x.png +0 -0
- package/ios/Plugin/Assets.xcassets/Back.imageset/Back@3x.png +0 -0
- package/ios/Plugin/Assets.xcassets/Back.imageset/Contents.json +0 -26
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Contents.json +0 -26
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Forward.png +0 -0
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Forward@2x.png +0 -0
- package/ios/Plugin/Assets.xcassets/Forward.imageset/Forward@3x.png +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:width="24dp"
|
|
4
|
+
android:height="24dp"
|
|
5
|
+
android:viewportWidth="24"
|
|
6
|
+
android:viewportHeight="24">
|
|
7
|
+
<path
|
|
8
|
+
android:fillColor="#FFFFFF"
|
|
9
|
+
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
|
|
10
|
+
</vector>
|
|
@@ -6,9 +6,17 @@
|
|
|
6
6
|
android:layout_height="match_parent"
|
|
7
7
|
tools:context="com.cap.browser.plugin.WebViewActivity">
|
|
8
8
|
|
|
9
|
+
<!-- Status bar color view that will be positioned at the top -->
|
|
10
|
+
<View
|
|
11
|
+
android:id="@+id/status_bar_color_view"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="0dp"
|
|
14
|
+
android:background="@android:color/transparent" />
|
|
15
|
+
|
|
9
16
|
<com.google.android.material.appbar.AppBarLayout
|
|
10
17
|
android:layout_width="match_parent"
|
|
11
18
|
android:layout_height="wrap_content"
|
|
19
|
+
android:layout_marginTop="0dp"
|
|
12
20
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
13
21
|
|
|
14
22
|
<include
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
<WebView
|
|
12
12
|
android:id="@+id/browser_view"
|
|
13
13
|
android:layout_width="match_parent"
|
|
14
|
-
android:layout_height="
|
|
14
|
+
android:layout_height="0dp"
|
|
15
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
16
|
+
app:layout_constraintBottom_toTopOf="@id/navigation_bar_space"/>
|
|
17
|
+
|
|
18
|
+
<View
|
|
19
|
+
android:id="@+id/navigation_bar_space"
|
|
20
|
+
android:layout_width="match_parent"
|
|
21
|
+
android:layout_height="0dp"
|
|
22
|
+
android:background="@android:color/transparent"
|
|
23
|
+
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
15
24
|
|
|
16
25
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
|
|
20
20
|
<ImageButton
|
|
21
21
|
android:id="@+id/buttonNearDone"
|
|
22
|
-
android:layout_width="
|
|
23
|
-
android:layout_height="
|
|
24
|
-
android:layout_gravity="
|
|
25
|
-
android:
|
|
22
|
+
android:layout_width="48dp"
|
|
23
|
+
android:layout_height="48dp"
|
|
24
|
+
android:layout_gravity="end"
|
|
25
|
+
android:layout_marginEnd="8dp"
|
|
26
|
+
android:background="?attr/selectableItemBackgroundBorderless"
|
|
26
27
|
android:contentDescription="@string/button_near_done"
|
|
28
|
+
android:padding="12dp"
|
|
27
29
|
android:src="@drawable/ic_clear_24px"
|
|
28
|
-
android:
|
|
29
|
-
tools:visibility="gone"
|
|
30
|
-
/>
|
|
30
|
+
android:visibility="gone" />
|
|
31
31
|
<ImageButton
|
|
32
32
|
android:id="@+id/reloadButton"
|
|
33
33
|
android:layout_width="wrap_content"
|
|
@@ -50,6 +50,18 @@
|
|
|
50
50
|
android:singleLine="false"
|
|
51
51
|
android:textColor="#262626" />
|
|
52
52
|
|
|
53
|
+
<ImageButton
|
|
54
|
+
android:id="@+id/shareButton"
|
|
55
|
+
android:layout_width="48dp"
|
|
56
|
+
android:layout_height="48dp"
|
|
57
|
+
android:layout_gravity="end"
|
|
58
|
+
android:layout_marginEnd="8dp"
|
|
59
|
+
android:background="?attr/selectableItemBackgroundBorderless"
|
|
60
|
+
android:contentDescription="@string/share_button"
|
|
61
|
+
android:padding="12dp"
|
|
62
|
+
android:src="@drawable/ic_share"
|
|
63
|
+
android:visibility="gone" />
|
|
64
|
+
|
|
53
65
|
<ImageButton
|
|
54
66
|
android:id="@+id/forwardButton"
|
|
55
67
|
android:layout_width="wrap_content"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
1
2
|
<resources>
|
|
2
3
|
<string name="my_string">Just a simple string</string>
|
|
3
4
|
<string name="title_activity_browser">BrowserActivity</string>
|
|
@@ -8,4 +9,5 @@
|
|
|
8
9
|
<string name="back_button">Back Button</string>
|
|
9
10
|
<string name="title">Title</string>
|
|
10
11
|
<string name="forward_button">Forward Button</string>
|
|
12
|
+
<string name="share_button">Share</string>
|
|
11
13
|
</resources>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources>
|
|
3
|
+
<!-- Base application theme with Material Components -->
|
|
4
|
+
<style name="InAppBrowserMaterialTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
|
|
5
|
+
<!-- Customize your theme here -->
|
|
6
|
+
<item name="colorPrimary">@android:color/holo_blue_dark</item>
|
|
7
|
+
<item name="colorPrimaryDark">@android:color/holo_blue_dark</item>
|
|
8
|
+
<item name="colorAccent">@android:color/holo_blue_dark</item>
|
|
9
|
+
|
|
10
|
+
<!-- Force Material Design date and time pickers -->
|
|
11
|
+
<item name="android:datePickerStyle">@style/MaterialDatePickerStyle</item>
|
|
12
|
+
<item name="android:timePickerStyle">@style/MaterialTimePickerStyle</item>
|
|
13
|
+
<item name="materialCalendarStyle">@style/Widget.MaterialComponents.MaterialCalendar</item>
|
|
14
|
+
<item name="materialCalendarFullscreenTheme">@style/ThemeOverlay.MaterialComponents.MaterialCalendar.Fullscreen</item>
|
|
15
|
+
<item name="materialCalendarTheme">@style/ThemeOverlay.MaterialComponents.MaterialCalendar</item>
|
|
16
|
+
</style>
|
|
17
|
+
|
|
18
|
+
<!-- Date Picker Style -->
|
|
19
|
+
<style name="MaterialDatePickerStyle" parent="@android:style/Widget.Material.DatePicker">
|
|
20
|
+
<item name="android:datePickerMode">calendar</item>
|
|
21
|
+
</style>
|
|
22
|
+
|
|
23
|
+
<!-- Time Picker Style -->
|
|
24
|
+
<style name="MaterialTimePickerStyle" parent="@android:style/Widget.Material.TimePicker">
|
|
25
|
+
<item name="android:timePickerMode">clock</item>
|
|
26
|
+
</style>
|
|
27
|
+
</resources>
|
package/dist/docs.json
CHANGED
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"text": "0.1.0"
|
|
137
137
|
}
|
|
138
138
|
],
|
|
139
|
-
"docs": "Open url in a new webview with toolbars, and enhanced capabilities, like camera access, file access, listen events, inject javascript, bi directional communication, etc.",
|
|
139
|
+
"docs": "Open url in a new webview with toolbars, and enhanced capabilities, like camera access, file access, listen events, inject javascript, bi directional communication, etc.\n\nJavaScript Interface:\nWhen you open a webview with this method, a JavaScript interface is automatically injected that provides:\n- `window.mobileApp.close()`: Closes the webview from JavaScript\n- `window.mobileApp.postMessage(obj)`: Sends a message from the webview to the app",
|
|
140
140
|
"complexTypes": [
|
|
141
141
|
"OpenWebViewOptions"
|
|
142
142
|
],
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
"text": "0.0.1"
|
|
297
297
|
}
|
|
298
298
|
],
|
|
299
|
-
"docs": "Will be triggered when user clicks on confirm button when disclaimer is required
|
|
299
|
+
"docs": "Will be triggered when user clicks on confirm button when disclaimer is required",
|
|
300
300
|
"complexTypes": [
|
|
301
301
|
"PluginListenerHandle",
|
|
302
302
|
"ConfirmBtnListener"
|
|
@@ -468,8 +468,13 @@
|
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
"name": "preventDeeplink",
|
|
471
|
-
"tags": [
|
|
472
|
-
|
|
471
|
+
"tags": [
|
|
472
|
+
{
|
|
473
|
+
"text": "0.1.0",
|
|
474
|
+
"name": "since"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"docs": "if true the deeplink will not be opened, if false the deeplink will be opened when clicked on the link",
|
|
473
478
|
"complexTypes": [],
|
|
474
479
|
"type": "boolean | undefined"
|
|
475
480
|
}
|
|
@@ -588,6 +593,10 @@
|
|
|
588
593
|
{
|
|
589
594
|
"text": "0.1.0",
|
|
590
595
|
"name": "since"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"text": "\"https://capgo.app\"",
|
|
599
|
+
"name": "example"
|
|
591
600
|
}
|
|
592
601
|
],
|
|
593
602
|
"docs": "Target URL to load.",
|
|
@@ -600,6 +609,10 @@
|
|
|
600
609
|
{
|
|
601
610
|
"text": "0.1.0",
|
|
602
611
|
"name": "since"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"text": "headers: {\n 'Custom-Header': 'test-value',\n 'Authorization': 'Bearer test-token'\n}\nTest URL: https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending/",
|
|
615
|
+
"name": "example"
|
|
603
616
|
}
|
|
604
617
|
],
|
|
605
618
|
"docs": "Headers to send with the request.",
|
|
@@ -614,6 +627,10 @@
|
|
|
614
627
|
{
|
|
615
628
|
"text": "6.1.0",
|
|
616
629
|
"name": "since"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"text": "credentials: {\n username: 'test-user',\n password: 'test-pass'\n}\nTest URL: https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending/",
|
|
633
|
+
"name": "example"
|
|
617
634
|
}
|
|
618
635
|
],
|
|
619
636
|
"docs": "Credentials to send with the request and all subsequent requests for the same host.",
|
|
@@ -622,15 +639,55 @@
|
|
|
622
639
|
],
|
|
623
640
|
"type": "Credentials"
|
|
624
641
|
},
|
|
642
|
+
{
|
|
643
|
+
"name": "materialPicker",
|
|
644
|
+
"tags": [
|
|
645
|
+
{
|
|
646
|
+
"text": "7.4.1",
|
|
647
|
+
"name": "since"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"text": "false",
|
|
651
|
+
"name": "default"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"text": "materialPicker: true\nTest URL: https://show-picker.glitch.me/demo.html",
|
|
655
|
+
"name": "example"
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"docs": "materialPicker: if true, uses Material Design theme for date and time pickers on Android.\nThis improves the appearance of HTML date inputs to use modern Material Design UI instead of the old style pickers.",
|
|
659
|
+
"complexTypes": [],
|
|
660
|
+
"type": "boolean | undefined"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "jsInterface",
|
|
664
|
+
"tags": [
|
|
665
|
+
{
|
|
666
|
+
"text": "// In your webpage loaded in the webview:\ndocument.getElementById('closeBtn').addEventListener('click', () => {\n window.mobileApp.close();\n});\n\n// Send data to the app\nwindow.mobileApp.postMessage({ action: 'login', data: { user: 'test' }});",
|
|
667
|
+
"name": "example"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"text": "6.10.0",
|
|
671
|
+
"name": "since"
|
|
672
|
+
}
|
|
673
|
+
],
|
|
674
|
+
"docs": "JavaScript Interface:\nThe webview automatically injects a JavaScript interface providing:\n- `window.mobileApp.close()`: Closes the webview from JavaScript\n- `window.mobileApp.postMessage(obj)`: Sends a message to the app (listen via \"messageFromWebview\" event)",
|
|
675
|
+
"complexTypes": [],
|
|
676
|
+
"type": "undefined"
|
|
677
|
+
},
|
|
625
678
|
{
|
|
626
679
|
"name": "shareDisclaimer",
|
|
627
680
|
"tags": [
|
|
628
681
|
{
|
|
629
682
|
"text": "0.1.0",
|
|
630
683
|
"name": "since"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"text": "shareDisclaimer: {\n title: 'Disclaimer',\n message: 'This is a test disclaimer',\n confirmBtn: 'Accept',\n cancelBtn: 'Decline'\n}\nTest URL: https://capgo.app",
|
|
687
|
+
"name": "example"
|
|
631
688
|
}
|
|
632
689
|
],
|
|
633
|
-
"docs": "
|
|
690
|
+
"docs": "Share options for the webview. When provided, shows a disclaimer dialog before sharing content.\nThis is useful for:\n- Warning users about sharing sensitive information\n- Getting user consent before sharing\n- Explaining what will be shared\n- Complying with privacy regulations\n\nNote: shareSubject is required when using shareDisclaimer",
|
|
634
691
|
"complexTypes": [
|
|
635
692
|
"DisclaimerOptions"
|
|
636
693
|
],
|
|
@@ -646,9 +703,13 @@
|
|
|
646
703
|
{
|
|
647
704
|
"text": "ToolBarType.DEFAULT",
|
|
648
705
|
"name": "default"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"text": "toolbarType: ToolBarType.ACTIVITY,\ntitle: 'Activity Toolbar Test'\nTest URL: https://capgo.app",
|
|
709
|
+
"name": "example"
|
|
649
710
|
}
|
|
650
711
|
],
|
|
651
|
-
"docs": "Toolbar type",
|
|
712
|
+
"docs": "Toolbar type determines the appearance and behavior of the browser's toolbar\n- \"activity\": Shows a simple toolbar with just a close button and share button\n- \"navigation\": Shows a full navigation toolbar with back/forward buttons\n- \"blank\": Shows no toolbar\n- \"\": Default toolbar with close button",
|
|
652
713
|
"complexTypes": [
|
|
653
714
|
"ToolBarType"
|
|
654
715
|
],
|
|
@@ -660,9 +721,13 @@
|
|
|
660
721
|
{
|
|
661
722
|
"text": "0.1.0",
|
|
662
723
|
"name": "since"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"text": "\"Share this page\"",
|
|
727
|
+
"name": "example"
|
|
663
728
|
}
|
|
664
729
|
],
|
|
665
|
-
"docs": "
|
|
730
|
+
"docs": "Subject text for sharing. Required when using shareDisclaimer.\nThis text will be used as the subject line when sharing content.",
|
|
666
731
|
"complexTypes": [],
|
|
667
732
|
"type": "string | undefined"
|
|
668
733
|
},
|
|
@@ -676,6 +741,10 @@
|
|
|
676
741
|
{
|
|
677
742
|
"text": "'New Window'",
|
|
678
743
|
"name": "default"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"text": "\"Camera Test\"",
|
|
747
|
+
"name": "example"
|
|
679
748
|
}
|
|
680
749
|
],
|
|
681
750
|
"docs": "Title of the browser",
|
|
@@ -694,7 +763,7 @@
|
|
|
694
763
|
"name": "default"
|
|
695
764
|
}
|
|
696
765
|
],
|
|
697
|
-
"docs": "Background color of the browser
|
|
766
|
+
"docs": "Background color of the browser",
|
|
698
767
|
"complexTypes": [
|
|
699
768
|
"BackgroundColor"
|
|
700
769
|
],
|
|
@@ -706,6 +775,10 @@
|
|
|
706
775
|
{
|
|
707
776
|
"text": "false",
|
|
708
777
|
"name": "default"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"text": "activeNativeNavigationForWebview: true,\ndisableGoBackOnNativeApplication: true\nTest URL: https://capgo.app",
|
|
781
|
+
"name": "example"
|
|
709
782
|
}
|
|
710
783
|
],
|
|
711
784
|
"docs": "If true, active the native navigation within the webview, Android only",
|
|
@@ -718,9 +791,13 @@
|
|
|
718
791
|
{
|
|
719
792
|
"text": "false",
|
|
720
793
|
"name": "default"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"text": "disableGoBackOnNativeApplication: true\nTest URL: https://capgo.app",
|
|
797
|
+
"name": "example"
|
|
721
798
|
}
|
|
722
799
|
],
|
|
723
|
-
"docs": "Disable the possibility to go back on native application,\
|
|
800
|
+
"docs": "Disable the possibility to go back on native application,\nuseful to force user to stay on the webview, Android only",
|
|
724
801
|
"complexTypes": [],
|
|
725
802
|
"type": "boolean | undefined"
|
|
726
803
|
},
|
|
@@ -734,9 +811,13 @@
|
|
|
734
811
|
{
|
|
735
812
|
"text": "false",
|
|
736
813
|
"name": "default"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"text": "isPresentAfterPageLoad: true,\npreShowScript: \"await import('https://unpkg.com/darkreader@4.9.89/darkreader.js');\\nDarkReader.enable({ brightness: 100, contrast: 90, sepia: 10 });\"\nTest URL: https://capgo.app",
|
|
817
|
+
"name": "example"
|
|
737
818
|
}
|
|
738
819
|
],
|
|
739
|
-
"docs": "Open url in a new window fullscreen\
|
|
820
|
+
"docs": "Open url in a new window fullscreen\nisPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.",
|
|
740
821
|
"complexTypes": [],
|
|
741
822
|
"type": "boolean | undefined"
|
|
742
823
|
},
|
|
@@ -774,6 +855,10 @@
|
|
|
774
855
|
{
|
|
775
856
|
"text": "false",
|
|
776
857
|
"name": "default"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"text": "showReloadButton: true\nTest URL: https://capgo.app",
|
|
861
|
+
"name": "example"
|
|
777
862
|
}
|
|
778
863
|
],
|
|
779
864
|
"docs": "Shows a reload button that reloads the web page",
|
|
@@ -790,6 +875,10 @@
|
|
|
790
875
|
{
|
|
791
876
|
"text": "false",
|
|
792
877
|
"name": "default"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"text": "closeModal: true,\ncloseModalTitle: 'Close Window',\ncloseModalDescription: 'Are you sure you want to close?',\ncloseModalOk: 'Yes, close',\ncloseModalCancel: 'No, stay'\nTest URL: https://capgo.app",
|
|
881
|
+
"name": "example"
|
|
793
882
|
}
|
|
794
883
|
],
|
|
795
884
|
"docs": "CloseModal: if true a confirm will be displayed when user clicks on close button, if false the browser will be closed immediately.",
|
|
@@ -808,7 +897,7 @@
|
|
|
808
897
|
"name": "default"
|
|
809
898
|
}
|
|
810
899
|
],
|
|
811
|
-
"docs": "CloseModalTitle: title of the confirm when user clicks on close button
|
|
900
|
+
"docs": "CloseModalTitle: title of the confirm when user clicks on close button",
|
|
812
901
|
"complexTypes": [],
|
|
813
902
|
"type": "string | undefined"
|
|
814
903
|
},
|
|
@@ -824,7 +913,7 @@
|
|
|
824
913
|
"name": "default"
|
|
825
914
|
}
|
|
826
915
|
],
|
|
827
|
-
"docs": "CloseModalDescription: description of the confirm when user clicks on close button
|
|
916
|
+
"docs": "CloseModalDescription: description of the confirm when user clicks on close button",
|
|
828
917
|
"complexTypes": [],
|
|
829
918
|
"type": "string | undefined"
|
|
830
919
|
},
|
|
@@ -840,7 +929,7 @@
|
|
|
840
929
|
"name": "default"
|
|
841
930
|
}
|
|
842
931
|
],
|
|
843
|
-
"docs": "CloseModalOk: text of the confirm button when user clicks on close button
|
|
932
|
+
"docs": "CloseModalOk: text of the confirm button when user clicks on close button",
|
|
844
933
|
"complexTypes": [],
|
|
845
934
|
"type": "string | undefined"
|
|
846
935
|
},
|
|
@@ -856,7 +945,7 @@
|
|
|
856
945
|
"name": "default"
|
|
857
946
|
}
|
|
858
947
|
],
|
|
859
|
-
"docs": "CloseModalCancel: text of the cancel button when user clicks on close button
|
|
948
|
+
"docs": "CloseModalCancel: text of the cancel button when user clicks on close button",
|
|
860
949
|
"complexTypes": [],
|
|
861
950
|
"type": "string | undefined"
|
|
862
951
|
},
|
|
@@ -884,14 +973,38 @@
|
|
|
884
973
|
"name": "since"
|
|
885
974
|
},
|
|
886
975
|
{
|
|
887
|
-
"text": "'#ffffff'
|
|
976
|
+
"text": "'#ffffff'",
|
|
888
977
|
"name": "default"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"text": "toolbarColor: '#FF5733'\nTest URL: https://capgo.app",
|
|
981
|
+
"name": "example"
|
|
889
982
|
}
|
|
890
983
|
],
|
|
891
984
|
"docs": "toolbarColor: color of the toolbar in hex format",
|
|
892
985
|
"complexTypes": [],
|
|
893
986
|
"type": "string | undefined"
|
|
894
987
|
},
|
|
988
|
+
{
|
|
989
|
+
"name": "toolbarTextColor",
|
|
990
|
+
"tags": [
|
|
991
|
+
{
|
|
992
|
+
"text": "6.10.0",
|
|
993
|
+
"name": "since"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"text": "calculated based on toolbarColor brightness",
|
|
997
|
+
"name": "default"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"text": "toolbarTextColor: '#FFFFFF'\nTest URL: https://capgo.app",
|
|
1001
|
+
"name": "example"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"docs": "toolbarTextColor: color of the buttons and title in the toolbar in hex format\nWhen set, it overrides the automatic light/dark mode detection for text color",
|
|
1005
|
+
"complexTypes": [],
|
|
1006
|
+
"type": "string | undefined"
|
|
1007
|
+
},
|
|
895
1008
|
{
|
|
896
1009
|
"name": "showArrow",
|
|
897
1010
|
"tags": [
|
|
@@ -902,6 +1015,10 @@
|
|
|
902
1015
|
{
|
|
903
1016
|
"text": "false",
|
|
904
1017
|
"name": "default"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"text": "showArrow: true\nTest URL: https://capgo.app",
|
|
1021
|
+
"name": "example"
|
|
905
1022
|
}
|
|
906
1023
|
],
|
|
907
1024
|
"docs": "showArrow: if true an arrow would be shown instead of cross for closing the window",
|
|
@@ -930,6 +1047,10 @@
|
|
|
930
1047
|
{
|
|
931
1048
|
"text": "6.6.0",
|
|
932
1049
|
"name": "since"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"text": "preShowScript: \"await import('https://unpkg.com/darkreader@4.9.89/darkreader.js');\\nDarkReader.enable({ brightness: 100, contrast: 90, sepia: 10 });\"\nTest URL: https://capgo.app",
|
|
1053
|
+
"name": "example"
|
|
933
1054
|
}
|
|
934
1055
|
],
|
|
935
1056
|
"docs": "preShowScript: if isPresentAfterPageLoad is true and this variable is set the plugin will inject a script before showing the browser.\nThis script will be run in an async context. The plugin will wait for the script to finish (max 10 seconds)",
|
|
@@ -954,11 +1075,35 @@
|
|
|
954
1075
|
{
|
|
955
1076
|
"text": "6.7.0",
|
|
956
1077
|
"name": "since"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"text": "buttonNearDone: {\n ios: {\n iconType: 'sf-symbol',\n icon: 'star.fill'\n },\n android: {\n iconType: 'asset',\n icon: 'public/monkey.svg',\n width: 24,\n height: 24\n }\n}\nTest URL: https://capgo.app",
|
|
1081
|
+
"name": "example"
|
|
957
1082
|
}
|
|
958
1083
|
],
|
|
959
|
-
"docs": "buttonNearDone allows for a creation of a custom button
|
|
1084
|
+
"docs": "buttonNearDone allows for a creation of a custom button near the done/close button.\nThe button is only shown when toolbarType is not \"activity\", \"navigation\", or \"blank\".\n\nFor Android:\n- iconType must be \"asset\"\n- icon path should be in the public folder (e.g. \"monkey.svg\")\n- width and height are optional, defaults to 48dp\n- button is positioned at the end of toolbar with 8dp margin\n\nFor iOS:\n- iconType can be \"sf-symbol\" or \"asset\"\n- for sf-symbol, icon should be the symbol name\n- for asset, icon should be the asset name",
|
|
960
1085
|
"complexTypes": [],
|
|
961
|
-
"type": "{ ios: { iconType: 'sf-symbol' | 'asset'; icon: string; }; android: { iconType: 'asset'; icon: string; width?: number | undefined; height?: number | undefined; }; } | undefined"
|
|
1086
|
+
"type": "{ ios: { iconType: 'sf-symbol' | 'asset'; icon: string; }; android: { iconType: 'asset' | 'vector'; icon: string; width?: number | undefined; height?: number | undefined; }; } | undefined"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "textZoom",
|
|
1090
|
+
"tags": [
|
|
1091
|
+
{
|
|
1092
|
+
"text": "7.6.0",
|
|
1093
|
+
"name": "since"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"text": "100",
|
|
1097
|
+
"name": "default"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"text": "textZoom: 120\nTest URL: https://capgo.app",
|
|
1101
|
+
"name": "example"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
"docs": "textZoom: sets the text zoom of the page in percent.\nAllows users to increase or decrease the text size for better readability.",
|
|
1105
|
+
"complexTypes": [],
|
|
1106
|
+
"type": "number | undefined"
|
|
962
1107
|
}
|
|
963
1108
|
]
|
|
964
1109
|
},
|
|
@@ -971,29 +1116,49 @@
|
|
|
971
1116
|
"properties": [
|
|
972
1117
|
{
|
|
973
1118
|
"name": "title",
|
|
974
|
-
"tags": [
|
|
975
|
-
|
|
1119
|
+
"tags": [
|
|
1120
|
+
{
|
|
1121
|
+
"text": "\"Title\"",
|
|
1122
|
+
"name": "default"
|
|
1123
|
+
}
|
|
1124
|
+
],
|
|
1125
|
+
"docs": "Title of the disclaimer dialog",
|
|
976
1126
|
"complexTypes": [],
|
|
977
1127
|
"type": "string"
|
|
978
1128
|
},
|
|
979
1129
|
{
|
|
980
1130
|
"name": "message",
|
|
981
|
-
"tags": [
|
|
982
|
-
|
|
1131
|
+
"tags": [
|
|
1132
|
+
{
|
|
1133
|
+
"text": "\"Message\"",
|
|
1134
|
+
"name": "default"
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
"docs": "Message shown in the disclaimer dialog",
|
|
983
1138
|
"complexTypes": [],
|
|
984
1139
|
"type": "string"
|
|
985
1140
|
},
|
|
986
1141
|
{
|
|
987
1142
|
"name": "confirmBtn",
|
|
988
|
-
"tags": [
|
|
989
|
-
|
|
1143
|
+
"tags": [
|
|
1144
|
+
{
|
|
1145
|
+
"text": "\"Confirm\"",
|
|
1146
|
+
"name": "default"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"docs": "Text for the confirm button",
|
|
990
1150
|
"complexTypes": [],
|
|
991
1151
|
"type": "string"
|
|
992
1152
|
},
|
|
993
1153
|
{
|
|
994
1154
|
"name": "cancelBtn",
|
|
995
|
-
"tags": [
|
|
996
|
-
|
|
1155
|
+
"tags": [
|
|
1156
|
+
{
|
|
1157
|
+
"text": "\"Cancel\"",
|
|
1158
|
+
"name": "default"
|
|
1159
|
+
}
|
|
1160
|
+
],
|
|
1161
|
+
"docs": "Text for the cancel button",
|
|
997
1162
|
"complexTypes": [],
|
|
998
1163
|
"type": "string"
|
|
999
1164
|
}
|
|
@@ -1066,26 +1231,35 @@
|
|
|
1066
1231
|
{
|
|
1067
1232
|
"name": "ACTIVITY",
|
|
1068
1233
|
"value": "\"activity\"",
|
|
1069
|
-
"tags": [
|
|
1070
|
-
|
|
1234
|
+
"tags": [
|
|
1235
|
+
{
|
|
1236
|
+
"text": "0.1.0",
|
|
1237
|
+
"name": "since"
|
|
1238
|
+
}
|
|
1239
|
+
],
|
|
1240
|
+
"docs": "Shows a simple toolbar with just a close button and share button"
|
|
1071
1241
|
},
|
|
1072
1242
|
{
|
|
1073
1243
|
"name": "NAVIGATION",
|
|
1074
1244
|
"value": "\"navigation\"",
|
|
1075
|
-
"tags": [
|
|
1076
|
-
|
|
1245
|
+
"tags": [
|
|
1246
|
+
{
|
|
1247
|
+
"text": "0.1.0",
|
|
1248
|
+
"name": "since"
|
|
1249
|
+
}
|
|
1250
|
+
],
|
|
1251
|
+
"docs": "Shows a full navigation toolbar with back/forward buttons"
|
|
1077
1252
|
},
|
|
1078
1253
|
{
|
|
1079
1254
|
"name": "BLANK",
|
|
1080
1255
|
"value": "\"blank\"",
|
|
1081
|
-
"tags": [
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
"
|
|
1088
|
-
"docs": ""
|
|
1256
|
+
"tags": [
|
|
1257
|
+
{
|
|
1258
|
+
"text": "0.1.0",
|
|
1259
|
+
"name": "since"
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
"docs": "Shows no toolbar"
|
|
1089
1263
|
}
|
|
1090
1264
|
]
|
|
1091
1265
|
},
|