22 Commits

Author SHA1 Message Date
philter
fafd66788a chore: Enable with_rive_scripting flag for wasm (#11329) 8e395d6bb0
Co-authored-by: Philip Chung <philterdesign@gmail.com>
2026-01-06 19:06:14 +00:00
luigi-rosso
fbd07113b2 chore: bump to luau 0.703 (#11285) 752595c590
* chore: bump to luau 0.703

* fix: error changed in linter

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-12-16 18:35:16 +00:00
philter
76eae106ad Scripting in Core Runtime (#11235) 0a5325e474
rev to luau 0.702 (#11259) b50983c49d

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
Co-authored-by: Philip Chung <philterdesign@gmail.com>
2025-12-11 23:09:23 +00:00
luigi-rosso
a228887fa6 chore: updating to luau_701 (#11142) d4dfc63c3a
Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-23 19:17:17 +00:00
luigi-rosso
bf4098ccac feature: autocomplete requires! (#11090) 6bd796b5f0
* feature: autocomplete requires!

* chore: cleanup

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-19 23:26:07 +00:00
luigi-rosso
6d943f51ed feature: Script signing (#11016) 9295f20b82
* feature: signing and compiling via ffi

* feature: script signing

* fix: missed with rive scripting

* chore: more fixes

* fix: rive_native wasm

* fix: missed dispose call for the workspace

* feature: optional signing

* chore: core collision

* feature: doing actual verification

* fix: signature verification at runtime

* chore: missed files

* fix: switch order

* fix: with rive scripting flag

* fix: core def collisions

* chore: unifying enrich assets

* chore: remove unnecessary type check

* fix: signing context

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-18 23:55:24 +00:00
luigi-rosso
a5779b15f6 chore: rev to latest luau release 700 (rive_0_23) (#11060) 2ac436db1b
* chore: rev to latest luau release 700 (rive_0_23)

* fix: api changes

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-17 23:00:19 +00:00
luigi-rosso
547b32616d chore: rev to luau 0.699 (#11019) 1bb021d018
Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-11 14:44:47 +00:00
luigi-rosso
4dd14ab6ad fix: crash when multiple definitions have the same name (#10976) 43585faefe
Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-05 02:41:57 +00:00
luigi-rosso
bd4d7d421f feature: rev to latest luau (#10960) ac8e6c591e
Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-11-03 13:03:52 +00:00
luigi-rosso
256cb44fb7 rev to rive_luau_18 (#10901) c1e0f7b595
* rev to rive_luau_18

* fix: for change in luau

* fix: default old solver

* adding back missing files

* fix: test

* update .riv files

* chore: updated to luau 0.697

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-10-24 22:07:27 +00:00
csmartdalton
fec00ac453 feat: Integrate glfw into the premake build (#10656) 653c8c6040
Build GLFW with premake instead of requiring the user to call out into a
custom script thatbuses their cmake.

feat(scripting): split code panels (#10655) 9d8b49152e
* feature(scripting): command palette

* feature: adding split pane saving

* chore: update to latest luau

* fix: pixel correct scrollbars

* feature: reload scroll position of script pane

* feature: module titles on panes

* chore: merging command palettes

* fix: cleanup

* chore: refactor searchbar tests

* fix: failing test

* chore: cleanup

* chore: cleanup

* chore: cleanup unused commented code

* feature: hover for command palette items

* chore: cleanup mocks

Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-09-25 20:42:43 +00:00
luigi-rosso
a729a7337e feature: scripting prevent infinite exec (#10570) 3afebf3d4f
* feature: working on fullscreen code

* feature(scripting): prevent infinite execution

* fix: missing method for ScriptingTest context

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-09-12 18:02:51 +00:00
luigi-rosso
e049c47e1b feature: console entry can be clicked to open script file (#10484) b555c57747
* feature: console entry can be clicked to open script file

* chore: missed files

* fix: mixed file

* fix: failing tests

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-09-03 19:48:11 +00:00
luigi-rosso
f72822306d Scripted artboard inputs (#10449) 4a7bec6316
* feature: working on artboard inputs

* feature: artboard inputs

* feature: artboard input

* feature: artboards controlled by scripts

* chore: bump to latest luau

* feature: show only valid artboards

* chore: adding a test for scripted artboards

* fix: dart test

* chore: fix tests

* chore: adding missed coin.riv

* chore: fix copy ellision warnings

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-08-26 20:18:49 +00:00
luigi-rosso
570de5fb86 feature: hydrogen search improvements (#10412) f6d5d55b26
* feature: command+g/shift+command+g to find next/prev

* feature: add command+d to select word occurences

* fix: warning

* chore: cleanup

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-08-20 16:04:07 +00:00
luigi-rosso
d8cd657016 Feature: scripted data inputs (#10339) 8693175cee
* chore: reworking inputs and properties

* chore: syncing rive_native fixes

* feature: adding script input parameters

* feature: adding listeners

* chore: missed files

* feature: add/remove listeners

* chore: updating to latest luau

* chore: fix tests & colliding names

* fix: missing import

* chore: fix warnings

* feature: guard against change during iteration

* chore: fix boolean warning

* fix: handle error reports from builtin types

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-08-11 23:05:37 +00:00
luigi-rosso
e1faf5fc38 feature: ViewModel scripted definitions (#10301) 5678d967c7
* feature: system generated code

* working on input viewmodels/enums

* missed files

* fix: autocomplete with old solver

* fix: report types in autocomplete

* add property path solver

* chore: adding nested artboard databind test

* feature: use property solver for scripted inputs

* chore: cleanup

* chore: fix analysis warnings

* chore: missed file

* chore: fixing warnings

* fix test

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-08-04 15:23:32 +00:00
luigi-rosso
702faecc7c feature: script inputs (#10267) 3d15aeda55
* feature: detection of implemented type arguments

* fixing highlight of type union

* feature: custom properties

* feature: working on scripted properties refactor

* feature: working on inputs and outputs

* chore: working on crash

* fix: fixes crash issue with luau

* feat: working on inputs

* chore: allow using old solver

* chore: missed json file

* chore: missing files & cleanup

* chore: missed sriv file

* chore: fixing unused var

* chore: fix read not supported with old solver, and core collision

* fix: use different script update flag

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-07-30 16:11:55 +00:00
luigi-rosso
ba5079efe7 feature: scripting require (#10133) 496fa2b490
* fix: working on dependent imports

* feature: add full problem report to wasm

* feature: runtime require

* feature: scripting require

* chore: remove string_view

* chore: assert instead of runtime error

* chore: fix warning on windows

* chore: fix memory leak

* chore: fix unused var

* chore: more windows warnings

* chore: fix dart code_core tests

* fix: missing bool in FFI setScriptSource

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-07-10 19:19:23 +00:00
luigi-rosso
f8d2ad5041 feature: scripting in editor (#10086) 7be3a0fe02
Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2025-07-06 19:12:21 +00:00
luigi-rosso
914d487551 Scripting begins!
Hefty document with all the details of what's implemented so far (check out sub-pages in the Tasks grid) [here](https://www.notion.so/rive-app/Hydrogen-1175da0b06d9807ea221c1cd2fbd0175?pvs=4).

Working in the desktop and web editors:

Desktop
![CleanShot 2024-12-13 at 15 47 33@2x](https://github.com/user-attachments/assets/04c796a7-c358-48cc-8f3a-8e31439eafd9)

Web
![CleanShot 2024-12-13 at 15 47 59@2x](https://github.com/user-attachments/assets/fd67851a-ef76-4420-8459-a0bfeb8b94dd)

There's also a standalone test app in packages/sample_code_core:
![CleanShot 2024-12-13 at 15 48 54@2x](https://github.com/user-attachments/assets/7deedf87-3b54-4f80-876b-ac348a0d5b0d)

Diffs=
b9773680e3 Scripting begins! (#8751)

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2024-12-16 16:52:22 +00:00