@jay-framework/compiler-shared 0.16.5 → 0.17.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
@@ -19,6 +19,7 @@ declare const Import: {
19
19
  svgElement: ImportName;
20
20
  mathMlElement: ImportName;
21
21
  dynamicText: ImportName;
22
+ dynamicHtml: ImportName;
22
23
  dynamicAttribute: ImportName;
23
24
  booleanAttribute: ImportName;
24
25
  dynamicProperty: ImportName;
@@ -144,6 +145,7 @@ declare class JayAtomicType implements JayType {
144
145
  readonly kind = JayTypeKind.atomic;
145
146
  }
146
147
  declare const JayString: JayAtomicType;
148
+ declare const JayHtmlString: JayAtomicType;
147
149
  declare const JayNumber: JayAtomicType;
148
150
  declare const JayBoolean: JayAtomicType;
149
151
  declare const JayDate: JayAtomicType;
@@ -260,6 +262,7 @@ declare function isRecordType(aType: JayType): aType is JayRecordType;
260
262
  declare function isUnionType(aType: JayType): aType is JayUnionType;
261
263
  declare function isPromiseType(aType: JayType): aType is JayPromiseType;
262
264
  declare function isRecursiveType(aType: JayType): aType is JayRecursiveType;
265
+ declare function isHtmlStringType(aType: JayType): boolean;
263
266
  declare function isCurrencyType(aType: JayType): aType is JayAtomicType;
264
267
  declare function isDateWithTimezoneType(aType: JayType): aType is JayAtomicType;
265
268
  declare function equalJayTypes(a: JayType, b: JayType): any;
@@ -780,4 +783,4 @@ declare function compileForEachInstanceKeyExpr(coordinateSuffix: string, trackBy
780
783
  */
781
784
  declare function computeForEachInstanceKey(trackByValue: string, coordinateSuffix: string): string;
782
785
 
783
- 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 };
786
+ 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, JayHtmlString, 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, isHtmlStringType, 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
@@ -85,6 +85,12 @@ const Import = {
85
85
  1
86
86
  /* implementation */
87
87
  ),
88
+ dynamicHtml: importStatementFragment(
89
+ JAY_RUNTIME,
90
+ "dynamicHtml as dh",
91
+ 1
92
+ /* implementation */
93
+ ),
88
94
  dynamicAttribute: importStatementFragment(
89
95
  JAY_RUNTIME,
90
96
  "dynamicAttribute as da",
@@ -585,6 +591,7 @@ class JayAtomicType {
585
591
  }
586
592
  }
587
593
  const JayString = new JayAtomicType("string");
594
+ const JayHtmlString = new JayAtomicType("string");
588
595
  const JayNumber = new JayAtomicType("number");
589
596
  const JayBoolean = new JayAtomicType("boolean");
590
597
  const JayDate = new JayAtomicType("Date");
@@ -592,6 +599,7 @@ const JayFileType = new JayAtomicType("file");
592
599
  const JayUnknown = new JayAtomicType("Unknown");
593
600
  const typesMap = {
594
601
  string: JayString,
602
+ "html-string": JayHtmlString,
595
603
  number: JayNumber,
596
604
  boolean: JayBoolean,
597
605
  date: JayDate,
@@ -769,6 +777,9 @@ function isPromiseType(aType) {
769
777
  function isRecursiveType(aType) {
770
778
  return aType.kind === 13;
771
779
  }
780
+ function isHtmlStringType(aType) {
781
+ return aType === JayHtmlString;
782
+ }
772
783
  function isCurrencyType(aType) {
773
784
  return aType.kind === 0 && aType.name === "Currency";
774
785
  }
@@ -1688,6 +1699,7 @@ export {
1688
1699
  JayErrorType,
1689
1700
  JayFileType,
1690
1701
  JayHTMLType,
1702
+ JayHtmlString,
1691
1703
  JayImportedType,
1692
1704
  JayNumber,
1693
1705
  JayObjectType,
@@ -1740,6 +1752,7 @@ export {
1740
1752
  isElementType,
1741
1753
  isEnumType,
1742
1754
  isHTMLType,
1755
+ isHtmlStringType,
1743
1756
  isImportedType,
1744
1757
  isLocalModule,
1745
1758
  isObjectType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/compiler-shared",
3
- "version": "0.16.5",
3
+ "version": "0.17.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.16.5",
29
- "@jay-framework/runtime": "^0.16.5",
30
- "@jay-framework/secure": "^0.16.5",
31
- "@jay-framework/typescript-bridge": "^0.16.5",
28
+ "@jay-framework/component": "^0.17.1",
29
+ "@jay-framework/runtime": "^0.17.1",
30
+ "@jay-framework/secure": "^0.17.1",
31
+ "@jay-framework/typescript-bridge": "^0.17.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.16.5",
44
+ "@jay-framework/dev-environment": "^0.17.1",
45
45
  "@testing-library/jest-dom": "^6.2.0",
46
46
  "@types/js-beautify": "^1",
47
47
  "@types/node": "^20.11.5",