@codama/renderers-js 1.0.1 → 1.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.
Files changed (38) hide show
  1. package/dist/index.node.cjs +89 -72
  2. package/dist/index.node.cjs.map +1 -1
  3. package/dist/index.node.mjs +91 -74
  4. package/dist/index.node.mjs.map +1 -1
  5. package/dist/types/fragments/accountFetchHelpers.d.ts +2 -1
  6. package/dist/types/fragments/accountFetchHelpers.d.ts.map +1 -1
  7. package/dist/types/fragments/accountPdaHelpers.d.ts +3 -3
  8. package/dist/types/fragments/accountPdaHelpers.d.ts.map +1 -1
  9. package/dist/types/fragments/accountSizeHelpers.d.ts +2 -1
  10. package/dist/types/fragments/accountSizeHelpers.d.ts.map +1 -1
  11. package/dist/types/fragments/accountType.d.ts +2 -1
  12. package/dist/types/fragments/accountType.d.ts.map +1 -1
  13. package/dist/types/fragments/instructionAccountTypeParam.d.ts +3 -4
  14. package/dist/types/fragments/instructionAccountTypeParam.d.ts.map +1 -1
  15. package/dist/types/fragments/instructionByteDelta.d.ts +2 -1
  16. package/dist/types/fragments/instructionByteDelta.d.ts.map +1 -1
  17. package/dist/types/fragments/instructionData.d.ts +2 -1
  18. package/dist/types/fragments/instructionData.d.ts.map +1 -1
  19. package/dist/types/fragments/instructionExtraArgs.d.ts +2 -1
  20. package/dist/types/fragments/instructionExtraArgs.d.ts.map +1 -1
  21. package/dist/types/fragments/instructionFunction.d.ts +3 -4
  22. package/dist/types/fragments/instructionFunction.d.ts.map +1 -1
  23. package/dist/types/fragments/instructionInputResolved.d.ts +2 -2
  24. package/dist/types/fragments/instructionInputResolved.d.ts.map +1 -1
  25. package/dist/types/fragments/instructionInputType.d.ts +2 -2
  26. package/dist/types/fragments/instructionInputType.d.ts.map +1 -1
  27. package/dist/types/fragments/instructionParseFunction.d.ts +3 -3
  28. package/dist/types/fragments/instructionParseFunction.d.ts.map +1 -1
  29. package/dist/types/fragments/instructionRemainingAccounts.d.ts +2 -1
  30. package/dist/types/fragments/instructionRemainingAccounts.d.ts.map +1 -1
  31. package/dist/types/fragments/instructionType.d.ts +3 -3
  32. package/dist/types/fragments/instructionType.d.ts.map +1 -1
  33. package/dist/types/fragments/pdaFunction.d.ts +3 -3
  34. package/dist/types/fragments/pdaFunction.d.ts.map +1 -1
  35. package/dist/types/getRenderMapVisitor.d.ts.map +1 -1
  36. package/dist/types/getTypeManifestVisitor.d.ts +2 -5
  37. package/dist/types/getTypeManifestVisitor.d.ts.map +1 -1
  38. package/package.json +6 -6
@@ -1,9 +1,10 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { TypeManifest } from '../TypeManifest';
4
5
  import { Fragment } from './common';
5
6
  export declare function getAccountFetchHelpersFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
6
- accountNode: AccountNode;
7
+ accountPath: NodePath<AccountNode>;
7
8
  typeManifest: TypeManifest;
8
9
  }): Fragment;
9
10
  //# sourceMappingURL=accountFetchHelpers.d.ts.map
@@ -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;AAE5C,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,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAkCV"}
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,10 +1,10 @@
1
- import { AccountNode, ProgramNode } from '@codama/nodes';
1
+ import { AccountNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import type { TypeManifest } from '../TypeManifest';
4
5
  import { Fragment } from './common';
5
6
  export declare function getAccountPdaHelpersFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'linkables' | 'nameApi'> & {
6
- accountNode: AccountNode;
7
- programNode: ProgramNode;
7
+ accountPath: NodePath<AccountNode>;
8
8
  typeManifest: TypeManifest;
9
9
  }): Fragment;
10
10
  //# 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,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvE,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,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAuCV"}
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,7 +1,8 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { Fragment } from './common';
4
5
  export declare function getAccountSizeHelpersFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
5
- accountNode: AccountNode;
6
+ accountPath: NodePath<AccountNode>;
6
7
  }): Fragment;
7
8
  //# 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;AAE5C,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,WAAW,CAAA;CAAE,GAC3E,QAAQ,CAUV"}
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,9 +1,10 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { TypeManifest } from '../TypeManifest';
4
5
  import { Fragment } from './common';
5
6
  export declare function getAccountTypeFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
6
- accountNode: AccountNode;
7
+ accountPath: NodePath<AccountNode>;
7
8
  typeManifest: TypeManifest;
8
9
  }): Fragment;
9
10
  //# 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,EAAE,MAAM,eAAe,CAAC;AAE5C,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,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAYV"}
1
+ {"version":3,"file":"accountType.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountType.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,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,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAaV"}
@@ -1,10 +1,9 @@
1
- import { InstructionAccountNode, InstructionNode, ProgramNode } from '@codama/nodes';
1
+ import { InstructionAccountNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { Fragment } from './common';
4
5
  export declare function getInstructionAccountTypeParamFragment(scope: Pick<GlobalFragmentScope, 'linkables'> & {
5
6
  allowAccountMeta: boolean;
6
- instructionAccountNode: InstructionAccountNode;
7
- instructionNode: InstructionNode;
8
- programNode: ProgramNode;
7
+ instructionAccountPath: NodePath<InstructionAccountNode>;
9
8
  }): Fragment;
10
9
  //# sourceMappingURL=instructionAccountTypeParam.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionAccountTypeParam.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountTypeParam.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EAEtB,eAAe,EAEf,WAAW,EACd,MAAM,eAAe,CAAC;AAGvB,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,sBAAsB,CAAC;IAC/C,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAgBV"}
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,8 +1,9 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { Fragment } from './common';
4
5
  export declare function getInstructionByteDeltaFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
5
- instructionNode: InstructionNode;
6
+ instructionPath: NodePath<InstructionNode>;
6
7
  useAsync: boolean;
7
8
  }): Fragment;
8
9
  //# 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;AAE3G,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,eAAe,CAAC;IACjC,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;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,9 +1,10 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { TypeManifest } from '../TypeManifest';
4
5
  import { Fragment } from './common';
5
6
  export declare function getInstructionDataFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
6
7
  dataArgsManifest: TypeManifest;
7
- instructionNode: InstructionNode;
8
+ instructionPath: NodePath<InstructionNode>;
8
9
  }): Fragment;
9
10
  //# 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,EAAE,MAAM,eAAe,CAAC;AAEhD,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,eAAe,CAAC;CACpC,GACF,QAAQ,CAYV"}
1
+ {"version":3,"file":"instructionData.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,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;CAC9C,GACF,QAAQ,CAaV"}
@@ -1,9 +1,10 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { TypeManifest } from '../TypeManifest';
4
5
  import { Fragment } from './common';
5
6
  export declare function getInstructionExtraArgsFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
6
7
  extraArgsManifest: TypeManifest;
7
- instructionNode: InstructionNode;
8
+ instructionPath: NodePath<InstructionNode>;
8
9
  }): Fragment;
9
10
  //# 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;AAEhD,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,eAAe,CAAC;CACpC,GACF,QAAQ,CAYV"}
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,13 +1,12 @@
1
- import { InstructionNode, ProgramNode } from '@codama/nodes';
2
- import { ResolvedInstructionInput } from '@codama/visitors-core';
1
+ import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
5
  import { Fragment } from './common';
6
6
  export declare function getInstructionFunctionFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'customInstructionData' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
7
7
  dataArgsManifest: TypeManifest;
8
8
  extraArgsManifest: TypeManifest;
9
- instructionNode: InstructionNode;
10
- programNode: ProgramNode;
9
+ instructionPath: NodePath<InstructionNode>;
11
10
  renamedArgs: Map<string, string>;
12
11
  resolvedInputs: ResolvedInstructionInput[];
13
12
  useAsync: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,eAAe,EAIf,WAAW,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,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,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAkIV"}
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,9 +1,9 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
- import { ResolvedInstructionInput } from '@codama/visitors-core';
2
+ import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { Fragment } from './common';
5
5
  export declare function getInstructionInputResolvedFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
6
- instructionNode: InstructionNode;
6
+ instructionPath: NodePath<InstructionNode>;
7
7
  resolvedInputs: ResolvedInstructionInput[];
8
8
  useAsync: boolean;
9
9
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputResolved.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputResolved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAU,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,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,eAAe,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAyBV"}
1
+ {"version":3,"file":"instructionInputResolved.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputResolved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAU,MAAM,eAAe,CAAC;AACnE,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,11 +1,11 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
- import { ResolvedInstructionInput } from '@codama/visitors-core';
2
+ import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
5
  import { Fragment } from './common';
6
6
  export declare function getInstructionInputTypeFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'customInstructionData' | 'nameApi'> & {
7
7
  dataArgsManifest: TypeManifest;
8
- instructionNode: InstructionNode;
8
+ instructionPath: NodePath<InstructionNode>;
9
9
  renamedArgs: Map<string, string>;
10
10
  resolvedInputs: ResolvedInstructionInput[];
11
11
  useAsync: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputType.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAGH,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,eAAe,CAAC;IACjC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA4BV"}
1
+ {"version":3,"file":"instructionInputType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputType.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,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,10 +1,10 @@
1
- import { InstructionNode, ProgramNode } from '@codama/nodes';
1
+ import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { TypeManifest } from '../TypeManifest';
4
5
  import { Fragment } from './common';
5
6
  export declare function getInstructionParseFunctionFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
6
7
  dataArgsManifest: TypeManifest;
7
- instructionNode: InstructionNode;
8
- programNode: ProgramNode;
8
+ instructionPath: NodePath<InstructionNode>;
9
9
  }): Fragment;
10
10
  //# sourceMappingURL=instructionParseFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionParseFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionParseFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE7D,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,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAwCV"}
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,CA0CV"}
@@ -1,8 +1,9 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { Fragment } from './common';
4
5
  export declare function getInstructionRemainingAccountsFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
5
- instructionNode: InstructionNode;
6
+ instructionPath: NodePath<InstructionNode>;
6
7
  useAsync: boolean;
7
8
  }): Fragment;
8
9
  //# 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;AAEvB,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,eAAe,CAAC;IACjC,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,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,8 +1,8 @@
1
- import { InstructionNode, ProgramNode } from '@codama/nodes';
1
+ import { InstructionNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { Fragment } from './common';
4
5
  export declare function getInstructionTypeFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'linkables' | 'nameApi'> & {
5
- instructionNode: InstructionNode;
6
- programNode: ProgramNode;
6
+ instructionPath: NodePath<InstructionNode>;
7
7
  }): Fragment;
8
8
  //# 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,WAAW,EAAE,MAAM,eAAe,CAAC;AAEzE,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,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAsDV"}
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,CAwDV"}
@@ -1,8 +1,8 @@
1
- import { PdaNode, ProgramNode } from '@codama/nodes';
1
+ import { PdaNode } from '@codama/nodes';
2
+ import { NodePath } from '@codama/visitors-core';
2
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
4
  import { Fragment } from './common';
4
5
  export declare function getPdaFunctionFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
5
- pdaNode: PdaNode;
6
- programNode: ProgramNode;
6
+ pdaPath: NodePath<PdaNode>;
7
7
  }): Fragment;
8
8
  //# 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,WAAW,EAAE,MAAM,eAAe,CAAC;AAG3E,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,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAgCV"}
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,CAkCV"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRenderMapVisitor.d.ts","sourceRoot":"","sources":["../../src/getRenderMapVisitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,eAAe,EAUlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAGH,kBAAkB,EAKrB,MAAM,uBAAuB,CAAC;AAsB/B,OAAO,EAAwD,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAErH,OAAO,EAAyC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtG,OAAO,EACH,iBAAiB,EAGjB,qBAAqB,EACrB,aAAa,EAEb,uBAAuB,EAE1B,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,qBAAqB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,aAAa,EAAE,qBAAqB,CAAC;IACrC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,mBAAwB,sJAiWpE"}
1
+ {"version":3,"file":"getRenderMapVisitor.d.ts","sourceRoot":"","sources":["../../src/getRenderMapVisitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,eAAe,EAUlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAIH,kBAAkB,EAOrB,MAAM,uBAAuB,CAAC;AAsB/B,OAAO,EAA0B,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAyC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtG,OAAO,EACH,iBAAiB,EAGjB,qBAAqB,EACrB,aAAa,EAEb,uBAAuB,EAE1B,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,qBAAqB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,aAAa,EAAE,qBAAqB,CAAC;IACrC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,mBAAwB,sJA8VpE"}
@@ -1,5 +1,5 @@
1
1
  import { CamelCaseString } from '@codama/nodes';
2
- import { LinkableDictionary, Visitor } from '@codama/visitors-core';
2
+ import { LinkableDictionary, NodeStack, Visitor } from '@codama/visitors-core';
3
3
  import { NameApi } from './nameTransformers';
4
4
  import { TypeManifest } from './TypeManifest';
5
5
  import { GetImportFromFunction, ParsedCustomDataOptions } from './utils';
@@ -11,9 +11,6 @@ export declare function getTypeManifestVisitor(input: {
11
11
  linkables: LinkableDictionary;
12
12
  nameApi: NameApi;
13
13
  nonScalarEnums: CamelCaseString[];
14
- parentName?: {
15
- loose: string;
16
- strict: string;
17
- };
14
+ stack?: NodeStack;
18
15
  }): Visitor<TypeManifest, "numberValueNode" | "arrayValueNode" | "booleanValueNode" | "bytesValueNode" | "constantValueNode" | "enumValueNode" | "mapValueNode" | "publicKeyValueNode" | "setValueNode" | "someValueNode" | "stringValueNode" | "structValueNode" | "tupleValueNode" | "definedTypeNode" | "definedTypeLinkNode" | "enumEmptyVariantTypeNode" | "enumStructVariantTypeNode" | "enumTupleVariantTypeNode" | "amountTypeNode" | "arrayTypeNode" | "booleanTypeNode" | "dateTimeTypeNode" | "enumTypeNode" | "fixedSizeTypeNode" | "hiddenPrefixTypeNode" | "hiddenSuffixTypeNode" | "mapTypeNode" | "numberTypeNode" | "optionTypeNode" | "postOffsetTypeNode" | "preOffsetTypeNode" | "remainderOptionTypeNode" | "sentinelTypeNode" | "setTypeNode" | "sizePrefixTypeNode" | "solAmountTypeNode" | "stringTypeNode" | "structTypeNode" | "tupleTypeNode" | "zeroableOptionTypeNode" | "mapEntryValueNode" | "structFieldValueNode" | "accountNode" | "instructionNode" | "structFieldTypeNode" | "noneValueNode" | "bytesTypeNode" | "publicKeyTypeNode">;
19
16
  //# sourceMappingURL=getTypeManifestVisitor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTypeManifestVisitor.d.ts","sourceRoot":"","sources":["../../src/getTypeManifestVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,eAAe,EAYlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,kBAAkB,EAMlB,OAAO,EACV,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAkB,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAA8B,qBAAqB,EAAc,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEjH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC1C,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,aAAa,EAAE,qBAAqB,CAAC;IACrC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAClD,ygCAu3BA"}
1
+ {"version":3,"file":"getTypeManifestVisitor.d.ts","sourceRoot":"","sources":["../../src/getTypeManifestVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,eAAe,EAYlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAGH,kBAAkB,EAClB,SAAS,EAKT,OAAO,EACV,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAkB,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAA8B,qBAAqB,EAAc,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEjH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC1C,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,aAAa,EAAE,qBAAqB,CAAC;IACrC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,ygCA03BA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codama/renderers-js",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "JavaScript renderer compatible with the Solana web3.js library",
5
5
  "exports": {
6
6
  "types": "./dist/types/index.d.ts",
@@ -32,11 +32,11 @@
32
32
  "@solana/codecs-strings": "rc",
33
33
  "nunjucks": "^3.2.4",
34
34
  "prettier": "^3.3.3",
35
- "@codama/errors": "1.0.0",
36
- "@codama/nodes": "1.0.0",
37
- "@codama/nodes-from-anchor": "1.0.0",
38
- "@codama/renderers-core": "1.0.0",
39
- "@codama/visitors-core": "1.0.0"
35
+ "@codama/errors": "1.1.0",
36
+ "@codama/nodes": "1.1.0",
37
+ "@codama/nodes-from-anchor": "1.0.1",
38
+ "@codama/renderers-core": "1.0.1",
39
+ "@codama/visitors-core": "1.1.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/nunjucks": "^3.2.6"