@reuters-graphics/graphics-components 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,17 +68,18 @@
68
68
  </div>
69
69
  <Typeahead
70
70
  label="Select an embed"
71
- value="{embedTitles[0]}"
71
+ value="{embedTitles[embeds.indexOf(activeEmbed)]}"
72
72
  extract="{(d) => embedTitles[d.index]}"
73
73
  data="{embeds.map((embed, index) => ({ index, embed }))}"
74
74
  placeholder="{'Search'}"
75
75
  showDropdownOnFocus="{true}"
76
76
  on:select="{({ detail }) => {
77
- if (typeof window !== 'undefined')
77
+ if (typeof window !== 'undefined') {
78
78
  window.localStorage.setItem(
79
79
  'framer-active-embed',
80
80
  detail.original.embed
81
81
  );
82
+ }
82
83
  activeEmbed = detail.original.embed;
83
84
  }}"
84
85
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",