From 6ad6104e731be0a9381c51041fe22a05db24a98a Mon Sep 17 00:00:00 2001 From: Sergei Mikhailov Date: Wed, 19 Jul 2023 19:57:43 +0200 Subject: [PATCH] Feature iframe permissions (#154) --- CHANGELOG.md | 11 +++++++++++ config/services.yaml | 2 +- templates/launch/blocks/deepLinkingItem.html.twig | 2 +- .../platform/message/ltiResourceLinkLaunch.html.twig | 5 ++++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e0f33..2ddd348 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ CHANGELOG ========= +2.8.0 +----- + +* Added support for `autoplay`, `camera`, `display-capture`, `fullscreen`, `microphone` in iframe ResourceLink +* Fixed Deep Linking URL validation + +2.7.0 +----- + +* Added support for configurable LTI message TTL via `JWT_TTL` environment variable + 2.6.0 ----- diff --git a/config/services.yaml b/config/services.yaml index b76df44..a2866b7 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -8,7 +8,7 @@ parameters: application_env: '%env(resolve:APP_ENV)%' application_api_key: '%env(resolve:APP_API_KEY)%' application_vendors: '%kernel.project_dir%/vendor/composer/installed.php' - application_version: '2.7.0' + application_version: '2.8.0' container.dumper.inline_factories: true cache.redis.namespace: '%env(default:cache.redis.namespace.default:REDIS_CACHE_NAMESPACE)%' cache.redis.namespace.default: 'devkit' diff --git a/templates/launch/blocks/deepLinkingItem.html.twig b/templates/launch/blocks/deepLinkingItem.html.twig index e5b7030..4133391 100644 --- a/templates/launch/blocks/deepLinkingItem.html.twig +++ b/templates/launch/blocks/deepLinkingItem.html.twig @@ -22,7 +22,7 @@ {% endif %}
Description
{{ resource.text }}
- {% if resource.icon is defined %} + {% if resource.icon is defined and resource.icon.url is defined %}
Icon
{% endif %} diff --git a/templates/platform/message/ltiResourceLinkLaunch.html.twig b/templates/platform/message/ltiResourceLinkLaunch.html.twig index 36fef81..0a88303 100644 --- a/templates/platform/message/ltiResourceLinkLaunch.html.twig +++ b/templates/platform/message/ltiResourceLinkLaunch.html.twig @@ -266,7 +266,10 @@ $('#launch-in-iframe').click(function () { $(this).closest('.card').find('.card-body').replaceWith( $('
').addClass('card-body embed-responsive embed-responsive-16by9').append( - $('