@symbiote-native/contacts 0.1.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/LICENSE +21 -0
- package/README.md +174 -0
- package/build/angular/contact-access-button/index.d.ts +18 -0
- package/build/angular/contact-access-button/index.js +123 -0
- package/build/angular/index.d.ts +2 -0
- package/build/angular/index.js +3 -0
- package/build/core/contact-access-button.d.ts +29 -0
- package/build/core/contact-access-button.js +27 -0
- package/build/core/contact.d.ts +3 -0
- package/build/core/contact.js +3 -0
- package/build/core/container.d.ts +5 -0
- package/build/core/container.js +5 -0
- package/build/core/enums.d.ts +53 -0
- package/build/core/enums.js +56 -0
- package/build/core/group.d.ts +5 -0
- package/build/core/group.js +4 -0
- package/build/core/index.d.ts +8 -0
- package/build/core/index.js +7 -0
- package/build/core/listeners.d.ts +3 -0
- package/build/core/listeners.js +11 -0
- package/build/core/native-module.d.ts +177 -0
- package/build/core/native-module.js +63 -0
- package/build/core/permissions.d.ts +3 -0
- package/build/core/permissions.js +7 -0
- package/build/core/types.d.ts +244 -0
- package/build/core/types.js +1 -0
- package/build/legacy/contacts.d.ts +30 -0
- package/build/legacy/contacts.js +177 -0
- package/build/legacy/enums.d.ts +68 -0
- package/build/legacy/enums.js +73 -0
- package/build/legacy/index.d.ts +3 -0
- package/build/legacy/index.js +3 -0
- package/build/legacy/native-module.d.ts +30 -0
- package/build/legacy/native-module.js +4 -0
- package/build/legacy/types.d.ts +158 -0
- package/build/legacy/types.js +1 -0
- package/build/react/contact-access-button.d.ts +10 -0
- package/build/react/contact-access-button.js +11 -0
- package/build/react/index.d.ts +2 -0
- package/build/react/index.js +2 -0
- package/build/solid/contact-access-button.d.ts +10 -0
- package/build/solid/contact-access-button.js +15 -0
- package/build/solid/index.d.ts +2 -0
- package/build/solid/index.js +2 -0
- package/build/svelte/contact-access-button.svelte +18 -0
- package/build/svelte/contact-access-button.svelte.d.ts +4 -0
- package/build/svelte/index.d.ts +7 -0
- package/build/svelte/index.js +8 -0
- package/build/vue/contact-access-button.d.ts +19 -0
- package/build/vue/contact-access-button.js +19 -0
- package/build/vue/index.d.ts +2 -0
- package/build/vue/index.js +2 -0
- package/build-ngc/angular/contact-access-button/index.d.ts +21 -0
- package/build-ngc/angular/contact-access-button/index.js +59 -0
- package/build-ngc/angular/contact-access-button/index.js.map +1 -0
- package/build-ngc/angular/index.d.ts +2 -0
- package/build-ngc/angular/index.js +4 -0
- package/build-ngc/angular/index.js.map +1 -0
- package/build-ngc/core/contact-access-button.d.ts +29 -0
- package/build-ngc/core/contact-access-button.js +28 -0
- package/build-ngc/core/contact-access-button.js.map +1 -0
- package/build-ngc/core/contact.d.ts +3 -0
- package/build-ngc/core/contact.js +4 -0
- package/build-ngc/core/contact.js.map +1 -0
- package/build-ngc/core/container.d.ts +5 -0
- package/build-ngc/core/container.js +6 -0
- package/build-ngc/core/container.js.map +1 -0
- package/build-ngc/core/enums.d.ts +53 -0
- package/build-ngc/core/enums.js +57 -0
- package/build-ngc/core/enums.js.map +1 -0
- package/build-ngc/core/group.d.ts +5 -0
- package/build-ngc/core/group.js +5 -0
- package/build-ngc/core/group.js.map +1 -0
- package/build-ngc/core/index.d.ts +8 -0
- package/build-ngc/core/index.js +8 -0
- package/build-ngc/core/index.js.map +1 -0
- package/build-ngc/core/listeners.d.ts +3 -0
- package/build-ngc/core/listeners.js +12 -0
- package/build-ngc/core/listeners.js.map +1 -0
- package/build-ngc/core/native-module.d.ts +177 -0
- package/build-ngc/core/native-module.js +64 -0
- package/build-ngc/core/native-module.js.map +1 -0
- package/build-ngc/core/permissions.d.ts +3 -0
- package/build-ngc/core/permissions.js +8 -0
- package/build-ngc/core/permissions.js.map +1 -0
- package/build-ngc/core/types.d.ts +244 -0
- package/build-ngc/core/types.js +2 -0
- package/build-ngc/core/types.js.map +1 -0
- package/native-link.json +26 -0
- package/package.json +152 -0
- package/src/angular/contact-access-button/index.ts +45 -0
- package/src/angular/index.ts +3 -0
- package/src/core/contact-access-button.ts +83 -0
- package/src/core/contact.ts +3 -0
- package/src/core/container.ts +5 -0
- package/src/core/enums.ts +55 -0
- package/src/core/group.ts +4 -0
- package/src/core/index.ts +14 -0
- package/src/core/listeners.ts +19 -0
- package/src/core/native-module.ts +281 -0
- package/src/core/permissions.ts +10 -0
- package/src/core/types.ts +220 -0
- package/src/legacy/contacts.ts +274 -0
- package/src/legacy/enums.ts +72 -0
- package/src/legacy/index.ts +3 -0
- package/src/legacy/native-module.ts +66 -0
- package/src/legacy/types.ts +159 -0
- package/src/react/contact-access-button.ts +20 -0
- package/src/react/index.ts +2 -0
- package/src/solid/contact-access-button.ts +24 -0
- package/src/solid/index.ts +2 -0
- package/src/svelte/contact-access-button.svelte +18 -0
- package/src/svelte/index.ts +10 -0
- package/src/svelte/svelte-ambient.d.ts +3 -0
- package/src/svelte/svelte-compile.test-helper.ts +7 -0
- package/src/vue/contact-access-button.ts +24 -0
- package/src/vue/index.ts +2 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, type VNode } from '@vue/runtime-core';
|
|
2
|
+
import { descriptorToVue, normalizeVueAttrs } from '@symbiote-native/vue';
|
|
3
|
+
import {
|
|
4
|
+
isContactAccessButtonAvailable,
|
|
5
|
+
renderContactAccessButton,
|
|
6
|
+
} from '../core/contact-access-button';
|
|
7
|
+
|
|
8
|
+
const ContactAccessButtonView = defineComponent({
|
|
9
|
+
name: 'ContactAccessButton',
|
|
10
|
+
// Every attribute is a native view prop, so none falls through onto a wrapper element
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
setup(_props, { attrs }) {
|
|
13
|
+
return (): VNode | null => {
|
|
14
|
+
const descriptor = renderContactAccessButton(normalizeVueAttrs(attrs));
|
|
15
|
+
return descriptor ? descriptorToVue(descriptor) : null;
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/** Vue twin of `expo-contacts`' `ContactAccessButton`, iOS 18+ only, nothing elsewhere */
|
|
21
|
+
export const ContactAccessButton = Object.assign(ContactAccessButtonView, {
|
|
22
|
+
/** True only on iOS 18.0 and newer */
|
|
23
|
+
isAvailable: isContactAccessButtonAvailable,
|
|
24
|
+
});
|
package/src/vue/index.ts
ADDED