@symbiote-native/apple-authentication 0.0.0-stage → 0.0.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 +63 -2
- package/build/angular/apple-authentication-button/index.d.ts +12 -0
- package/build/angular/apple-authentication-button/index.js +98 -0
- package/build/angular/index.d.ts +2 -0
- package/build/angular/index.js +3 -0
- package/build/core/apple-authentication-button.d.ts +20 -0
- package/build/core/apple-authentication-button.js +28 -0
- package/build/core/apple-authentication.d.ts +34 -0
- package/build/core/apple-authentication.js +85 -0
- package/build/core/constants.d.ts +2 -0
- package/build/core/constants.js +3 -0
- package/build/core/index.d.ts +5 -0
- package/build/core/index.js +4 -0
- package/build/core/native-module.d.ts +10 -0
- package/build/core/native-module.js +8 -0
- package/build/core/types.d.ts +104 -0
- package/build/core/types.js +56 -0
- package/build/react/apple-authentication-button.d.ts +6 -0
- package/build/react/apple-authentication-button.js +7 -0
- package/build/react/index.d.ts +3 -0
- package/build/react/index.js +3 -0
- package/build/solid/apple-authentication-button.d.ts +3 -0
- package/build/solid/apple-authentication-button.js +4 -0
- package/build/solid/index.d.ts +3 -0
- package/build/solid/index.js +3 -0
- package/build/svelte/apple-authentication-button.svelte +17 -0
- package/build/svelte/apple-authentication-button.svelte.d.ts +4 -0
- package/build/svelte/index.d.ts +2 -0
- package/build/svelte/index.js +3 -0
- package/build/vue/apple-authentication-button.d.ts +3 -0
- package/build/vue/apple-authentication-button.js +15 -0
- package/build/vue/index.d.ts +3 -0
- package/build/vue/index.js +3 -0
- package/build-ngc/angular/apple-authentication-button/index.d.ts +15 -0
- package/build-ngc/angular/apple-authentication-button/index.js +48 -0
- package/build-ngc/angular/apple-authentication-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/apple-authentication-button.d.ts +20 -0
- package/build-ngc/core/apple-authentication-button.js +29 -0
- package/build-ngc/core/apple-authentication-button.js.map +1 -0
- package/build-ngc/core/apple-authentication.d.ts +34 -0
- package/build-ngc/core/apple-authentication.js +86 -0
- package/build-ngc/core/apple-authentication.js.map +1 -0
- package/build-ngc/core/constants.d.ts +2 -0
- package/build-ngc/core/constants.js +4 -0
- package/build-ngc/core/constants.js.map +1 -0
- package/build-ngc/core/index.d.ts +5 -0
- package/build-ngc/core/index.js +5 -0
- package/build-ngc/core/index.js.map +1 -0
- package/build-ngc/core/native-module.d.ts +10 -0
- package/build-ngc/core/native-module.js +9 -0
- package/build-ngc/core/native-module.js.map +1 -0
- package/build-ngc/core/types.d.ts +104 -0
- package/build-ngc/core/types.js +57 -0
- package/build-ngc/core/types.js.map +1 -0
- package/native-link.json +11 -0
- package/package.json +145 -3
- package/src/angular/apple-authentication-button/index.ts +35 -0
- package/src/angular/index.ts +28 -0
- package/src/core/apple-authentication-button.ts +69 -0
- package/src/core/apple-authentication.ts +127 -0
- package/src/core/constants.ts +5 -0
- package/src/core/index.ts +31 -0
- package/src/core/native-module.ts +38 -0
- package/src/core/types.ts +125 -0
- package/src/react/apple-authentication-button.ts +12 -0
- package/src/react/index.ts +28 -0
- package/src/solid/apple-authentication-button.ts +9 -0
- package/src/solid/index.ts +28 -0
- package/src/svelte/apple-authentication-button.svelte +17 -0
- package/src/svelte/index.ts +4 -0
- package/src/svelte/svelte-ambient.d.ts +3 -0
- package/src/svelte/svelte-compile.test-helper.ts +6 -0
- package/src/vue/apple-authentication-button.ts +18 -0
- package/src/vue/index.ts +28 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @symbiote-native/apple-authentication/solid: кнопка и поток входа на общем ядре
|
|
2
|
+
|
|
3
|
+
export { AppleAuthenticationButton } from './apple-authentication-button';
|
|
4
|
+
export type { IAppleAuthenticationButtonProps } from '../core';
|
|
5
|
+
export {
|
|
6
|
+
APPLE_AUTHENTICATION_MODULE_NAME,
|
|
7
|
+
AppleAuthenticationButtonStyle,
|
|
8
|
+
AppleAuthenticationButtonType,
|
|
9
|
+
AppleAuthenticationCredentialState,
|
|
10
|
+
AppleAuthenticationOperation,
|
|
11
|
+
AppleAuthenticationScope,
|
|
12
|
+
AppleAuthenticationUserDetectionStatus,
|
|
13
|
+
addRevokeListener,
|
|
14
|
+
appleAuthenticationButtonViewName,
|
|
15
|
+
formatFullName,
|
|
16
|
+
getCredentialStateAsync,
|
|
17
|
+
isAvailableAsync,
|
|
18
|
+
refreshAsync,
|
|
19
|
+
signInAsync,
|
|
20
|
+
signOutAsync,
|
|
21
|
+
type EventSubscription,
|
|
22
|
+
type IAppleAuthenticationCredential,
|
|
23
|
+
type IAppleAuthenticationFullName,
|
|
24
|
+
type IAppleAuthenticationFullNameFormatStyle,
|
|
25
|
+
type IAppleAuthenticationRefreshOptions,
|
|
26
|
+
type IAppleAuthenticationSignInOptions,
|
|
27
|
+
type IAppleAuthenticationSignOutOptions,
|
|
28
|
+
} from '../core';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
// The native view name is mixed-case, which a literal tag would parse as a component reference,
|
|
3
|
+
// so the tag is dynamic
|
|
4
|
+
import { hostProps } from '@symbiote-native/svelte/native-view-bridge';
|
|
5
|
+
import { renderAppleAuthenticationButton } from '../core/apple-authentication-button';
|
|
6
|
+
import type { IAppleAuthenticationButtonProps } from '../core/apple-authentication-button';
|
|
7
|
+
|
|
8
|
+
const props: IAppleAuthenticationButtonProps = $props();
|
|
9
|
+
const descriptor = $derived(renderAppleAuthenticationButton({ ...props }));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{#if descriptor}
|
|
13
|
+
<svelte:element
|
|
14
|
+
this={descriptor.type}
|
|
15
|
+
{@attach hostProps(descriptor.props)}
|
|
16
|
+
/>
|
|
17
|
+
{/if}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent, type VNode } from '@vue/runtime-core';
|
|
2
|
+
import { descriptorToVue, normalizeVueAttrs } from '@symbiote-native/vue';
|
|
3
|
+
import { renderAppleAuthenticationButton } from '../core/apple-authentication-button';
|
|
4
|
+
|
|
5
|
+
/** Vue twin of `expo-apple-authentication`'s `AppleAuthenticationButton`, iOS only */
|
|
6
|
+
export const AppleAuthenticationButton = defineComponent({
|
|
7
|
+
name: 'AppleAuthenticationButton',
|
|
8
|
+
// Все атрибуты это пропсы нативного view, на обёртку ничего не должно просочиться
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
setup(_props, { attrs }) {
|
|
11
|
+
return (): VNode | null => {
|
|
12
|
+
const descriptor = renderAppleAuthenticationButton(
|
|
13
|
+
normalizeVueAttrs(attrs),
|
|
14
|
+
);
|
|
15
|
+
return descriptor ? descriptorToVue(descriptor) : null;
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
});
|
package/src/vue/index.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @symbiote-native/apple-authentication/vue: кнопка и поток входа на общем ядре
|
|
2
|
+
|
|
3
|
+
export { AppleAuthenticationButton } from './apple-authentication-button';
|
|
4
|
+
export type { IAppleAuthenticationButtonProps } from '../core';
|
|
5
|
+
export {
|
|
6
|
+
APPLE_AUTHENTICATION_MODULE_NAME,
|
|
7
|
+
AppleAuthenticationButtonStyle,
|
|
8
|
+
AppleAuthenticationButtonType,
|
|
9
|
+
AppleAuthenticationCredentialState,
|
|
10
|
+
AppleAuthenticationOperation,
|
|
11
|
+
AppleAuthenticationScope,
|
|
12
|
+
AppleAuthenticationUserDetectionStatus,
|
|
13
|
+
addRevokeListener,
|
|
14
|
+
appleAuthenticationButtonViewName,
|
|
15
|
+
formatFullName,
|
|
16
|
+
getCredentialStateAsync,
|
|
17
|
+
isAvailableAsync,
|
|
18
|
+
refreshAsync,
|
|
19
|
+
signInAsync,
|
|
20
|
+
signOutAsync,
|
|
21
|
+
type EventSubscription,
|
|
22
|
+
type IAppleAuthenticationCredential,
|
|
23
|
+
type IAppleAuthenticationFullName,
|
|
24
|
+
type IAppleAuthenticationFullNameFormatStyle,
|
|
25
|
+
type IAppleAuthenticationRefreshOptions,
|
|
26
|
+
type IAppleAuthenticationSignInOptions,
|
|
27
|
+
type IAppleAuthenticationSignOutOptions,
|
|
28
|
+
} from '../core';
|