@nexia/sdk 0.8.14 → 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.
@@ -0,0 +1,11 @@
1
+ ---
2
+ status: published
3
+ version: 0.8.15
4
+ date: 2026-10-28
5
+ title: Approval receipt and record print contracts
6
+ description: Distinguish an accepted approval submission from a case and declare record print layouts.
7
+ ---
8
+
9
+ React SDK 0.8.15 lets an approval business form return either `caseId` or `submissionId`. A `submissionId` means the host accepted work for later processing; it does not mean an Approval Case exists yet. Handle both results when enabling asynchronous approval with matching Core and runtime support. See the [approval contract guide](https://developers.nexia.to/docs/app-sdk-approval-contracts).
10
+
11
+ Resource table and transfer action props also accept `recordPrint` for an optional per-record print layout. Adopt the matching Core host before using it. See the [frontend host guide](https://developers.nexia.to/docs/app-sdk-frontend-host-contracts).
@@ -0,0 +1,11 @@
1
+ ---
2
+ status: published
3
+ version: 0.8.15
4
+ date: 2026-10-28
5
+ title: 결재 접수 영수증과 레코드 인쇄 계약
6
+ description: 접수된 결재 요청과 결재 건을 구분하고 레코드별 인쇄 구성을 선언합니다.
7
+ ---
8
+
9
+ React SDK 0.8.15에서 결재 업무 폼은 `caseId` 또는 `submissionId`를 반환할 수 있습니다. `submissionId`는 호스트가 나중에 처리할 작업을 접수했다는 뜻이며, 아직 결재 건이 생성됐다는 뜻은 아닙니다. 비동기 결재를 활성화할 때는 대응하는 Core·런타임과 함께 두 결과를 처리하세요. [결재 계약 안내](https://developers.nexia.to/ko/docs/app-sdk-approval-contracts)를 참고하세요.
10
+
11
+ 리소스 표와 전송 작업 속성에 선택적인 레코드별 인쇄 구성 `recordPrint`가 추가되었습니다. 사용 전에 대응하는 Core 호스트를 적용하세요. [프런트엔드 호스트 안내](https://developers.nexia.to/ko/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: 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)를 참고하세요.
@@ -132,9 +132,14 @@ export interface ApprovalBusinessFormController {
132
132
  export interface ApprovalBusinessFormDraftResult {
133
133
  appDraftRef: string;
134
134
  }
135
- export interface ApprovalBusinessFormSubmitResult {
135
+ /** A receipt is durable acceptance, not a submitted case. */
136
+ export type ApprovalBusinessFormSubmitResult = {
136
137
  caseId: string;
137
- }
138
+ submissionId?: never;
139
+ } | {
140
+ submissionId: string;
141
+ caseId?: never;
142
+ };
138
143
  export interface ApprovalBusinessFormTemplate {
139
144
  key: string;
140
145
  version: number;
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';
@@ -118,6 +118,11 @@ export interface NxResourceImportDialogProps {
118
118
  }
119
119
  /** Host-owned Resource Transfer actions for list and management surfaces. */
120
120
  export interface NxResourceTransferActionsProps {
121
+ recordPrint?: {
122
+ label: string;
123
+ title: string;
124
+ columnKeys: readonly string[];
125
+ };
121
126
  transferMeta: ResourceTransferMeta | null | undefined;
122
127
  onImported: () => void | Promise<void>;
123
128
  translationPrefix?: string;
package/dist/shell.d.ts CHANGED
@@ -457,6 +457,12 @@ export interface ResourceTableProps<T> {
457
457
  filters?: ResourceListFilters;
458
458
  onFiltersChange?: (next: ResourceListFilters) => void;
459
459
  transferMeta?: ResourceTransferMeta | null;
460
+ /** Offer a per-record print layout alongside the selected-column list layout. */
461
+ recordPrint?: {
462
+ label: string;
463
+ title: string;
464
+ columnKeys: readonly string[];
465
+ };
460
466
  onTransferImported?: () => void | Promise<void>;
461
467
  pagination?: {
462
468
  current_page: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexia/sdk",
3
- "version": "0.8.14",
3
+ "version": "0.8.16",
4
4
  "description": "Frontend contracts for Nexia App Packages",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",