From 3465db6ba94dae68d2f371e2331417b3969f2ded Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Wed, 30 Aug 2023 09:25:14 +0200 Subject: [PATCH 1/3] feat: expose context on `StoryblokComponent` for template ref use --- lib/StoryblokComponent.vue | 18 ++++++++++++++---- playground/components/Feature.vue | 16 ++++++++++++---- playground/components/Grid.vue | 22 +++++++++++++++++----- playground/components/Page.vue | 8 ++++---- playground/components/Teaser.vue | 7 +++---- 5 files changed, 50 insertions(+), 21 deletions(-) diff --git a/lib/StoryblokComponent.vue b/lib/StoryblokComponent.vue index fb4b886f..0afe929e 100644 --- a/lib/StoryblokComponent.vue +++ b/lib/StoryblokComponent.vue @@ -1,12 +1,22 @@ - - + diff --git a/playground/components/Feature.vue b/playground/components/Feature.vue index 3b696548..b7196438 100644 --- a/playground/components/Feature.vue +++ b/playground/components/Feature.vue @@ -1,9 +1,17 @@ + + - - diff --git a/playground/components/Grid.vue b/playground/components/Grid.vue index c4f2e362..3c0406cc 100644 --- a/playground/components/Grid.vue +++ b/playground/components/Grid.vue @@ -1,11 +1,23 @@ + + - - diff --git a/playground/components/Page.vue b/playground/components/Page.vue index 020a554a..cd882ab3 100644 --- a/playground/components/Page.vue +++ b/playground/components/Page.vue @@ -1,3 +1,7 @@ + + - - diff --git a/playground/components/Teaser.vue b/playground/components/Teaser.vue index 3d53c4df..c61516af 100644 --- a/playground/components/Teaser.vue +++ b/playground/components/Teaser.vue @@ -1,3 +1,6 @@ + - - From 64cf98204462cf3e36e574a5ab119a5d34df7a94 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Wed, 30 Aug 2023 09:27:01 +0200 Subject: [PATCH 2/3] chore: adding space between script and template --- lib/StoryblokComponent.vue | 1 + playground/components/Teaser.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/StoryblokComponent.vue b/lib/StoryblokComponent.vue index 0afe929e..c63181a7 100644 --- a/lib/StoryblokComponent.vue +++ b/lib/StoryblokComponent.vue @@ -13,6 +13,7 @@ defineExpose({ value: blokRef, }); +