@adecore/intelligent-ui 0.53.2 → 0.54.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.
@@ -1,7 +1,7 @@
1
+ import { type z } from 'zod';
1
2
  import { type UiLimits } from './budget.ts';
2
3
  import { type UiExpression, type UiValue } from './expression.ts';
3
4
  import { type UiDiagnostic } from './syntax.ts';
4
- import { type z } from 'zod';
5
5
  export declare const UI_FENCE_LANGUAGE = "ui";
6
6
  export declare const UI_REPLY_LIMITS: {
7
7
  readonly blocks: 16;
package/dist/compiler.js CHANGED
@@ -1,13 +1,13 @@
1
+ import {} from 'zod';
2
+ import { uiActionProp, uiActionTarget, uiLocalState } from './actions.js';
1
3
  import { safeKey, UI_LIMITS, UiBudget, UiFailure } from './budget.js';
2
4
  import { isUiComponent, UI_CATALOG, UI_CATALOG_VERSION } from './catalog.js';
3
- import { uiActionProp, uiActionTarget, uiLocalState } from './actions.js';
4
5
  import { unreadableEventTime } from './event-warning.js';
6
+ import { evaluateUiExpression, sameUiValue } from './expression.js';
5
7
  import { uiNodeFallback, uiPlainText } from './fallback.js';
6
8
  import { aliasedProp } from './prop-alias.js';
7
- import { evaluateUiExpression, sameUiValue } from './expression.js';
8
9
  import { rethrowBudget } from './rethrow.js';
9
10
  import { parseUiSyntax, uiDiagnostic } from './syntax.js';
10
- import {} from 'zod';
11
11
  // The info string a fence carries when the host names none of its own.
12
12
  export const UI_FENCE_LANGUAGE = 'ui';
13
13
  export const UI_REPLY_LIMITS = { blocks: 16, characters: 262144, nodes: 2048, milliseconds: 0 };
package/dist/links.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { eachDrawnNode } from './inputs.js';
3
- import { evaluateUiBlock } from './runtime.js';
4
3
  import { uiValidatedState } from './query.js';
4
+ import { evaluateUiBlock } from './runtime.js';
5
5
  export const UiLinkTargetSchema = z.discriminatedUnion('type', [
6
6
  z.object({ type: z.literal('File'), path: z.string().min(1).max(4096), line: z.number().int().positive().optional() }).strict(),
7
7
  z.object({ type: z.literal('Diff'), path: z.string().min(1).max(4096) }).strict(),
package/dist/query.js CHANGED
@@ -1,8 +1,8 @@
1
- import { UI_CATALOG_VERSION } from './catalog.js';
2
1
  import { UiBudget, UiFailure } from './budget.js';
3
- import { uiVisibleInputs } from './inputs.js';
4
- import { uiNodeFallback } from './fallback.js';
2
+ import { UI_CATALOG_VERSION } from './catalog.js';
5
3
  import { copyUiValue, evaluateUiExpression, sameUiValue } from './expression.js';
4
+ import { uiNodeFallback } from './fallback.js';
5
+ import { uiVisibleInputs } from './inputs.js';
6
6
  import { evaluateUiBlock, uiInputValues, UiState } from './runtime.js';
7
7
  export function uiValidatedState(block, input = {}, queries = {}, limits = {}) {
8
8
  if (!block.complete || block.catalogVersion !== UI_CATALOG_VERSION) {
package/dist/runtime.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { type UiExpression, type UiValue } from './expression.ts';
2
1
  import { type UiLimits } from './budget.ts';
3
2
  import { type UiBlock } from './compiler.ts';
3
+ import { type UiExpression, type UiValue } from './expression.ts';
4
4
  import { type UiDiagnostic } from './syntax.ts';
5
5
  export interface UiBinding<Value> {
6
6
  value: Value;
package/dist/runtime.js CHANGED
@@ -1,10 +1,10 @@
1
- import { copyUiValue, evaluateUiExpression, sameUiValue } from './expression.js';
1
+ import { uiActionProp, uiActionTarget, uiLocalState } from './actions.js';
2
2
  import { UiBudget, UiFailure } from './budget.js';
3
3
  import { isUiComponent, UI_CATALOG, UI_CATALOG_VERSION } from './catalog.js';
4
4
  import {} from './compiler.js';
5
- import { uiActionProp, uiActionTarget, uiLocalState } from './actions.js';
6
- import { uiCompiledNodes, uiVisibleInputs } from './inputs.js';
7
5
  import { unreadableEventTime } from './event-warning.js';
6
+ import { copyUiValue, evaluateUiExpression, sameUiValue } from './expression.js';
7
+ import { uiCompiledNodes, uiVisibleInputs } from './inputs.js';
8
8
  import { uiDiagnostic } from './syntax.js';
9
9
  export class UiState {
10
10
  id = '';
package/dist/text.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UI_CATALOG, UI_GROUPS } from './catalog.js';
2
- import { uiPropList, uiRequirement } from './prop-list.js';
3
2
  import { UI_FENCE_LANGUAGE } from './compiler.js';
3
+ import { uiPropList, uiRequirement } from './prop-list.js';
4
4
  export function uiCompactCatalog() {
5
5
  return Object.entries(UI_CATALOG)
6
6
  .map(([name, entry]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/intelligent-ui",
3
- "version": "0.53.2",
3
+ "version": "0.54.0",
4
4
  "description": "A streaming UI catalog, compiler and bounded expression interpreter without a framework or DOM.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
package/src/compiler.ts CHANGED
@@ -1,13 +1,13 @@
1
+ import { type z } from 'zod';
2
+ import { uiActionProp, uiActionTarget, uiLocalState } from './actions.ts';
1
3
  import { safeKey, UI_LIMITS, UiBudget, UiFailure, type UiLimits } from './budget.ts';
2
4
  import { isUiComponent, UI_CATALOG, UI_CATALOG_VERSION } from './catalog.ts';
3
- import { uiActionProp, uiActionTarget, uiLocalState } from './actions.ts';
4
5
  import { unreadableEventTime } from './event-warning.ts';
6
+ import { evaluateUiExpression, sameUiValue, type UiExpression, type UiValue } from './expression.ts';
5
7
  import { uiNodeFallback, uiPlainText } from './fallback.ts';
6
8
  import { aliasedProp } from './prop-alias.ts';
7
- import { evaluateUiExpression, sameUiValue, type UiExpression, type UiValue } from './expression.ts';
8
9
  import { rethrowBudget } from './rethrow.ts';
9
10
  import { parseUiSyntax, uiDiagnostic, type UiDiagnostic, type UiSyntaxNode } from './syntax.ts';
10
- import { type z } from 'zod';
11
11
 
12
12
  // The info string a fence carries when the host names none of its own.
13
13
  export const UI_FENCE_LANGUAGE = 'ui';
package/src/links.ts CHANGED
@@ -2,8 +2,8 @@ import { z } from 'zod';
2
2
  import type { UiLimits } from './budget.ts';
3
3
  import type { UiBlock } from './compiler.ts';
4
4
  import { eachDrawnNode } from './inputs.ts';
5
- import { evaluateUiBlock } from './runtime.ts';
6
5
  import { uiValidatedState } from './query.ts';
6
+ import { evaluateUiBlock } from './runtime.ts';
7
7
 
8
8
  export const UiLinkTargetSchema = z.discriminatedUnion('type', [
9
9
  z.object({ type: z.literal('File'), path: z.string().min(1).max(4096), line: z.number().int().positive().optional() }).strict(),
package/src/query.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { UI_CATALOG_VERSION } from './catalog.ts';
2
1
  import { UiBudget, UiFailure, type UiLimits } from './budget.ts';
2
+ import { UI_CATALOG_VERSION } from './catalog.ts';
3
3
  import type { UiBlock } from './compiler.ts';
4
- import { uiVisibleInputs } from './inputs.ts';
5
- import { uiNodeFallback } from './fallback.ts';
6
4
  import { copyUiValue, evaluateUiExpression, sameUiValue, type UiValue } from './expression.ts';
5
+ import { uiNodeFallback } from './fallback.ts';
6
+ import { uiVisibleInputs } from './inputs.ts';
7
7
  import { evaluateUiBlock, uiInputValues, UiState, type UiViewNode } from './runtime.ts';
8
8
 
9
9
  export function uiValidatedState(
package/src/runtime.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { copyUiValue, evaluateUiExpression, sameUiValue, type UiExpression, type UiValue } from './expression.ts';
1
+ import { uiActionProp, uiActionTarget, uiLocalState } from './actions.ts';
2
2
  import { UiBudget, UiFailure, type UiLimits } from './budget.ts';
3
3
  import { isUiComponent, UI_CATALOG, UI_CATALOG_VERSION } from './catalog.ts';
4
4
  import { type UiBlock, type UiNode } from './compiler.ts';
5
- import { uiActionProp, uiActionTarget, uiLocalState } from './actions.ts';
6
- import { uiCompiledNodes, uiVisibleInputs } from './inputs.ts';
7
5
  import { unreadableEventTime } from './event-warning.ts';
6
+ import { copyUiValue, evaluateUiExpression, sameUiValue, type UiExpression, type UiValue } from './expression.ts';
7
+ import { uiCompiledNodes, uiVisibleInputs } from './inputs.ts';
8
8
  import { uiDiagnostic, type UiDiagnostic } from './syntax.ts';
9
9
 
10
10
  export interface UiBinding<Value> {
package/src/text.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UI_CATALOG, UI_GROUPS, type UiGroupName } from './catalog.ts';
2
- import { uiPropList, uiRequirement } from './prop-list.ts';
3
2
  import { UI_FENCE_LANGUAGE, type UiBlock } from './compiler.ts';
3
+ import { uiPropList, uiRequirement } from './prop-list.ts';
4
4
 
5
5
  export function uiCompactCatalog(): string {
6
6
  return Object.entries(UI_CATALOG)