@microsoft/power-apps-native-host 0.3.3 → 0.4.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/lib/commonjs/index.js +2 -2
- package/lib/commonjs/provider/PowerAppsProvider.js +3 -3
- package/lib/commonjs/telemetry/index.js +2 -2
- package/lib/module/index.js +1 -1
- package/lib/module/provider/PowerAppsProvider.js +4 -4
- package/lib/module/telemetry/index.js +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/provider/PowerAppsProvider.d.ts +1 -1
- package/lib/typescript/commonjs/telemetry/index.d.ts +2 -2
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/provider/PowerAppsProvider.d.ts +1 -1
- package/lib/typescript/module/telemetry/index.d.ts +2 -2
- package/package.json +2 -2
package/lib/commonjs/index.js
CHANGED
|
@@ -261,10 +261,10 @@ Object.defineProperty(exports, "getConnectorId", {
|
|
|
261
261
|
return _types.getConnectorId;
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
Object.defineProperty(exports, "
|
|
264
|
+
Object.defineProperty(exports, "getCustomEventsLogger", {
|
|
265
265
|
enumerable: true,
|
|
266
266
|
get: function () {
|
|
267
|
-
return _index.
|
|
267
|
+
return _index.getCustomEventsLogger;
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "hasCompleteStaticConnectionConfig", {
|
|
@@ -281,9 +281,9 @@ function PowerAppsProvider({
|
|
|
281
281
|
// silent no-op Logger, so any telemetry emitted before the first commit is
|
|
282
282
|
// silently dropped rather than crashing.
|
|
283
283
|
(0, _react.useEffect)(() => {
|
|
284
|
-
//
|
|
284
|
+
// Custom events are a no-op until a valid Application Insights
|
|
285
285
|
// provider is configured below.
|
|
286
|
-
(0, _powerAppsNativeCommon.
|
|
286
|
+
(0, _powerAppsNativeCommon.configureCustomEventsLogger)(new _powerAppsNativeCommon.Logger());
|
|
287
287
|
const lp = loggerPropRef.current;
|
|
288
288
|
if (lp === null) {
|
|
289
289
|
// Explicit opt-out — replace with a silent no-op Logger.
|
|
@@ -329,7 +329,7 @@ function PowerAppsProvider({
|
|
|
329
329
|
sessionId: oneDsProvider.sessionId
|
|
330
330
|
});
|
|
331
331
|
providers.push(customerProvider);
|
|
332
|
-
(0, _powerAppsNativeCommon.
|
|
332
|
+
(0, _powerAppsNativeCommon.configureCustomEventsLogger)(new _powerAppsNativeCommon.Logger({
|
|
333
333
|
providers: [customerProvider]
|
|
334
334
|
}));
|
|
335
335
|
appInsightsEnabled = true;
|
|
@@ -16,10 +16,10 @@ Object.defineProperty(exports, "getAppLogger", {
|
|
|
16
16
|
return _powerAppsNativeCommon.getAppLogger;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "getCustomEventsLogger", {
|
|
20
20
|
enumerable: true,
|
|
21
21
|
get: function () {
|
|
22
|
-
return _powerAppsNativeCommon.
|
|
22
|
+
return _powerAppsNativeCommon.getCustomEventsLogger;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
exports.platformHttpClient = void 0;
|
package/lib/module/index.js
CHANGED
|
@@ -48,6 +48,6 @@ export { isDevPlayer } from "./utils/isDevPlayer.js";
|
|
|
48
48
|
export { base64ToDataverseUploadFile, base64ToUint8Array, createDataverseUploadFile } from "./utils/dataverseUtils.js";
|
|
49
49
|
|
|
50
50
|
// ── Telemetry ─────────────────────────────────────────────────────────────────
|
|
51
|
-
export { getAppLogger, configureAppLogger,
|
|
51
|
+
export { getAppLogger, configureAppLogger, getCustomEventsLogger, HostOperationNames } from "./telemetry/index.js";
|
|
52
52
|
// ── Error boundary ────────────────────────────────────────────────────────────
|
|
53
53
|
export { ErrorBoundary } from "./ErrorBoundary.js";
|
|
@@ -44,7 +44,7 @@ import { ErrorBoundary } from "../ErrorBoundary.js";
|
|
|
44
44
|
import { isDevPlayer } from "../utils/isDevPlayer.js";
|
|
45
45
|
import * as Application from 'expo-application';
|
|
46
46
|
import Constants from 'expo-constants';
|
|
47
|
-
import { ApplicationInsightsTelemetryProvider, configureAppLogger,
|
|
47
|
+
import { ApplicationInsightsTelemetryProvider, configureAppLogger, configureCustomEventsLogger, getAppLogger, Logger, OneDsTelemetryProvider, resolveDeviceId, resolveTelemetryLocation, regionToClusterCategory, suppressKnownWarnings } from '@microsoft/power-apps-native-common';
|
|
48
48
|
suppressKnownWarnings();
|
|
49
49
|
import { createHostQueryClient } from "../offline/createOfflineHostActivationCallbacks.js";
|
|
50
50
|
import { useOfflineIntegrationWithStartupGate } from '../offline/useOfflineIntegrationWithStartupGate';
|
|
@@ -275,9 +275,9 @@ export function PowerAppsProvider({
|
|
|
275
275
|
// silent no-op Logger, so any telemetry emitted before the first commit is
|
|
276
276
|
// silently dropped rather than crashing.
|
|
277
277
|
useEffect(() => {
|
|
278
|
-
//
|
|
278
|
+
// Custom events are a no-op until a valid Application Insights
|
|
279
279
|
// provider is configured below.
|
|
280
|
-
|
|
280
|
+
configureCustomEventsLogger(new Logger());
|
|
281
281
|
const lp = loggerPropRef.current;
|
|
282
282
|
if (lp === null) {
|
|
283
283
|
// Explicit opt-out — replace with a silent no-op Logger.
|
|
@@ -323,7 +323,7 @@ export function PowerAppsProvider({
|
|
|
323
323
|
sessionId: oneDsProvider.sessionId
|
|
324
324
|
});
|
|
325
325
|
providers.push(customerProvider);
|
|
326
|
-
|
|
326
|
+
configureCustomEventsLogger(new Logger({
|
|
327
327
|
providers: [customerProvider]
|
|
328
328
|
}));
|
|
329
329
|
appInsightsEnabled = true;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { HttpClient } from '@microsoft/power-apps-native-common/http';
|
|
14
14
|
import { isDebugLoggingEnabled } from "../logger.js";
|
|
15
|
-
export { getAppLogger, configureAppLogger,
|
|
15
|
+
export { getAppLogger, configureAppLogger, getCustomEventsLogger } from '@microsoft/power-apps-native-common';
|
|
16
16
|
/**
|
|
17
17
|
* Canonical operation names for host package telemetry.
|
|
18
18
|
* Follow the `PowerAppsHost.<Subsystem>.<Action>` convention so events are
|
|
@@ -47,7 +47,7 @@ export { ImagePicker } from './controls/ImagePicker';
|
|
|
47
47
|
export type { ImagePickerProps, PickedImageInfo } from './controls/ImagePicker';
|
|
48
48
|
export { isDevPlayer } from './utils/isDevPlayer';
|
|
49
49
|
export { base64ToDataverseUploadFile, base64ToUint8Array, createDataverseUploadFile, } from './utils/dataverseUtils';
|
|
50
|
-
export { getAppLogger, configureAppLogger,
|
|
51
|
-
export type {
|
|
50
|
+
export { getAppLogger, configureAppLogger, getCustomEventsLogger, HostOperationNames, } from './telemetry';
|
|
51
|
+
export type { ICustomEventsLogger, ILogger, } from '@microsoft/power-apps-native-common';
|
|
52
52
|
export { ErrorBoundary } from './ErrorBoundary';
|
|
53
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -163,7 +163,7 @@ export interface PowerAppsProviderProps {
|
|
|
163
163
|
/**
|
|
164
164
|
* Optional customer-owned Application Insights destination.
|
|
165
165
|
*
|
|
166
|
-
* Events are sent directly to the selected
|
|
166
|
+
* Events are sent directly to the selected customer-owned Application Insights
|
|
167
167
|
* resource and fan out alongside the default Microsoft OneDS provider.
|
|
168
168
|
* Defaults to `appConfig.expo.extra.appInsightsConfig`, then falls back to
|
|
169
169
|
* `Constants.expoConfig.extra.appInsightsConfig`.
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* alongside the canonical host operation-name constants.
|
|
9
9
|
*/
|
|
10
10
|
import { HttpClient } from '@microsoft/power-apps-native-common/http';
|
|
11
|
-
export { getAppLogger, configureAppLogger,
|
|
12
|
-
export type {
|
|
11
|
+
export { getAppLogger, configureAppLogger, getCustomEventsLogger } from '@microsoft/power-apps-native-common';
|
|
12
|
+
export type { ICustomEventsLogger } from '@microsoft/power-apps-native-common';
|
|
13
13
|
/**
|
|
14
14
|
* Canonical operation names for host package telemetry.
|
|
15
15
|
* Follow the `PowerAppsHost.<Subsystem>.<Action>` convention so events are
|
|
@@ -47,7 +47,7 @@ export { ImagePicker } from './controls/ImagePicker.js';
|
|
|
47
47
|
export type { ImagePickerProps, PickedImageInfo } from './controls/ImagePicker.js';
|
|
48
48
|
export { isDevPlayer } from './utils/isDevPlayer.js';
|
|
49
49
|
export { base64ToDataverseUploadFile, base64ToUint8Array, createDataverseUploadFile, } from './utils/dataverseUtils.js';
|
|
50
|
-
export { getAppLogger, configureAppLogger,
|
|
51
|
-
export type {
|
|
50
|
+
export { getAppLogger, configureAppLogger, getCustomEventsLogger, HostOperationNames, } from './telemetry/index.js';
|
|
51
|
+
export type { ICustomEventsLogger, ILogger, } from '@microsoft/power-apps-native-common';
|
|
52
52
|
export { ErrorBoundary } from './ErrorBoundary.js';
|
|
53
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -163,7 +163,7 @@ export interface PowerAppsProviderProps {
|
|
|
163
163
|
/**
|
|
164
164
|
* Optional customer-owned Application Insights destination.
|
|
165
165
|
*
|
|
166
|
-
* Events are sent directly to the selected
|
|
166
|
+
* Events are sent directly to the selected customer-owned Application Insights
|
|
167
167
|
* resource and fan out alongside the default Microsoft OneDS provider.
|
|
168
168
|
* Defaults to `appConfig.expo.extra.appInsightsConfig`, then falls back to
|
|
169
169
|
* `Constants.expoConfig.extra.appInsightsConfig`.
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* alongside the canonical host operation-name constants.
|
|
9
9
|
*/
|
|
10
10
|
import { HttpClient } from '@microsoft/power-apps-native-common/http';
|
|
11
|
-
export { getAppLogger, configureAppLogger,
|
|
12
|
-
export type {
|
|
11
|
+
export { getAppLogger, configureAppLogger, getCustomEventsLogger } from '@microsoft/power-apps-native-common';
|
|
12
|
+
export type { ICustomEventsLogger } from '@microsoft/power-apps-native-common';
|
|
13
13
|
/**
|
|
14
14
|
* Canonical operation names for host package telemetry.
|
|
15
15
|
* Follow the `PowerAppsHost.<Subsystem>.<Action>` convention so events are
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/power-apps-native-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "React Native host integration for @microsoft/power-apps",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@expo/config-plugins": "55.0.11",
|
|
78
78
|
"@microsoft/power-apps-native-assets": "^0.3.0",
|
|
79
79
|
"@microsoft/power-apps-native-auth": "^0.3.8",
|
|
80
|
-
"@microsoft/power-apps-native-common": "^0.
|
|
80
|
+
"@microsoft/power-apps-native-common": "^0.3.0",
|
|
81
81
|
"@ster5/global-mutex": "3.3.0",
|
|
82
82
|
"@tamagui/config": "2.4.5",
|
|
83
83
|
"@tamagui/core": "2.4.5",
|