@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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -2
  3. package/build/angular/apple-authentication-button/index.d.ts +12 -0
  4. package/build/angular/apple-authentication-button/index.js +98 -0
  5. package/build/angular/index.d.ts +2 -0
  6. package/build/angular/index.js +3 -0
  7. package/build/core/apple-authentication-button.d.ts +20 -0
  8. package/build/core/apple-authentication-button.js +28 -0
  9. package/build/core/apple-authentication.d.ts +34 -0
  10. package/build/core/apple-authentication.js +85 -0
  11. package/build/core/constants.d.ts +2 -0
  12. package/build/core/constants.js +3 -0
  13. package/build/core/index.d.ts +5 -0
  14. package/build/core/index.js +4 -0
  15. package/build/core/native-module.d.ts +10 -0
  16. package/build/core/native-module.js +8 -0
  17. package/build/core/types.d.ts +104 -0
  18. package/build/core/types.js +56 -0
  19. package/build/react/apple-authentication-button.d.ts +6 -0
  20. package/build/react/apple-authentication-button.js +7 -0
  21. package/build/react/index.d.ts +3 -0
  22. package/build/react/index.js +3 -0
  23. package/build/solid/apple-authentication-button.d.ts +3 -0
  24. package/build/solid/apple-authentication-button.js +4 -0
  25. package/build/solid/index.d.ts +3 -0
  26. package/build/solid/index.js +3 -0
  27. package/build/svelte/apple-authentication-button.svelte +17 -0
  28. package/build/svelte/apple-authentication-button.svelte.d.ts +4 -0
  29. package/build/svelte/index.d.ts +2 -0
  30. package/build/svelte/index.js +3 -0
  31. package/build/vue/apple-authentication-button.d.ts +3 -0
  32. package/build/vue/apple-authentication-button.js +15 -0
  33. package/build/vue/index.d.ts +3 -0
  34. package/build/vue/index.js +3 -0
  35. package/build-ngc/angular/apple-authentication-button/index.d.ts +15 -0
  36. package/build-ngc/angular/apple-authentication-button/index.js +48 -0
  37. package/build-ngc/angular/apple-authentication-button/index.js.map +1 -0
  38. package/build-ngc/angular/index.d.ts +2 -0
  39. package/build-ngc/angular/index.js +4 -0
  40. package/build-ngc/angular/index.js.map +1 -0
  41. package/build-ngc/core/apple-authentication-button.d.ts +20 -0
  42. package/build-ngc/core/apple-authentication-button.js +29 -0
  43. package/build-ngc/core/apple-authentication-button.js.map +1 -0
  44. package/build-ngc/core/apple-authentication.d.ts +34 -0
  45. package/build-ngc/core/apple-authentication.js +86 -0
  46. package/build-ngc/core/apple-authentication.js.map +1 -0
  47. package/build-ngc/core/constants.d.ts +2 -0
  48. package/build-ngc/core/constants.js +4 -0
  49. package/build-ngc/core/constants.js.map +1 -0
  50. package/build-ngc/core/index.d.ts +5 -0
  51. package/build-ngc/core/index.js +5 -0
  52. package/build-ngc/core/index.js.map +1 -0
  53. package/build-ngc/core/native-module.d.ts +10 -0
  54. package/build-ngc/core/native-module.js +9 -0
  55. package/build-ngc/core/native-module.js.map +1 -0
  56. package/build-ngc/core/types.d.ts +104 -0
  57. package/build-ngc/core/types.js +57 -0
  58. package/build-ngc/core/types.js.map +1 -0
  59. package/native-link.json +11 -0
  60. package/package.json +145 -3
  61. package/src/angular/apple-authentication-button/index.ts +35 -0
  62. package/src/angular/index.ts +28 -0
  63. package/src/core/apple-authentication-button.ts +69 -0
  64. package/src/core/apple-authentication.ts +127 -0
  65. package/src/core/constants.ts +5 -0
  66. package/src/core/index.ts +31 -0
  67. package/src/core/native-module.ts +38 -0
  68. package/src/core/types.ts +125 -0
  69. package/src/react/apple-authentication-button.ts +12 -0
  70. package/src/react/index.ts +28 -0
  71. package/src/solid/apple-authentication-button.ts +9 -0
  72. package/src/solid/index.ts +28 -0
  73. package/src/svelte/apple-authentication-button.svelte +17 -0
  74. package/src/svelte/index.ts +4 -0
  75. package/src/svelte/svelte-ambient.d.ts +3 -0
  76. package/src/svelte/svelte-compile.test-helper.ts +6 -0
  77. package/src/vue/apple-authentication-button.ts +18 -0
  78. 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,4 @@
1
+ // @symbiote-native/apple-authentication/svelte: кнопка и поток входа на общем ядре
2
+
3
+ export { default as AppleAuthenticationButton } from './apple-authentication-button.svelte';
4
+ export * from '../core';
@@ -0,0 +1,3 @@
1
+ // Pulls in svelte's ambient globals ($state/$effect/...) for this package's tsc program
2
+ // This package has no value import from 'svelte', so a triple-slash reference does it explicitly
3
+ /// <reference types="svelte" />
@@ -0,0 +1,6 @@
1
+ // Re-exports the existing harness instead of another copy
2
+ export {
3
+ createSvelteHarness,
4
+ loadComponent,
5
+ type ISvelteHarness,
6
+ } from '../../../sqlite/src/svelte/svelte-compile.test-helper';
@@ -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
+ });
@@ -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';