@hotbunny/hackhub-content-sdk 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/index.d.ts +14 -12
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -937,17 +937,17 @@ export declare abstract class Quest {
937
937
  * }
938
938
  * ```
939
939
  *
940
- * In your HTML, access exported functions via `window.ModExports`:
940
+ * In your HTML, exported functions are available as globals:
941
941
  * ```html
942
942
  * <script>
943
- * const formatted = window.ModExports.formatPost("hello");
943
+ * const formatted = formatPost("hello");
944
944
  * </script>
945
945
  * ```
946
946
  *
947
- * SDK APIs are available via `window.HackhubSDK`:
947
+ * SDK APIs are available via the `HackhubSDK` global:
948
948
  * ```html
949
949
  * <script>
950
- * window.HackhubSDK.Mail.send({ to: "user@mail.com", subject: "Hi" });
950
+ * HackhubSDK.Mail.send({ to: "user@mail.com", subject: "Hi" });
951
951
  * </script>
952
952
  * ```
953
953
  */
@@ -958,8 +958,9 @@ export declare abstract class Website {
958
958
  abstract Pages: WebsitePageDefinition[];
959
959
  Popular?: boolean;
960
960
  /**
961
- * Functions/values exposed to all pages' HTML via `window.ModExports`.
962
- * Use this to bridge your TypeScript logic with the iframe UI.
961
+ * Functions/values exposed to all pages' HTML as globals.
962
+ * Each key becomes directly callable in your HTML scripts (e.g. `formatPost("hello")`).
963
+ * Also accessible via the `ModExports` namespace.
963
964
  */
964
965
  Exports?: Record<string, any>;
965
966
  }
@@ -1030,18 +1031,18 @@ export declare abstract class Command {
1030
1031
  * }
1031
1032
  * ```
1032
1033
  *
1033
- * In your HTML, access exported functions via `window.ModExports`:
1034
+ * In your HTML, exported functions are available as globals:
1034
1035
  * ```html
1035
1036
  * <script>
1036
- * const pw = window.ModExports.generate(16);
1037
+ * const pw = generate(16);
1037
1038
  * document.getElementById("result").textContent = pw;
1038
1039
  * </script>
1039
1040
  * ```
1040
1041
  *
1041
- * SDK APIs are available via `window.HackhubSDK`:
1042
+ * SDK APIs are available via the `HackhubSDK` global:
1042
1043
  * ```html
1043
1044
  * <script>
1044
- * window.HackhubSDK.Events.emit("PasswordGenerated");
1045
+ * HackhubSDK.Events.emit("PasswordGenerated");
1045
1046
  * </script>
1046
1047
  * ```
1047
1048
  */
@@ -1061,8 +1062,9 @@ export declare abstract class App {
1061
1062
  /** If true, the app is unlocked in the AppStore by default (no quest required). */
1062
1063
  Unlocked?: boolean;
1063
1064
  /**
1064
- * Functions/values exposed to the app's HTML via `window.ModExports`.
1065
- * Use this to bridge your TypeScript logic with the iframe UI.
1065
+ * Functions/values exposed to the app's HTML as globals.
1066
+ * Each key becomes directly callable in your HTML scripts (e.g. `generate(16)`).
1067
+ * Also accessible via the `ModExports` namespace.
1066
1068
  */
1067
1069
  Exports?: Record<string, any>;
1068
1070
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotbunny/hackhub-content-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Type definitions and API reference for HackHub mod development",
5
5
  "types": "index.d.ts",
6
6
  "files": [