diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml
index 9b21c57..8e6c065 100644
--- a/.idea/.idea.HopFrame/.idea/workspace.xml
+++ b/.idea/.idea.HopFrame/.idea/workspace.xml
@@ -11,15 +11,11 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -63,18 +59,23 @@
+
+
+
+
+
@@ -86,11 +87,13 @@
+
+
@@ -122,7 +125,7 @@
"RunOnceActivity.git.unshallow": "true",
"b5f11219-dfc4-47a1-b02c-90ab603034fb.executor": "Debug",
"dcdf1689-dc07-47e4-8824-2e60a4fbf301.executor": "Debug",
- "git-widget-placeholder": "!29 on feature/custom-views",
+ "git-widget-placeholder": "!30 on feature/plugins",
"list.type.of.created.stylesheet": "CSS",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
@@ -233,6 +236,10 @@
+
+
+
+
@@ -514,7 +521,39 @@
1738407710507
-
+
+
+ 1738422931038
+
+
+
+ 1738422931038
+
+
+
+ 1738519603597
+
+
+
+ 1738519603597
+
+
+
+ 1738770468949
+
+
+
+ 1738770468949
+
+
+
+ 1738773315593
+
+
+
+ 1738773315593
+
+
@@ -565,10 +604,6 @@
-
-
-
-
@@ -590,6 +625,10 @@
-
+
+
+
+
+
\ No newline at end of file
diff --git a/src/HopFrame.Core/Events/EventTypes.cs b/src/HopFrame.Core/Callbacks/CallbackTypes.cs
similarity index 66%
rename from src/HopFrame.Core/Events/EventTypes.cs
rename to src/HopFrame.Core/Callbacks/CallbackTypes.cs
index d2ad751..6a66864 100644
--- a/src/HopFrame.Core/Events/EventTypes.cs
+++ b/src/HopFrame.Core/Callbacks/CallbackTypes.cs
@@ -1,8 +1,8 @@
using HopFrame.Core.Config;
-namespace HopFrame.Core.Events;
+namespace HopFrame.Core.Callbacks;
-public static class EventTypes {
+public static class CallbackTypes {
private const string Prefix = "HopFrame.";
private const string CreateEntryPrefix = Prefix + "Entry.Create.";
@@ -13,18 +13,18 @@ public static class EventTypes {
public static string UpdateEntry(TableConfig config) => UpdateEntryPrefix + config.PropertyName;
public static string DeleteEntry(TableConfig config) => DeleteEntryPrefix + config.PropertyName;
- public static string ConstructEventName(EventType type, TableConfig config) {
+ public static string ConstructCallbackName(CallbackType type, TableConfig config) {
return type switch {
- EventType.CreateEntry => CreateEntry(config),
- EventType.UpdateEntry => UpdateEntry(config),
- EventType.DeleteEntry => DeleteEntry(config),
+ CallbackType.CreateEntry => CreateEntry(config),
+ CallbackType.UpdateEntry => UpdateEntry(config),
+ CallbackType.DeleteEntry => DeleteEntry(config),
_ => Prefix
};
}
}
-public enum EventType {
+public enum CallbackType {
CreateEntry = 0,
UpdateEntry = 1,
DeleteEntry = 2
diff --git a/src/HopFrame.Core/Events/HopEventHandler.cs b/src/HopFrame.Core/Callbacks/HopCallbackHandler.cs
similarity index 55%
rename from src/HopFrame.Core/Events/HopEventHandler.cs
rename to src/HopFrame.Core/Callbacks/HopCallbackHandler.cs
index b3767b4..ec61d0a 100644
--- a/src/HopFrame.Core/Events/HopEventHandler.cs
+++ b/src/HopFrame.Core/Callbacks/HopCallbackHandler.cs
@@ -1,6 +1,6 @@
-namespace HopFrame.Core.Events;
+namespace HopFrame.Core.Callbacks;
-public readonly struct HopEventHandler(string eventType, Func