@prisma-next/framework-components 0.14.0-dev.13 → 0.14.0-dev.15

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.
@@ -3,7 +3,7 @@ import { d as AuthoringFieldNamespace, h as AuthoringPslBlockDescriptorNamespace
3
3
  import { A as LoweredDefaultResult, C as ControlMutationDefaultEntry, D as DefaultFunctionLoweringHandler, E as DefaultFunctionLoweringContext, F as SourceSpan, M as MutationDefaultGeneratorDescriptor, N as ParsedDefaultFunctionCall, O as DefaultFunctionRegistry, P as SourceDiagnostic, T as ControlMutationDefaults, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, j as LoweredDefaultValue, k as DefaultFunctionRegistryEntry, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, w as ControlMutationDefaultRegistry, y as TargetDescriptor } from "./framework-components-B9k0py6_.mjs";
4
4
  import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
5
5
  import { t as EntityCoordinate } from "./storage-LiDzCDHm.mjs";
6
- import { t as EmissionSpi } from "./emission-types-C561PwcN.mjs";
6
+ import { t as EmissionSpi } from "./emission-types-D5epb70p.mjs";
7
7
  import { m as PslDocumentAst } from "./psl-ast-CiZNxGGb.mjs";
8
8
  import { Contract, ContractMarkerRecord, ControlPolicy, LedgerEntryRecord } from "@prisma-next/contract/types";
9
9
  import { ImportRequirement, ImportRequirement as ImportRequirement$1 } from "@prisma-next/ts-render";
@@ -1,3 +1,4 @@
1
+ import { r as CodecLookup } from "./codec-types-yY3eSmi0.mjs";
1
2
  import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
2
3
  import { Contract, ContractModelBase } from "@prisma-next/contract/types";
3
4
 
@@ -17,22 +18,9 @@ interface EmissionSpi {
17
18
  getFamilyTypeAliases(options?: GenerateContractTypesOptions): string;
18
19
  getTypeMapsExpression(): string;
19
20
  getContractWrapper(contractBaseName: string, typeMapsName: string): string;
20
- /**
21
- * Per-family resolver for typeParams that don't live inline on the
22
- * framework-domain `ContractField`. Some families (notably SQL) let columns
23
- * reference a named entry in `storage.types` via `typeRef`; the typeParams
24
- * live on that named entry rather than on the domain field. The framework
25
- * emit path consults this hook so the codec's `renderOutputType` can run
26
- * for typeRef-shaped columns.
27
- *
28
- * Inline `field.type.typeParams` always takes precedence; the hook is only
29
- * consulted when the domain field has no typeParams. Families without
30
- * named storage types (e.g. mongo) don't implement this hook.
31
- *
32
- * Returns `undefined` when the field has no resolvable typeParams.
33
- */
34
21
  resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): Record<string, unknown> | undefined;
22
+ getStorageTypeExports?(contract: Contract, codecLookup?: CodecLookup): string | undefined;
35
23
  }
36
24
  //#endregion
37
25
  export { GenerateContractTypesOptions as n, ValidationContext as r, EmissionSpi as t };
38
- //# sourceMappingURL=emission-types-C561PwcN.d.mts.map
26
+ //# sourceMappingURL=emission-types-D5epb70p.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emission-types-D5epb70p.d.mts","names":[],"sources":["../src/control/emission-types.ts"],"mappings":";;;;;UAIiB,4BAAA;EAAA,SACN,yBAAA,GAA4B,aAAa,CAAC,eAAA;AAAA;AAAA,UAGpC,iBAAA;EAAA,SACN,gBAAA,GAAmB,aAAA,CAAc,eAAA;EAAA,SACjC,YAAA,GAAe,aAAA;AAAA;AAAA,UAGT,WAAA;EAAA,SACN,EAAA;EAET,mBAAA,CAAoB,QAAA,EAAU,QAAA,EAAU,mBAAA;EAExC,wBAAA,CAAyB,SAAA,UAAmB,KAAA,EAAO,iBAAA;EAEnD,gBAAA;EAEA,oBAAA,CAAqB,OAAA,GAAU,4BAAA;EAE/B,qBAAA;EAEA,kBAAA,CAAmB,gBAAA,UAA0B,YAAA;EAE7C,sBAAA,EACE,SAAA,UACA,SAAA,UACA,KAAA,EAAO,iBAAA,EACP,QAAA,EAAU,QAAA,GACT,MAAA;EAEH,qBAAA,EAAuB,QAAA,EAAU,QAAA,EAAU,WAAA,GAAc,WAAA;AAAA"}
@@ -1,3 +1,3 @@
1
1
  import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
2
- import { n as GenerateContractTypesOptions, r as ValidationContext, t as EmissionSpi } from "./emission-types-C561PwcN.mjs";
2
+ import { n as GenerateContractTypesOptions, r as ValidationContext, t as EmissionSpi } from "./emission-types-D5epb70p.mjs";
3
3
  export type { EmissionSpi, GenerateContractTypesOptions, TypesImportSpec, ValidationContext };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@prisma-next/framework-components",
3
- "version": "0.14.0-dev.13",
3
+ "version": "0.14.0-dev.15",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "description": "Framework component types, assembly logic, and stack creation for Prisma Next",
8
8
  "dependencies": {
9
- "@prisma-next/contract": "0.14.0-dev.13",
10
- "@prisma-next/operations": "0.14.0-dev.13",
11
- "@prisma-next/ts-render": "0.14.0-dev.13",
12
- "@prisma-next/utils": "0.14.0-dev.13",
9
+ "@prisma-next/contract": "0.14.0-dev.15",
10
+ "@prisma-next/operations": "0.14.0-dev.15",
11
+ "@prisma-next/ts-render": "0.14.0-dev.15",
12
+ "@prisma-next/utils": "0.14.0-dev.15",
13
13
  "@standard-schema/spec": "^1.1.0",
14
14
  "arktype": "^2.2.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@prisma-next/tsconfig": "0.14.0-dev.13",
18
- "@prisma-next/tsdown": "0.14.0-dev.13",
17
+ "@prisma-next/tsconfig": "0.14.0-dev.15",
18
+ "@prisma-next/tsdown": "0.14.0-dev.15",
19
19
  "tsdown": "0.22.1",
20
20
  "typescript": "5.9.3",
21
21
  "vitest": "4.1.8"
@@ -1,4 +1,5 @@
1
1
  import type { Contract, ContractModelBase } from '@prisma-next/contract/types';
2
+ import type { CodecLookup } from '../shared/codec-types';
2
3
  import type { TypesImportSpec } from '../shared/types-import-spec';
3
4
 
4
5
  export interface GenerateContractTypesOptions {
@@ -25,24 +26,12 @@ export interface EmissionSpi {
25
26
 
26
27
  getContractWrapper(contractBaseName: string, typeMapsName: string): string;
27
28
 
28
- /**
29
- * Per-family resolver for typeParams that don't live inline on the
30
- * framework-domain `ContractField`. Some families (notably SQL) let columns
31
- * reference a named entry in `storage.types` via `typeRef`; the typeParams
32
- * live on that named entry rather than on the domain field. The framework
33
- * emit path consults this hook so the codec's `renderOutputType` can run
34
- * for typeRef-shaped columns.
35
- *
36
- * Inline `field.type.typeParams` always takes precedence; the hook is only
37
- * consulted when the domain field has no typeParams. Families without
38
- * named storage types (e.g. mongo) don't implement this hook.
39
- *
40
- * Returns `undefined` when the field has no resolvable typeParams.
41
- */
42
29
  resolveFieldTypeParams?(
43
30
  modelName: string,
44
31
  fieldName: string,
45
32
  model: ContractModelBase,
46
33
  contract: Contract,
47
34
  ): Record<string, unknown> | undefined;
35
+
36
+ getStorageTypeExports?(contract: Contract, codecLookup?: CodecLookup): string | undefined;
48
37
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"emission-types-C561PwcN.d.mts","names":[],"sources":["../src/control/emission-types.ts"],"mappings":";;;;UAGiB,4BAAA;EAAA,SACN,yBAAA,GAA4B,aAAa,CAAC,eAAA;AAAA;AAAA,UAGpC,iBAAA;EAAA,SACN,gBAAA,GAAmB,aAAA,CAAc,eAAA;EAAA,SACjC,YAAA,GAAe,aAAA;AAAA;AAAA,UAGT,WAAA;EAAA,SACN,EAAA;EAET,mBAAA,CAAoB,QAAA,EAAU,QAAA,EAAU,mBAAA;EAExC,wBAAA,CAAyB,SAAA,UAAmB,KAAA,EAAO,iBAAA;EAEnD,gBAAA;EAEA,oBAAA,CAAqB,OAAA,GAAU,4BAAA;EAE/B,qBAAA;EAEA,kBAAA,CAAmB,gBAAA,UAA0B,YAAA;EAjBjB;;;;;;;;;;AACS;AAGvC;;;EA6BE,sBAAA,EACE,SAAA,UACA,SAAA,UACA,KAAA,EAAO,iBAAA,EACP,QAAA,EAAU,QAAA,GACT,MAAA;AAAA"}