@streamscloud/embeddable 2.4.1 → 2.5.0

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.
@@ -1,6 +1,4 @@
1
1
  export declare enum PostSourceType {
2
- Channel = "CHANNEL",
3
- Group = "GROUP",
4
2
  MediaPage = "MEDIA_PAGE",
5
3
  Organization = "ORGANIZATION",
6
4
  UserProfile = "USER_PROFILE"
@@ -1,7 +1,5 @@
1
1
  export var PostSourceType;
2
2
  (function (PostSourceType) {
3
- PostSourceType["Channel"] = "CHANNEL";
4
- PostSourceType["Group"] = "GROUP";
5
3
  PostSourceType["MediaPage"] = "MEDIA_PAGE";
6
4
  PostSourceType["Organization"] = "ORGANIZATION";
7
5
  PostSourceType["UserProfile"] = "USER_PROFILE";
@@ -4,7 +4,12 @@ export {};
4
4
 
5
5
  <div class="web-view-stream-element">
6
6
  {#if model.url}
7
- <iframe title="Web View" src={model.url} style="width: 100%; height: 100%; border: none;" allowfullscreen></iframe>
7
+ <iframe
8
+ title="Web View"
9
+ src={model.url}
10
+ style="width: 100%; height: 100%; border: none;"
11
+ allowfullscreen
12
+ sandbox="allow-scripts allow-forms allow-same-origin"></iframe>
8
13
  {:else}
9
14
  <p>No URL provided for the web view.</p>
10
15
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "author": "StreamsCloud",
5
5
  "repository": "https://github.com/StreamsCloud/streamscloud-frontend-packages.git",
6
6
  "type": "module",
@@ -11,7 +11,7 @@
11
11
  "preview": "vite preview",
12
12
  "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
13
13
  "uad": "graphql-codegen --config codegen.yml && prettier --write src/**/*.generated.ts src/gql/*",
14
- "uad-types-only": "graphql-codegen --config codegen.types-only.yml && prettier --write src/gql/*",
14
+ "uad-types-only": "graphql-codegen --config codegen.types-only.ymlы && prettier --write src/gql/*",
15
15
  "lint": "prettier --check --plugin prettier-plugin-svelte . && eslint .",
16
16
  "lint-format": "prettier --write --plugin prettier-plugin-svelte . && eslint --fix .",
17
17
  "format": "prettier --write --plugin prettier-plugin-svelte ."