Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-125134

Remove {Component}, {JSXComponent}, {Fragment}, {Config} usages of metal-jsx

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Discarded
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Metal.js
    • Labels:
      None

      Description

      Part of our plan to remove usages of metal in DXP codebase

      The goal of this task is to remove existing usages of {Component}, {JSXComponent}, {Fragment} and {Config} from the metal-jsx package. 

      The intended order of removal is:

      1. Replace the classes/function calls with standard APIs or specific DXP functions when needed.
      2. Remove imports of these functions/objects in the .js files
      3. Remove the dependencies in package.json file if it's declared there

      Do not look for occurrences in neither .npmbundlerrc nor .eslintrc.js files as these will be dealt with in a separate task.

      For the case of Component class, the features offered may be substituted by equivalent React components. Part of this work will be application-specific.

      Here is a list of usages

      Family Module File Usage
      data-engine data-engine-taglib package.json  
      dynamic-data-mapping dynamic-data-mapping-form-builder META-INF/resources/js/components/FormBuilder/FieldActionsDropDown.es.js Component
          META-INF/resources/js/components/FormBuilder/FormBuilder.es.js Component
          META-INF/resources/js/components/FormBuilder/FormBuilderWithLayoutProvider.es.js Component
          META-INF/resources/js/components/FormBuilder/withActionableFields.es.js Component
          META-INF/resources/js/components/FormBuilder/withClickableFields.es.js Component
          META-INF/resources/js/components/FormBuilder/withEditablePageHeader.es.js Component
          META-INF/resources/js/components/FormBuilder/withMoveableFields.es.js Component
          META-INF/resources/js/components/FormBuilder/withMultiplePages.es.js Component
          META-INF/resources/js/components/FormBuilder/withResizeableColumns.es.js Component
          META-INF/resources/js/components/LayoutProvider/LayoutProvider.es.js Component
          META-INF/resources/js/components/Sidebar/Sidebar.es.js Component, {Fragment}
          test/js/components/LayoutProvider/LayoutProvider.es.js {JSXComponent}
          package.json  
        dynamic-data-mapping-form-renderer META-INF/resources/js/util/ReactComponentAdapter.es.js JSXComponent
        dynamic-data-mapping-form-web META-INF/resources/admin.js/main.es.js Component
          META-INF/resources/admin/js/components/PreviewButton/PreviewButton.es.js Component
          META-INF/resources/admin/js/components/PublishButton/PublishButton.es.js Component
          META-INF/resources/admin/js/components/ShareFormModal/Email.es.js Component
          META-INF/resources/admin/js/components/ShareFormModal/Link.es.js Component, {Config}
          META-INF/resources/admin/js/components/ShareFormModal/ShareFormModal.es.js Component, {Config}
          META-INF/resources/admin/js/util/AutoSave.es.js Component
          META-INF/resources/admin/js/util/StateSyncronizer.es.js Component
          package.json  

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            daniel.sanz Daniel Sanz
            Recent user:
            Matuzalém Teles
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package