Migrate from ExperiencePropertyTypeBundle to LightningTypeBundle
If you created any custom property types using ExperiencePropertyTypeBundle, update the relevant custom Lightning web components to reference the new LightningTypeBundle instead.
- Create a new
LightningTypeBundleand give it a different name from the originalExperiencePropertyTypeBundle. (See Object-Based Custom Lightning Types in the Lightning Types Developer Guide.) - Copy the
schema.jsonfile from theExperiencePropertyTypeBundleto the newLightningTypeBundle. - For an
ExperiencePropertyTypeBundlethat has adesign.jsonfile, create a neweditor.jsonfile in theLightningTypeBundleand place it in theexperienceBuilderfolder. To create theeditor.jsonfile, copy the contents of thedesign.jsonfile toeditor.jsonand replace:propertySheetwitheditorpropertyRendererswithcomponentOverridesviewwithlayout
- Update the
typeattribute in the custom Lightning web component'sjs-meta.xmlfile to point to the newLightningTypeBundle. - Deploy the new
LightningTypeBundleand updated custom Lightning web component to your org. - If the
ExperiencePropertyTypeBundleis not part of a managed package, delete it usingdestructiveChanges.xml(See Deleting Components from an Organization in the Metadata API Developer Guide.)
Here's an example of an ExperiencePropertyTypeBundle's design.json file.
Here's the equivalent LightningTypeBundle editor.json file.
See Also
- Metadata API Guide: ExperiencePropertyTypeBundle (Beta)
- Metadata API Guide: LightningTypeBundle