@ankhorage/runtime 0.2.3 → 0.3.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.
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "id": "npm",
14
14
  "label": "npm",
15
- "value": "v0.2.2",
15
+ "value": "v0.2.4",
16
16
  "color": "cb3837"
17
17
  },
18
18
  {
@@ -77,12 +77,6 @@
77
77
  "dependencies": [],
78
78
  "exports": ["default"]
79
79
  },
80
- {
81
- "path": "src/appExtensionRegistry.ts",
82
- "isEntrypoint": false,
83
- "dependencies": ["src/componentRegistry.ts"],
84
- "exports": ["APP_EXTENSION_COMPONENT_REGISTRY"]
85
- },
86
80
  {
87
81
  "path": "src/componentRegistry.ts",
88
82
  "isEntrypoint": false,
@@ -94,7 +88,6 @@
94
88
  "isEntrypoint": true,
95
89
  "dependencies": [],
96
90
  "exports": [
97
- "APP_EXTENSION_COMPONENT_REGISTRY",
98
91
  "ComponentRegistry",
99
92
  "composeRuntimeNodePropsResolver",
100
93
  "composeRuntimeRendererWrapNode",
@@ -109,7 +102,6 @@
109
102
  "createRuntimeManifest",
110
103
  "createRuntimeMemoryStateAdapter",
111
104
  "createRuntimeScreenLoaderRequestKey",
112
- "DEFAULT_COMPONENT_REGISTRY",
113
105
  "defineRuntimeAction",
114
106
  "defineRuntimeAdapter",
115
107
  "defineRuntimeBinding",
@@ -185,7 +177,6 @@
185
177
  "RuntimeScreenOperationLoaderState",
186
178
  "RuntimeScreenProps",
187
179
  "shouldRenderRuntimeRepeatEmptyState",
188
- "SURFACE_COMPONENT_REGISTRY",
189
180
  "useManifest",
190
181
  "useManifestContext",
191
182
  "useOptionalManifestContext",
@@ -193,8 +184,7 @@
193
184
  "useRuntimeRendererConfig",
194
185
  "useRuntimeScreenOperationLoaders",
195
186
  "validateRuntimeBindingOperationRef",
196
- "wrapRuntimeEventProps",
197
- "ZORA_COMPONENT_REGISTRY"
187
+ "wrapRuntimeEventProps"
198
188
  ]
199
189
  },
200
190
  {
@@ -212,20 +202,14 @@
212
202
  {
213
203
  "path": "src/registry.test.ts",
214
204
  "isEntrypoint": false,
215
- "dependencies": ["src/componentRegistry.ts"],
205
+ "dependencies": ["src/registry.tsx"],
216
206
  "exports": []
217
207
  },
218
208
  {
219
209
  "path": "src/registry.tsx",
220
210
  "isEntrypoint": false,
221
- "dependencies": ["src/appExtensionRegistry.ts", "src/componentRegistry.ts"],
222
- "exports": [
223
- "APP_EXTENSION_COMPONENT_REGISTRY",
224
- "ComponentRegistry",
225
- "createComponentRegistry",
226
- "SURFACE_COMPONENT_REGISTRY",
227
- "ZORA_COMPONENT_REGISTRY"
228
- ]
211
+ "dependencies": [],
212
+ "exports": ["ComponentRegistry", "createComponentRegistry"]
229
213
  },
230
214
  {
231
215
  "path": "src/rendering.test.ts",
@@ -567,24 +551,6 @@
567
551
  }
568
552
  ],
569
553
  "exports": [
570
- {
571
- "name": "APP_EXTENSION_COMPONENT_REGISTRY",
572
- "description": null,
573
- "isReadme": false,
574
- "examples": [],
575
- "kind": "value",
576
- "modulePath": "src/appExtensionRegistry.ts",
577
- "sourceLocation": {
578
- "filePath": "src/appExtensionRegistry.ts",
579
- "line": 3,
580
- "column": 14
581
- },
582
- "exportPaths": ["src/index.ts"],
583
- "relatedSymbols": [],
584
- "signatures": [],
585
- "members": [],
586
- "structuredRows": []
587
- },
588
554
  {
589
555
  "name": "ComponentRegistry",
590
556
  "description": null,
@@ -724,19 +690,19 @@
724
690
  "column": 1
725
691
  },
726
692
  "exportPaths": ["src/index.ts"],
727
- "relatedSymbols": ["ComponentRegistry"],
693
+ "relatedSymbols": [],
728
694
  "signatures": [
729
695
  {
730
- "label": "(registries?: readonly ComponentRegistry[]) => ComponentRegistry",
696
+ "label": "(registries?: readonly Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>>[]) => Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>>",
731
697
  "parameters": [
732
698
  {
733
699
  "name": "registries",
734
- "type": "readonly ComponentRegistry[]",
700
+ "type": "readonly Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>>[]",
735
701
  "required": false,
736
702
  "description": null
737
703
  }
738
704
  ],
739
- "returnType": "ComponentRegistry",
705
+ "returnType": "Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>>",
740
706
  "returnDescription": null
741
707
  }
742
708
  ],
@@ -3314,7 +3280,7 @@
3314
3280
  "modulePath": "src/RuntimeRenderer.tsx",
3315
3281
  "sourceLocation": {
3316
3282
  "filePath": "src/RuntimeRenderer.tsx",
3317
- "line": 68,
3283
+ "line": 67,
3318
3284
  "column": 1
3319
3285
  },
3320
3286
  "exportPaths": ["src/index.ts"],
@@ -3351,7 +3317,6 @@
3351
3317
  },
3352
3318
  "exportPaths": ["src/index.ts"],
3353
3319
  "relatedSymbols": [
3354
- "ComponentRegistry",
3355
3320
  "RuntimeActionHandler",
3356
3321
  "RuntimeActionHandlers",
3357
3322
  "RuntimeBindingOperationExecutor",
@@ -3441,7 +3406,7 @@
3441
3406
  {
3442
3407
  "name": "registry",
3443
3408
  "kind": "property",
3444
- "type": "ComponentRegistry | undefined",
3409
+ "type": "Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>> | undefined",
3445
3410
  "required": false,
3446
3411
  "description": null
3447
3412
  },
@@ -3517,12 +3482,11 @@
3517
3482
  "modulePath": "src/RuntimeRenderer.tsx",
3518
3483
  "sourceLocation": {
3519
3484
  "filePath": "src/RuntimeRenderer.tsx",
3520
- "line": 50,
3485
+ "line": 49,
3521
3486
  "column": 1
3522
3487
  },
3523
3488
  "exportPaths": ["src/index.ts"],
3524
3489
  "relatedSymbols": [
3525
- "ComponentRegistry",
3526
3490
  "RuntimeActionHandler",
3527
3491
  "RuntimeBindingOperationExecutor",
3528
3492
  "RuntimeRendererConfig",
@@ -3617,7 +3581,7 @@
3617
3581
  {
3618
3582
  "name": "registry",
3619
3583
  "kind": "property",
3620
- "type": "ComponentRegistry | undefined",
3584
+ "type": "Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>> | undefined",
3621
3585
  "required": false,
3622
3586
  "description": null
3623
3587
  },
@@ -3843,7 +3807,7 @@
3843
3807
  "column": 1
3844
3808
  },
3845
3809
  "exportPaths": ["src/index.ts"],
3846
- "relatedSymbols": ["ComponentRegistry"],
3810
+ "relatedSymbols": [],
3847
3811
  "signatures": [],
3848
3812
  "members": [
3849
3813
  {
@@ -3856,7 +3820,7 @@
3856
3820
  {
3857
3821
  "name": "registry",
3858
3822
  "kind": "property",
3859
- "type": "ComponentRegistry | undefined",
3823
+ "type": "Readonly<Record<string, React.ElementType<any, keyof React.JSX.IntrinsicElements>>> | undefined",
3860
3824
  "required": false,
3861
3825
  "description": null
3862
3826
  },
@@ -3909,24 +3873,6 @@
3909
3873
  "members": [],
3910
3874
  "structuredRows": []
3911
3875
  },
3912
- {
3913
- "name": "SURFACE_COMPONENT_REGISTRY",
3914
- "description": null,
3915
- "isReadme": false,
3916
- "examples": [],
3917
- "kind": "value",
3918
- "modulePath": "src/registry.tsx",
3919
- "sourceLocation": {
3920
- "filePath": "src/registry.tsx",
3921
- "line": 51,
3922
- "column": 14
3923
- },
3924
- "exportPaths": ["src/index.ts"],
3925
- "relatedSymbols": [],
3926
- "signatures": [],
3927
- "members": [],
3928
- "structuredRows": []
3929
- },
3930
3876
  {
3931
3877
  "name": "useManifest",
3932
3878
  "description": null,
@@ -4165,24 +4111,6 @@
4165
4111
  ],
4166
4112
  "members": [],
4167
4113
  "structuredRows": []
4168
- },
4169
- {
4170
- "name": "ZORA_COMPONENT_REGISTRY",
4171
- "description": null,
4172
- "isReadme": false,
4173
- "examples": [],
4174
- "kind": "value",
4175
- "modulePath": "src/registry.tsx",
4176
- "sourceLocation": {
4177
- "filePath": "src/registry.tsx",
4178
- "line": 95,
4179
- "column": 14
4180
- },
4181
- "exportPaths": ["src/index.ts"],
4182
- "relatedSymbols": [],
4183
- "signatures": [],
4184
- "members": [],
4185
- "structuredRows": []
4186
4114
  }
4187
4115
  ],
4188
4116
  "components": [
@@ -4260,7 +4188,7 @@
4260
4188
  "modulePath": "src/RuntimeRenderer.tsx",
4261
4189
  "sourceLocation": {
4262
4190
  "filePath": "src/RuntimeRenderer.tsx",
4263
- "line": 68,
4191
+ "line": 67,
4264
4192
  "column": 1
4265
4193
  },
4266
4194
  "exportPaths": ["src/index.ts"],
@@ -4475,7 +4403,7 @@
4475
4403
  "description": null,
4476
4404
  "sourceLocation": {
4477
4405
  "filePath": "src/registry.test.ts",
4478
- "line": 12,
4406
+ "line": 6,
4479
4407
  "column": 1
4480
4408
  }
4481
4409
  },
@@ -4484,25 +4412,7 @@
4484
4412
  "description": null,
4485
4413
  "sourceLocation": {
4486
4414
  "filePath": "src/registry.test.ts",
4487
- "line": 16,
4488
- "column": 1
4489
- }
4490
- },
4491
- {
4492
- "name": "getDirectZoraManifestNodeNames",
4493
- "description": null,
4494
- "sourceLocation": {
4495
- "filePath": "src/registry.test.ts",
4496
- "line": 20,
4497
- "column": 1
4498
- }
4499
- },
4500
- {
4501
- "name": "createZoraRegistryEntries",
4502
- "description": null,
4503
- "sourceLocation": {
4504
- "filePath": "src/registry.tsx",
4505
- "line": 53,
4415
+ "line": 10,
4506
4416
  "column": 1
4507
4417
  }
4508
4418
  },
@@ -4538,7 +4448,7 @@
4538
4448
  "description": null,
4539
4449
  "sourceLocation": {
4540
4450
  "filePath": "src/rendering.test.ts",
4541
- "line": 48,
4451
+ "line": 47,
4542
4452
  "column": 11
4543
4453
  }
4544
4454
  },
@@ -4547,7 +4457,7 @@
4547
4457
  "description": null,
4548
4458
  "sourceLocation": {
4549
4459
  "filePath": "src/rendering.ts",
4550
- "line": 5,
4460
+ "line": 7,
4551
4461
  "column": 1
4552
4462
  }
4553
4463
  },
@@ -4556,7 +4466,7 @@
4556
4466
  "description": null,
4557
4467
  "sourceLocation": {
4558
4468
  "filePath": "src/rendering.ts",
4559
- "line": 14,
4469
+ "line": 15,
4560
4470
  "column": 1
4561
4471
  }
4562
4472
  },
@@ -4565,7 +4475,7 @@
4565
4475
  "description": null,
4566
4476
  "sourceLocation": {
4567
4477
  "filePath": "src/rendering.ts",
4568
- "line": 27,
4478
+ "line": 28,
4569
4479
  "column": 1
4570
4480
  }
4571
4481
  },
@@ -5447,7 +5357,7 @@
5447
5357
  "description": null,
5448
5358
  "sourceLocation": {
5449
5359
  "filePath": "src/RuntimeRenderer.tsx",
5450
- "line": 68,
5360
+ "line": 67,
5451
5361
  "column": 1
5452
5362
  }
5453
5363
  },
@@ -6453,11 +6363,6 @@
6453
6363
  ],
6454
6364
  "graphs": {
6455
6365
  "imports": [
6456
- {
6457
- "fromPath": "src/appExtensionRegistry.ts",
6458
- "toPath": "src/componentRegistry.ts",
6459
- "sourcePath": "src/appExtensionRegistry.ts"
6460
- },
6461
6366
  {
6462
6367
  "fromPath": "src/index.ts",
6463
6368
  "toPath": "src/ManifestContext.tsx",
@@ -6540,14 +6445,9 @@
6540
6445
  },
6541
6446
  {
6542
6447
  "fromPath": "src/registry.test.ts",
6543
- "toPath": "src/componentRegistry.ts",
6448
+ "toPath": "src/registry.tsx",
6544
6449
  "sourcePath": "src/registry.test.ts"
6545
6450
  },
6546
- {
6547
- "fromPath": "src/registry.tsx",
6548
- "toPath": "src/appExtensionRegistry.ts",
6549
- "sourcePath": "src/registry.tsx"
6550
- },
6551
6451
  {
6552
6452
  "fromPath": "src/registry.tsx",
6553
6453
  "toPath": "src/componentRegistry.ts",
@@ -6876,18 +6776,6 @@
6876
6776
  "callExpression": "createRuntimeManifest",
6877
6777
  "sourcePath": "src/readme-usage.ts"
6878
6778
  },
6879
- {
6880
- "fromSymbol": "src/registry.test.ts",
6881
- "toSymbol": "readFileSync",
6882
- "callExpression": "readFileSync",
6883
- "sourcePath": "src/registry.test.ts"
6884
- },
6885
- {
6886
- "fromSymbol": "src/registry.test.ts",
6887
- "toSymbol": "join",
6888
- "callExpression": "join",
6889
- "sourcePath": "src/registry.test.ts"
6890
- },
6891
6779
  {
6892
6780
  "fromSymbol": "src/registry.test.ts",
6893
6781
  "toSymbol": "describe",
@@ -6902,8 +6790,8 @@
6902
6790
  },
6903
6791
  {
6904
6792
  "fromSymbol": "src/registry.test.ts",
6905
- "toSymbol": "getDirectZoraManifestNodeNames",
6906
- "callExpression": "getDirectZoraManifestNodeNames",
6793
+ "toSymbol": "createComponentRegistry",
6794
+ "callExpression": "createComponentRegistry",
6907
6795
  "sourcePath": "src/registry.test.ts"
6908
6796
  },
6909
6797
  {
@@ -6912,24 +6800,6 @@
6912
6800
  "callExpression": "expect",
6913
6801
  "sourcePath": "src/registry.test.ts"
6914
6802
  },
6915
- {
6916
- "fromSymbol": "src/registry.test.ts",
6917
- "toSymbol": "createComponentRegistry",
6918
- "callExpression": "createComponentRegistry",
6919
- "sourcePath": "src/registry.test.ts"
6920
- },
6921
- {
6922
- "fromSymbol": "src/registry.tsx",
6923
- "toSymbol": "createComponentRegistry",
6924
- "callExpression": "createComponentRegistry",
6925
- "sourcePath": "src/registry.tsx"
6926
- },
6927
- {
6928
- "fromSymbol": "src/registry.tsx",
6929
- "toSymbol": "createZoraRegistryEntries",
6930
- "callExpression": "createZoraRegistryEntries",
6931
- "sourcePath": "src/registry.tsx"
6932
- },
6933
6803
  {
6934
6804
  "fromSymbol": "src/rendering.test.ts",
6935
6805
  "toSymbol": "describe",
@@ -9208,7 +9078,22 @@
9208
9078
  },
9209
9079
  {
9210
9080
  "fromSymbol": "createComponentRegistry",
9211
- "toType": "ComponentRegistry",
9081
+ "toType": "ElementType",
9082
+ "sourcePath": "src/componentRegistry.ts"
9083
+ },
9084
+ {
9085
+ "fromSymbol": "createComponentRegistry",
9086
+ "toType": "IntrinsicElements",
9087
+ "sourcePath": "src/componentRegistry.ts"
9088
+ },
9089
+ {
9090
+ "fromSymbol": "createComponentRegistry",
9091
+ "toType": "React",
9092
+ "sourcePath": "src/componentRegistry.ts"
9093
+ },
9094
+ {
9095
+ "fromSymbol": "createComponentRegistry",
9096
+ "toType": "Readonly",
9212
9097
  "sourcePath": "src/componentRegistry.ts"
9213
9098
  },
9214
9099
  {
@@ -9941,11 +9826,6 @@
9941
9826
  "toType": "ComponentDataBinding",
9942
9827
  "sourcePath": "src/RuntimeRenderer.tsx"
9943
9828
  },
9944
- {
9945
- "fromSymbol": "RuntimeRendererProps",
9946
- "toType": "ComponentRegistry",
9947
- "sourcePath": "src/RuntimeRenderer.tsx"
9948
- },
9949
9829
  {
9950
9830
  "fromSymbol": "RuntimeRendererProps",
9951
9831
  "toType": "DataSourceConfig",
@@ -9966,6 +9846,16 @@
9966
9846
  "toType": "DbRealtimeAdapter",
9967
9847
  "sourcePath": "src/RuntimeRenderer.tsx"
9968
9848
  },
9849
+ {
9850
+ "fromSymbol": "RuntimeRendererProps",
9851
+ "toType": "ElementType",
9852
+ "sourcePath": "src/RuntimeRenderer.tsx"
9853
+ },
9854
+ {
9855
+ "fromSymbol": "RuntimeRendererProps",
9856
+ "toType": "IntrinsicElements",
9857
+ "sourcePath": "src/RuntimeRenderer.tsx"
9858
+ },
9969
9859
  {
9970
9860
  "fromSymbol": "RuntimeRendererProps",
9971
9861
  "toType": "React",
@@ -10076,11 +9966,6 @@
10076
9966
  "toType": "ComponentDataBinding",
10077
9967
  "sourcePath": "src/RuntimeRendererConfig.tsx"
10078
9968
  },
10079
- {
10080
- "fromSymbol": "RuntimeRendererConfig",
10081
- "toType": "ComponentRegistry",
10082
- "sourcePath": "src/RuntimeRendererConfig.tsx"
10083
- },
10084
9969
  {
10085
9970
  "fromSymbol": "RuntimeRendererConfig",
10086
9971
  "toType": "DataSourceConfig",
@@ -10101,6 +9986,16 @@
10101
9986
  "toType": "DbRealtimeAdapter",
10102
9987
  "sourcePath": "src/RuntimeRendererConfig.tsx"
10103
9988
  },
9989
+ {
9990
+ "fromSymbol": "RuntimeRendererConfig",
9991
+ "toType": "ElementType",
9992
+ "sourcePath": "src/RuntimeRendererConfig.tsx"
9993
+ },
9994
+ {
9995
+ "fromSymbol": "RuntimeRendererConfig",
9996
+ "toType": "IntrinsicElements",
9997
+ "sourcePath": "src/RuntimeRendererConfig.tsx"
9998
+ },
10104
9999
  {
10105
10000
  "fromSymbol": "RuntimeRendererConfig",
10106
10001
  "toType": "React",
@@ -10213,7 +10108,22 @@
10213
10108
  },
10214
10109
  {
10215
10110
  "fromSymbol": "RuntimeScreenProps",
10216
- "toType": "ComponentRegistry",
10111
+ "toType": "ElementType",
10112
+ "sourcePath": "src/RuntimeScreen.tsx"
10113
+ },
10114
+ {
10115
+ "fromSymbol": "RuntimeScreenProps",
10116
+ "toType": "IntrinsicElements",
10117
+ "sourcePath": "src/RuntimeScreen.tsx"
10118
+ },
10119
+ {
10120
+ "fromSymbol": "RuntimeScreenProps",
10121
+ "toType": "React",
10122
+ "sourcePath": "src/RuntimeScreen.tsx"
10123
+ },
10124
+ {
10125
+ "fromSymbol": "RuntimeScreenProps",
10126
+ "toType": "Readonly",
10217
10127
  "sourcePath": "src/RuntimeScreen.tsx"
10218
10128
  },
10219
10129
  {
@@ -1,3 +0,0 @@
1
- import type { ComponentRegistry } from './componentRegistry';
2
- export declare const APP_EXTENSION_COMPONENT_REGISTRY: ComponentRegistry;
3
- //# sourceMappingURL=appExtensionRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appExtensionRegistry.d.ts","sourceRoot":"","sources":["../src/appExtensionRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,gCAAgC,EAAE,iBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export const APP_EXTENSION_COMPONENT_REGISTRY = {};
2
- //# sourceMappingURL=appExtensionRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appExtensionRegistry.js","sourceRoot":"","sources":["../src/appExtensionRegistry.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gCAAgC,GAAsB,EAAE,CAAC","sourcesContent":["import type { ComponentRegistry } from './componentRegistry';\n\nexport const APP_EXTENSION_COMPONENT_REGISTRY: ComponentRegistry = {};\n"]}