@nexia/sdk 0.8.15 → 0.8.16
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.8.16/en.md +9 -0
- package/changelog/0.8.16/ko.md +9 -0
- package/dist/host.d.ts +5 -0
- package/dist/host.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: published
|
|
3
|
+
version: 0.8.16
|
|
4
|
+
date: 2026-10-28
|
|
5
|
+
title: Read-only POST header declaration
|
|
6
|
+
description: Export NEXIA_READ_ONLY_HEADER for read-only mutation-verb requests.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
React SDK 0.8.16 exports `NEXIA_READ_ONLY_HEADER` (`'X-Nexia-Read-Only'`) from `@nexia/sdk` and `@nexia/sdk/host`. App frontends can pass this request header on query-only or preview POST calls to declare read semantics, enforce read budgets, and fail immediately upon network interruption instead of waiting in unconfirmed write recovery. See the [frontend host guide](https://developers.nexia.to/docs/app-sdk-frontend-host-contracts).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: published
|
|
3
|
+
version: 0.8.16
|
|
4
|
+
date: 2026-10-28
|
|
5
|
+
title: 읽기 전용 POST 헤더 선언
|
|
6
|
+
description: 읽기 목적 변이 요청을 위한 NEXIA_READ_ONLY_HEADER를 내보냅니다.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
React SDK 0.8.16에서 `NEXIA_READ_ONLY_HEADER`(`'X-Nexia-Read-Only'`)를 `@nexia/sdk` 및 `@nexia/sdk/host`로부터 내보냅니다. App 프런트엔드는 상태 변경이 없는 순수 조회나 미리보기 목적의 POST 호출 시 이 요청 헤더를 전달하여 읽기 의도를 선언할 수 있으며, 읽기 예산 적용과 통신 단절 시 미확인 쓰기 복구 대기 없이 즉시 실패하도록 처리할 수 있습니다. [프런트엔드 호스트 안내](https://developers.nexia.to/ko/docs/app-sdk-frontend-host-contracts)를 참고하세요.
|
package/dist/host.d.ts
CHANGED
|
@@ -371,6 +371,11 @@ export declare function configureNexiaAppFrontendHost(bindings: NexiaAppFrontend
|
|
|
371
371
|
export declare function openFile(href: string, options?: OpenFileOptions): Promise<void>;
|
|
372
372
|
/** Axios-compatible host client carrying the active shell CSRF configuration. */
|
|
373
373
|
export declare const api: AxiosInstance;
|
|
374
|
+
/**
|
|
375
|
+
* Header sent on read-only mutation-verb requests (e.g. POST previews, queries)
|
|
376
|
+
* to bypass unconfirmed write recovery and enforce read budgets.
|
|
377
|
+
*/
|
|
378
|
+
export declare const NEXIA_READ_ONLY_HEADER = "X-Nexia-Read-Only";
|
|
374
379
|
/**
|
|
375
380
|
* Polls Core's standard background-operation endpoint. By default unmounting
|
|
376
381
|
* cancels the wait; callers retaining a checkpoint can explicitly keep waiting.
|
package/dist/host.js
CHANGED
|
@@ -104,6 +104,11 @@ export const api = new Proxy(apiProxyTarget, {
|
|
|
104
104
|
return typeof value === 'function' ? value.bind(client) : value;
|
|
105
105
|
},
|
|
106
106
|
});
|
|
107
|
+
/**
|
|
108
|
+
* Header sent on read-only mutation-verb requests (e.g. POST previews, queries)
|
|
109
|
+
* to bypass unconfirmed write recovery and enforce read budgets.
|
|
110
|
+
*/
|
|
111
|
+
export const NEXIA_READ_ONLY_HEADER = 'X-Nexia-Read-Only';
|
|
107
112
|
function operationFailureMessage(operation) {
|
|
108
113
|
const validationMessage = operation.validation_errors
|
|
109
114
|
? Object.values(operation.validation_errors)
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export { APPROVAL_STATES, APPROVAL_STEP_KINDS } from "./approval";
|
|
|
37
37
|
export type { BpmnEditorDocument, BpmnEditorElement, BpmnEditorNodeType, BpmnEditorProcess, DmnEditorDocument, DmnEditorHitPolicy, DmnEditorInputClause, DmnEditorOutputClause, DmnEditorRule, DmnEditorValueType, ProcessUserTaskFormController, ProcessUserTaskFormRegistrar, ProcessUserTaskFormRegistration, ProcessUserTaskFormRegistry, ProcessUserTaskFormSlotPropsV1, ProcessUserTaskFormWidgetLoader, ProcessUserTaskResourceRef, } from "./process";
|
|
38
38
|
export { DMN_EDITOR_HIT_POLICIES } from "./process";
|
|
39
39
|
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, 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";
|
|
40
|
-
export { FavoriteButton } from "./host";
|
|
40
|
+
export { FavoriteButton, NEXIA_READ_ONLY_HEADER } from "./host";
|
|
41
41
|
export type { FavoriteButtonProps } from "./host";
|
|
42
42
|
export { createSpreadsheetWorkbook } from "./spreadsheet";
|
|
43
43
|
export type { SpreadsheetWorkbook, SpreadsheetWorksheet, SpreadsheetCell, NxSpreadsheetEditorProps } from "./spreadsheet";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { HANDOFF_RESULT_STATES, isHandoffResultState, isRetryableFailure, } from
|
|
|
18
18
|
export { isRetryableHandoffFailure } from "./handoff-result.js";
|
|
19
19
|
export { APPROVAL_STATES, APPROVAL_STEP_KINDS } from "./approval.js";
|
|
20
20
|
export { DMN_EDITOR_HIT_POLICIES } from "./process.js";
|
|
21
|
-
export { FavoriteButton } from "./host.js";
|
|
21
|
+
export { FavoriteButton, NEXIA_READ_ONLY_HEADER } from "./host.js";
|
|
22
22
|
export { createSpreadsheetWorkbook } from "./spreadsheet.js";
|
|
23
23
|
export { documentDataFieldIdentity } from './document-data.js';
|
|
24
24
|
export { buildAppCatalogTree } from './app-catalog.js';
|