Skip to content
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

Handle slot default content preview mode #220

Merged
merged 13 commits into from
Dec 12, 2023

Conversation

renan628
Copy link
Member

@renan628 renan628 commented Nov 27, 2023

Summary

This PR adapts the preview widget to handle the slot default content preview mode. If the changes the preview mode and the locale are obtained from the URL parameters in the plugin, and forwarded to the widget. Additionally, the index.html used to test the widget was updated to reflect the plugin's behavior, nearing the test from the real scenario.

Related to:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@renan628 renan628 self-assigned this Nov 27, 2023
@renan628 renan628 added enhancement Improvement of existing features feature New feature and removed enhancement Improvement of existing features labels Nov 27, 2023
@renan628 renan628 requested review from Fryuni, bergaminifrg and denis-rossati and removed request for bergaminifrg and denis-rossati November 27, 2023 13:25
src/preview.ts Outdated Show resolved Hide resolved
preview/test/widget.spec.ts Show resolved Hide resolved
preview/src/index.html Show resolved Hide resolved
preview/src/index.html Outdated Show resolved Hide resolved
denis-rossati
denis-rossati previously approved these changes Nov 29, 2023
bergaminifrg
bergaminifrg previously approved these changes Nov 29, 2023
Fryuni
Fryuni previously approved these changes Dec 1, 2023
@Fryuni Fryuni requested a review from georgekaran December 1, 2023 19:21
georgekaran
georgekaran previously approved these changes Dec 4, 2023
@renan628 renan628 requested a review from marcospassos December 4, 2023 13:02
preview/src/index.html Outdated Show resolved Hide resolved
src/preview.ts Outdated Show resolved Hide resolved
src/preview.ts Outdated Show resolved Hide resolved
@renan628 renan628 requested a review from marcospassos December 8, 2023 17:13
preview/src/widget.js Outdated Show resolved Hide resolved
preview/src/widget.js Outdated Show resolved Hide resolved
preview/src/widget.js Outdated Show resolved Hide resolved
preview/src/widget.js Outdated Show resolved Hide resolved
preview/src/widget.js Outdated Show resolved Hide resolved
preview/src/widget.js Show resolved Hide resolved
preview/src/widget.js Outdated Show resolved Hide resolved
preview/test/widget.spec.ts Outdated Show resolved Hide resolved
preview/test/widget.spec.ts Outdated Show resolved Hide resolved
preview/src/widget.js Outdated Show resolved Hide resolved
@marcospassos marcospassos merged commit b1b97a0 into master Dec 12, 2023
8 checks passed
@marcospassos marcospassos deleted the handle-slot-default-content-preview branch December 12, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default content preview for plug-js
6 participants