Commit Graph

709 Commits

Author SHA1 Message Date
Crowdin Bot 917c1c08f7 chore: Update translations from Crowdin 2024-01-25 00:49:31 +01:00
Daniel Jacobs dd158c6193 web: Remove swfUrl from RufflePlayer for files loaded by data 2024-01-24 12:11:44 -05:00
Crowdin Bot a916f6e7a2 chore: Update translations from Crowdin 2024-01-23 23:01:01 +01:00
Crowdin Bot 430463ecd3 chore: Update translations from Crowdin 2024-01-23 12:38:25 +01:00
Crowdin Bot a1131cd70f chore: Update translations from Crowdin 2024-01-21 22:15:55 +01:00
Crowdin Bot f90adeebe2 chore: Update translations from Crowdin 2024-01-21 02:28:29 +01:00
Crowdin Bot 1775e3e41f chore: Update translations from Crowdin 2024-01-19 23:21:02 +01:00
Crowdin Bot 5f123c3c01 chore: Update translations from Crowdin 2024-01-19 00:24:06 +01:00
TÖRÖK Attila d153290fd6 nits: Fix a whole bunch of typos all over the place 2024-01-17 23:59:19 +01:00
Daniel Jacobs 8f2292c2c7 core: Add error for loading invalid SWF files and display as appropriate 2024-01-17 17:38:47 -05:00
Daniel Jacobs 5765177ba7 web: Properly panic when loading invalid SWF files (fix #14665) 2024-01-17 17:38:47 -05:00
nosamu d1fff8a8ff web: Add special case for base="." 2024-01-12 10:39:07 +01:00
Nathan Adams d89e4536b3 core: Support Japanese font defaults 2024-01-10 23:15:26 +01:00
nosamu 4db454e933 web: Fix download link 2024-01-09 18:06:50 +01:00
Crowdin Bot 1325181a59 chore: Update translations from Crowdin 2024-01-06 09:30:28 +01:00
renovate[bot] 098aa228d1 chore(deps): update dependency typedoc to ^0.25.5 2024-01-01 04:11:41 +01:00
renovate[bot] 1c4db4d315 chore(deps): update node.js dependencies 2024-01-01 02:12:37 +01:00
Daniel Jacobs 27849b5cdc web: Add playerRuntime option to config for air or flashPlayer 2023-12-30 17:58:36 -05:00
Crowdin Bot 9523022cdd chore: Update translations from Crowdin 2023-12-23 13:26:37 +01:00
Crowdin Bot ba6ba842d7 chore: Update translations from Crowdin 2023-12-18 23:28:34 +01:00
TÖRÖK Attila f8260e1d3f web: Simplify the TS_NODE_COMPILER_OPTIONS value for mocha in core test 2023-12-15 20:21:12 +01:00
renovate[bot] e9c83f45ac chore(deps): update node.js dependencies 2023-12-08 13:45:16 +01:00
renovate[bot] 41ddb316a2 chore(deps): update node.js dependencies 2023-12-06 01:58:50 +01:00
Crowdin Bot d1bf2378cf chore: Update translations from Crowdin 2023-12-03 22:14:39 +01:00
Crowdin Bot 9477856079 chore: Update translations from Crowdin 2023-12-02 23:25:09 +01:00
Daniel Jacobs 13efea13ee web: Don't let video modal overflow RufflePlayer 2023-12-01 09:32:04 -05:00
Daniel Jacobs 9e146c0f49 web: Use CustomEvent instead of Event for load events so MooTools works 2023-11-28 13:28:06 -05:00
Nathan Adams fe99e6350b web: Don't require webpack, and export MovieMetadata type 2023-11-25 22:00:34 +01:00
Crowdin Bot d1784dc7c8 chore: Update translations from Crowdin 2023-11-23 00:38:05 +01:00
Nathan Adams 5c6b544a11 web: Disallow const enums 2023-11-21 19:39:01 +01:00
Nathan Adams 770b671bc5 web: PublicAPI.negotiate's prevRuffle argument is optional 2023-11-21 19:39:01 +01:00
Crowdin Bot 949b294bdf chore: Update translations from Crowdin 2023-11-10 22:30:29 +01:00
Nathan Adams 94009e4b1a web: Add credentialAllowList config option 2023-11-09 13:04:12 +01:00
Kornelius Rohrschneider 514611451f web: Set default Polyfill allowScriptAccess value to samedomain
The default allowScriptAccess value for polyfilled elements has been set
to samedomain. This means that it's true if the SWF file has the same
domain as the player website and false otherwise.
To do this, a new isPolyfillElement parameter is given to the
RufflePlayer::load method.
2023-11-08 17:09:54 +01:00
Kornelius Rohrschneider 8c8367a09c web: Fix Ruffle configuration not working properly for Polyfill elements
Previously, the Ruffle configuration options weren't working properly
for polyfilled elements.

A polyfilled element can have specific configuration options which
overwrite the more general Ruffle configuration settings.
But the code handling those specific configuration options has
previously set some of them to default values if they haven't been
provided, therefore overwriting the more general configuration settings.
This has been fixed. A getPolyfillOptions function has been created and
returns a URLLoadOptions object, containing only the options that have
been set for the respective element. Helper functions have been adapted
to not return any default values anymore.
getPolyfillOptions is now used in all places where polyfilled options
need to be retrieved (therefore reducing duplicated code).

Documentation has been added to clarify that these options must not
contain any default values, since those would overwrite other
configuration settings with a lower priority.
The extension and demo code has been changed to clarify that no default
values are contained in the element configuration options.

The RuffleEmbed::attributeChangedCallback method has previously loaded
an SWF file only with the parameters and base options. This has been
fixed as well since it now also uses getPolyfillOptions.

When using RuffleObject::connectedCallback to load an SWF file, setting
an element config option to "" hasn't worked for most config options
before either. This has been fixed as well by using the new
getPolyfillOptions function.

The default WindowMode value of the default Ruffle web config has been
set to Window (as it is in the desktop version and according to the
documentation). It has previously been set to Opaque (which causes the
same functionality).
2023-11-08 17:09:54 +01:00
Crowdin Bot 1c4380f633 chore: Update translations from Crowdin 2023-11-07 12:40:56 +01:00
renovate[bot] 9b3df944ad chore(deps): update node.js dependencies 2023-11-01 11:18:48 +01:00
Nathan Adams 5682e0101d web: Add defaultFonts config option for specifying the default _sans etc 2023-10-30 15:15:57 +01:00
Nathan Adams 857f65d077 web: Add fontSources config option for loading extra device fonts than our defaults 2023-10-30 15:15:57 +01:00
TÖRÖK Attila 7cec9ed969 chore: Add `--locked` to all `cargo build` invocations 2023-10-28 14:07:39 +02:00
renovate[bot] 997ad1643a chore(deps): update node.js dependencies 2023-10-27 23:40:04 +02:00
Daniel Jacobs 2eeee80646 web: Switch click and pointer events to act on element and not window 2023-10-27 15:55:16 -04:00
Crowdin Bot fd6568aa80 chore: Update translations from Crowdin 2023-10-27 00:49:17 +02:00
Daniel Jacobs 180d275f13 web: Check navigator.clipboard exists before using it 2023-10-26 13:01:55 -04:00
Daniel Jacobs 27831d7881 web: Make ruffle-player inherit pointer-events from parent 2023-10-25 17:03:44 -04:00
Crowdin Bot 1ca5f714f9 chore: Update translations from Crowdin 2023-10-23 03:21:14 +02:00
Nathan Adams 9758bf84c0 web: Exclude a bunch of internal api from the public api (including removing them from documentation) 2023-10-20 20:05:02 +02:00
Nathan Adams 14648ef0d5 web: make loadRuffle() return an instance, not a constructor 2023-10-20 20:05:02 +02:00
Nathan Adams 307f9bc820 web: Rename lastLoaded to nativeConstructor 2023-10-20 20:05:02 +02:00
Nathan Adams a9db2584c8 web: Make loadRuffle take in BaseLoadOptions, it doesn't need more complex than that 2023-10-20 20:05:02 +02:00