@teambit/preview 1.0.310 → 1.0.312

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.
@@ -247,7 +247,7 @@
247
247
  "_legacy": {
248
248
  "scope": "teambit.preview",
249
249
  "name": "preview",
250
- "version": "1.0.310"
250
+ "version": "1.0.312"
251
251
  },
252
252
  "_scope": "teambit.preview"
253
253
  }
@@ -279,7 +279,8 @@
279
279
  "character": 1
280
280
  },
281
281
  "raw": "/**\n * interface for implementing component previews\n * using bit's development environments.\n */",
282
- "comment": "interface for implementing component previews\nusing bit's development environments."
282
+ "comment": "interface for implementing component previews\nusing bit's development environments.",
283
+ "tags": []
283
284
  },
284
285
  "signature": "interface PreviewEnv",
285
286
  "name": "PreviewEnv",
@@ -364,7 +365,8 @@
364
365
  "character": 3
365
366
  },
366
367
  "raw": "/**\n * return an instance of a mounter.\n */",
367
- "comment": "return an instance of a mounter."
368
+ "comment": "return an instance of a mounter.",
369
+ "tags": []
368
370
  },
369
371
  "signature": "(property) getMounter: () => string",
370
372
  "name": "getMounter",
@@ -406,7 +408,8 @@
406
408
  "character": 3
407
409
  },
408
410
  "raw": "/**\n * return a path to a docs template.\n */",
409
- "comment": "return a path to a docs template."
411
+ "comment": "return a path to a docs template.",
412
+ "tags": []
410
413
  },
411
414
  "signature": "(property) getDocsTemplate: () => string",
412
415
  "name": "getDocsTemplate",
@@ -448,7 +451,8 @@
448
451
  "character": 3
449
452
  },
450
453
  "raw": "/**\n * return a dev server instance to use for previews.\n */",
451
- "comment": "return a dev server instance to use for previews."
454
+ "comment": "return a dev server instance to use for previews.",
455
+ "tags": []
452
456
  },
453
457
  "signature": "(property) getDevServer: (context: DevServerContext) => EnvHandler<DevServer> | AsyncEnvHandler<DevServer>",
454
458
  "name": "getDevServer",
@@ -572,7 +576,8 @@
572
576
  "character": 3
573
577
  },
574
578
  "raw": "/**\n * return an instance for a preview bundler.\n */",
575
- "comment": "return an instance for a preview bundler."
579
+ "comment": "return an instance for a preview bundler.",
580
+ "tags": []
576
581
  },
577
582
  "signature": "(property) getBundler: (context: BundlerContext) => EnvHandler<Bundler> | AsyncEnvHandler<Bundler>",
578
583
  "name": "getBundler",
@@ -696,7 +701,8 @@
696
701
  "character": 3
697
702
  },
698
703
  "raw": "/**\n * return the id of the dev server.\n * used for deduplication of dev servers\n */",
699
- "comment": "return the id of the dev server.\nused for deduplication of dev servers"
704
+ "comment": "return the id of the dev server.\nused for deduplication of dev servers",
705
+ "tags": []
700
706
  },
701
707
  "signature": "(property) getDevEnvId: () => string",
702
708
  "name": "getDevEnvId",
@@ -738,7 +744,8 @@
738
744
  "character": 3
739
745
  },
740
746
  "raw": "/**\n * dependencies that will bundled as part of the env template and will configured as externals for the component bundle\n * these dependencies will be available in the preview on the window.\n * these dependencies will have only one instance on the page.\n * for dev server these dependencies will be aliased\n */",
741
- "comment": "dependencies that will bundled as part of the env template and will configured as externals for the component bundle\nthese dependencies will be available in the preview on the window.\nthese dependencies will have only one instance on the page.\nfor dev server these dependencies will be aliased"
747
+ "comment": "dependencies that will bundled as part of the env template and will configured as externals for the component bundle\nthese dependencies will be available in the preview on the window.\nthese dependencies will have only one instance on the page.\nfor dev server these dependencies will be aliased",
748
+ "tags": []
742
749
  },
743
750
  "signature": "(property) getHostDependencies: () => string[]",
744
751
  "name": "getHostDependencies",
@@ -2228,7 +2235,8 @@
2228
2235
  "character": 3
2229
2236
  },
2230
2237
  "raw": "/**\n * can the current component preview scale in size for different preview sizes.\n * this calculation is based on the env of the component and if the env of the component support it.\n */",
2231
- "comment": "can the current component preview scale in size for different preview sizes.\nthis calculation is based on the env of the component and if the env of the component support it."
2238
+ "comment": "can the current component preview scale in size for different preview sizes.\nthis calculation is based on the env of the component and if the env of the component support it.",
2239
+ "tags": []
2232
2240
  },
2233
2241
  "signature": "(method) PreviewMain.doesScaling(component: Component): Promise<boolean>",
2234
2242
  "name": "doesScaling",
@@ -2422,7 +2430,8 @@
2422
2430
  "character": 3
2423
2431
  },
2424
2432
  "raw": "/**\n * check if the component preview should only include the overview (skipping rendering of the compostions and properties table)\n */",
2425
- "comment": "check if the component preview should only include the overview (skipping rendering of the compostions and properties table)"
2433
+ "comment": "check if the component preview should only include the overview (skipping rendering of the compostions and properties table)",
2434
+ "tags": []
2426
2435
  },
2427
2436
  "signature": "(method) PreviewMain.getOnlyOverview(component: Component): Promise<boolean>",
2428
2437
  "name": "getOnlyOverview",
@@ -2491,7 +2500,8 @@
2491
2500
  "character": 3
2492
2501
  },
2493
2502
  "raw": "/**\n * check if the component preview should include the name query param\n */",
2494
- "comment": "check if the component preview should include the name query param"
2503
+ "comment": "check if the component preview should include the name query param",
2504
+ "tags": []
2495
2505
  },
2496
2506
  "signature": "(method) PreviewMain.getUseNameParam(component: Component): Promise<boolean>",
2497
2507
  "name": "getUseNameParam",
@@ -3568,7 +3578,8 @@
3568
3578
  "character": 3
3569
3579
  },
3570
3580
  "raw": "/**\n * return the configured bundling strategy.\n */",
3571
- "comment": "return the configured bundling strategy."
3581
+ "comment": "return the configured bundling strategy.",
3582
+ "tags": []
3572
3583
  },
3573
3584
  "signature": "(method) PreviewMain.getBundlingStrategy(env?: PreviewEnv): BundlingStrategy",
3574
3585
  "name": "getBundlingStrategy",
@@ -3625,7 +3636,8 @@
3625
3636
  "character": 3
3626
3637
  },
3627
3638
  "raw": "/**\n * register a new bundling strategy. default available strategies are `env` and ``\n */",
3628
- "comment": "register a new bundling strategy. default available strategies are `env` and ``"
3639
+ "comment": "register a new bundling strategy. default available strategies are `env` and ``",
3640
+ "tags": []
3629
3641
  },
3630
3642
  "signature": "(method) PreviewMain.registerBundlingStrategy(bundlingStrategy: BundlingStrategy): this",
3631
3643
  "name": "registerBundlingStrategy",
@@ -3678,7 +3690,8 @@
3678
3690
  "character": 3
3679
3691
  },
3680
3692
  "raw": "/**\n * register a new preview definition.\n */",
3681
- "comment": "register a new preview definition."
3693
+ "comment": "register a new preview definition.",
3694
+ "tags": []
3682
3695
  },
3683
3696
  "signature": "(method) PreviewMain.registerDefinition(previewDef: PreviewDefinition): void",
3684
3697
  "name": "registerDefinition",
@@ -4742,7 +4755,8 @@
4742
4755
  "character": 3
4743
4756
  },
4744
4757
  "raw": "/**\n * render the preview.\n */",
4745
- "comment": "render the preview."
4758
+ "comment": "render the preview.",
4759
+ "tags": []
4746
4760
  },
4747
4761
  "signature": "(property) PreviewPreview.render: (rootExt?: string) => Promise<void>",
4748
4762
  "name": "render",
@@ -5024,7 +5038,8 @@
5024
5038
  "character": 3
5025
5039
  },
5026
5040
  "raw": "/**\n * register a new preview.\n */",
5027
- "comment": "register a new preview."
5041
+ "comment": "register a new preview.",
5042
+ "tags": []
5028
5043
  },
5029
5044
  "signature": "(method) PreviewPreview.registerPreview(preview: PreviewType): this",
5030
5045
  "name": "registerPreview",
@@ -5077,7 +5092,8 @@
5077
5092
  "character": 3
5078
5093
  },
5079
5094
  "raw": "/**\n * get the preview rendering context.\n */",
5080
- "comment": "get the preview rendering context."
5095
+ "comment": "get the preview rendering context.",
5096
+ "tags": []
5081
5097
  },
5082
5098
  "signature": "(method) PreviewPreview.getRenderingContext(aspectsFilter?: string[]): RenderingContext",
5083
5099
  "name": "getRenderingContext",
@@ -5137,7 +5153,8 @@
5137
5153
  "character": 3
5138
5154
  },
5139
5155
  "raw": "/**\n * allows aspects to add rendering contexts.\n * render context is available through all preview definitions.\n */",
5140
- "comment": "allows aspects to add rendering contexts.\nrender context is available through all preview definitions."
5156
+ "comment": "allows aspects to add rendering contexts.\nrender context is available through all preview definitions.",
5157
+ "tags": []
5141
5158
  },
5142
5159
  "signature": "(method) PreviewPreview.registerRenderContext(renderContext: RenderingContextProvider): this",
5143
5160
  "name": "registerRenderContext",
@@ -5655,7 +5672,8 @@
5655
5672
  "character": 3
5656
5673
  },
5657
5674
  "raw": "/**\n * extension preview prefix\n */",
5658
- "comment": "extension preview prefix"
5675
+ "comment": "extension preview prefix",
5676
+ "tags": []
5659
5677
  },
5660
5678
  "signature": "(property) PreviewDefinition.prefix: string",
5661
5679
  "name": "prefix",
@@ -5685,7 +5703,8 @@
5685
5703
  "character": 3
5686
5704
  },
5687
5705
  "raw": "/**\n * which other extension modules to include in the preview context.\n */",
5688
- "comment": "which other extension modules to include in the preview context."
5706
+ "comment": "which other extension modules to include in the preview context.",
5707
+ "tags": []
5689
5708
  },
5690
5709
  "signature": "(property) PreviewDefinition.include?: string[] | undefined",
5691
5710
  "name": "include",
@@ -5723,7 +5742,8 @@
5723
5742
  "character": 3
5724
5743
  },
5725
5744
  "raw": "/**\n * path of the default template to be executed.\n */",
5726
- "comment": "path of the default template to be executed."
5745
+ "comment": "path of the default template to be executed.",
5746
+ "tags": []
5727
5747
  },
5728
5748
  "signature": "(property) PreviewDefinition.renderTemplatePath: (context: ExecutionContext) => Promise<string | undefined>",
5729
5749
  "name": "renderTemplatePath",
@@ -5820,7 +5840,8 @@
5820
5840
  "character": 3
5821
5841
  },
5822
5842
  "raw": "/**\n * get the template by env.\n * TODO: refactor `renderTemplatePath` to accept only an env and remove this method.\n */",
5823
- "comment": "get the template by env.\nTODO: refactor `renderTemplatePath` to accept only an env and remove this method."
5843
+ "comment": "get the template by env.\nTODO: refactor `renderTemplatePath` to accept only an env and remove this method.",
5844
+ "tags": []
5824
5845
  },
5825
5846
  "signature": "(property) PreviewDefinition.renderTemplatePathByEnv: (env: Environment) => Promise<string | undefined>",
5826
5847
  "name": "renderTemplatePathByEnv",
@@ -5917,7 +5938,8 @@
5917
5938
  "character": 3
5918
5939
  },
5919
5940
  "raw": "/**\n * get all files to require in the preview runtime.\n */",
5920
- "comment": "get all files to require in the preview runtime."
5941
+ "comment": "get all files to require in the preview runtime.",
5942
+ "tags": []
5921
5943
  },
5922
5944
  "signature": "(method) PreviewDefinition.getModuleMap(components: Component[]): Promise<ComponentMap<AbstractVinyl[]>>",
5923
5945
  "name": "getModuleMap",
@@ -6016,7 +6038,8 @@
6016
6038
  "character": 3
6017
6039
  },
6018
6040
  "raw": "/**\n * Whether to include the peers chunk in the output html\n */",
6019
- "comment": "Whether to include the peers chunk in the output html"
6041
+ "comment": "Whether to include the peers chunk in the output html",
6042
+ "tags": []
6020
6043
  },
6021
6044
  "signature": "(property) PreviewDefinition.includePeers?: boolean | undefined",
6022
6045
  "name": "includePeers",
@@ -6046,7 +6069,8 @@
6046
6069
  "character": 3
6047
6070
  },
6048
6071
  "raw": "/**\n * Get metadata for the preview\n */",
6049
- "comment": "Get metadata for the preview"
6072
+ "comment": "Get metadata for the preview",
6073
+ "tags": []
6050
6074
  },
6051
6075
  "signature": "(property) PreviewDefinition.getMetadata?: ((component: Component) => Promise<unknown>) | undefined",
6052
6076
  "name": "getMetadata",
@@ -6246,7 +6270,8 @@
6246
6270
  "character": 3
6247
6271
  },
6248
6272
  "raw": "/**\n * obtain rendering context of a specific aspect.\n */",
6249
- "comment": "obtain rendering context of a specific aspect."
6273
+ "comment": "obtain rendering context of a specific aspect.",
6274
+ "tags": []
6250
6275
  },
6251
6276
  "signature": "(method) RenderingContext.get(aspectId: string): {\n [key: string]: any;\n} | undefined",
6252
6277
  "name": "get",
@@ -6561,7 +6586,7 @@
6561
6586
  "_legacy": {
6562
6587
  "scope": "teambit.preview",
6563
6588
  "name": "preview",
6564
- "version": "1.0.310"
6589
+ "version": "1.0.312"
6565
6590
  },
6566
6591
  "_scope": "teambit.preview"
6567
6592
  }
@@ -6653,7 +6678,8 @@
6653
6678
  "character": 1
6654
6679
  },
6655
6680
  "raw": "/**\n * interface for implementing component previews\n * using bit's development environments.\n */",
6656
- "comment": "interface for implementing component previews\nusing bit's development environments."
6681
+ "comment": "interface for implementing component previews\nusing bit's development environments.",
6682
+ "tags": []
6657
6683
  },
6658
6684
  "signature": "interface PreviewEnv",
6659
6685
  "name": "PreviewEnv",
@@ -6729,7 +6755,8 @@
6729
6755
  "character": 3
6730
6756
  },
6731
6757
  "raw": "/**\n * return an instance of a mounter.\n */",
6732
- "comment": "return an instance of a mounter."
6758
+ "comment": "return an instance of a mounter.",
6759
+ "tags": []
6733
6760
  },
6734
6761
  "signature": "(property) getMounter: () => string",
6735
6762
  "name": "getMounter",
@@ -6771,7 +6798,8 @@
6771
6798
  "character": 3
6772
6799
  },
6773
6800
  "raw": "/**\n * return a path to a docs template.\n */",
6774
- "comment": "return a path to a docs template."
6801
+ "comment": "return a path to a docs template.",
6802
+ "tags": []
6775
6803
  },
6776
6804
  "signature": "(property) getDocsTemplate: () => string",
6777
6805
  "name": "getDocsTemplate",
@@ -6813,7 +6841,8 @@
6813
6841
  "character": 3
6814
6842
  },
6815
6843
  "raw": "/**\n * return a dev server instance to use for previews.\n */",
6816
- "comment": "return a dev server instance to use for previews."
6844
+ "comment": "return a dev server instance to use for previews.",
6845
+ "tags": []
6817
6846
  },
6818
6847
  "signature": "(property) getDevServer: (context: DevServerContext) => EnvHandler<DevServer> | AsyncEnvHandler<DevServer>",
6819
6848
  "name": "getDevServer",
@@ -6937,7 +6966,8 @@
6937
6966
  "character": 3
6938
6967
  },
6939
6968
  "raw": "/**\n * return an instance for a preview bundler.\n */",
6940
- "comment": "return an instance for a preview bundler."
6969
+ "comment": "return an instance for a preview bundler.",
6970
+ "tags": []
6941
6971
  },
6942
6972
  "signature": "(property) getBundler: (context: BundlerContext) => EnvHandler<Bundler> | AsyncEnvHandler<Bundler>",
6943
6973
  "name": "getBundler",
@@ -7061,7 +7091,8 @@
7061
7091
  "character": 3
7062
7092
  },
7063
7093
  "raw": "/**\n * return the id of the dev server.\n * used for deduplication of dev servers\n */",
7064
- "comment": "return the id of the dev server.\nused for deduplication of dev servers"
7094
+ "comment": "return the id of the dev server.\nused for deduplication of dev servers",
7095
+ "tags": []
7065
7096
  },
7066
7097
  "signature": "(property) getDevEnvId: () => string",
7067
7098
  "name": "getDevEnvId",
@@ -7103,7 +7134,8 @@
7103
7134
  "character": 3
7104
7135
  },
7105
7136
  "raw": "/**\n * dependencies that will bundled as part of the env template and will configured as externals for the component bundle\n * these dependencies will be available in the preview on the window.\n * these dependencies will have only one instance on the page.\n * for dev server these dependencies will be aliased\n */",
7106
- "comment": "dependencies that will bundled as part of the env template and will configured as externals for the component bundle\nthese dependencies will be available in the preview on the window.\nthese dependencies will have only one instance on the page.\nfor dev server these dependencies will be aliased"
7137
+ "comment": "dependencies that will bundled as part of the env template and will configured as externals for the component bundle\nthese dependencies will be available in the preview on the window.\nthese dependencies will have only one instance on the page.\nfor dev server these dependencies will be aliased",
7138
+ "tags": []
7107
7139
  },
7108
7140
  "signature": "(property) getHostDependencies: () => string[]",
7109
7141
  "name": "getHostDependencies",
@@ -7609,7 +7641,8 @@
7609
7641
  "character": 1
7610
7642
  },
7611
7643
  "raw": "/**\n * Preview data that stored on the component on load\n */",
7612
- "comment": "Preview data that stored on the component on load"
7644
+ "comment": "Preview data that stored on the component on load",
7645
+ "tags": []
7613
7646
  },
7614
7647
  "signature": "type PreviewComponentData = PreviewAnyComponentData & PreviewEnvComponentData",
7615
7648
  "name": "PreviewComponentData",
@@ -7659,7 +7692,8 @@
7659
7692
  "character": 1
7660
7693
  },
7661
7694
  "raw": "/**\n * Preview data that stored on the component on load for any component\n */",
7662
- "comment": "Preview data that stored on the component on load for any component"
7695
+ "comment": "Preview data that stored on the component on load for any component",
7696
+ "tags": []
7663
7697
  },
7664
7698
  "signature": "type PreviewAnyComponentData = {\n doesScaling?: boolean | undefined;\n strategyName?: PreviewStrategyName | undefined;\n splitComponentBundle?: boolean | undefined;\n onlyOverview?: boolean | undefined;\n useNameParam?: boolean | undefined;\n skipIncludes?: boolean | undefined;\n}",
7665
7699
  "name": "PreviewAnyComponentData",
@@ -7706,7 +7740,8 @@
7706
7740
  "character": 3
7707
7741
  },
7708
7742
  "raw": "/**\n * The strategy configured by the component's env\n */",
7709
- "comment": "The strategy configured by the component's env"
7743
+ "comment": "The strategy configured by the component's env",
7744
+ "tags": []
7710
7745
  },
7711
7746
  "signature": "(property) strategyName?: PreviewStrategyName | undefined",
7712
7747
  "name": "strategyName",
@@ -7736,7 +7771,8 @@
7736
7771
  "character": 3
7737
7772
  },
7738
7773
  "raw": "/**\n * Does the component has a bundle for the component itself (separated from the compositions/docs)\n * Calculated by the component's env\n */",
7739
- "comment": "Does the component has a bundle for the component itself (separated from the compositions/docs)\nCalculated by the component's env"
7774
+ "comment": "Does the component has a bundle for the component itself (separated from the compositions/docs)\nCalculated by the component's env",
7775
+ "tags": []
7740
7776
  },
7741
7777
  "signature": "(property) splitComponentBundle?: boolean | undefined",
7742
7778
  "name": "splitComponentBundle",
@@ -7766,7 +7802,8 @@
7766
7802
  "character": 3
7767
7803
  },
7768
7804
  "raw": "/**\n * don't allow other aspects implementing a preview definition to be included in your preview.\n */",
7769
- "comment": "don't allow other aspects implementing a preview definition to be included in your preview."
7805
+ "comment": "don't allow other aspects implementing a preview definition to be included in your preview.",
7806
+ "tags": []
7770
7807
  },
7771
7808
  "signature": "(property) onlyOverview?: boolean | undefined",
7772
7809
  "name": "onlyOverview",
@@ -7796,7 +7833,8 @@
7796
7833
  "character": 3
7797
7834
  },
7798
7835
  "raw": "/**\n * use name query params to select a specific composition to render.\n */",
7799
- "comment": "use name query params to select a specific composition to render."
7836
+ "comment": "use name query params to select a specific composition to render.",
7837
+ "tags": []
7800
7838
  },
7801
7839
  "signature": "(property) useNameParam?: boolean | undefined",
7802
7840
  "name": "useNameParam",
@@ -7826,7 +7864,8 @@
7826
7864
  "character": 3
7827
7865
  },
7828
7866
  "raw": "/**\n * don't allow other aspects implementing a preview definition to be included in your preview.\n */",
7829
- "comment": "don't allow other aspects implementing a preview definition to be included in your preview."
7867
+ "comment": "don't allow other aspects implementing a preview definition to be included in your preview.",
7868
+ "tags": []
7830
7869
  },
7831
7870
  "signature": "(property) skipIncludes?: boolean | undefined",
7832
7871
  "name": "skipIncludes",
@@ -7859,7 +7898,8 @@
7859
7898
  "character": 1
7860
7899
  },
7861
7900
  "raw": "/**\n * Preview data that stored on the component on load if the component is an env\n */",
7862
- "comment": "Preview data that stored on the component on load if the component is an env"
7901
+ "comment": "Preview data that stored on the component on load if the component is an env",
7902
+ "tags": []
7863
7903
  },
7864
7904
  "signature": "type PreviewEnvComponentData = {\n isScaling?: boolean | undefined;\n supportsOnlyOverview?: boolean | undefined;\n supportsUseNameParam?: boolean | undefined;\n}",
7865
7905
  "name": "PreviewEnvComponentData",
@@ -8006,7 +8046,8 @@
8006
8046
  "character": 3
8007
8047
  },
8008
8048
  "raw": "/**\n * limit concurrent components when running the bundling step for your bundler during generate components preview task.\n * this helps mitigate large memory consumption for the build pipeline. This may increase the overall time for the generate-preview task, but reduce memory footprint.\n * default - no limit.\n */",
8009
- "comment": "limit concurrent components when running the bundling step for your bundler during generate components preview task.\nthis helps mitigate large memory consumption for the build pipeline. This may increase the overall time for the generate-preview task, but reduce memory footprint.\ndefault - no limit."
8049
+ "comment": "limit concurrent components when running the bundling step for your bundler during generate components preview task.\nthis helps mitigate large memory consumption for the build pipeline. This may increase the overall time for the generate-preview task, but reduce memory footprint.\ndefault - no limit.",
8050
+ "tags": []
8010
8051
  },
8011
8052
  "signature": "(property) maxChunkSize?: number | undefined",
8012
8053
  "name": "maxChunkSize",
@@ -9698,7 +9739,8 @@
9698
9739
  "character": 3
9699
9740
  },
9700
9741
  "raw": "/**\n * can the current component preview scale in size for different preview sizes.\n * this calculation is based on the env of the component and if the env of the component support it.\n */",
9701
- "comment": "can the current component preview scale in size for different preview sizes.\nthis calculation is based on the env of the component and if the env of the component support it."
9742
+ "comment": "can the current component preview scale in size for different preview sizes.\nthis calculation is based on the env of the component and if the env of the component support it.",
9743
+ "tags": []
9702
9744
  },
9703
9745
  "signature": "(method) PreviewMain.doesScaling(component: Component): Promise<boolean>",
9704
9746
  "name": "doesScaling",
@@ -9892,7 +9934,8 @@
9892
9934
  "character": 3
9893
9935
  },
9894
9936
  "raw": "/**\n * check if the component preview should only include the overview (skipping rendering of the compostions and properties table)\n */",
9895
- "comment": "check if the component preview should only include the overview (skipping rendering of the compostions and properties table)"
9937
+ "comment": "check if the component preview should only include the overview (skipping rendering of the compostions and properties table)",
9938
+ "tags": []
9896
9939
  },
9897
9940
  "signature": "(method) PreviewMain.getOnlyOverview(component: Component): Promise<boolean>",
9898
9941
  "name": "getOnlyOverview",
@@ -9961,7 +10004,8 @@
9961
10004
  "character": 3
9962
10005
  },
9963
10006
  "raw": "/**\n * check if the component preview should include the name query param\n */",
9964
- "comment": "check if the component preview should include the name query param"
10007
+ "comment": "check if the component preview should include the name query param",
10008
+ "tags": []
9965
10009
  },
9966
10010
  "signature": "(method) PreviewMain.getUseNameParam(component: Component): Promise<boolean>",
9967
10011
  "name": "getUseNameParam",
@@ -11038,7 +11082,8 @@
11038
11082
  "character": 3
11039
11083
  },
11040
11084
  "raw": "/**\n * return the configured bundling strategy.\n */",
11041
- "comment": "return the configured bundling strategy."
11085
+ "comment": "return the configured bundling strategy.",
11086
+ "tags": []
11042
11087
  },
11043
11088
  "signature": "(method) PreviewMain.getBundlingStrategy(env?: PreviewEnv): BundlingStrategy",
11044
11089
  "name": "getBundlingStrategy",
@@ -11095,7 +11140,8 @@
11095
11140
  "character": 3
11096
11141
  },
11097
11142
  "raw": "/**\n * register a new bundling strategy. default available strategies are `env` and ``\n */",
11098
- "comment": "register a new bundling strategy. default available strategies are `env` and ``"
11143
+ "comment": "register a new bundling strategy. default available strategies are `env` and ``",
11144
+ "tags": []
11099
11145
  },
11100
11146
  "signature": "(method) PreviewMain.registerBundlingStrategy(bundlingStrategy: BundlingStrategy): this",
11101
11147
  "name": "registerBundlingStrategy",
@@ -11148,7 +11194,8 @@
11148
11194
  "character": 3
11149
11195
  },
11150
11196
  "raw": "/**\n * register a new preview definition.\n */",
11151
- "comment": "register a new preview definition."
11197
+ "comment": "register a new preview definition.",
11198
+ "tags": []
11152
11199
  },
11153
11200
  "signature": "(method) PreviewMain.registerDefinition(previewDef: PreviewDefinition): void",
11154
11201
  "name": "registerDefinition",
@@ -12072,7 +12119,8 @@
12072
12119
  "character": 3
12073
12120
  },
12074
12121
  "raw": "/**\n * render the preview.\n */",
12075
- "comment": "render the preview."
12122
+ "comment": "render the preview.",
12123
+ "tags": []
12076
12124
  },
12077
12125
  "signature": "(property) PreviewPreview.render: (rootExt?: string) => Promise<void>",
12078
12126
  "name": "render",
@@ -12354,7 +12402,8 @@
12354
12402
  "character": 3
12355
12403
  },
12356
12404
  "raw": "/**\n * register a new preview.\n */",
12357
- "comment": "register a new preview."
12405
+ "comment": "register a new preview.",
12406
+ "tags": []
12358
12407
  },
12359
12408
  "signature": "(method) PreviewPreview.registerPreview(preview: PreviewType): this",
12360
12409
  "name": "registerPreview",
@@ -12407,7 +12456,8 @@
12407
12456
  "character": 3
12408
12457
  },
12409
12458
  "raw": "/**\n * get the preview rendering context.\n */",
12410
- "comment": "get the preview rendering context."
12459
+ "comment": "get the preview rendering context.",
12460
+ "tags": []
12411
12461
  },
12412
12462
  "signature": "(method) PreviewPreview.getRenderingContext(aspectsFilter?: string[]): RenderingContext",
12413
12463
  "name": "getRenderingContext",
@@ -12467,7 +12517,8 @@
12467
12517
  "character": 3
12468
12518
  },
12469
12519
  "raw": "/**\n * allows aspects to add rendering contexts.\n * render context is available through all preview definitions.\n */",
12470
- "comment": "allows aspects to add rendering contexts.\nrender context is available through all preview definitions."
12520
+ "comment": "allows aspects to add rendering contexts.\nrender context is available through all preview definitions.",
12521
+ "tags": []
12471
12522
  },
12472
12523
  "signature": "(method) PreviewPreview.registerRenderContext(renderContext: RenderingContextProvider): this",
12473
12524
  "name": "registerRenderContext",
@@ -12842,7 +12893,8 @@
12842
12893
  "character": 3
12843
12894
  },
12844
12895
  "raw": "/**\n * extension preview prefix\n */",
12845
- "comment": "extension preview prefix"
12896
+ "comment": "extension preview prefix",
12897
+ "tags": []
12846
12898
  },
12847
12899
  "signature": "(property) PreviewDefinition.prefix: string",
12848
12900
  "name": "prefix",
@@ -12872,7 +12924,8 @@
12872
12924
  "character": 3
12873
12925
  },
12874
12926
  "raw": "/**\n * which other extension modules to include in the preview context.\n */",
12875
- "comment": "which other extension modules to include in the preview context."
12927
+ "comment": "which other extension modules to include in the preview context.",
12928
+ "tags": []
12876
12929
  },
12877
12930
  "signature": "(property) PreviewDefinition.include?: string[] | undefined",
12878
12931
  "name": "include",
@@ -12910,7 +12963,8 @@
12910
12963
  "character": 3
12911
12964
  },
12912
12965
  "raw": "/**\n * path of the default template to be executed.\n */",
12913
- "comment": "path of the default template to be executed."
12966
+ "comment": "path of the default template to be executed.",
12967
+ "tags": []
12914
12968
  },
12915
12969
  "signature": "(property) PreviewDefinition.renderTemplatePath: (context: ExecutionContext) => Promise<string | undefined>",
12916
12970
  "name": "renderTemplatePath",
@@ -13007,7 +13061,8 @@
13007
13061
  "character": 3
13008
13062
  },
13009
13063
  "raw": "/**\n * get the template by env.\n * TODO: refactor `renderTemplatePath` to accept only an env and remove this method.\n */",
13010
- "comment": "get the template by env.\nTODO: refactor `renderTemplatePath` to accept only an env and remove this method."
13064
+ "comment": "get the template by env.\nTODO: refactor `renderTemplatePath` to accept only an env and remove this method.",
13065
+ "tags": []
13011
13066
  },
13012
13067
  "signature": "(property) PreviewDefinition.renderTemplatePathByEnv: (env: Environment) => Promise<string | undefined>",
13013
13068
  "name": "renderTemplatePathByEnv",
@@ -13104,7 +13159,8 @@
13104
13159
  "character": 3
13105
13160
  },
13106
13161
  "raw": "/**\n * get all files to require in the preview runtime.\n */",
13107
- "comment": "get all files to require in the preview runtime."
13162
+ "comment": "get all files to require in the preview runtime.",
13163
+ "tags": []
13108
13164
  },
13109
13165
  "signature": "(method) PreviewDefinition.getModuleMap(components: Component[]): Promise<ComponentMap<AbstractVinyl[]>>",
13110
13166
  "name": "getModuleMap",
@@ -13203,7 +13259,8 @@
13203
13259
  "character": 3
13204
13260
  },
13205
13261
  "raw": "/**\n * Whether to include the peers chunk in the output html\n */",
13206
- "comment": "Whether to include the peers chunk in the output html"
13262
+ "comment": "Whether to include the peers chunk in the output html",
13263
+ "tags": []
13207
13264
  },
13208
13265
  "signature": "(property) PreviewDefinition.includePeers?: boolean | undefined",
13209
13266
  "name": "includePeers",
@@ -13233,7 +13290,8 @@
13233
13290
  "character": 3
13234
13291
  },
13235
13292
  "raw": "/**\n * Get metadata for the preview\n */",
13236
- "comment": "Get metadata for the preview"
13293
+ "comment": "Get metadata for the preview",
13294
+ "tags": []
13237
13295
  },
13238
13296
  "signature": "(property) PreviewDefinition.getMetadata?: ((component: Component) => Promise<unknown>) | undefined",
13239
13297
  "name": "getMetadata",
@@ -13537,7 +13595,8 @@
13537
13595
  "character": 3
13538
13596
  },
13539
13597
  "raw": "/**\n * obtain rendering context of a specific aspect.\n */",
13540
- "comment": "obtain rendering context of a specific aspect."
13598
+ "comment": "obtain rendering context of a specific aspect.",
13599
+ "tags": []
13541
13600
  },
13542
13601
  "signature": "(method) RenderingContext.get(aspectId: string): {\n [key: string]: any;\n} | undefined",
13543
13602
  "name": "get",
@@ -13585,7 +13644,7 @@
13585
13644
  "componentId": {
13586
13645
  "scope": "teambit.preview",
13587
13646
  "name": "preview",
13588
- "version": "1.0.310"
13647
+ "version": "1.0.312"
13589
13648
  },
13590
13649
  "taggedModuleExports": []
13591
13650
  }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "files": {
3
- "main.css": "/static/css/main.210a9fd7.css",
4
- "main.cjs": "/static/js/main.bb6883ce.cjs"
3
+ "main.css": "/static/css/main.ddf27998.css",
4
+ "main.cjs": "/static/js/main.568789bf.cjs"
5
5
  },
6
6
  "entrypoints": [
7
- "static/css/main.210a9fd7.css",
8
- "static/js/main.bb6883ce.cjs"
7
+ "static/css/main.ddf27998.css",
8
+ "static/js/main.568789bf.cjs"
9
9
  ]
10
10
  }
@@ -0,0 +1,5 @@
1
+ .frame_overlayBorder__g5iP1{box-sizing:border-box;border:2px solid #eebcc9;border:2px solid var(--bit-highlighter-color, #eebcc9);border-radius:11px;padding:4px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.frame_hidden__Lq\+oS{display:none}
2
+ .label_othersContainer__LJRIR>*{margin-bottom:8px}.label_othersContainer__LJRIR>*:last-child{margin-bottom:0;margin-bottom:initial}.label_othersTooltip__j73w9{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.label_othersTooltip__j73w9::before{display:inline-block;transition:transform 300ms;content:"▾"}.label_othersTooltip__j73w9.label_active__JldCE::before{transform:rotate(-180deg)}.label_hidden__jVUEK{visibility:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}
3
+ .component-strip_componentStrip__Ek\+SP{display:flex;width:-moz-fit-content;width:fit-content;border-radius:.5em;box-shadow:var(--bit-highlighter-shadow);white-space:nowrap}.component-strip_componentStrip__Ek\+SP>*{padding:0 .5em;line-height:1.5;transition:filter 300ms,background-color 300ms;transform:translateZ(0);background:#eebcc9;background:var(--bit-highlighter-color, #eebcc9);margin-right:.125em}.component-strip_componentStrip__Ek\+SP>*:link,.component-strip_componentStrip__Ek\+SP>*:visited{text-decoration:inherit;color:inherit}.component-strip_componentStrip__Ek\+SP>*:link:hover,.component-strip_componentStrip__Ek\+SP>*:visited:hover{background:#f6dae2;background:var(--bit-highlighter-color-hover, #f6dae2)}.component-strip_componentStrip__Ek\+SP>*:link:active,.component-strip_componentStrip__Ek\+SP>*:visited:active{background:#e79db1;background:var(--bit-highlighter-color-active, #e79db1);color:inherit}.component-strip_componentStrip__Ek\+SP>*:first-child{border-top-left-radius:.5em;border-bottom-left-radius:.5em}.component-strip_componentStrip__Ek\+SP>*:last-child{border-top-right-radius:.5em;border-bottom-right-radius:.5em;margin-right:0;margin-right:initial}.component-strip_nameBlock__zLgd\+{display:flex}.component-strip_nameBlock__zLgd\+ .component-strip_version__DwDPE{max-width:13ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:max-width 480ms}.component-strip_nameBlock__zLgd\+ .component-strip_version__DwDPE:hover{max-width:61ch}
4
+ .element-highlighter_label__aagb9{padding:8px}.element-highlighter_frame__FJoUv,.element-highlighter_label__aagb9{z-index:15500}
5
+ .highlighter-provider_highlighter__vY8on{border:solid #ededed;border:solid var(--bit-border-color-lightest, #ededed);border-width:0px;box-sizing:border-box;height:100%;transition:border 300ms}.highlighter-provider_highlighter__vY8on.highlighter-provider_active__xgxqx{border-width:8px;overflow:auto}.highlighter-provider_label__iLN6B{font-family:sans-serif;font-size:12px}