@jay-framework/compiler-shared 0.15.6 → 0.16.1

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/index.d.ts CHANGED
@@ -147,6 +147,7 @@ declare const JayString: JayAtomicType;
147
147
  declare const JayNumber: JayAtomicType;
148
148
  declare const JayBoolean: JayAtomicType;
149
149
  declare const JayDate: JayAtomicType;
150
+ declare const JayFileType: JayAtomicType;
150
151
  declare const JayUnknown: JayAtomicType;
151
152
  declare function resolvePrimitiveType(typeName: string): JayType;
152
153
  declare class JayTypeAlias implements JayType {
@@ -601,6 +602,20 @@ interface PluginManifest {
601
602
  description?: string;
602
603
  doc?: string;
603
604
  }>;
605
+ /** Plugin-provided routes — full pages served by the dev server (DL#130).
606
+ * Each route is a headless component + jay-html template + route path. */
607
+ routes?: Array<{
608
+ /** Route path (e.g., "/aiditor", "/aiditor/pages/[route]") */
609
+ path: string;
610
+ /** Export subpath for the jay-html file (resolved via package.json exports) */
611
+ jayHtml: string;
612
+ /** Export subpath for the CSS file (optional, resolved via package.json exports) */
613
+ css?: string;
614
+ /** Exported member name for the page component */
615
+ component: string;
616
+ /** Human-readable description */
617
+ description?: string;
618
+ }>;
604
619
  /** Plugin setup configuration (Design Log #87) */
605
620
  setup?: {
606
621
  /** Export name (NPM) or relative path (local) to setup handler function */
@@ -763,4 +778,4 @@ declare function compileForEachInstanceKeyExpr(coordinateSuffix: string, trackBy
763
778
  */
764
779
  declare function computeForEachInstanceKey(trackByValue: string, coordinateSuffix: string): string;
765
780
 
766
- export { type ActionManifestEntry, CSS_EXTENSION, type CompilerSourceFile, type DynamicContractConfig, GenerateTarget, type GenericTypescriptSourceFile, Import, type ImportName, type ImportedRefsTree, Imports, ImportsFor, JAY_4_REACT, JAY_ACTION_DTS_EXTENSION, JAY_ACTION_EXTENSION, JAY_COMPONENT, JAY_CONTRACT_DTS_EXTENSION, JAY_CONTRACT_EXTENSION, JAY_DTS_EXTENSION, JAY_EXTENSION, JAY_FULLSTACK_COMPONENTS, JAY_QUERY_CLIENT, JAY_QUERY_HYDRATE, JAY_QUERY_MAIN_SANDBOX, JAY_QUERY_MAIN_SANDBOX_TS, JAY_QUERY_PREFIX, JAY_QUERY_SERVER, JAY_QUERY_WORKER_SANDBOX, JAY_QUERY_WORKER_SANDBOX_TS, JAY_QUERY_WORKER_TRUSTED, JAY_QUERY_WORKER_TRUSTED_TS, JAY_RUNTIME, JAY_SECURE, JAY_SSR_RUNTIME, JAY_STACK_CLIENT_RUNTIME, JAY_TS_EXTENSION, JayArrayType, JayAtomicType, JayBoolean, JayBuildEnvironment, JayComponentApiMember, JayComponentType, JayDate, JayElementConstructorType, JayElementType, JayEnumType, type JayEnvironment, JayErrorType, JayHTMLType, type JayImportLink, type JayImportName, JayImportedType, JayNumber, JayObjectType, JayOptionalType, JayPromiseType, JayRecordType, JayRecursiveType, JayString, type JayType, JayTypeAlias, JayTypeKind, JayUnionType, JayUnknown, type JayValidations, type JsonSchemaProperty, LOCAL_PLUGIN_PATH, MAKE_JAY_4_REACT_COMPONENT, MAKE_JAY_COMPONENT, MAKE_JAY_TSX_COMPONENT, type MainRuntimeModes, type ParsedJayModuleSpecifier, type PluginComponentResolution, type PluginInitConfig, type PluginManifest, REACT, type RecursiveRegion, type Ref, type RefsTree, RenderFragment, RuntimeMode, SourceFileFormat, TSX_EXTENSION, TS_EXTENSION, WithValidations, addBuildEnvironment, checkValidationErrors, compileCoordinateExpr, compileForEachInstanceKeyExpr, computeForEachInstanceKey, computeInstanceKey, equalJayTypes, findDynamicContract, getBasePath, getBuildEnvironment, getJayTsFileSourcePath, getMode, getModeFileExtension, getModeFromExtension, hasBuildEnvironment, hasExtension, hasJayExtension, hasJayModeExtension, hasRefs, isArrayType, isAtomicType, isComponentType, isCurrencyType, isDateWithTimezoneType, isElementConstructorType, isElementType, isEnumType, isHTMLType, isImportedType, isLocalModule, isObjectType, isOptionalType, isPromiseType, isRecordType, isRecursiveType, isStaticCoordinate, isTypeAliasType, isUnionType, jayTypeToJsonSchema, loadPluginManifest, mergeRefsTrees, mkRef, mkRefsTree, nestRefs, normalizeActionEntry, parseJayModuleSpecifier, prettify, prettifyHtml, removeComments, resolvePluginComponent, resolvePluginManifest, resolvePrimitiveType, withOriginalTrace, withoutExtension };
781
+ export { type ActionManifestEntry, CSS_EXTENSION, type CompilerSourceFile, type DynamicContractConfig, GenerateTarget, type GenericTypescriptSourceFile, Import, type ImportName, type ImportedRefsTree, Imports, ImportsFor, JAY_4_REACT, JAY_ACTION_DTS_EXTENSION, JAY_ACTION_EXTENSION, JAY_COMPONENT, JAY_CONTRACT_DTS_EXTENSION, JAY_CONTRACT_EXTENSION, JAY_DTS_EXTENSION, JAY_EXTENSION, JAY_FULLSTACK_COMPONENTS, JAY_QUERY_CLIENT, JAY_QUERY_HYDRATE, JAY_QUERY_MAIN_SANDBOX, JAY_QUERY_MAIN_SANDBOX_TS, JAY_QUERY_PREFIX, JAY_QUERY_SERVER, JAY_QUERY_WORKER_SANDBOX, JAY_QUERY_WORKER_SANDBOX_TS, JAY_QUERY_WORKER_TRUSTED, JAY_QUERY_WORKER_TRUSTED_TS, JAY_RUNTIME, JAY_SECURE, JAY_SSR_RUNTIME, JAY_STACK_CLIENT_RUNTIME, JAY_TS_EXTENSION, JayArrayType, JayAtomicType, JayBoolean, JayBuildEnvironment, JayComponentApiMember, JayComponentType, JayDate, JayElementConstructorType, JayElementType, JayEnumType, type JayEnvironment, JayErrorType, JayFileType, JayHTMLType, type JayImportLink, type JayImportName, JayImportedType, JayNumber, JayObjectType, JayOptionalType, JayPromiseType, JayRecordType, JayRecursiveType, JayString, type JayType, JayTypeAlias, JayTypeKind, JayUnionType, JayUnknown, type JayValidations, type JsonSchemaProperty, LOCAL_PLUGIN_PATH, MAKE_JAY_4_REACT_COMPONENT, MAKE_JAY_COMPONENT, MAKE_JAY_TSX_COMPONENT, type MainRuntimeModes, type ParsedJayModuleSpecifier, type PluginComponentResolution, type PluginInitConfig, type PluginManifest, REACT, type RecursiveRegion, type Ref, type RefsTree, RenderFragment, RuntimeMode, SourceFileFormat, TSX_EXTENSION, TS_EXTENSION, WithValidations, addBuildEnvironment, checkValidationErrors, compileCoordinateExpr, compileForEachInstanceKeyExpr, computeForEachInstanceKey, computeInstanceKey, equalJayTypes, findDynamicContract, getBasePath, getBuildEnvironment, getJayTsFileSourcePath, getMode, getModeFileExtension, getModeFromExtension, hasBuildEnvironment, hasExtension, hasJayExtension, hasJayModeExtension, hasRefs, isArrayType, isAtomicType, isComponentType, isCurrencyType, isDateWithTimezoneType, isElementConstructorType, isElementType, isEnumType, isHTMLType, isImportedType, isLocalModule, isObjectType, isOptionalType, isPromiseType, isRecordType, isRecursiveType, isStaticCoordinate, isTypeAliasType, isUnionType, jayTypeToJsonSchema, loadPluginManifest, mergeRefsTrees, mkRef, mkRefsTree, nestRefs, normalizeActionEntry, parseJayModuleSpecifier, prettify, prettifyHtml, removeComments, resolvePluginComponent, resolvePluginManifest, resolvePrimitiveType, withOriginalTrace, withoutExtension };
package/dist/index.js CHANGED
@@ -588,12 +588,14 @@ const JayString = new JayAtomicType("string");
588
588
  const JayNumber = new JayAtomicType("number");
589
589
  const JayBoolean = new JayAtomicType("boolean");
590
590
  const JayDate = new JayAtomicType("Date");
591
+ const JayFileType = new JayAtomicType("file");
591
592
  const JayUnknown = new JayAtomicType("Unknown");
592
593
  const typesMap = {
593
594
  string: JayString,
594
595
  number: JayNumber,
595
596
  boolean: JayBoolean,
596
- date: JayDate
597
+ date: JayDate,
598
+ file: JayFileType
597
599
  };
598
600
  function resolvePrimitiveType(typeName) {
599
601
  return typesMap[typeName] || JayUnknown;
@@ -826,6 +828,9 @@ function jayTypeToJsonSchema(type) {
826
828
  if (name === "string" || name === "number" || name === "boolean") {
827
829
  return { type: name };
828
830
  }
831
+ if (name === "file") {
832
+ return { type: "string", description: "Binary file upload (JayFile)" };
833
+ }
829
834
  return { type: "string" };
830
835
  }
831
836
  if (isEnumType(type)) {
@@ -1681,6 +1686,7 @@ export {
1681
1686
  JayElementType,
1682
1687
  JayEnumType,
1683
1688
  JayErrorType,
1689
+ JayFileType,
1684
1690
  JayHTMLType,
1685
1691
  JayImportedType,
1686
1692
  JayNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/compiler-shared",
3
- "version": "0.15.6",
3
+ "version": "0.16.1",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "license": "Apache-2.0",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "author": "",
27
27
  "dependencies": {
28
- "@jay-framework/component": "^0.15.6",
29
- "@jay-framework/runtime": "^0.15.6",
30
- "@jay-framework/secure": "^0.15.6",
31
- "@jay-framework/typescript-bridge": "^0.15.6",
28
+ "@jay-framework/component": "^0.16.1",
29
+ "@jay-framework/runtime": "^0.16.1",
30
+ "@jay-framework/secure": "^0.16.1",
31
+ "@jay-framework/typescript-bridge": "^0.16.1",
32
32
  "@types/js-yaml": "^4.0.9",
33
33
  "change-case": "^4.1.2",
34
34
  "js-beautify": "^1.14.11",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@caiogondim/strip-margin": "^1.0.0",
44
- "@jay-framework/dev-environment": "^0.15.6",
44
+ "@jay-framework/dev-environment": "^0.16.1",
45
45
  "@testing-library/jest-dom": "^6.2.0",
46
46
  "@types/js-beautify": "^1",
47
47
  "@types/node": "^20.11.5",