@nexia/sdk 0.9.5 → 0.9.6
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/changelog/0.9.6/en.md +12 -0
- package/changelog/0.9.6/ko.md +12 -0
- package/dist/host.d.ts +3 -0
- package/dist/host.js +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: published
|
|
3
|
+
version: 0.9.6
|
|
4
|
+
date: 2026-11-28
|
|
5
|
+
title: App interaction analytics
|
|
6
|
+
description: Record App UI interactions with the React SDK.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Use `useAppAnalytics()` from `@nexia/sdk` to record an App interaction with a
|
|
10
|
+
stable key such as `request.submit_clicked`. Pass the key alone. The matching
|
|
11
|
+
Core host supplies the App and tenant context and makes tracking optional. See
|
|
12
|
+
the [frontend host guide](https://developers.nexia.to/docs/app-sdk-frontend-host-contracts#app-analytics).
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: published
|
|
3
|
+
version: 0.9.6
|
|
4
|
+
date: 2026-11-28
|
|
5
|
+
title: App 화면 동작 분석
|
|
6
|
+
description: React SDK에서 App 화면 동작을 기록할 수 있습니다.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
`@nexia/sdk`의 `useAppAnalytics()`로 `request.submit_clicked`처럼 고정된 키를
|
|
10
|
+
기록할 수 있습니다. 이벤트 키만 전달합니다. 대응하는 Core 호스트가 App과
|
|
11
|
+
테넌트 정보를 확인하며 수집 활성화를 관리합니다.
|
|
12
|
+
[프런트엔드 호스트 가이드](https://developers.nexia.to/ko/docs/app-sdk-frontend-host-contracts#app-analytics)에서 사용법을 확인하세요.
|
package/dist/host.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ export interface NexiaAppFrontendHostBindings {
|
|
|
261
261
|
WorkSurface: typeof WorkSurface;
|
|
262
262
|
};
|
|
263
263
|
hooks: {
|
|
264
|
+
useAppAnalytics?: () => (eventKey: string) => void;
|
|
264
265
|
useWidgetQueryRuntime: () => WidgetQueryRuntime;
|
|
265
266
|
useDashboardDataSource: (queryKey: readonly unknown[], enabled?: boolean) => void;
|
|
266
267
|
useContextQuery: () => ContextQueryResult;
|
|
@@ -377,6 +378,8 @@ export declare function bindNexiaAppRequestServices(appKey: string): {
|
|
|
377
378
|
* Core calls this once before installed App entries execute.
|
|
378
379
|
*/
|
|
379
380
|
export declare function configureNexiaAppFrontendHost(bindings: NexiaAppFrontendHostBindings): void;
|
|
381
|
+
/** Record a stable App interaction key without including user or record data. */
|
|
382
|
+
export declare function useAppAnalytics(): (eventKey: string) => void;
|
|
380
383
|
/** The host retains authentication and file bytes outside an isolated App frame. */
|
|
381
384
|
export declare function openFile(href: string, options?: OpenFileOptions): Promise<void>;
|
|
382
385
|
/** Axios-compatible host client carrying the active shell CSRF configuration. */
|
package/dist/host.js
CHANGED
|
@@ -91,6 +91,13 @@ function host() {
|
|
|
91
91
|
}
|
|
92
92
|
return activeHost;
|
|
93
93
|
}
|
|
94
|
+
const ignoreAppEvent = (_eventKey) => { };
|
|
95
|
+
const useUnavailableAppAnalytics = () => ignoreAppEvent;
|
|
96
|
+
/** Record a stable App interaction key without including user or record data. */
|
|
97
|
+
export function useAppAnalytics() {
|
|
98
|
+
const useAnalytics = activeHost?.hooks?.useAppAnalytics ?? useUnavailableAppAnalytics;
|
|
99
|
+
return useAnalytics();
|
|
100
|
+
}
|
|
94
101
|
/** The host retains authentication and file bytes outside an isolated App frame. */
|
|
95
102
|
export function openFile(href, options) {
|
|
96
103
|
return host().runtime.openFile(href, options);
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export { queueApprovalRequest } from "./approval-request";
|
|
|
38
38
|
export type { BpmnEditorDocument, BpmnEditorElement, BpmnEditorNodeType, BpmnEditorProcess, DmnEditorDocument, DmnEditorHitPolicy, DmnEditorInputClause, DmnEditorOutputClause, DmnEditorRule, DmnEditorValueType, ProcessUserTaskFormController, ProcessUserTaskFormRegistrar, ProcessUserTaskFormRegistration, ProcessUserTaskFormRegistry, ProcessUserTaskFormSlotPropsV1, ProcessUserTaskFormWidgetLoader, ProcessUserTaskResourceRef, } from "./process";
|
|
39
39
|
export { DMN_EDITOR_HIT_POLICIES } from "./process";
|
|
40
40
|
export type { AppRouteFrameProps, AppRoutePrefetchContext, AppRoutePrefetcher, AutoRegisterPackageSurfacesOptions, PackageSurfaceLoader, PackageSurfaceOverride, PackageSurfaceOverrideRegistration, FormFieldErrors, InspectorActionProps, InspectorResourceActionsProps, ListLocateRecord, MessageApi, MutationFormError, NxCanonicalRoutePaneProps, NxActionKind, NxIconButtonProps, NxComboboxOption, NxComboboxProps, NxRefreshControlProps, NxColumnBrowserLabels, NxColumnBrowserProps, NxColumnNode, NxColumnPickerLabels, NxColumnPickerProps, NxDatePickerLabels, NxDatePickerProps, NxDateRangePickerProps, NxDateRangeValue, NxDropdownMenuItem, NxHelpTooltipProps, InsightFilterControls, InsightFilterState, InsightQueryLike, InsightRangePreset, UseInsightFilterStateOptions, NxOverviewBandCard, NxSelectOption, NxStatDelta, NxStatDeltaDirection, NxStatDeltaTone, NxTabNavItem, NxTabNavProps, NxToggleGroupItem, NxToggleGroupProps, NxTooltipAlign, NxTooltipProps, NxTooltipSide, OpenResourceWorkTab, OpenResourceWorkTabOptions, ResourceCreateCompletion, ResourceCreateCompletionInput, ResourceCreateContinuationTarget, ResourceCreateReceiverRegistration, ResourceInspectorAdapter, ResourceInspectorAdapterLoader, ResourceInspectorAdapterProps, ResourceInspectorQueryProps, ResourceInspectorAdapterRegistry, ResourceInspectorPanelProps, ResourceInspectorStack, ResourceInspectorStackHostProps, ResourceInspectorStackProviderProps, ResourceInspectorStateProps, ResourceLinkProps, ResourceListFilters, ResourceListFilterValue, ResourceListFooterConfig, ResourceListParams, ResourceListParamsControls, ResourceListRefreshConfig, ResourceListToolbarConfig, ResourceListToolbarMoreMenuProps, ResourceListToolbarViewOption, ResourcePrimaryCellProps, ResourceActionDescriptor, ResourceRef, ResourceRowActionsMenuProps, ResourceStatusBadgeProps, ResourceTableColumn, ResourceTableAccess, ResourceTableDensity, ResourceTableProps, ResourceTableStyle, ResourceTableSummaryRow, ResourceTableSort, TabContextActionContext, TabContextActionRegistration, DraftFieldBinding, RegisterDraftActionOptions, TabContextActionResult, ResourceTextCellProps, ToastOptions, ToastSource, UseRegisterListLocateActionOptions, UseResourceListParamsOptions, WorkSectionProps, FavoriteTarget, WorkTabRef, WorkSurfaceAction, WorkSurfaceLabelInput, WorkSurfaceLabels, WorkSurfaceProps, } from "./shell";
|
|
41
|
-
export { FavoriteButton, NEXIA_READ_ONLY_HEADER } from "./host";
|
|
41
|
+
export { FavoriteButton, NEXIA_READ_ONLY_HEADER, useAppAnalytics } from "./host";
|
|
42
42
|
export type { FavoriteButtonProps } from "./host";
|
|
43
43
|
export { createSpreadsheetWorkbook } from "./spreadsheet";
|
|
44
44
|
export type { SpreadsheetWorkbook, SpreadsheetWorksheet, SpreadsheetCell, NxSpreadsheetEditorProps } from "./spreadsheet";
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export { isRetryableHandoffFailure } from "./handoff-result.js";
|
|
|
19
19
|
export { APPROVAL_STATES, APPROVAL_STEP_KINDS } from "./approval.js";
|
|
20
20
|
export { queueApprovalRequest } from "./approval-request.js";
|
|
21
21
|
export { DMN_EDITOR_HIT_POLICIES } from "./process.js";
|
|
22
|
-
export { FavoriteButton, NEXIA_READ_ONLY_HEADER } from "./host.js";
|
|
22
|
+
export { FavoriteButton, NEXIA_READ_ONLY_HEADER, useAppAnalytics } from "./host.js";
|
|
23
23
|
export { createSpreadsheetWorkbook } from "./spreadsheet.js";
|
|
24
24
|
export { documentDataFieldIdentity } from './document-data.js';
|
|
25
25
|
export { buildAppCatalogTree } from './app-catalog.js';
|