@ea-lab/reactive-json-docs 1.1.0 → 1.1.1
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.
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ When using custom event names in actions, you can specify:
|
|
|
14
14
|
|
|
15
15
|
- `what` (required): Name of the reaction function to execute (e.g., `setData`, `fetchData`, `submitData`, etc.).
|
|
16
16
|
- `on` (required): Name of the custom event to listen for (e.g., `"response"`, `"customUpdate"`, etc.).
|
|
17
|
-
- All other properties are passed as arguments to the reaction function and support [forward update placeholders](
|
|
17
|
+
- All other properties are passed as arguments to the reaction function and support [forward update placeholders](../../advanced-concepts/forward-update.md).
|
|
18
18
|
|
|
19
19
|
## Behavior
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ When you use a custom event name in an action (like `on: "response"`):
|
|
|
24
24
|
2. It attaches an event listener directly on the element that triggered the action
|
|
25
25
|
3. When the custom event is dispatched on that element:
|
|
26
26
|
- Receives the event object with its custom data
|
|
27
|
-
- Processes any [event placeholders](
|
|
27
|
+
- Processes any [event placeholders](../../advanced-concepts/forward-update.md) in the action properties
|
|
28
28
|
- Executes the reaction function specified in `what`
|
|
29
29
|
|
|
30
30
|
## How Custom Events Are Triggered
|
|
@@ -95,7 +95,7 @@ renderView:
|
|
|
95
95
|
|
|
96
96
|
## Event Data Access
|
|
97
97
|
|
|
98
|
-
CustomEventListener provides full access to the custom event data through the [forward update system](
|
|
98
|
+
CustomEventListener provides full access to the custom event data through the [forward update system](../../advanced-concepts/forward-update.md):
|
|
99
99
|
|
|
100
100
|
- `<reactive-json:event-new-value>` - Accesses `event.detail.value` for CustomEvent objects
|
|
101
101
|
- `<reactive-json:event>.detail.someProperty` - Direct access to event details
|
|
@@ -138,7 +138,7 @@ Some reactions automatically dispatch custom events:
|
|
|
138
138
|
|
|
139
139
|
- Automatically instantiated by the Actions system when custom event names are used
|
|
140
140
|
- Uses `addEventListener` directly on DOM elements (not React's event system)
|
|
141
|
-
- Supports the full [forward update system](
|
|
141
|
+
- Supports the full [forward update system](../../advanced-concepts/forward-update.md) for event data access
|
|
142
142
|
- Properly cleans up event listeners when component unmounts
|
|
143
143
|
- Integrates with the plugin system to execute available reaction functions
|
|
144
144
|
|
|
@@ -146,5 +146,5 @@ Some reactions automatically dispatch custom events:
|
|
|
146
146
|
|
|
147
147
|
- **[ReactOnEvent](ReactOnEvent.md)**: Handles standard DOM events (`click`, `change`, etc.)
|
|
148
148
|
- **[MessageListener](MessageListener.md)**: Handles `on: "message"` events
|
|
149
|
-
- **[Forward Update System](
|
|
149
|
+
- **[Forward Update System](../../advanced-concepts/forward-update.md)**: Event data access patterns
|
|
150
150
|
- **[Reactions System](../../getting-started/reactions.md)**: The actual reaction functions that CustomEventListener executes
|
|
@@ -28,7 +28,7 @@ renderView:
|
|
|
28
28
|
- term: "All other properties"
|
|
29
29
|
details:
|
|
30
30
|
type: Markdown
|
|
31
|
-
content: "Are passed as arguments to the reaction function and support [forward update placeholders](
|
|
31
|
+
content: "Are passed as arguments to the reaction function and support [forward update placeholders](../../advanced-concepts/forward-update)."
|
|
32
32
|
|
|
33
33
|
- type: Markdown
|
|
34
34
|
content: |
|
|
@@ -40,7 +40,7 @@ renderView:
|
|
|
40
40
|
2. It attaches an event listener directly on the element that triggered the action
|
|
41
41
|
3. When the custom event is dispatched on that element:
|
|
42
42
|
- Receives the event object with its custom data
|
|
43
|
-
- Processes any [event placeholders](
|
|
43
|
+
- Processes any [event placeholders](../../advanced-concepts/forward-update) in the action properties
|
|
44
44
|
- Executes the reaction function specified in `what`
|
|
45
45
|
|
|
46
46
|
## How Custom Events Are Triggered
|
|
@@ -61,7 +61,7 @@ renderView:
|
|
|
61
61
|
content: |
|
|
62
62
|
## Event Data Access
|
|
63
63
|
|
|
64
|
-
CustomEventListener provides full access to the custom event data through the [forward update system](
|
|
64
|
+
CustomEventListener provides full access to the custom event data through the [forward update system](../../advanced-concepts/forward-update):
|
|
65
65
|
|
|
66
66
|
- `<reactive-json:event-new-value>` - Accesses `event.detail.value` for CustomEvent objects
|
|
67
67
|
- `<reactive-json:event>.detail.someProperty` - Direct access to event details
|
|
@@ -150,7 +150,7 @@ renderView:
|
|
|
150
150
|
|
|
151
151
|
- **[ReactOnEvent](ReactOnEvent)**: Handles standard DOM events (`click`, `change`, etc.)
|
|
152
152
|
- **[MessageListener](MessageListener)**: Handles `on: "message"` events
|
|
153
|
-
- **[Forward Update System](
|
|
153
|
+
- **[Forward Update System](../../advanced-concepts/forward-update)**: Event data access patterns
|
|
154
154
|
- **[Reactions System](../../getting-started/reactions)**: The actual reaction functions that CustomEventListener executes
|
|
155
155
|
|
|
156
156
|
templates:
|