expo-dev-menu 5.0.1 → 5.0.2

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/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 5.0.2 — 2024-04-22
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 5.0.1 — 2024-04-19
14
18
 
15
19
  ### 🎉 New features
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '5.0.1'
4
+ version = '5.0.2'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -20,7 +20,7 @@ android {
20
20
  namespace "expo.modules.devmenu"
21
21
  defaultConfig {
22
22
  versionCode 10
23
- versionName '5.0.1'
23
+ versionName '5.0.2'
24
24
  }
25
25
 
26
26
  buildTypes {
@@ -1 +1 @@
1
- {"version":3,"file":"DevMenu.js","sourceRoot":"","sources":["../src/DevMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,WAAW,MAAM,eAAe,CAAC;AAGxC;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,WAAW,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,WAAW,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS;IACvB,WAAW,CAAC,SAAS,EAAE,CAAC;AAC1B,CAAC;AAED,IAAI,6BAA6B,GAAG,KAAK,CAAC;AAE1C,SAAS,wBAAwB;IAC/B,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACnC,kBAAkB,CAAC,WAAW,CAAC,yBAAyB,EAAE,CAAC,IAAY,EAAE,EAAE;YACzE,6BAA6B,GAAG,IAAI,CAAC;YACrC,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAEnC,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;gBACpB,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,wBAAwB,EAAE,CAAC;AAE3B,IAAI,QAAQ,GAAG,IAAI,GAAG,EAAsB,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,KAAwB;IACjE,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;IACrB,MAAM,aAAa,GAAiD,EAAE,CAAC;IAEvE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["import { DeviceEventEmitter } from 'react-native';\n\nimport ExpoDevMenu from './ExpoDevMenu';\nimport { ExpoDevMenuItem } from './ExpoDevMenu.types';\n\n/**\n * A method that opens development client menu when called.\n */\nexport function openMenu(): void {\n ExpoDevMenu.openMenu();\n}\n\n/**\n * A method that hides development client menu when called.\n */\nexport function hideMenu(): void {\n ExpoDevMenu.hideMenu();\n}\n\n/**\n * A method that closes development client menu when called.\n */\nexport function closeMenu(): void {\n ExpoDevMenu.closeMenu();\n}\n\nlet hasRegisteredCallbackListener = false;\n\nfunction registerCallbackListener() {\n if (!hasRegisteredCallbackListener) {\n DeviceEventEmitter.addListener('registeredCallbackFired', (name: string) => {\n hasRegisteredCallbackListener = true;\n const handler = handlers.get(name);\n\n if (handler != null) {\n handler();\n }\n });\n }\n}\n\nregisterCallbackListener();\n\nlet handlers = new Map<string, () => void>();\n\n/**\n * A method that allows to specify custom entries in the development client menu.\n * @param items\n */\nexport async function registerDevMenuItems(items: ExpoDevMenuItem[]): Promise<void> {\n handlers = new Map();\n const callbackNames: { name: string; shouldCollapse?: boolean }[] = [];\n\n items.forEach((item) => {\n handlers.set(item.name, item.callback);\n callbackNames.push({ name: item.name, shouldCollapse: item.shouldCollapse });\n });\n\n return await ExpoDevMenu.addDevMenuCallbacks(callbackNames);\n}\n"]}
1
+ {"version":3,"file":"DevMenu.js","sourceRoot":"","sources":["../src/DevMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,WAAW,MAAM,eAAe,CAAC;AAGxC;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,WAAW,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,WAAW,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS;IACvB,WAAW,CAAC,SAAS,EAAE,CAAC;AAC1B,CAAC;AAED,IAAI,6BAA6B,GAAG,KAAK,CAAC;AAE1C,SAAS,wBAAwB;IAC/B,IAAI,CAAC,6BAA6B,EAAE;QAClC,kBAAkB,CAAC,WAAW,CAAC,yBAAyB,EAAE,CAAC,IAAY,EAAE,EAAE;YACzE,6BAA6B,GAAG,IAAI,CAAC;YACrC,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAEnC,IAAI,OAAO,IAAI,IAAI,EAAE;gBACnB,OAAO,EAAE,CAAC;aACX;QACH,CAAC,CAAC,CAAC;KACJ;AACH,CAAC;AAED,wBAAwB,EAAE,CAAC;AAE3B,IAAI,QAAQ,GAAG,IAAI,GAAG,EAAsB,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,KAAwB;IACjE,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;IACrB,MAAM,aAAa,GAAiD,EAAE,CAAC;IAEvE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["import { DeviceEventEmitter } from 'react-native';\n\nimport ExpoDevMenu from './ExpoDevMenu';\nimport { ExpoDevMenuItem } from './ExpoDevMenu.types';\n\n/**\n * A method that opens development client menu when called.\n */\nexport function openMenu(): void {\n ExpoDevMenu.openMenu();\n}\n\n/**\n * A method that hides development client menu when called.\n */\nexport function hideMenu(): void {\n ExpoDevMenu.hideMenu();\n}\n\n/**\n * A method that closes development client menu when called.\n */\nexport function closeMenu(): void {\n ExpoDevMenu.closeMenu();\n}\n\nlet hasRegisteredCallbackListener = false;\n\nfunction registerCallbackListener() {\n if (!hasRegisteredCallbackListener) {\n DeviceEventEmitter.addListener('registeredCallbackFired', (name: string) => {\n hasRegisteredCallbackListener = true;\n const handler = handlers.get(name);\n\n if (handler != null) {\n handler();\n }\n });\n }\n}\n\nregisterCallbackListener();\n\nlet handlers = new Map<string, () => void>();\n\n/**\n * A method that allows to specify custom entries in the development client menu.\n * @param items\n */\nexport async function registerDevMenuItems(items: ExpoDevMenuItem[]): Promise<void> {\n handlers = new Map();\n const callbackNames: { name: string; shouldCollapse?: boolean }[] = [];\n\n items.forEach((item) => {\n handlers.set(item.name, item.callback);\n callbackNames.push({ name: item.name, shouldCollapse: item.shouldCollapse });\n });\n\n return await ExpoDevMenu.addDevMenuCallbacks(callbackNames);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoDevMenu.web.d.ts","sourceRoot":"","sources":["../src/ExpoDevMenu.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;wBAgB7C,WAAW;AAbhB,wBAaiB"}
1
+ {"version":3,"file":"ExpoDevMenu.web.d.ts","sourceRoot":"","sources":["../src/ExpoDevMenu.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;;AAGlD,wBAaiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Expo/React Native module with the developer menu.",
5
5
  "main": "build/DevMenu.js",
6
6
  "types": "build/DevMenu.d.ts",
@@ -47,7 +47,7 @@
47
47
  ]
48
48
  },
49
49
  "dependencies": {
50
- "expo-dev-menu-interface": "1.8.1",
50
+ "expo-dev-menu-interface": "1.8.2",
51
51
  "semver": "^7.5.4"
52
52
  },
53
53
  "devDependencies": {
@@ -63,12 +63,12 @@
63
63
  "graphql": "^15.3.0",
64
64
  "graphql-tag": "^2.10.1",
65
65
  "react": "18.2.0",
66
- "react-native": "0.74.0-rc.9",
66
+ "react-native": "0.74.0",
67
67
  "url": "^0.11.0",
68
68
  "use-subscription": "^1.8.0"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "expo": "*"
72
72
  },
73
- "gitHead": "75658dcbae535ec32cbb296de1c811eba059e03a"
73
+ "gitHead": "0897aeadb926491a457bcd67d83360956994ee82"
74
74
  }