@almadar/core 10.101.0 → 10.103.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/dist/builders.d.ts +5 -5
- package/dist/builders.js +6 -2
- package/dist/builders.js.map +1 -1
- package/dist/{bus-B8evi8AZ.d.ts → bus-BGojNDOE.d.ts} +52 -7
- package/dist/{domain-Ds_7wZIL.d.ts → domain-OgMkN3WN.d.ts} +13 -1
- package/dist/{effect-Hm_QDaSI.d.ts → effect-Xn3LIyL7.d.ts} +1 -1
- package/dist/{entityAccess-DdcKps16.d.ts → entityAccess-z5HA0P7P.d.ts} +3 -3
- package/dist/{expression-DRwzVnMu.d.ts → expression-CfeHdS-f.d.ts} +10 -1
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +5 -5
- package/dist/factory-runtime/index.js +42 -8
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +3 -3
- package/dist/fixtures.js +27 -2
- package/dist/fixtures.js.map +1 -1
- package/dist/i18n/index.js +27 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-1b2JJVYl.d.ts → index-CVYZ3GcI.d.ts} +122 -23
- package/dist/index.d.ts +74 -17
- package/dist/index.js +417 -72
- package/dist/index.js.map +1 -1
- package/dist/lolo-document/index.d.ts +166 -0
- package/dist/lolo-document/index.js +615 -0
- package/dist/lolo-document/index.js.map +1 -0
- package/dist/mock/index.d.ts +6 -6
- package/dist/mock/index.js +12 -1
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/index.d.ts +22 -4
- package/dist/patterns/index.js +41 -1
- package/dist/patterns/index.js.map +1 -1
- package/dist/{schema-TqLV2wlK.d.ts → schema-sHVqe8Kb.d.ts} +1307 -4
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +2 -1
- package/dist/themes/index.js.map +1 -1
- package/dist/{trait-YlNXc4H3.d.ts → trait-BSe6oDBd.d.ts} +79 -3
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +227 -12
- package/dist/types/index.js.map +1 -1
- package/dist/{types-Ug92oza4.d.ts → types-DK29MMOQ.d.ts} +2 -2
- package/fixtures/events-wire/client-effects-provenance/request.json +5 -0
- package/fixtures/events-wire/client-effects-provenance/response.json +57 -0
- package/package.json +6 -1
- package/src/types/bindings.ts +28 -3
package/dist/patterns/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AnyPatternConfig, l as RenderBinding, F as FieldValue, bs as PatternType } from '../effect-
|
|
2
|
-
export { bl as PATTERN_TYPES, h as PatternConfig, bq as PatternProps, br as PatternPropsMap, dv as isValidPatternType } from '../effect-
|
|
3
|
-
import { a as EventPayloadValue, b as EventPayload } from '../expression-
|
|
1
|
+
import { A as AnyPatternConfig, l as RenderBinding, F as FieldValue, bs as PatternType, c as Effect } from '../effect-Xn3LIyL7.js';
|
|
2
|
+
export { bl as PATTERN_TYPES, h as PatternConfig, bq as PatternProps, br as PatternPropsMap, dv as isValidPatternType } from '../effect-Xn3LIyL7.js';
|
|
3
|
+
import { a as EventPayloadValue, b as EventPayload, n as SExprObject, S as SExpr } from '../expression-CfeHdS-f.js';
|
|
4
4
|
import { J as JsonValue } from '../json-D8gmyK3l.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -62084,6 +62084,24 @@ declare function getOrbAllowedPatternsFiltered(patternNames: string[]): string;
|
|
|
62084
62084
|
declare function collectRenderUiPatternTypes(ir: JsonValue, out: Set<string>): void;
|
|
62085
62085
|
/** Convenience form: the distinct render-ui `type:` tokens of one `.orb` IR. */
|
|
62086
62086
|
declare function renderUiPatternTypesOf(ir: JsonValue): ReadonlySet<string>;
|
|
62087
|
+
/** One slot a transition paints and the pattern it paints there. */
|
|
62088
|
+
interface RenderUiEntry {
|
|
62089
|
+
slot: string;
|
|
62090
|
+
pattern: AnyPatternConfig | SExprObject;
|
|
62091
|
+
}
|
|
62092
|
+
type EffectNode = Effect | SExpr;
|
|
62093
|
+
/**
|
|
62094
|
+
* Every `render-ui` a transition's effects perform, in order — including ones
|
|
62095
|
+
* nested inside `do` / `if` / `when` / `let` / `atomic` / `async/*` bodies.
|
|
62096
|
+
* Entries reference the schema's own pattern objects (never copies), so an
|
|
62097
|
+
* editor can mutate what it finds. A `null` (clear-slot) render and a pattern
|
|
62098
|
+
* given as a binding string are not entries.
|
|
62099
|
+
*/
|
|
62100
|
+
declare function renderUiEntriesOf(effects: readonly SExpr[]): Array<{
|
|
62101
|
+
slot: string;
|
|
62102
|
+
pattern: SExprObject;
|
|
62103
|
+
}>;
|
|
62104
|
+
declare function renderUiEntriesOf(effects: readonly EffectNode[]): RenderUiEntry[];
|
|
62087
62105
|
|
|
62088
62106
|
/**
|
|
62089
62107
|
* Pattern Recommender
|
|
@@ -134106,4 +134124,4 @@ declare function isDrawablePattern(patternType: string): boolean;
|
|
|
134106
134124
|
*/
|
|
134107
134125
|
declare function isDrawHostPattern(patternType: string): boolean;
|
|
134108
134126
|
|
|
134109
|
-
export { AnyPatternConfig, COMPONENT_MAPPING, EVENT_CONTRACTS, type EmojiPickPayload, type FormSubmitPayload, INTEGRATORS_REGISTRY, type ItemActionPayload, type LoadMoreRequestPayload, PATTERN_REGISTRY, PROP_KINDS, type PatternCallbackArg, type PatternEntry, type PatternPayloadField, type PatternPropDef, type PatternPropTypeSchema, type PatternRecommendation, type PatternSwapGate, PatternType, type PropKind, type RecommendationContext, type RenderUiPayload, SELF_OVERLAY_PATTERN_TYPES, type SelectionChangePayload, buildRecommendationContext, collectRenderUiPatternTypes, componentMapping, eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValueInputPattern, patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
134127
|
+
export { AnyPatternConfig, COMPONENT_MAPPING, EVENT_CONTRACTS, type EmojiPickPayload, type FormSubmitPayload, INTEGRATORS_REGISTRY, type ItemActionPayload, type LoadMoreRequestPayload, PATTERN_REGISTRY, PROP_KINDS, type PatternCallbackArg, type PatternEntry, type PatternPayloadField, type PatternPropDef, type PatternPropTypeSchema, type PatternRecommendation, type PatternSwapGate, PatternType, type PropKind, type RecommendationContext, type RenderUiEntry, type RenderUiPayload, SELF_OVERLAY_PATTERN_TYPES, type SelectionChangePayload, buildRecommendationContext, collectRenderUiPatternTypes, componentMapping, eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValueInputPattern, patternsRegistry, recommendPatterns, registry, renderUiEntriesOf, renderUiPatternTypesOf };
|
package/dist/patterns/index.js
CHANGED
|
@@ -61897,6 +61897,46 @@ function renderUiPatternTypesOf(ir) {
|
|
|
61897
61897
|
collectRenderUiPatternTypes(ir, out);
|
|
61898
61898
|
return out;
|
|
61899
61899
|
}
|
|
61900
|
+
function isPatternNode(value) {
|
|
61901
|
+
return value !== null && value !== void 0 && typeof value === "object" && !Array.isArray(value);
|
|
61902
|
+
}
|
|
61903
|
+
function collectRenderUiEntries(effect, out) {
|
|
61904
|
+
if (!Array.isArray(effect)) return;
|
|
61905
|
+
const head = effect[0];
|
|
61906
|
+
if (head === "render-ui") {
|
|
61907
|
+
const slot = effect[1];
|
|
61908
|
+
const pattern = effect[2];
|
|
61909
|
+
if (typeof slot === "string" && isPatternNode(pattern)) out.push({ slot, pattern });
|
|
61910
|
+
return;
|
|
61911
|
+
}
|
|
61912
|
+
for (const child of controlBody(effect)) collectRenderUiEntries(child, out);
|
|
61913
|
+
}
|
|
61914
|
+
function controlBody(effect) {
|
|
61915
|
+
switch (effect[0]) {
|
|
61916
|
+
case "do":
|
|
61917
|
+
case "atomic":
|
|
61918
|
+
case "async/all":
|
|
61919
|
+
case "async/sequence":
|
|
61920
|
+
case "async/race":
|
|
61921
|
+
return effect.slice(1);
|
|
61922
|
+
case "if":
|
|
61923
|
+
case "when":
|
|
61924
|
+
case "async/delay":
|
|
61925
|
+
case "async/debounce":
|
|
61926
|
+
case "async/throttle":
|
|
61927
|
+
case "async/interval":
|
|
61928
|
+
return effect.slice(2);
|
|
61929
|
+
case "let":
|
|
61930
|
+
return effect.slice(2);
|
|
61931
|
+
default:
|
|
61932
|
+
return [];
|
|
61933
|
+
}
|
|
61934
|
+
}
|
|
61935
|
+
function renderUiEntriesOf(effects) {
|
|
61936
|
+
const out = [];
|
|
61937
|
+
for (const effect of effects) collectRenderUiEntries(effect, out);
|
|
61938
|
+
return out;
|
|
61939
|
+
}
|
|
61900
61940
|
|
|
61901
61941
|
// src/patterns/helpers/pattern-recommender.ts
|
|
61902
61942
|
var DOMAIN_KEYWORDS = {
|
|
@@ -62188,6 +62228,6 @@ function propHostsDrawables(schema) {
|
|
|
62188
62228
|
return false;
|
|
62189
62229
|
}
|
|
62190
62230
|
|
|
62191
|
-
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, PROP_KINDS, SELF_OVERLAY_PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
62231
|
+
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, PROP_KINDS, SELF_OVERLAY_PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiEntriesOf, renderUiPatternTypesOf };
|
|
62192
62232
|
//# sourceMappingURL=index.js.map
|
|
62193
62233
|
//# sourceMappingURL=index.js.map
|