@codama/renderers-js 1.3.4 → 1.4.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.
Files changed (160) hide show
  1. package/LICENSE +1 -1
  2. package/dist/index.browser.cjs +3247 -0
  3. package/dist/index.browser.cjs.map +1 -0
  4. package/dist/index.browser.mjs +3300 -0
  5. package/dist/index.browser.mjs.map +1 -0
  6. package/dist/index.node.cjs +2081 -1718
  7. package/dist/index.node.cjs.map +1 -1
  8. package/dist/index.node.mjs +2015 -1657
  9. package/dist/index.node.mjs.map +1 -1
  10. package/dist/index.react-native.mjs +3300 -0
  11. package/dist/index.react-native.mjs.map +1 -0
  12. package/dist/types/fragments/accountFetchHelpers.d.ts +2 -4
  13. package/dist/types/fragments/accountFetchHelpers.d.ts.map +1 -1
  14. package/dist/types/fragments/accountPage.d.ts +8 -0
  15. package/dist/types/fragments/accountPage.d.ts.map +1 -0
  16. package/dist/types/fragments/accountPdaHelpers.d.ts +3 -5
  17. package/dist/types/fragments/accountPdaHelpers.d.ts.map +1 -1
  18. package/dist/types/fragments/accountSizeHelpers.d.ts +3 -4
  19. package/dist/types/fragments/accountSizeHelpers.d.ts.map +1 -1
  20. package/dist/types/fragments/accountType.d.ts +3 -5
  21. package/dist/types/fragments/accountType.d.ts.map +1 -1
  22. package/dist/types/fragments/discriminatorCondition.d.ts +2 -3
  23. package/dist/types/fragments/discriminatorCondition.d.ts.map +1 -1
  24. package/dist/types/fragments/discriminatorConstants.d.ts +5 -6
  25. package/dist/types/fragments/discriminatorConstants.d.ts.map +1 -1
  26. package/dist/types/fragments/errorPage.d.ts +6 -0
  27. package/dist/types/fragments/errorPage.d.ts.map +1 -0
  28. package/dist/types/fragments/index.d.ts +11 -4
  29. package/dist/types/fragments/index.d.ts.map +1 -1
  30. package/dist/types/fragments/indexPage.d.ts +6 -0
  31. package/dist/types/fragments/indexPage.d.ts.map +1 -0
  32. package/dist/types/fragments/instructionAccountMeta.d.ts +1 -1
  33. package/dist/types/fragments/instructionAccountMeta.d.ts.map +1 -1
  34. package/dist/types/fragments/instructionAccountTypeParam.d.ts +2 -3
  35. package/dist/types/fragments/instructionAccountTypeParam.d.ts.map +1 -1
  36. package/dist/types/fragments/instructionByteDelta.d.ts +3 -4
  37. package/dist/types/fragments/instructionByteDelta.d.ts.map +1 -1
  38. package/dist/types/fragments/instructionData.d.ts +3 -5
  39. package/dist/types/fragments/instructionData.d.ts.map +1 -1
  40. package/dist/types/fragments/instructionExtraArgs.d.ts +3 -5
  41. package/dist/types/fragments/instructionExtraArgs.d.ts.map +1 -1
  42. package/dist/types/fragments/instructionFunction.d.ts +3 -5
  43. package/dist/types/fragments/instructionFunction.d.ts.map +1 -1
  44. package/dist/types/fragments/instructionInputDefault.d.ts +2 -3
  45. package/dist/types/fragments/instructionInputDefault.d.ts.map +1 -1
  46. package/dist/types/fragments/instructionInputResolved.d.ts +2 -3
  47. package/dist/types/fragments/instructionInputResolved.d.ts.map +1 -1
  48. package/dist/types/fragments/instructionInputType.d.ts +2 -4
  49. package/dist/types/fragments/instructionInputType.d.ts.map +1 -1
  50. package/dist/types/fragments/instructionPage.d.ts +9 -0
  51. package/dist/types/fragments/instructionPage.d.ts.map +1 -0
  52. package/dist/types/fragments/instructionParseFunction.d.ts +2 -4
  53. package/dist/types/fragments/instructionParseFunction.d.ts.map +1 -1
  54. package/dist/types/fragments/instructionRemainingAccounts.d.ts +3 -4
  55. package/dist/types/fragments/instructionRemainingAccounts.d.ts.map +1 -1
  56. package/dist/types/fragments/instructionType.d.ts +2 -3
  57. package/dist/types/fragments/instructionType.d.ts.map +1 -1
  58. package/dist/types/fragments/pdaFunction.d.ts +2 -3
  59. package/dist/types/fragments/pdaFunction.d.ts.map +1 -1
  60. package/dist/types/fragments/pdaPage.d.ts +7 -0
  61. package/dist/types/fragments/pdaPage.d.ts.map +1 -0
  62. package/dist/types/fragments/programAccounts.d.ts +3 -4
  63. package/dist/types/fragments/programAccounts.d.ts.map +1 -1
  64. package/dist/types/fragments/programConstant.d.ts +6 -0
  65. package/dist/types/fragments/programConstant.d.ts.map +1 -0
  66. package/dist/types/fragments/programInstructions.d.ts +3 -4
  67. package/dist/types/fragments/programInstructions.d.ts.map +1 -1
  68. package/dist/types/fragments/programPage.d.ts +6 -0
  69. package/dist/types/fragments/programPage.d.ts.map +1 -0
  70. package/dist/types/fragments/rootIndexPage.d.ts +10 -0
  71. package/dist/types/fragments/rootIndexPage.d.ts.map +1 -0
  72. package/dist/types/fragments/sharedPage.d.ts +3 -0
  73. package/dist/types/fragments/sharedPage.d.ts.map +1 -0
  74. package/dist/types/fragments/type.d.ts +2 -4
  75. package/dist/types/fragments/type.d.ts.map +1 -1
  76. package/dist/types/fragments/typeCodec.d.ts +2 -4
  77. package/dist/types/fragments/typeCodec.d.ts.map +1 -1
  78. package/dist/types/fragments/typeDecoder.d.ts +2 -4
  79. package/dist/types/fragments/typeDecoder.d.ts.map +1 -1
  80. package/dist/types/fragments/typeDiscriminatedUnionHelpers.d.ts +3 -4
  81. package/dist/types/fragments/typeDiscriminatedUnionHelpers.d.ts.map +1 -1
  82. package/dist/types/fragments/typeEncoder.d.ts +2 -4
  83. package/dist/types/fragments/typeEncoder.d.ts.map +1 -1
  84. package/dist/types/fragments/typePage.d.ts +7 -0
  85. package/dist/types/fragments/typePage.d.ts.map +1 -0
  86. package/dist/types/fragments/typeWithCodec.d.ts +2 -4
  87. package/dist/types/fragments/typeWithCodec.d.ts.map +1 -1
  88. package/dist/types/index.d.ts +5 -7
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/utils/fragment.d.ts +24 -0
  91. package/dist/types/utils/fragment.d.ts.map +1 -0
  92. package/dist/types/utils/importMap.d.ts +17 -0
  93. package/dist/types/utils/importMap.d.ts.map +1 -0
  94. package/dist/types/utils/index.d.ts +5 -1
  95. package/dist/types/utils/index.d.ts.map +1 -1
  96. package/dist/types/utils/nameTransformers.d.ts.map +1 -0
  97. package/dist/types/utils/options.d.ts +40 -0
  98. package/dist/types/utils/options.d.ts.map +1 -0
  99. package/dist/types/{TypeManifest.d.ts → utils/typeManifest.d.ts} +6 -6
  100. package/dist/types/utils/typeManifest.d.ts.map +1 -0
  101. package/dist/types/visitors/getRenderMapVisitor.d.ts +3 -0
  102. package/dist/types/visitors/getRenderMapVisitor.d.ts.map +1 -0
  103. package/dist/types/visitors/getTypeManifestVisitor.d.ts +21 -0
  104. package/dist/types/visitors/getTypeManifestVisitor.d.ts.map +1 -0
  105. package/dist/types/visitors/index.d.ts +4 -0
  106. package/dist/types/visitors/index.d.ts.map +1 -0
  107. package/dist/types/visitors/renderVisitor.d.ts +3 -0
  108. package/dist/types/visitors/renderVisitor.d.ts.map +1 -0
  109. package/package.json +22 -13
  110. package/dist/templates/fragments/accountFetchHelpers.njk +0 -43
  111. package/dist/templates/fragments/accountPdaHelpers.njk +0 -25
  112. package/dist/templates/fragments/accountSizeHelpers.njk +0 -3
  113. package/dist/templates/fragments/instructionExtraArgs.njk +0 -4
  114. package/dist/templates/fragments/instructionFunction.njk +0 -62
  115. package/dist/templates/fragments/instructionInputType.njk +0 -16
  116. package/dist/templates/fragments/instructionParseFunction.njk +0 -81
  117. package/dist/templates/fragments/instructionType.njk +0 -18
  118. package/dist/templates/fragments/pdaFunction.njk +0 -33
  119. package/dist/templates/fragments/program.njk +0 -3
  120. package/dist/templates/fragments/programErrors.njk +0 -36
  121. package/dist/templates/fragments/type.njk +0 -12
  122. package/dist/templates/fragments/typeCodec.njk +0 -6
  123. package/dist/templates/fragments/typeDecoder.njk +0 -6
  124. package/dist/templates/fragments/typeDiscriminatedUnionHelpers.njk +0 -23
  125. package/dist/templates/fragments/typeEncoder.njk +0 -6
  126. package/dist/templates/layout.njk +0 -9
  127. package/dist/templates/macros.njk +0 -12
  128. package/dist/templates/pages/accountsIndex.njk +0 -9
  129. package/dist/templates/pages/accountsPage.njk +0 -12
  130. package/dist/templates/pages/definedTypesIndex.njk +0 -9
  131. package/dist/templates/pages/definedTypesPage.njk +0 -9
  132. package/dist/templates/pages/errorsIndex.njk +0 -9
  133. package/dist/templates/pages/errorsPage.njk +0 -8
  134. package/dist/templates/pages/instructionsIndex.njk +0 -9
  135. package/dist/templates/pages/instructionsPage.njk +0 -14
  136. package/dist/templates/pages/pdasIndex.njk +0 -9
  137. package/dist/templates/pages/pdasPage.njk +0 -8
  138. package/dist/templates/pages/programsIndex.njk +0 -9
  139. package/dist/templates/pages/programsPage.njk +0 -10
  140. package/dist/templates/pages/rootIndex.njk +0 -26
  141. package/dist/templates/pages/sharedPage.njk +0 -106
  142. package/dist/types/ImportMap.d.ts +0 -15
  143. package/dist/types/ImportMap.d.ts.map +0 -1
  144. package/dist/types/TypeManifest.d.ts.map +0 -1
  145. package/dist/types/fragments/common.d.ts +0 -25
  146. package/dist/types/fragments/common.d.ts.map +0 -1
  147. package/dist/types/fragments/program.d.ts +0 -7
  148. package/dist/types/fragments/program.d.ts.map +0 -1
  149. package/dist/types/fragments/programErrors.d.ts +0 -7
  150. package/dist/types/fragments/programErrors.d.ts.map +0 -1
  151. package/dist/types/getRenderMapVisitor.d.ts +0 -31
  152. package/dist/types/getRenderMapVisitor.d.ts.map +0 -1
  153. package/dist/types/getTypeManifestVisitor.d.ts +0 -16
  154. package/dist/types/getTypeManifestVisitor.d.ts.map +0 -1
  155. package/dist/types/nameTransformers.d.ts.map +0 -1
  156. package/dist/types/renderVisitor.d.ts +0 -11
  157. package/dist/types/renderVisitor.d.ts.map +0 -1
  158. package/dist/types/utils/render.d.ts +0 -4
  159. package/dist/types/utils/render.d.ts.map +0 -1
  160. /package/dist/types/{nameTransformers.d.ts → utils/nameTransformers.d.ts} +0 -0
@@ -1,9 +1,7 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getAccountFetchHelpersFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getAccountFetchHelpersFragment(scope: Pick<RenderScope, 'customAccountData' | 'nameApi'> & {
7
5
  accountPath: NodePath<AccountNode>;
8
6
  typeManifest: TypeManifest;
9
7
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"accountFetchHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountFetchHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,CAAC,GAAG;IAChE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAmCV"}
1
+ {"version":3,"file":"accountFetchHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountFetchHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAsB,QAAQ,EAAY,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7F,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,mBAAmB,GAAG,SAAS,CAAC,GAAG;IACxD,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAyEV"}
@@ -0,0 +1,8 @@
1
+ import { AccountNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getAccountPageFragment(scope: Pick<RenderScope, 'customAccountData' | 'linkables' | 'nameApi' | 'typeManifestVisitor'> & {
5
+ accountPath: NodePath<AccountNode>;
6
+ size: number | null;
7
+ }): Fragment;
8
+ //# sourceMappingURL=accountPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountPage.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAgD,QAAQ,EAAS,MAAM,uBAAuB,CAAC;AAEtG,OAAO,EAAE,QAAQ,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AAOjE,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC9F,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAuBV"}
@@ -1,10 +1,8 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import type { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getAccountPdaHelpersFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'linkables' | 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getAccountPdaHelpersFragment(scope: Pick<RenderScope, 'customAccountData' | 'linkables' | 'nameApi'> & {
7
5
  accountPath: NodePath<AccountNode>;
8
6
  typeManifest: TypeManifest;
9
- }): Fragment;
7
+ }): Fragment | undefined;
10
8
  //# sourceMappingURL=accountPdaHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountPdaHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountPdaHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAC9E,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAyCV"}
1
+ {"version":3,"file":"accountPdaHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountPdaHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAsB,QAAQ,EAAY,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7F,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IACtE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,GAAG,SAAS,CAoDtB"}
@@ -1,8 +1,7 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getAccountSizeHelpersFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getAccountSizeHelpersFragment(scope: Pick<RenderScope, 'nameApi'> & {
6
5
  accountPath: NodePath<AccountNode>;
7
- }): Fragment;
6
+ }): Fragment | undefined;
8
7
  //# sourceMappingURL=accountSizeHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountSizeHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountSizeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;CAAE,GACrF,QAAQ,CAWV"}
1
+ {"version":3,"file":"accountSizeHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountSizeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,UAAU,CAAC;AAE3D,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;CAAE,GAC7E,QAAQ,GAAG,SAAS,CAStB"}
@@ -1,11 +1,9 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getAccountTypeFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getAccountTypeFragment(scope: Pick<RenderScope, 'customAccountData' | 'nameApi'> & {
7
5
  accountPath: NodePath<AccountNode>;
8
6
  size: number | null;
9
7
  typeManifest: TypeManifest;
10
- }): Fragment;
8
+ }): Fragment | undefined;
11
9
  //# sourceMappingURL=accountType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountType.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAG9C,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,CAAC,GAAG;IAChE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAeV"}
1
+ {"version":3,"file":"accountType.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG/D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,mBAAmB,GAAG,SAAS,CAAC,GAAG;IACxD,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,GAAG,SAAS,CAYtB"}
@@ -1,6 +1,5 @@
1
1
  import { type DiscriminatorNode, type ProgramNode, type StructTypeNode } from '@codama/nodes';
2
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
2
+ import { Fragment, RenderScope } from '../utils';
4
3
  /**
5
4
  * ```
6
5
  * if (data.length === 72) {
@@ -16,7 +15,7 @@ import { Fragment } from './common';
16
15
  * }
17
16
  * ```
18
17
  */
19
- export declare function getDiscriminatorConditionFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
18
+ export declare function getDiscriminatorConditionFragment(scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
20
19
  dataName: string;
21
20
  discriminators: DiscriminatorNode[];
22
21
  ifTrue: string;
@@ -1 +1 @@
1
- {"version":3,"file":"discriminatorCondition.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,iBAAiB,EAItB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACtB,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CAC1B,GACF,QAAQ,CAgBV"}
1
+ {"version":3,"file":"discriminatorCondition.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,iBAAiB,EAItB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACtB,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,QAAQ,EAA4B,WAAW,EAAO,MAAM,UAAU,CAAC;AAEhF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CAC1B,GACF,QAAQ,CAmBV"}
@@ -1,21 +1,20 @@
1
1
  import { ConstantDiscriminatorNode, DiscriminatorNode, FieldDiscriminatorNode, InstructionArgumentNode, StructFieldTypeNode } from '@codama/nodes';
2
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
4
- export declare function getDiscriminatorConstantsFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
2
+ import { Fragment, RenderScope } from '../utils';
3
+ export declare function getDiscriminatorConstantsFragment(scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
5
4
  discriminatorNodes: DiscriminatorNode[];
6
5
  fields: InstructionArgumentNode[] | StructFieldTypeNode[];
7
6
  prefix: string;
8
7
  }): Fragment;
9
- export declare function getDiscriminatorConstantFragment(discriminatorNode: DiscriminatorNode, scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
8
+ export declare function getDiscriminatorConstantFragment(discriminatorNode: DiscriminatorNode, scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
10
9
  discriminatorNodes: DiscriminatorNode[];
11
10
  fields: InstructionArgumentNode[] | StructFieldTypeNode[];
12
11
  prefix: string;
13
12
  }): Fragment | null;
14
- export declare function getConstantDiscriminatorConstantFragment(discriminatorNode: ConstantDiscriminatorNode, scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
13
+ export declare function getConstantDiscriminatorConstantFragment(discriminatorNode: ConstantDiscriminatorNode, scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
15
14
  discriminatorNodes: DiscriminatorNode[];
16
15
  prefix: string;
17
16
  }): Fragment | null;
18
- export declare function getFieldDiscriminatorConstantFragment(discriminatorNode: FieldDiscriminatorNode, scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
17
+ export declare function getFieldDiscriminatorConstantFragment(discriminatorNode: FieldDiscriminatorNode, scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
19
18
  fields: InstructionArgumentNode[] | StructFieldTypeNode[];
20
19
  prefix: string;
21
20
  }): Fragment | null;
@@ -1 +1 @@
1
- {"version":3,"file":"discriminatorConstants.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EAGvB,mBAAmB,EAEtB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAEpD,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,CAMV;AAED,wBAAgB,gCAAgC,CAC5C,iBAAiB,EAAE,iBAAiB,EACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CASjB;AAED,wBAAgB,wCAAwC,CACpD,iBAAiB,EAAE,yBAAyB,EAC5C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAUjB;AAED,wBAAgB,qCAAqC,CACjD,iBAAiB,EAAE,sBAAsB,EACzC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAYjB"}
1
+ {"version":3,"file":"discriminatorConstants.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EAGvB,mBAAmB,EAEtB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,QAAQ,EAA4B,WAAW,EAAE,MAAM,UAAU,CAAC;AAE3E,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,CAMV;AAED,wBAAgB,gCAAgC,CAC5C,iBAAiB,EAAE,iBAAiB,EACpC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CASjB;AAED,wBAAgB,wCAAwC,CACpD,iBAAiB,EAAE,yBAAyB,EAC5C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAUjB;AAED,wBAAgB,qCAAqC,CACjD,iBAAiB,EAAE,sBAAsB,EACzC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAYjB"}
@@ -0,0 +1,6 @@
1
+ import { ProgramNode } from '@codama/nodes';
2
+ import { Fragment, RenderScope } from '../utils';
3
+ export declare function getErrorPageFragment(scope: Pick<RenderScope, 'nameApi'> & {
4
+ programNode: ProgramNode;
5
+ }): Fragment;
6
+ //# sourceMappingURL=errorPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorPage.d.ts","sourceRoot":"","sources":["../../../src/fragments/errorPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAiD,WAAW,EAAO,MAAM,UAAU,CAAC;AAErG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,GAAG,QAAQ,CAWjH"}
@@ -1,31 +1,38 @@
1
1
  export * from './accountFetchHelpers';
2
+ export * from './accountPage';
2
3
  export * from './accountPdaHelpers';
3
4
  export * from './accountSizeHelpers';
4
5
  export * from './accountType';
5
- export * from './common';
6
6
  export * from './discriminatorCondition';
7
+ export * from './discriminatorConstants';
8
+ export * from './errorPage';
9
+ export * from './indexPage';
7
10
  export * from './instructionAccountMeta';
8
11
  export * from './instructionAccountTypeParam';
9
12
  export * from './instructionByteDelta';
10
13
  export * from './instructionData';
11
- export * from './discriminatorConstants';
12
14
  export * from './instructionExtraArgs';
13
15
  export * from './instructionFunction';
14
16
  export * from './instructionInputDefault';
15
17
  export * from './instructionInputResolved';
16
18
  export * from './instructionInputType';
19
+ export * from './instructionPage';
17
20
  export * from './instructionParseFunction';
18
21
  export * from './instructionRemainingAccounts';
19
22
  export * from './instructionType';
20
23
  export * from './pdaFunction';
21
- export * from './program';
24
+ export * from './pdaPage';
22
25
  export * from './programAccounts';
23
- export * from './programErrors';
26
+ export * from './programConstant';
24
27
  export * from './programInstructions';
28
+ export * from './programPage';
29
+ export * from './rootIndexPage';
30
+ export * from './sharedPage';
25
31
  export * from './type';
26
32
  export * from './typeCodec';
27
33
  export * from './typeDecoder';
28
34
  export * from './typeDiscriminatedUnionHelpers';
29
35
  export * from './typeEncoder';
36
+ export * from './typePage';
30
37
  export * from './typeWithCodec';
31
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fragments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fragments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CamelCaseString } from '@codama/nodes';
2
+ import { Fragment } from '../utils';
3
+ export declare function getIndexPageFragment(items: {
4
+ name: CamelCaseString;
5
+ }[]): Fragment | undefined;
6
+ //# sourceMappingURL=indexPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexPage.d.ts","sourceRoot":"","sources":["../../../src/fragments/indexPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAE1E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,EAAE,GAAG,QAAQ,GAAG,SAAS,CAS7F"}
@@ -1,4 +1,4 @@
1
1
  import { InstructionAccountNode } from '@codama/nodes';
2
- import { Fragment } from './common';
2
+ import { Fragment } from '../utils';
3
3
  export declare function getInstructionAccountMetaFragment(instructionAccountNode: InstructionAccountNode): Fragment;
4
4
  //# sourceMappingURL=instructionAccountMeta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionAccountMeta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,eAAe,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAE9C,wBAAgB,iCAAiC,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,QAAQ,CAwB1G"}
1
+ {"version":3,"file":"instructionAccountMeta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,eAAe,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAiB,MAAM,UAAU,CAAC;AAEnD,wBAAgB,iCAAiC,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,QAAQ,CAoB1G"}
@@ -1,8 +1,7 @@
1
1
  import { InstructionAccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getInstructionAccountTypeParamFragment(scope: Pick<GlobalFragmentScope, 'linkables'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionAccountTypeParamFragment(scope: Pick<RenderScope, 'linkables'> & {
6
5
  allowAccountMeta: boolean;
7
6
  instructionAccountPath: NodePath<InstructionAccountNode>;
8
7
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionAccountTypeParam.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountTypeParam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAKH,QAAQ,EACX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAE9C,wBAAgB,sCAAsC,CAClD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CAC5D,GACF,QAAQ,CAmBV"}
1
+ {"version":3,"file":"instructionAccountTypeParam.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountTypeParam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAKH,QAAQ,EACX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAO,MAAM,UAAU,CAAC;AAEhE,wBAAgB,sCAAsC,CAClD,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG;IACpC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CAC5D,GACF,QAAQ,CAgBV"}
@@ -1,9 +1,8 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getInstructionByteDeltaFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionByteDeltaFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
6
5
  instructionPath: NodePath<InstructionNode>;
7
6
  useAsync: boolean;
8
- }): Fragment;
7
+ }): Fragment | undefined;
9
8
  //# sourceMappingURL=instructionByteDelta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionByteDelta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionByteDelta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,eAAe,EAAU,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IAC/E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAUV"}
1
+ {"version":3,"file":"instructionByteDelta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionByteDelta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,eAAe,EAAU,MAAM,eAAe,CAAC;AAE3G,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAuB,QAAQ,EAA4B,WAAW,EAAO,MAAM,UAAU,CAAC;AAErG,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IACvE,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,GAAG,SAAS,CAUtB"}
@@ -1,11 +1,9 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getInstructionDataFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getInstructionDataFragment(scope: Pick<RenderScope, 'customInstructionData' | 'nameApi'> & {
7
5
  dataArgsManifest: TypeManifest;
8
6
  instructionPath: NodePath<InstructionNode>;
9
7
  size: number | null;
10
- }): Fragment;
8
+ }): Fragment | undefined;
11
9
  //# sourceMappingURL=instructionData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionData.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA8C,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAG9C,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACpE,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAeV"}
1
+ {"version":3,"file":"instructionData.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA8C,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG/D,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IAC5D,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,GAAG,SAAS,CAatB"}
@@ -1,10 +1,8 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getInstructionExtraArgsFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getInstructionExtraArgsFragment(scope: Pick<RenderScope, 'nameApi'> & {
7
5
  extraArgsManifest: TypeManifest;
8
6
  instructionPath: NodePath<InstructionNode>;
9
- }): Fragment;
7
+ }): Fragment | undefined;
10
8
  //# sourceMappingURL=instructionExtraArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionExtraArgs.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionExtraArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAaV"}
1
+ {"version":3,"file":"instructionExtraArgs.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionExtraArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE/D,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAClC,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,GAAG,SAAS,CAQtB"}
@@ -1,14 +1,12 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getInstructionFunctionFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'customInstructionData' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getInstructionFunctionFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'customInstructionData' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
7
5
  dataArgsManifest: TypeManifest;
8
6
  extraArgsManifest: TypeManifest;
9
7
  instructionPath: NodePath<InstructionNode>;
10
8
  renamedArgs: Map<string, string>;
11
9
  resolvedInputs: ResolvedInstructionInput[];
12
10
  useAsync: boolean;
13
- }): Fragment;
11
+ }): Fragment | undefined;
14
12
  //# sourceMappingURL=instructionFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,eAAe,EAAoC,MAAM,eAAe,CAAC;AACtH,OAAO,EAGH,QAAQ,EACR,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAkD,MAAM,UAAU,CAAC;AAMpF,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CACP,mBAAmB,EACnB,gBAAgB,GAAG,uBAAuB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CACnG,GAAG;IACA,gBAAgB,EAAE,YAAY,CAAC;IAC/B,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAmIV"}
1
+ {"version":3,"file":"instructionFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,eAAe,EAAoC,MAAM,eAAe,CAAC;AAEtH,OAAO,EAGH,QAAQ,EAER,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEH,QAAQ,EAMR,WAAW,EACX,YAAY,EAEf,MAAM,UAAU,CAAC;AAOlB,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CACP,WAAW,EACX,gBAAgB,GAAG,uBAAuB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CACnG,GAAG;IACA,gBAAgB,EAAE,YAAY,CAAC;IAC/B,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,GAAG,SAAS,CA2EtB"}
@@ -1,8 +1,7 @@
1
1
  import { OptionalAccountStrategy } from '@codama/nodes';
2
2
  import { ResolvedInstructionInput } from '@codama/visitors-core';
3
- import { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getInstructionInputDefaultFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionInputDefaultFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
6
5
  input: ResolvedInstructionInput;
7
6
  optionalAccountStrategy: OptionalAccountStrategy;
8
7
  useAsync: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputDefault.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputDefault.ts"],"names":[],"mappings":"AACA,OAAO,EAAgD,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAS,MAAM,uBAAuB,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IACvG,KAAK,EAAE,wBAAwB,CAAC;IAChC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAwOV"}
1
+ {"version":3,"file":"instructionInputDefault.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputDefault.ts"],"names":[],"mappings":"AACA,OAAO,EAAgD,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEtG,OAAO,EAAQ,wBAAwB,EAAS,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAGH,QAAQ,EAKR,WAAW,EACd,MAAM,UAAU,CAAC;AAElB,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC/F,KAAK,EAAE,wBAAwB,CAAC;IAChC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAiPV"}
@@ -1,8 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getInstructionInputResolvedFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionInputResolvedFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
6
5
  instructionPath: NodePath<InstructionNode>;
7
6
  resolvedInputs: ResolvedInstructionInput[];
8
7
  useAsync: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputResolved.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputResolved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAwC,MAAM,eAAe,CAAC;AACjG,OAAO,EAAuB,QAAQ,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAG9D,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IACvG,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA0BV"}
1
+ {"version":3,"file":"instructionInputResolved.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputResolved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAwC,MAAM,eAAe,CAAC;AAEjG,OAAO,EAAuB,QAAQ,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,OAAO,EAAE,QAAQ,EAA4B,WAAW,EAAE,MAAM,UAAU,CAAC;AAG3E,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC/F,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAwBV"}
@@ -1,9 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getInstructionInputTypeFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'customInstructionData' | 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getInstructionInputTypeFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'customInstructionData' | 'nameApi'> & {
7
5
  dataArgsManifest: TypeManifest;
8
6
  instructionPath: NodePath<InstructionNode>;
9
7
  renamedArgs: Map<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputType.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAIlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,QAAQ,EAGR,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAkD,MAAM,UAAU,CAAC;AAEpF,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACvF,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA6BV"}
1
+ {"version":3,"file":"instructionInputType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputType.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEH,QAAQ,EAIR,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,QAAQ,EAMR,WAAW,EACX,YAAY,EAEf,MAAM,UAAU,CAAC;AAElB,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,GAAG,uBAAuB,GAAG,SAAS,CAAC,GAAG;IAC/E,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA6BV"}
@@ -0,0 +1,9 @@
1
+ import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionPageFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'customInstructionData' | 'getImportFrom' | 'linkables' | 'nameApi' | 'typeManifestVisitor'> & {
5
+ instructionPath: NodePath<InstructionNode>;
6
+ resolvedInputs: ResolvedInstructionInput[];
7
+ size: number | null;
8
+ }): Fragment;
9
+ //# sourceMappingURL=instructionPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructionPage.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionPage.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,eAAe,EAA8C,MAAM,eAAe,CAAC;AACxH,OAAO,EAGH,QAAQ,EACR,wBAAwB,EAE3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AAQjE,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CACP,WAAW,EACX,gBAAgB,GAAG,uBAAuB,GAAG,eAAe,GAAG,WAAW,GAAG,SAAS,GAAG,qBAAqB,CACjH,GAAG;IACA,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAoCV"}
@@ -1,9 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
6
- export declare function getInstructionParseFunctionFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
3
+ import { Fragment, RenderScope, TypeManifest } from '../utils';
4
+ export declare function getInstructionParseFunctionFragment(scope: Pick<RenderScope, 'customInstructionData' | 'nameApi'> & {
7
5
  dataArgsManifest: TypeManifest;
8
6
  instructionPath: NodePath<InstructionNode>;
9
7
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionParseFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionParseFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACpE,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CA2CV"}
1
+ {"version":3,"file":"instructionParseFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionParseFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAgD,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAErG,OAAO,EAEH,QAAQ,EAIR,WAAW,EACX,YAAY,EAEf,MAAM,UAAU,CAAC;AAElB,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IAC5D,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAOV"}
@@ -1,9 +1,8 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getInstructionRemainingAccountsFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionRemainingAccountsFragment(scope: Pick<RenderScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
6
5
  instructionPath: NodePath<InstructionNode>;
7
6
  useAsync: boolean;
8
- }): Fragment;
7
+ }): Fragment | undefined;
9
8
  //# sourceMappingURL=instructionRemainingAccounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionRemainingAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionRemainingAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D,wBAAgB,uCAAuC,CACnD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IAC/E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAUV"}
1
+ {"version":3,"file":"instructionRemainingAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionRemainingAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAGH,QAAQ,EAGR,WAAW,EAEd,MAAM,UAAU,CAAC;AAElB,wBAAgB,uCAAuC,CACnD,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IACvE,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,GAAG,SAAS,CAatB"}
@@ -1,8 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getInstructionTypeFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'linkables' | 'nameApi'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getInstructionTypeFragment(scope: Pick<RenderScope, 'customInstructionData' | 'linkables' | 'nameApi'> & {
6
5
  instructionPath: NodePath<InstructionNode>;
7
6
  }): Fragment;
8
7
  //# sourceMappingURL=instructionType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAI1E,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAClF,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAyDV"}
1
+ {"version":3,"file":"instructionType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,EAAE,QAAQ,EAA4B,WAAW,EAAO,MAAM,UAAU,CAAC;AAIhF,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,uBAAuB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAC1E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CA+CV"}
@@ -1,8 +1,7 @@
1
1
  import { PdaNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
5
- export declare function getPdaFunctionFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getPdaFunctionFragment(scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
6
5
  pdaPath: NodePath<PdaNode>;
7
6
  }): Fragment;
8
7
  //# sourceMappingURL=pdaFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdaFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/pdaFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAgD,QAAQ,EAAS,MAAM,uBAAuB,CAAC;AAEtG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B,GACF,QAAQ,CAmCV"}
1
+ {"version":3,"file":"pdaFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/pdaFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,OAAO,EAAe,MAAM,eAAe,CAAC;AACtF,OAAO,EAAgD,QAAQ,EAAS,MAAM,uBAAuB,CAAC;AAEtG,OAAO,EAAE,QAAQ,EAAiD,WAAW,EAAO,MAAM,UAAU,CAAC;AAErG,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B,GACF,QAAQ,CAOV"}
@@ -0,0 +1,7 @@
1
+ import { PdaNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
3
+ import { Fragment, RenderScope } from '../utils';
4
+ export declare function getPdaPageFragment(scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
5
+ pdaPath: NodePath<PdaNode>;
6
+ }): Fragment;
7
+ //# sourceMappingURL=pdaPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdaPage.d.ts","sourceRoot":"","sources":["../../../src/fragments/pdaPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAA2B,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGjD,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B,GACF,QAAQ,CAMV"}
@@ -1,7 +1,6 @@
1
1
  import { ProgramNode } from '@codama/nodes';
2
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
4
- export declare function getProgramAccountsFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
2
+ import { Fragment, RenderScope } from '../utils';
3
+ export declare function getProgramAccountsFragment(scope: Pick<RenderScope, 'nameApi' | 'typeManifestVisitor'> & {
5
4
  programNode: ProgramNode;
6
- }): Fragment;
5
+ }): Fragment | undefined;
7
6
  //# sourceMappingURL=programAccounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"programAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/programAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAG9D,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAMV"}
1
+ {"version":3,"file":"programAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/programAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AAInE,OAAO,EAAsB,QAAQ,EAA4B,WAAW,EAAE,MAAM,UAAU,CAAC;AAG/F,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAC1D,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,GAAG,SAAS,CAMtB"}
@@ -0,0 +1,6 @@
1
+ import { ProgramNode } from '@codama/nodes';
2
+ import { Fragment, RenderScope } from '../utils';
3
+ export declare function getProgramConstantFragment(scope: Pick<RenderScope, 'nameApi'> & {
4
+ programNode: ProgramNode;
5
+ }): Fragment;
6
+ //# sourceMappingURL=programConstant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"programConstant.d.ts","sourceRoot":"","sources":["../../../src/fragments/programConstant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAsB,QAAQ,EAAY,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/E,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,GACnE,QAAQ,CAQV"}
@@ -1,7 +1,6 @@
1
1
  import { ProgramNode } from '@codama/nodes';
2
- import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
4
- export declare function getProgramInstructionsFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'renderParentInstructions' | 'typeManifestVisitor'> & {
2
+ import { Fragment, RenderScope } from '../utils';
3
+ export declare function getProgramInstructionsFragment(scope: Pick<RenderScope, 'nameApi' | 'renderParentInstructions' | 'typeManifestVisitor'> & {
5
4
  programNode: ProgramNode;
6
- }): Fragment;
5
+ }): Fragment | undefined;
7
6
  //# sourceMappingURL=programInstructions.d.ts.map