-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration of custom prefixed PDS components in sample projects v2 #856
Comments
stephanschroeter
modified the milestones:
Q3/2020 - Components & Assets,
Q3/2020 - Operations
Aug 4, 2020
1 task
denyo
changed the title
Integration of custom prefixed PDS components in sample projects
Integration of custom prefixed PDS components in sample projects v2
Aug 19, 2020
1 task
marcelbertram
modified the milestones:
Operations,
Global Web Component / Widget Approach
Sep 25, 2020
stephanschroeter
modified the milestones:
Global Web Component / Widget Approach,
Porsche Design System @ v2 stable
Sep 25, 2020
#987 needs to be completed before we can continue working on this story! |
anotherMatze
pushed a commit
that referenced
this issue
Oct 27, 2020
anotherMatze
pushed a commit
that referenced
this issue
Oct 27, 2020
anotherMatze
pushed a commit
that referenced
this issue
Oct 27, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scope
With
@porsche-design-system/components-js
/@porsche-design-system/components-angular
/@porsche-design-system/components-react
@ v2.0.0-alpha.0 we introduced the possibility to prefix and scope web components during runtime to enable micro service architecture. Therefore we need to gain experience in real life examples:my-prefix-
andanother-prefix-
) prefixed PDS components in sample projects as well as different versions (if possible, e.g. by integrating a micro service like home & nav) of the PDS components:Notes
If the PDS loader would be implemented into index.html the loading performance could be increased for frameworks and improve the FOUC/FOUT. The PDS would be faster than the framework.
Subtasks
Findings
To test PHN we need a
.tgz
file of their build with our alpha components. With the attachment we have so far, we can only test it in vanilla, it does not work in react/angularVanilla-JS:
- If we use our Components with a custom prefix in combination with PHN with prefix, the web-components-manager does not apply the defined prefix. This only happens when we use a different PDS version than the micro-service.-> From Version alpha 2 -> 3 the web-component manager does not register prefixes
React:
- Documentation Reactimport { getPrefixedComponents } from '@porsche-design-system/components-react/dist/prefixed-components';
is wrong, dist directory does not exist anymoreFixed in Branch 856
- Using prefixed components in combination with PHN, the web-components-manager does only load alpha.4 and not alpha.0. He should load both as it is used in PHNThis only occurred due to copying the provided directory to the node_modules. This caused a wrong entry point. While using a packed Project it loads both versions as expected
Angular:
- components-wrapper.component.d.ts try's toimport { Components } from '@porsche-design-system/components';
. We do not provide the components package. The application cannot build without those typings. We have a ticket #987. This has to be resolved as soon as possible.- Testing in Angular is therefore blocked, we cant use v2 until there is a solutionNextJS:
calcLineHeight
andtransitionListener
. It was not an issue in v1.Gatsby:
attachEventProps
uses document which is undefined while SSR. We have to exclude the function in the SSR build process (if (typeof doc !==undefined
) {}). Known Stencil bug! Has to be fixed in stencil output targets.We should check if it is fixed already ->
React output target / document is not defined in isCoveredByReact() ionic-team/stencil-ds-output-targets#98
Attachments
Home & Nav with v2 alpha.0
porsche-navigation.zip
Packed Home & Nav alpha.5 prefix, no prefix and alpha.4
PHN-Packages.zip
The text was updated successfully, but these errors were encountered: