@almadar/core 9.0.0 → 9.1.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 +3 -3
- package/dist/builders.js +71 -10
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-9ZKmnI0e.d.ts → compose-behaviors-Bn9WPGfr.d.ts} +1 -1
- package/dist/factory/index.d.ts +35 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +81 -11
- package/dist/index.js.map +1 -1
- package/dist/{schema-B9mHgRPp.d.ts → schema-B6gRJD4J.d.ts} +11338 -899
- package/dist/{trait-C23jbaBB.d.ts → trait-DvvM-71c.d.ts} +126 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +81 -11
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { bR as UISlot, u as Effect, bm as Trait, aH as RenderUIEffect, by as TraitEventContract, z as Entity, bA as TraitEventListener, bp as TraitConfig, F as EntityField, K as EntityPersistence, O as EntityRow, bD as TraitRef, bF as TraitReference } from './trait-DvvM-71c.js';
|
|
2
|
+
import { bC as UseDeclaration, Q as EntityRef, aT as PageRef, aD as OrbitalDefinition, aL as OrbitalSchema, aS as Page, aU as PageRefObject } from './schema-B6gRJD4J.js';
|
|
3
3
|
import { S as SExpr } from './expression-BVRFm0sV.js';
|
|
4
|
-
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-
|
|
4
|
+
export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-Bn9WPGfr.js';
|
|
5
5
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/builders.js
CHANGED
|
@@ -467,6 +467,10 @@ z.object({
|
|
|
467
467
|
}
|
|
468
468
|
);
|
|
469
469
|
var TraitScopeSchema = z.enum(["instance", "collection"]);
|
|
470
|
+
var EntityFieldContractSchema = z.object({
|
|
471
|
+
requires: z.array(z.string()),
|
|
472
|
+
provides: z.array(z.string())
|
|
473
|
+
});
|
|
470
474
|
var SourceBehaviorMetadataSchema = z.object({
|
|
471
475
|
behavior: z.string().min(1),
|
|
472
476
|
alias: z.string().min(1),
|
|
@@ -477,6 +481,10 @@ var TraitSchema = z.object({
|
|
|
477
481
|
description: z.string().optional(),
|
|
478
482
|
description_visual_prompt: z.string().optional(),
|
|
479
483
|
category: TraitCategorySchema.optional(),
|
|
484
|
+
entityRebindable: z.boolean().optional(),
|
|
485
|
+
entityContract: EntityFieldContractSchema.optional(),
|
|
486
|
+
entityBindingDescription: z.string().optional(),
|
|
487
|
+
entityBindingSynonyms: z.string().optional(),
|
|
480
488
|
capabilities: z.array(z.string()).optional(),
|
|
481
489
|
scope: TraitScopeSchema,
|
|
482
490
|
linkedEntity: z.string().optional(),
|
|
@@ -811,31 +819,84 @@ var GeometryTokensSchema = z.object({
|
|
|
811
819
|
borderStandard: z.string().optional(),
|
|
812
820
|
borderHeavy: z.string().optional()
|
|
813
821
|
});
|
|
822
|
+
var ColorTokensSchema = z.object({
|
|
823
|
+
primary: z.string().optional(),
|
|
824
|
+
primaryHover: z.string().optional(),
|
|
825
|
+
primaryForeground: z.string().optional(),
|
|
826
|
+
secondary: z.string().optional(),
|
|
827
|
+
secondaryHover: z.string().optional(),
|
|
828
|
+
secondaryForeground: z.string().optional(),
|
|
829
|
+
accent: z.string().optional(),
|
|
830
|
+
accentForeground: z.string().optional(),
|
|
831
|
+
muted: z.string().optional(),
|
|
832
|
+
mutedForeground: z.string().optional(),
|
|
833
|
+
background: z.string().optional(),
|
|
834
|
+
foreground: z.string().optional(),
|
|
835
|
+
card: z.string().optional(),
|
|
836
|
+
cardForeground: z.string().optional(),
|
|
837
|
+
surface: z.string().optional(),
|
|
838
|
+
border: z.string().optional(),
|
|
839
|
+
input: z.string().optional(),
|
|
840
|
+
ring: z.string().optional(),
|
|
841
|
+
error: z.string().optional(),
|
|
842
|
+
errorForeground: z.string().optional(),
|
|
843
|
+
success: z.string().optional(),
|
|
844
|
+
successForeground: z.string().optional(),
|
|
845
|
+
warning: z.string().optional(),
|
|
846
|
+
warningForeground: z.string().optional(),
|
|
847
|
+
info: z.string().optional(),
|
|
848
|
+
infoForeground: z.string().optional(),
|
|
849
|
+
tableHeader: z.string().optional(),
|
|
850
|
+
tableBorder: z.string().optional(),
|
|
851
|
+
tableRowHover: z.string().optional(),
|
|
852
|
+
surfaceHover: z.string().optional(),
|
|
853
|
+
borderHover: z.string().optional(),
|
|
854
|
+
placeholder: z.string().optional()
|
|
855
|
+
});
|
|
856
|
+
var IllustrationStyleSchema = z.enum([
|
|
857
|
+
"minimal",
|
|
858
|
+
"illustrated",
|
|
859
|
+
"photo",
|
|
860
|
+
"text-only",
|
|
861
|
+
"mascot"
|
|
862
|
+
]);
|
|
863
|
+
var IllustrationTokensSchema = z.object({
|
|
864
|
+
style: IllustrationStyleSchema.optional(),
|
|
865
|
+
emptyAsset: z.string().optional(),
|
|
866
|
+
loadingAsset: z.string().optional(),
|
|
867
|
+
errorAsset: z.string().optional(),
|
|
868
|
+
onboardingAsset: z.string().optional()
|
|
869
|
+
});
|
|
814
870
|
var ThemeTokensSchema = z.object({
|
|
815
|
-
|
|
816
|
-
radii: z.record(z.string(), z.string()).optional(),
|
|
817
|
-
spacing: z.record(z.string(), z.string()).optional(),
|
|
818
|
-
typography: z.record(z.string(), z.string()).optional(),
|
|
819
|
-
shadows: z.record(z.string(), z.string()).optional(),
|
|
871
|
+
color: ColorTokensSchema.optional(),
|
|
820
872
|
density: DensityTokensSchema.optional(),
|
|
821
873
|
typeScale: TypeScaleTokensSchema.optional(),
|
|
822
874
|
motion: MotionTokensSchema.optional(),
|
|
823
875
|
iconography: IconographyTokensSchema.optional(),
|
|
824
876
|
elevation: ElevationTokensSchema.optional(),
|
|
825
|
-
geometry: GeometryTokensSchema.optional()
|
|
826
|
-
|
|
827
|
-
|
|
877
|
+
geometry: GeometryTokensSchema.optional(),
|
|
878
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
879
|
+
// Legacy
|
|
828
880
|
colors: z.record(z.string(), z.string()).optional(),
|
|
829
881
|
radii: z.record(z.string(), z.string()).optional(),
|
|
830
882
|
spacing: z.record(z.string(), z.string()).optional(),
|
|
831
883
|
typography: z.record(z.string(), z.string()).optional(),
|
|
832
|
-
shadows: z.record(z.string(), z.string()).optional()
|
|
884
|
+
shadows: z.record(z.string(), z.string()).optional()
|
|
885
|
+
});
|
|
886
|
+
var ThemeVariantSchema = z.object({
|
|
887
|
+
color: ColorTokensSchema.optional(),
|
|
833
888
|
density: DensityTokensSchema.optional(),
|
|
834
889
|
typeScale: TypeScaleTokensSchema.optional(),
|
|
835
890
|
motion: MotionTokensSchema.optional(),
|
|
836
891
|
iconography: IconographyTokensSchema.optional(),
|
|
837
892
|
elevation: ElevationTokensSchema.optional(),
|
|
838
|
-
geometry: GeometryTokensSchema.optional()
|
|
893
|
+
geometry: GeometryTokensSchema.optional(),
|
|
894
|
+
illustration: IllustrationTokensSchema.optional(),
|
|
895
|
+
colors: z.record(z.string(), z.string()).optional(),
|
|
896
|
+
radii: z.record(z.string(), z.string()).optional(),
|
|
897
|
+
spacing: z.record(z.string(), z.string()).optional(),
|
|
898
|
+
typography: z.record(z.string(), z.string()).optional(),
|
|
899
|
+
shadows: z.record(z.string(), z.string()).optional()
|
|
839
900
|
});
|
|
840
901
|
var ThemeDefinitionSchema = z.object({
|
|
841
902
|
name: z.string().min(1, "Theme name is required"),
|