@microsoft/power-apps-native-host 0.2.22 → 0.3.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 +162 -26
- package/compatibility/current.json +87 -0
- package/lib/NOTICE.txt +140 -1226
- package/lib/commonjs/auth/AuthContext.js +74 -18
- package/lib/commonjs/auth/AuthContext.web.js +32 -0
- package/lib/commonjs/auth/completePowerAppsAuthSession.js +16 -0
- package/lib/commonjs/bridge/NativePowerAppsBridge.js +20 -17
- package/lib/commonjs/bridge/PowerPagesBridge.js +157 -0
- package/lib/commonjs/bridge/bridgeState.js +40 -0
- package/lib/commonjs/connections/ConnectionSetupScreen.js +459 -80
- package/lib/commonjs/connections/PowerPlatformConnectionApi.js +946 -0
- package/lib/commonjs/connections/connectionMetadata.js +127 -0
- package/lib/commonjs/connections/connectionState.js +96 -0
- package/lib/commonjs/connections/disambiguate.js +19 -11
- package/lib/commonjs/connections/resolveConnections.js +347 -0
- package/lib/commonjs/connections/types.js +106 -0
- package/lib/commonjs/{platform → connections}/useConnectionRefs.js +128 -65
- package/lib/commonjs/connections/useConnectionSetup.js +111 -52
- package/lib/commonjs/controls/FilePicker.js +6 -0
- package/lib/commonjs/controls/ImagePicker.js +8 -0
- package/lib/commonjs/index.js +188 -6
- package/lib/commonjs/logger.js +9 -6
- package/lib/commonjs/offline/createOfflineHostActivationCallbacks.js +61 -0
- package/lib/commonjs/offline/useOfflineIntegration.js +12 -0
- package/lib/commonjs/offline/useOfflineIntegration.web.js +11 -0
- package/lib/commonjs/offline/useOfflineIntegrationWithStartupGate.js +46 -0
- package/lib/commonjs/offline/useOfflineIntegrationWithStartupGate.web.js +13 -0
- package/lib/commonjs/platform/DataverseDataSources.js +14 -0
- package/lib/commonjs/platform/DataverseGlobalDiscoveryApi.js +49 -0
- package/lib/commonjs/platform/GlobalDiscovery.js +51 -0
- package/lib/commonjs/platform/PowerPlatformEnvironmentApi.js +6 -106
- package/lib/commonjs/provider/PowerAppsHostProvider.js +156 -25
- package/lib/commonjs/provider/PowerAppsHostProvider.web.js +41 -0
- package/lib/commonjs/provider/PowerAppsProvider.js +229 -133
- package/lib/commonjs/provider/SessionDetailsGesture.js +216 -0
- package/lib/commonjs/telemetry/OfflineSdkTelemetry.js +95 -0
- package/lib/commonjs/telemetry/OfflineSdkTelemetry.web.js +9 -0
- package/lib/commonjs/telemetry/index.js +22 -3
- package/lib/module/auth/AuthContext.js +74 -18
- package/lib/module/auth/AuthContext.web.js +26 -0
- package/lib/module/auth/completePowerAppsAuthSession.js +11 -0
- package/lib/module/bridge/NativePowerAppsBridge.js +21 -18
- package/lib/module/bridge/PowerPagesBridge.js +151 -0
- package/lib/module/bridge/bridgeState.js +34 -0
- package/lib/module/connections/ConnectionSetupScreen.js +460 -81
- package/lib/module/connections/PowerPlatformConnectionApi.js +932 -0
- package/lib/module/connections/connectionMetadata.js +112 -0
- package/lib/module/connections/connectionState.js +82 -0
- package/lib/module/connections/disambiguate.js +19 -12
- package/lib/module/connections/resolveConnections.js +342 -0
- package/lib/module/connections/types.js +91 -0
- package/lib/module/{platform → connections}/useConnectionRefs.js +129 -66
- package/lib/module/connections/useConnectionSetup.js +113 -54
- package/lib/module/controls/FilePicker.js +6 -0
- package/lib/module/controls/ImagePicker.js +8 -0
- package/lib/module/index.js +14 -6
- package/lib/module/logger.js +8 -6
- package/lib/module/offline/createOfflineHostActivationCallbacks.js +55 -0
- package/lib/module/offline/useOfflineIntegration.js +3 -0
- package/lib/module/offline/useOfflineIntegration.web.js +7 -0
- package/lib/module/offline/useOfflineIntegrationWithStartupGate.js +42 -0
- package/lib/module/offline/useOfflineIntegrationWithStartupGate.web.js +9 -0
- package/lib/module/platform/DataverseDataSources.js +10 -0
- package/lib/module/platform/DataverseGlobalDiscoveryApi.js +45 -0
- package/lib/module/platform/GlobalDiscovery.js +45 -0
- package/lib/module/platform/PowerPlatformEnvironmentApi.js +5 -104
- package/lib/module/provider/PowerAppsHostProvider.js +159 -28
- package/lib/module/provider/PowerAppsHostProvider.web.js +36 -0
- package/lib/module/provider/PowerAppsProvider.js +233 -137
- package/lib/module/provider/SessionDetailsGesture.js +211 -0
- package/lib/module/telemetry/OfflineSdkTelemetry.js +91 -0
- package/lib/module/telemetry/OfflineSdkTelemetry.web.js +5 -0
- package/lib/module/telemetry/index.js +15 -4
- package/lib/typescript/commonjs/auth/AuthContext.d.ts +3 -1
- package/lib/typescript/commonjs/auth/AuthContext.web.d.ts +21 -0
- package/lib/typescript/commonjs/auth/completePowerAppsAuthSession.d.ts +8 -0
- package/lib/typescript/commonjs/bridge/PowerPagesBridge.d.ts +18 -0
- package/lib/typescript/commonjs/bridge/bridgeState.d.ts +5 -0
- package/lib/typescript/commonjs/connections/ConnectionSetupScreen.d.ts +28 -7
- package/lib/typescript/commonjs/{platform → connections}/PowerPlatformConnectionApi.d.ts +52 -43
- package/lib/typescript/commonjs/connections/connectionMetadata.d.ts +66 -0
- package/lib/typescript/commonjs/connections/connectionState.d.ts +16 -0
- package/lib/typescript/commonjs/connections/disambiguate.d.ts +4 -2
- package/lib/typescript/commonjs/{platform → connections}/resolveConnections.d.ts +19 -19
- package/lib/typescript/commonjs/connections/types.d.ts +129 -1
- package/lib/typescript/commonjs/{platform → connections}/useConnectionRefs.d.ts +33 -24
- package/lib/typescript/commonjs/connections/useConnectionSetup.d.ts +12 -8
- package/lib/typescript/commonjs/controls/FilePicker.d.ts +7 -1
- package/lib/typescript/commonjs/controls/ImagePicker.d.ts +9 -1
- package/lib/typescript/commonjs/index.d.ts +20 -10
- package/lib/typescript/commonjs/logger.d.ts +4 -4
- package/lib/typescript/commonjs/offline/createOfflineHostActivationCallbacks.d.ts +12 -0
- package/lib/typescript/commonjs/offline/useOfflineIntegration.d.ts +2 -0
- package/lib/typescript/commonjs/offline/useOfflineIntegration.web.d.ts +4 -0
- package/lib/typescript/commonjs/offline/useOfflineIntegrationWithStartupGate.d.ts +15 -0
- package/lib/typescript/commonjs/offline/useOfflineIntegrationWithStartupGate.web.d.ts +6 -0
- package/lib/typescript/commonjs/platform/DataverseDataSources.d.ts +27 -0
- package/lib/typescript/commonjs/platform/DataverseGlobalDiscoveryApi.d.ts +3 -0
- package/lib/typescript/commonjs/platform/GlobalDiscovery.d.ts +4 -0
- package/lib/typescript/commonjs/platform/PowerPlatformEnvironmentApi.d.ts +3 -74
- package/lib/typescript/commonjs/provider/PowerAppsHostProvider.d.ts +29 -18
- package/lib/typescript/commonjs/provider/PowerAppsHostProvider.web.d.ts +5 -0
- package/lib/typescript/commonjs/provider/PowerAppsProvider.d.ts +32 -10
- package/lib/typescript/commonjs/provider/SessionDetailsGesture.d.ts +13 -0
- package/lib/typescript/commonjs/telemetry/OfflineSdkTelemetry.d.ts +15 -0
- package/lib/typescript/commonjs/telemetry/OfflineSdkTelemetry.web.d.ts +2 -0
- package/lib/typescript/commonjs/telemetry/index.d.ts +13 -1
- package/lib/typescript/module/auth/AuthContext.d.ts +3 -1
- package/lib/typescript/module/auth/AuthContext.web.d.ts +21 -0
- package/lib/typescript/module/auth/completePowerAppsAuthSession.d.ts +8 -0
- package/lib/typescript/module/bridge/PowerPagesBridge.d.ts +18 -0
- package/lib/typescript/module/bridge/bridgeState.d.ts +5 -0
- package/lib/typescript/module/connections/ConnectionSetupScreen.d.ts +28 -7
- package/lib/typescript/module/{platform → connections}/PowerPlatformConnectionApi.d.ts +52 -43
- package/lib/typescript/module/connections/connectionMetadata.d.ts +66 -0
- package/lib/typescript/module/connections/connectionState.d.ts +16 -0
- package/lib/typescript/module/connections/disambiguate.d.ts +4 -2
- package/lib/typescript/module/{platform → connections}/resolveConnections.d.ts +19 -19
- package/lib/typescript/module/connections/types.d.ts +129 -1
- package/lib/typescript/module/{platform → connections}/useConnectionRefs.d.ts +33 -24
- package/lib/typescript/module/connections/useConnectionSetup.d.ts +12 -8
- package/lib/typescript/module/controls/FilePicker.d.ts +7 -1
- package/lib/typescript/module/controls/ImagePicker.d.ts +9 -1
- package/lib/typescript/module/index.d.ts +24 -14
- package/lib/typescript/module/logger.d.ts +4 -4
- package/lib/typescript/module/offline/createOfflineHostActivationCallbacks.d.ts +12 -0
- package/lib/typescript/module/offline/useOfflineIntegration.d.ts +2 -0
- package/lib/typescript/module/offline/useOfflineIntegration.web.d.ts +4 -0
- package/lib/typescript/module/offline/useOfflineIntegrationWithStartupGate.d.ts +15 -0
- package/lib/typescript/module/offline/useOfflineIntegrationWithStartupGate.web.d.ts +6 -0
- package/lib/typescript/module/platform/DataverseDataSources.d.ts +27 -0
- package/lib/typescript/module/platform/DataverseGlobalDiscoveryApi.d.ts +3 -0
- package/lib/typescript/module/platform/GlobalDiscovery.d.ts +4 -0
- package/lib/typescript/module/platform/PowerPlatformEnvironmentApi.d.ts +3 -74
- package/lib/typescript/module/provider/PowerAppsHostProvider.d.ts +29 -18
- package/lib/typescript/module/provider/PowerAppsHostProvider.web.d.ts +5 -0
- package/lib/typescript/module/provider/PowerAppsProvider.d.ts +34 -12
- package/lib/typescript/module/provider/SessionDetailsGesture.d.ts +13 -0
- package/lib/typescript/module/telemetry/OfflineSdkTelemetry.d.ts +15 -0
- package/lib/typescript/module/telemetry/OfflineSdkTelemetry.web.d.ts +2 -0
- package/lib/typescript/module/telemetry/index.d.ts +13 -1
- package/package.json +43 -18
- package/scripts/build-ios-base.js +66 -27
- package/scripts/bundle.js +212 -5
- package/scripts/generate-connector-schemas.js +8 -6
- package/scripts/metro-logger.js +213 -0
- package/scripts/start-web.mjs +137 -0
- package/scripts/upgrade/runtime.js +463 -0
- package/scripts/upgrade/system.js +244 -0
- package/scripts/upgrade-authoring.js +534 -0
- package/scripts/upgrade.js +188 -0
- package/scripts/wrap.js +536 -0
- package/lib/commonjs/platform/PowerPlatformConnectionApi.js +0 -606
- package/lib/commonjs/platform/resolveConnections.js +0 -264
- package/lib/module/platform/PowerPlatformConnectionApi.js +0 -595
- package/lib/module/platform/resolveConnections.js +0 -259
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* // Call setup.startCreate() to trigger connection creation
|
|
18
18
|
* // Call setup.checkNow() to re-poll after WebView finishes
|
|
19
19
|
*/
|
|
20
|
-
import type { NativeConnectionInstance } from '
|
|
20
|
+
import type { ConnectionInput, NativeConnectionInstance } from './types';
|
|
21
21
|
/**
|
|
22
22
|
* The current phase of the connection setup flow for one connector.
|
|
23
23
|
*
|
|
@@ -43,12 +43,12 @@ export interface UseConnectionSetupOptions {
|
|
|
43
43
|
onConnected?: (instance: NativeConnectionInstance) => void;
|
|
44
44
|
/**
|
|
45
45
|
* The ISV/wrap-app AAD client ID (from auth.config.json `msal.clientId`).
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* so that APIM accepts tokens bearing this appid at runtime (otherwise APIM
|
|
49
|
-
* returns 403 "missing connection ACL" for all third-party app tokens).
|
|
46
|
+
* After connection creation, delegated user consent adds the calling app ID
|
|
47
|
+
* to the most specific applicable connection ACL.
|
|
50
48
|
*/
|
|
51
|
-
isvClientId
|
|
49
|
+
isvClientId: string;
|
|
50
|
+
/** Fixed shared connection resource ID. */
|
|
51
|
+
sharedConnectionId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* Redirect URL passed to the getConsentLink API call.
|
|
54
54
|
* Defaults to the standard native-client redirect accepted by Power Platform.
|
|
@@ -71,7 +71,11 @@ export interface UseConnectionSetupResult {
|
|
|
71
71
|
* Start the connection creation flow.
|
|
72
72
|
* Transitions: idle/error → creating → (oauth | connected | error).
|
|
73
73
|
*/
|
|
74
|
-
startCreate: () => Promise<void>;
|
|
74
|
+
startCreate: (input?: ConnectionInput) => Promise<void>;
|
|
75
|
+
/** Update and re-consent an existing unauthenticated connection. */
|
|
76
|
+
startRepair: (instance: NativeConnectionInstance, input?: ConnectionInput, requiresApiConsent?: boolean) => Promise<void>;
|
|
77
|
+
/** Verify third-party ACL access before accepting an existing connection. */
|
|
78
|
+
useExisting: (instance: NativeConnectionInstance) => Promise<void>;
|
|
75
79
|
/**
|
|
76
80
|
* Call after the OAuth WebView is dismissed (or anytime during 'oauth' phase)
|
|
77
81
|
* to immediately poll the connection status instead of waiting for the next
|
|
@@ -92,5 +96,5 @@ export interface UseConnectionSetupResult {
|
|
|
92
96
|
/** Reset the flow back to idle (e.g., for a retry). */
|
|
93
97
|
reset: () => void;
|
|
94
98
|
}
|
|
95
|
-
export declare function useConnectionSetup({ connectorId, environmentId, region, acquireToken, onConnected,
|
|
99
|
+
export declare function useConnectionSetup({ connectorId, environmentId, region, acquireToken, onConnected, sharedConnectionId, oauthRedirectUrl, polling, }: UseConnectionSetupOptions): UseConnectionSetupResult;
|
|
96
100
|
//# sourceMappingURL=useConnectionSetup.d.ts.map
|
|
@@ -11,6 +11,12 @@ export interface PickedFileInfo {
|
|
|
11
11
|
}
|
|
12
12
|
export interface FilePickerProps {
|
|
13
13
|
label?: string;
|
|
14
|
+
/** Optional test ID for the outer container. */
|
|
15
|
+
testID?: string;
|
|
16
|
+
/** Optional test ID for the selected file row. */
|
|
17
|
+
fileRowTestID?: string;
|
|
18
|
+
/** Optional test ID for the pick/replace button. */
|
|
19
|
+
pickButtonTestID?: string;
|
|
14
20
|
/**
|
|
15
21
|
* The file name to display.
|
|
16
22
|
* - In view mode: the name of the existing Dataverse file.
|
|
@@ -61,5 +67,5 @@ export interface FilePickerProps {
|
|
|
61
67
|
* - Pass both to show the existing file name (tappable to download) alongside a
|
|
62
68
|
* replace button — useful when the edit screen should also allow previewing.
|
|
63
69
|
*/
|
|
64
|
-
export declare function FilePicker({ label, fileName, onDownload, shareTitle, onChange, acceptedTypes, pickButtonLabel, replaceButtonLabel, readingLabel, containerStyle, labelStyle, fileRowStyle, fileNameStyle, buttonStyle, buttonTextStyle, accentColor, }: FilePickerProps): React.JSX.Element;
|
|
70
|
+
export declare function FilePicker({ label, testID, fileRowTestID, pickButtonTestID, fileName, onDownload, shareTitle, onChange, acceptedTypes, pickButtonLabel, replaceButtonLabel, readingLabel, containerStyle, labelStyle, fileRowStyle, fileNameStyle, buttonStyle, buttonTextStyle, accentColor, }: FilePickerProps): React.JSX.Element;
|
|
65
71
|
//# sourceMappingURL=FilePicker.d.ts.map
|
|
@@ -13,6 +13,14 @@ export interface PickedImageInfo {
|
|
|
13
13
|
}
|
|
14
14
|
export interface ImagePickerProps {
|
|
15
15
|
label?: string;
|
|
16
|
+
/** Optional test ID for the outer container. */
|
|
17
|
+
testID?: string;
|
|
18
|
+
/** Optional test ID for the camera button. */
|
|
19
|
+
cameraButtonTestID?: string;
|
|
20
|
+
/** Optional test ID for the image-library button. */
|
|
21
|
+
selectButtonTestID?: string;
|
|
22
|
+
/** Optional test ID for the selected image preview. */
|
|
23
|
+
previewTestID?: string;
|
|
16
24
|
/**
|
|
17
25
|
* Base64 string from Dataverse (the `cr_assetimage` thumbnail).
|
|
18
26
|
* The component builds the preview data URI internally.
|
|
@@ -72,5 +80,5 @@ export interface ImagePickerProps {
|
|
|
72
80
|
* - On pick, the image is returned as base64 for legacy callers and as a
|
|
73
81
|
* File-compatible object for generated Dataverse upload methods.
|
|
74
82
|
*/
|
|
75
|
-
export declare function ImagePicker({ label, initialBase64, onChange, containerStyle, labelStyle, buttonRowStyle, buttonStyle, buttonTextStyle, previewStyle, accentColor, onImageChange, imageFileName, quality, allowsEditing, aspect, cropShape, exif, legacy, cameraButtonLabel, selectButtonLabel, changeButtonLabel, readingLabel, }: ImagePickerProps): React.JSX.Element;
|
|
83
|
+
export declare function ImagePicker({ label, testID, cameraButtonTestID, selectButtonTestID, previewTestID, initialBase64, onChange, containerStyle, labelStyle, buttonRowStyle, buttonStyle, buttonTextStyle, previewStyle, accentColor, onImageChange, imageFileName, quality, allowsEditing, aspect, cropShape, exif, legacy, cameraButtonLabel, selectButtonLabel, changeButtonLabel, readingLabel, }: ImagePickerProps): React.JSX.Element;
|
|
76
84
|
//# sourceMappingURL=ImagePicker.d.ts.map
|
|
@@ -4,24 +4,34 @@
|
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
export { NativePowerAppsBridge } from './bridge/NativePowerAppsBridge';
|
|
7
|
+
export { PowerPagesBridge, setupPowerPagesHost } from './bridge/PowerPagesBridge';
|
|
8
|
+
export type { PowerPagesBridgeOptions } from './bridge/PowerPagesBridge';
|
|
7
9
|
export type { NativeBridgeOptions, CdsDataSourceConfig, AppConnection, AppConnectionReference } from './bridge/NativePowerAppsBridge';
|
|
8
10
|
export { buildConnectionReferences } from './bridge/NativePowerAppsBridge';
|
|
9
11
|
export { setupNativeHost } from './bridge/setupNativeHost';
|
|
12
|
+
export { updateBridgeOptionsInPlace } from './bridge/bridgeState';
|
|
10
13
|
export { AuthProvider, useAuth } from './auth/AuthContext';
|
|
11
14
|
export type { AuthState, AuthProviderProps } from './auth/AuthContext';
|
|
15
|
+
export { completePowerAppsAuthSession } from './auth/completePowerAppsAuthSession';
|
|
12
16
|
export type { AuthConfig, MsalAuthConfig, IntuneConfig } from '@microsoft/power-apps-native-auth';
|
|
13
17
|
export { PowerAppsHostProvider } from './provider/PowerAppsHostProvider';
|
|
14
18
|
export type { PowerAppsHostProviderProps } from './provider/PowerAppsHostProvider';
|
|
15
19
|
export { PowerAppsProvider } from './provider/PowerAppsProvider';
|
|
16
|
-
export type { PowerAppsProviderProps, PowerConfig } from './provider/PowerAppsProvider';
|
|
17
|
-
export {
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export type {
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
20
|
+
export type { AppInsightsConfig, PowerAppsProviderProps, PowerConfig } from './provider/PowerAppsProvider';
|
|
21
|
+
export { buildEnvironmentEndpoint, POWER_PLATFORM_API_SCOPE } from './platform/PowerPlatformEnvironmentApi';
|
|
22
|
+
export { fetchInstanceUrl } from './platform/DataverseGlobalDiscoveryApi';
|
|
23
|
+
export { buildCdsDataSources } from './platform/DataverseDataSources';
|
|
24
|
+
export type { LinkedEnvironmentMetadata, DatabaseReference, DatabaseReferenceDataSource } from './platform/DataverseDataSources';
|
|
25
|
+
export { useConnectionRefs } from './connections/useConnectionRefs';
|
|
26
|
+
export type { UseConnectionRefsOptions, UseConnectionRefsResult, ConnectorSchema } from './connections/useConnectionRefs';
|
|
27
|
+
export { fetchConnectorMetadata, fetchConnectionsForConnector, deleteConnection, createConnection, pollConnectionStatus, confirmConsentCode, repairConnection, fetchAppLaunchData, fetchAppConnectionUsages, postConnectionUsage, reportScopeConsents, } from './connections/PowerPlatformConnectionApi';
|
|
28
|
+
export type { ConnectorMetadata, CreateConnectionResult, AppLaunchResult, RegisteredConnectionUsage, } from './connections/PowerPlatformConnectionApi';
|
|
23
29
|
export { disambiguateConnections, extractConnectionId } from './connections/disambiguate';
|
|
24
|
-
export
|
|
30
|
+
export { shouldPersistConnectionUsages, shouldShowConnectionReview, } from './connections/connectionState';
|
|
31
|
+
export { buildConnectionRequirements, buildConnectionResolutionKey, findConnectionDataSourceConflicts, hasCompleteStaticConnectionConfig, isCompositeConnectionApiId, getConnectorId, normalizeApiId, } from './connections/types';
|
|
32
|
+
export { buildConnectionUserConsentUrl, buildConsentLinkDefinition, buildConnectionParameterSets, buildConnectionUsageRequest, buildConnectionUsageUrl, buildScopeConsentRequest, buildScopeConsentUrl, hasOAuthParameter, parseConnectionParameters, serializeConnectionParameters, } from './connections/connectionMetadata';
|
|
33
|
+
export type { ConsentLinkDefinition, RawConnectionParameter, RawConnectionParameterSet, SerializedConnectionParameters, } from './connections/connectionMetadata';
|
|
34
|
+
export type { ConnectionConsentDetails, ConnectionInput, ConnectionParameterDefinition, ConnectionParameterSet, ConnectionParameterType, ConnectionParameterValue, ConnectionReferenceConfig, ConnectionRequirement, ConnectionUsageInput, ResourceConsentRequirement, NativeConnectionInstance, NativeConnectionResolution, NativeDisambiguationResult, OnDisambiguationNeeded, OnMissingConnection, } from './connections/types';
|
|
25
35
|
export { useConnectionSetup } from './connections/useConnectionSetup';
|
|
26
36
|
export type { ConnectionSetupPhase, UseConnectionSetupOptions, UseConnectionSetupResult, } from './connections/useConnectionSetup';
|
|
27
37
|
export { ConnectionSetupScreen } from './connections/ConnectionSetupScreen';
|
|
@@ -36,7 +46,7 @@ export { ImagePicker } from './controls/ImagePicker';
|
|
|
36
46
|
export type { ImagePickerProps, PickedImageInfo } from './controls/ImagePicker';
|
|
37
47
|
export { isDevPlayer } from './utils/isDevPlayer';
|
|
38
48
|
export { base64ToDataverseUploadFile, base64ToUint8Array, createDataverseUploadFile, } from './utils/dataverseUtils';
|
|
39
|
-
export { getAppLogger, configureAppLogger, HostOperationNames } from './telemetry';
|
|
40
|
-
export type { ILogger } from '@microsoft/power-apps-native-common';
|
|
49
|
+
export { getAppLogger, configureAppLogger, getCustomerTelemetryLogger, HostOperationNames, } from './telemetry';
|
|
50
|
+
export type { ICustomerTelemetryLogger, ILogger, } from '@microsoft/power-apps-native-common';
|
|
41
51
|
export { ErrorBoundary } from './ErrorBoundary';
|
|
42
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Conditional debug logger for power-apps-native-host.
|
|
3
3
|
*
|
|
4
|
-
* Debug logs (debugLog / debugWarn) are
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* APKs generated from the template so the production log stream stays clean.
|
|
4
|
+
* Debug logs (debugLog / debugWarn) are emitted in development bundles or when
|
|
5
|
+
* running inside Power Apps Dev Player. They remain silent in wrapped release
|
|
6
|
+
* apps so the production log stream stays clean.
|
|
8
7
|
*/
|
|
8
|
+
export declare function isDebugLoggingEnabled(): boolean;
|
|
9
9
|
export declare function debugLog(...args: unknown[]): void;
|
|
10
10
|
export declare function debugWarn(...args: unknown[]): void;
|
|
11
11
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
+
export declare function createHostQueryClient(): QueryClient;
|
|
3
|
+
export declare function createOfflineHostActivationCallbacks(queryClient: QueryClient): {
|
|
4
|
+
prepareForOfflineActivation: () => Promise<void>;
|
|
5
|
+
completeOfflineActivation: () => Promise<void>;
|
|
6
|
+
rollbackOfflineActivation: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export declare function resolveSdkMountDecision(value: unknown): {
|
|
9
|
+
shouldMountChildren: boolean;
|
|
10
|
+
contractSupported: boolean;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=createOfflineHostActivationCallbacks.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useOfflineIntegration } from './useOfflineIntegration';
|
|
2
|
+
type Options = {
|
|
3
|
+
powerConfig: Parameters<typeof useOfflineIntegration>[0]['powerConfig'];
|
|
4
|
+
offlineProfile?: Record<string, unknown>;
|
|
5
|
+
acquireToken: (scopes: string[]) => Promise<string | null>;
|
|
6
|
+
hasRealAccount: boolean;
|
|
7
|
+
isAuthReady: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function useOfflineIntegrationWithStartupGate({ powerConfig, offlineProfile, acquireToken, hasRealAccount, isAuthReady, }: Options): {
|
|
10
|
+
isEnabled: boolean;
|
|
11
|
+
StatusOverlay: import("react").ComponentType<Record<string, never>> | null;
|
|
12
|
+
shouldMountChildren: boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useOfflineIntegrationWithStartupGate.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface LinkedEnvironmentMetadata {
|
|
2
|
+
resourceId?: string;
|
|
3
|
+
friendlyName?: string;
|
|
4
|
+
uniqueName?: string;
|
|
5
|
+
domainName?: string;
|
|
6
|
+
version?: string;
|
|
7
|
+
instanceUrl?: string;
|
|
8
|
+
instanceApiUrl?: string;
|
|
9
|
+
baseLanguage?: number;
|
|
10
|
+
instanceState?: string;
|
|
11
|
+
createdTime?: string;
|
|
12
|
+
platformSku?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DatabaseReferenceDataSource {
|
|
15
|
+
entitySetName?: string;
|
|
16
|
+
logicalName?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface DatabaseReference {
|
|
19
|
+
dataSources?: Record<string, DatabaseReferenceDataSource>;
|
|
20
|
+
}
|
|
21
|
+
export declare function buildCdsDataSources(databaseReferences: Record<string, DatabaseReference>, dataverseOrgUrl: string): Array<{
|
|
22
|
+
runtimeUrl: string;
|
|
23
|
+
entitySetName: string;
|
|
24
|
+
logicalName: string;
|
|
25
|
+
version: string;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=DataverseDataSources.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Fetch the Dataverse instance URL from the Dataverse Global Discovery Service. */
|
|
2
|
+
export declare function fetchInstanceUrl(environmentId: string, region: string, acquireToken: (scopes: string[]) => Promise<string | null>, _bearerToken?: string): Promise<string | undefined>;
|
|
3
|
+
//# sourceMappingURL=DataverseGlobalDiscoveryApi.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function globalDiscoveryEndpoint(region: string): string;
|
|
2
|
+
export declare function globalDiscoveryScope(region: string): string;
|
|
3
|
+
export declare function buildGlobalDiscoveryUrl(environmentId: string, region: string): string;
|
|
4
|
+
//# sourceMappingURL=GlobalDiscovery.d.ts.map
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* power-apps-native-host — PowerPlatformEnvironmentApi
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* pattern: resolves the Power Platform environment-scoped API endpoint from the
|
|
6
|
-
* environment GUID and region, then fetches linkedEnvironmentMetadata to obtain
|
|
7
|
-
* the Dataverse instanceUrl.
|
|
8
|
-
*
|
|
9
|
-
* Reference (Host SDK):
|
|
10
|
-
* packages/power-apps-host/src/providers/defaults/DefaultAppMetadataProvider.ts
|
|
11
|
-
* packages/power-apps-common/src/services/PowerPlatformApiDiscovery.ts
|
|
4
|
+
* Resolves Power Platform RP endpoints and scopes.
|
|
12
5
|
*/
|
|
13
6
|
/**
|
|
14
7
|
* Build the Power Platform environment-scoped API base URL.
|
|
@@ -26,19 +19,6 @@
|
|
|
26
19
|
* → "d909aac059d0e5b1900dc082ef5774.d7.environment.api.powerplatform.com"
|
|
27
20
|
*/
|
|
28
21
|
export declare function buildEnvironmentEndpoint(environmentId: string, region: string): string;
|
|
29
|
-
export interface LinkedEnvironmentMetadata {
|
|
30
|
-
resourceId?: string;
|
|
31
|
-
friendlyName?: string;
|
|
32
|
-
uniqueName?: string;
|
|
33
|
-
domainName?: string;
|
|
34
|
-
version?: string;
|
|
35
|
-
instanceUrl?: string;
|
|
36
|
-
instanceApiUrl?: string;
|
|
37
|
-
baseLanguage?: number;
|
|
38
|
-
instanceState?: string;
|
|
39
|
-
createdTime?: string;
|
|
40
|
-
platformSku?: string;
|
|
41
|
-
}
|
|
42
22
|
/**
|
|
43
23
|
* Token scope for the Power Platform management API (prod cluster).
|
|
44
24
|
* Non-prod clusters (test, gov, high, dev, mooncake, etc.) host the management
|
|
@@ -52,57 +32,6 @@ export declare const POWER_PLATFORM_API_SCOPE = "https://api.powerplatform.com/.
|
|
|
52
32
|
* {@link buildEnvironmentEndpoint}.
|
|
53
33
|
*/
|
|
54
34
|
export declare function powerPlatformScope(region: string): string;
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
* the environment-scoped Power Platform management API — the same call that
|
|
58
|
-
* the Host SDK's DefaultAppMetadataProvider makes to populate
|
|
59
|
-
* `databaseReferences[*].databaseDetails.linkedEnvironmentMetadata`.
|
|
60
|
-
*
|
|
61
|
-
* @param environmentId - Environment GUID (from power.config.json `environmentId`).
|
|
62
|
-
* @param region - Cluster region string (from power.config.json `region`, default "prod").
|
|
63
|
-
* @param acquireToken - Callback to obtain a bearer token for the given scopes.
|
|
64
|
-
* Scope will be {@link powerPlatformScope}`(region)`.
|
|
65
|
-
* @param bearerToken - Optional pre-fetched bearer token for {@link powerPlatformScope}`(region)`.
|
|
66
|
-
* Pass this to avoid a redundant `acquireToken` round-trip when the
|
|
67
|
-
* caller has already obtained a token for the same audience.
|
|
68
|
-
* @returns The Dataverse org URL (e.g. "https://org12345.crm.dynamics.com"), or
|
|
69
|
-
* `undefined` if the environment has no linked CDS database.
|
|
70
|
-
*/
|
|
71
|
-
export declare function fetchInstanceUrl(environmentId: string, region: string, acquireToken: (scopes: string[]) => Promise<string | null>, bearerToken?: string): Promise<string | undefined>;
|
|
72
|
-
/**
|
|
73
|
-
* Shape of a single Dataverse table entry inside power.config.json
|
|
74
|
-
* `databaseReferences[*].dataSources[*]`.
|
|
75
|
-
*/
|
|
76
|
-
export interface DatabaseReferenceDataSource {
|
|
77
|
-
entitySetName?: string;
|
|
78
|
-
logicalName?: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Shape of a single database reference entry inside power.config.json
|
|
82
|
-
* `databaseReferences`.
|
|
83
|
-
*/
|
|
84
|
-
export interface DatabaseReference {
|
|
85
|
-
dataSources?: Record<string, DatabaseReferenceDataSource>;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Build the CDS data source config array that the SDK reads via
|
|
89
|
-
* AppPowerAppsClientPlugin.getAppCdsDataSourceConfigsAsync.
|
|
90
|
-
*
|
|
91
|
-
* Pass the resolved Dataverse org URL (from useConnectionRefs) and the
|
|
92
|
-
* databaseReferences map from power.config.json. The resulting array is
|
|
93
|
-
* passed directly to <PowerAppsHostProvider dataSources={...} />.
|
|
94
|
-
*
|
|
95
|
-
* @param databaseReferences - The `databaseReferences` map from power.config.json.
|
|
96
|
-
* @param dataverseOrgUrl - The resolved Dataverse org URL
|
|
97
|
-
* (connectionRefs['commondataserviceforapps']?.datasetName).
|
|
98
|
-
* Pass an empty string before the org URL is known;
|
|
99
|
-
* the host provider will receive empty runtimeUrl entries
|
|
100
|
-
* and the SDK will not attempt Dataverse calls.
|
|
101
|
-
*/
|
|
102
|
-
export declare function buildCdsDataSources(databaseReferences: Record<string, DatabaseReference>, dataverseOrgUrl: string): Array<{
|
|
103
|
-
runtimeUrl: string;
|
|
104
|
-
entitySetName: string;
|
|
105
|
-
logicalName: string;
|
|
106
|
-
version: string;
|
|
107
|
-
}>;
|
|
35
|
+
/** Delegated permission required by the connection user-consent endpoint. */
|
|
36
|
+
export declare function connectionUserConsentScope(region: string): string;
|
|
108
37
|
//# sourceMappingURL=PowerPlatformEnvironmentApi.d.ts.map
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
* </PowerAppsHostProvider>
|
|
28
28
|
*/
|
|
29
29
|
import React from 'react';
|
|
30
|
-
import type { ConnectorSchema } from '../
|
|
31
|
-
import type { DatabaseReference } from '../platform/
|
|
30
|
+
import type { ConnectorSchema } from '../connections/useConnectionRefs';
|
|
31
|
+
import type { DatabaseReference } from '../platform/DataverseDataSources';
|
|
32
32
|
import type { OnDisambiguationNeeded } from '../connections/types';
|
|
33
|
+
import type { ConnectionReferenceConfig, ConnectionUsageInput, ResourceConsentRequirement } from '../connections/types';
|
|
33
34
|
export interface PowerAppsHostProviderProps {
|
|
34
35
|
/**
|
|
35
36
|
* Callback to acquire an access token for the given scopes.
|
|
@@ -41,12 +42,12 @@ export interface PowerAppsHostProviderProps {
|
|
|
41
42
|
* Connection resolution only runs when this is true.
|
|
42
43
|
*/
|
|
43
44
|
isSignedIn: boolean;
|
|
45
|
+
/** Sign out the active account. Shown on blocking connection error screens. */
|
|
46
|
+
onSignOut?: () => void | Promise<void>;
|
|
44
47
|
/**
|
|
45
48
|
* PowerApps app GUID (from power.config.json `appId`).
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* `connectionReferences` prop. Leave undefined during local development
|
|
49
|
-
* to fall back to the static `connectionReferences`.
|
|
49
|
+
* Outside Dev Player, app and connection metadata is fetched exclusively
|
|
50
|
+
* from the PowerApps RP `/apps/{appId}/launch` API.
|
|
50
51
|
*/
|
|
51
52
|
appId?: string;
|
|
52
53
|
/** Power Platform environment GUID (from power.config.json). */
|
|
@@ -58,6 +59,7 @@ export interface PowerAppsHostProviderProps {
|
|
|
58
59
|
region?: string;
|
|
59
60
|
/**
|
|
60
61
|
* The connectionReferences map from power.config.json.
|
|
62
|
+
* Used only in Dev Player for unpublished local apps.
|
|
61
63
|
* Shape: { [refId]: { id: string; dataSources: string[] } }
|
|
62
64
|
*
|
|
63
65
|
* NOTE: This prop must be referentially stable across renders (memoize it in
|
|
@@ -65,18 +67,16 @@ export interface PowerAppsHostProviderProps {
|
|
|
65
67
|
* so passing a fresh object literal every render forces continuous
|
|
66
68
|
* re-registration.
|
|
67
69
|
*/
|
|
68
|
-
connectionReferences: Record<string,
|
|
69
|
-
id: string;
|
|
70
|
-
dataSources: string[];
|
|
71
|
-
}>;
|
|
70
|
+
connectionReferences: Record<string, ConnectionReferenceConfig>;
|
|
72
71
|
/**
|
|
73
72
|
* Connector schema map keyed by data source name.
|
|
73
|
+
* Used only in Dev Player for unpublished local apps.
|
|
74
74
|
* Generated automatically by generate-connector-schemas.
|
|
75
75
|
*/
|
|
76
76
|
schemaMap: Record<string, ConnectorSchema>;
|
|
77
77
|
/**
|
|
78
78
|
* The databaseReferences map from power.config.json.
|
|
79
|
-
|
|
79
|
+
* Used only in Dev Player. Production database references come from RP.
|
|
80
80
|
*
|
|
81
81
|
* NOTE: Like `connectionReferences`, pass a referentially stable value; an
|
|
82
82
|
* unstable identity each render triggers redundant bridge re-registration.
|
|
@@ -84,8 +84,8 @@ export interface PowerAppsHostProviderProps {
|
|
|
84
84
|
databaseReferences?: Record<string, DatabaseReference>;
|
|
85
85
|
/**
|
|
86
86
|
* Optional custom renderer for the OAuth consent WebView shown during
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
* connection creation. If not provided, the system authentication browser
|
|
88
|
+
* is used. Pass the final redirect URL to onDone when the custom view captures it.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* // Using react-native-webview:
|
|
@@ -96,20 +96,31 @@ export interface PowerAppsHostProviderProps {
|
|
|
96
96
|
* </Modal>
|
|
97
97
|
* )}
|
|
98
98
|
*/
|
|
99
|
-
renderOAuthWebView?: (url: string, onDone: () => void) => React.ReactNode;
|
|
99
|
+
renderOAuthWebView?: (url: string, onDone: (redirectUrl?: string) => void) => React.ReactNode;
|
|
100
100
|
/**
|
|
101
101
|
* The ISV/wrap-app AAD client ID (from auth.config.json `msal.clientId`).
|
|
102
102
|
* When provided, the ISV's service principal is granted CanView access on
|
|
103
103
|
* each newly created connection, allowing APIM to accept tokens with this
|
|
104
104
|
* appid at runtime (prevents 403 "missing connection ACL" for third-party tokens).
|
|
105
105
|
*/
|
|
106
|
-
isvClientId
|
|
106
|
+
isvClientId: string;
|
|
107
107
|
/**
|
|
108
108
|
* Called when multiple Connected connections exist for the same connector.
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
* Present a native picker UI and return the chosen connectionId, or null to
|
|
110
|
+
* leave the reference unresolved.
|
|
111
111
|
*/
|
|
112
112
|
onDisambiguationNeeded?: OnDisambiguationNeeded;
|
|
113
|
+
/**
|
|
114
|
+
* Called after the user selects Allow and before the player launches.
|
|
115
|
+
* Use this to persist app-to-connection usage through an approved public RP endpoint.
|
|
116
|
+
* Rejecting keeps the app gated and shows the error in the consent screen.
|
|
117
|
+
* Not invoked in Power Apps Dev Player; local testing is intentionally non-persistent.
|
|
118
|
+
*/
|
|
119
|
+
onConnectionConsent?: (usages: ConnectionUsageInput[]) => void | Promise<void>;
|
|
120
|
+
/** Persist protected resource approval in production. Not invoked in Dev Player. */
|
|
121
|
+
onResourceConsent?: (resources: ResourceConsentRequirement[]) => void | Promise<void>;
|
|
122
|
+
/** Called when the user selects Do not allow. */
|
|
123
|
+
onConnectionConsentDeclined?: () => void | Promise<void>;
|
|
113
124
|
children: React.ReactNode;
|
|
114
125
|
}
|
|
115
126
|
/**
|
|
@@ -119,5 +130,5 @@ export interface PowerAppsHostProviderProps {
|
|
|
119
130
|
*
|
|
120
131
|
* Children are never rendered until all required connections are resolved.
|
|
121
132
|
*/
|
|
122
|
-
export declare function PowerAppsHostProvider({ acquireToken, isSignedIn, appId, environmentId, region, connectionReferences, schemaMap, databaseReferences, renderOAuthWebView, isvClientId, onDisambiguationNeeded, children, }: PowerAppsHostProviderProps): React.JSX.Element;
|
|
133
|
+
export declare function PowerAppsHostProvider({ acquireToken, isSignedIn, onSignOut, appId, environmentId, region, connectionReferences, schemaMap, databaseReferences, renderOAuthWebView, isvClientId, onDisambiguationNeeded, onConnectionConsent, onResourceConsent, onConnectionConsentDeclined, children, }: PowerAppsHostProviderProps): React.JSX.Element;
|
|
123
134
|
//# sourceMappingURL=PowerAppsHostProvider.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PowerAppsHostProviderProps } from './PowerAppsHostProvider';
|
|
3
|
+
export type { PowerAppsHostProviderProps } from './PowerAppsHostProvider';
|
|
4
|
+
export declare function PowerAppsHostProvider({ connectionReferences, databaseReferences, children, }: PowerAppsHostProviderProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=PowerAppsHostProvider.web.d.ts.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Power Apps canvas app inside an Expo shell:
|
|
6
6
|
*
|
|
7
7
|
* GestureHandlerRootView
|
|
8
|
-
* └── TamaguiProvider (defaults to @tamagui/config/
|
|
8
|
+
* └── TamaguiProvider (defaults to @tamagui/config/v5)
|
|
9
9
|
* └── PortalProvider (required by ToastViewport)
|
|
10
10
|
* └── ToastProvider + ToastViewport
|
|
11
11
|
* └── QueryClientProvider (own QueryClient, wired to NetInfo + AppState)
|
|
@@ -28,11 +28,12 @@ import React from 'react';
|
|
|
28
28
|
import { createTamagui } from '@tamagui/core';
|
|
29
29
|
import type { AuthProviderProps } from '../auth/AuthContext';
|
|
30
30
|
import type { PowerAppsHostProviderProps } from './PowerAppsHostProvider';
|
|
31
|
-
import type { ConnectorSchema } from '../
|
|
32
|
-
import type { DatabaseReference } from '../platform/
|
|
33
|
-
import type { OnDisambiguationNeeded } from '../connections/types';
|
|
31
|
+
import type { ConnectorSchema } from '../connections/useConnectionRefs';
|
|
32
|
+
import type { DatabaseReference } from '../platform/DataverseDataSources';
|
|
33
|
+
import type { ConnectionReferenceConfig, OnDisambiguationNeeded } from '../connections/types';
|
|
34
34
|
import type { ThemeTokens } from '../theme/tokens';
|
|
35
35
|
import type { ILogger } from '@microsoft/power-apps-native-common';
|
|
36
|
+
import type { ApplicationInsightsTelemetryProviderConfig } from '@microsoft/power-apps-native-common';
|
|
36
37
|
/** Shape of power.config.json consumed by the provider. */
|
|
37
38
|
export interface PowerConfig {
|
|
38
39
|
/**
|
|
@@ -53,10 +54,7 @@ export interface PowerConfig {
|
|
|
53
54
|
* Omit for the default global collector.
|
|
54
55
|
*/
|
|
55
56
|
geoRegion?: string;
|
|
56
|
-
connectionReferences?: Record<string,
|
|
57
|
-
id: string;
|
|
58
|
-
dataSources: string[];
|
|
59
|
-
}>;
|
|
57
|
+
connectionReferences?: Record<string, ConnectionReferenceConfig>;
|
|
60
58
|
databaseReferences?: Record<string, DatabaseReference>;
|
|
61
59
|
/**
|
|
62
60
|
* Allow additional keys — the offline SDK reads arbitrary fields from
|
|
@@ -67,6 +65,10 @@ export interface PowerConfig {
|
|
|
67
65
|
[key: string]: unknown;
|
|
68
66
|
}
|
|
69
67
|
type TamaguiConfig = ReturnType<typeof createTamagui>;
|
|
68
|
+
export interface AppInsightsConfig extends Omit<ApplicationInsightsTelemetryProviderConfig, 'deviceId' | 'sessionId'> {
|
|
69
|
+
/** Explicit opt-in. Application Insights telemetry is disabled unless this is true. */
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
}
|
|
70
72
|
export interface PowerAppsProviderProps {
|
|
71
73
|
/** MSAL configuration from auth.config.json (msal section). */
|
|
72
74
|
msalConfig: AuthProviderProps['msalConfig'];
|
|
@@ -81,7 +83,7 @@ export interface PowerAppsProviderProps {
|
|
|
81
83
|
schemaMap: Record<string, ConnectorSchema>;
|
|
82
84
|
/**
|
|
83
85
|
* Tamagui design-system config.
|
|
84
|
-
|
|
86
|
+
* Defaults to the standard @tamagui/config/v5 preset.
|
|
85
87
|
*/
|
|
86
88
|
tamaguiConfig?: TamaguiConfig;
|
|
87
89
|
/** Tamagui default colour theme. @default 'light' */
|
|
@@ -106,6 +108,12 @@ export interface PowerAppsProviderProps {
|
|
|
106
108
|
renderOAuthWebView?: PowerAppsHostProviderProps['renderOAuthWebView'];
|
|
107
109
|
/** See PowerAppsHostProviderProps.onDisambiguationNeeded. */
|
|
108
110
|
onDisambiguationNeeded?: OnDisambiguationNeeded;
|
|
111
|
+
/** See PowerAppsHostProviderProps.onConnectionConsent. */
|
|
112
|
+
onConnectionConsent?: PowerAppsHostProviderProps['onConnectionConsent'];
|
|
113
|
+
/** See PowerAppsHostProviderProps.onResourceConsent. */
|
|
114
|
+
onResourceConsent?: PowerAppsHostProviderProps['onResourceConsent'];
|
|
115
|
+
/** See PowerAppsHostProviderProps.onConnectionConsentDeclined. */
|
|
116
|
+
onConnectionConsentDeclined?: PowerAppsHostProviderProps['onConnectionConsentDeclined'];
|
|
109
117
|
/**
|
|
110
118
|
* App name used as `clientType` in the auto-wired 1DS telemetry provider.
|
|
111
119
|
* Appears in Kusto as the `clientType` column — use a stable
|
|
@@ -125,6 +133,20 @@ export interface PowerAppsProviderProps {
|
|
|
125
133
|
* logger becomes a no-op regardless of build variant.
|
|
126
134
|
*/
|
|
127
135
|
logger?: ILogger | null;
|
|
136
|
+
/**
|
|
137
|
+
* Show app and telemetry session details after a three-finger downward swipe.
|
|
138
|
+
* Available in both development and published native apps. @default true
|
|
139
|
+
*/
|
|
140
|
+
showSessionDetailsOnSwipe?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Optional customer-owned Application Insights destination.
|
|
143
|
+
*
|
|
144
|
+
* Events are sent directly to the selected C1-owned Application Insights
|
|
145
|
+
* resource and fan out alongside the default Microsoft OneDS provider.
|
|
146
|
+
* Defaults to `expo.extra.appInsightsConfig` from app.json.
|
|
147
|
+
* Ignored when `logger` is provided or `null`.
|
|
148
|
+
*/
|
|
149
|
+
appInsightsConfig?: AppInsightsConfig;
|
|
128
150
|
/**
|
|
129
151
|
* Offline profile JSON — optional override.
|
|
130
152
|
* Primary source: SDK config plugin embeds offline-profile.json into the app
|
|
@@ -143,6 +165,6 @@ export interface PowerAppsProviderProps {
|
|
|
143
165
|
* root layout.
|
|
144
166
|
*/
|
|
145
167
|
export declare function PowerAppsProvider({ msalConfig, intuneConfig, powerConfig, schemaMap, tamaguiConfig, // override with app's tamagui.config.ts
|
|
146
|
-
defaultTheme, theme, darkTheme, followSystemTheme, renderOAuthWebView, onDisambiguationNeeded, appName, logger: loggerProp, offlineProfile, children, }: PowerAppsProviderProps): React.JSX.Element;
|
|
168
|
+
defaultTheme, theme, darkTheme, followSystemTheme, renderOAuthWebView, onDisambiguationNeeded, onConnectionConsent, onResourceConsent, onConnectionConsentDeclined, appName, logger: loggerProp, showSessionDetailsOnSwipe, appInsightsConfig, offlineProfile, children, }: PowerAppsProviderProps): React.JSX.Element;
|
|
147
169
|
export {};
|
|
148
170
|
//# sourceMappingURL=PowerAppsProvider.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SessionDetailsGestureProps {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
appName: string;
|
|
5
|
+
appId?: string;
|
|
6
|
+
environmentId?: string;
|
|
7
|
+
region: string;
|
|
8
|
+
appVersion?: string;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function SessionDetailsGesture({ enabled, appName, appId, environmentId, region, appVersion, children, }: SessionDetailsGestureProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SessionDetailsGesture.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forwards the privacy-safe Offline SDK transport through the host's existing
|
|
3
|
+
* app logger so offline events carry the same session, device, and user data.
|
|
4
|
+
*
|
|
5
|
+
* The host owns exactly one thing here: binding the SDK transport to this
|
|
6
|
+
* host's logger. Buffering and teardown semantics live in the SDK.
|
|
7
|
+
*
|
|
8
|
+
* Setup and teardown are fail-open but not silent. This runs from an effect in
|
|
9
|
+
* the provider that roots the app, so an unguarded throw would take down the
|
|
10
|
+
* whole tree — telemetry is never worth an app that will not start. An
|
|
11
|
+
* unexpected failure is therefore downgraded to a logged diagnostic rather than
|
|
12
|
+
* swallowed, so broken wiring stays observable.
|
|
13
|
+
*/
|
|
14
|
+
export declare function configureOfflineSdkTelemetry(forwardEvents: boolean): () => void;
|
|
15
|
+
//# sourceMappingURL=OfflineSdkTelemetry.d.ts.map
|