@phantomclient/plugin 0.1.0

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 (32) hide show
  1. package/README.md +7 -0
  2. package/dist/lib/chunks/api-B2tHXZiJ.js +9 -0
  3. package/dist/lib/chunks/sdk-permissions-BnKU1K9D.js +43 -0
  4. package/dist/lib/chunks/state-kAlKf5xt.js +33 -0
  5. package/dist/lib/guest.js +4490 -0
  6. package/dist/lib/index.js +77 -0
  7. package/dist/lib/styles.css +1 -0
  8. package/dist/lib/styles.js +1 -0
  9. package/dist/lib/vue.js +149 -0
  10. package/dist/runtime/assets/dm-mono-latin-400-normal--0xN8mdc.woff +0 -0
  11. package/dist/runtime/assets/dm-mono-latin-400-normal-4GdczIuU.woff2 +0 -0
  12. package/dist/runtime/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
  13. package/dist/runtime/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
  14. package/dist/runtime/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
  15. package/dist/runtime/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
  16. package/dist/runtime/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
  17. package/dist/runtime/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
  18. package/dist/runtime/assets/instrument-sans-latin-600-normal-B7fBEWYG.woff2 +0 -0
  19. package/dist/runtime/assets/instrument-sans-latin-600-normal-B9e8oLYv.woff +0 -0
  20. package/dist/runtime/chunks/api-Bj1J6wAH.js +1 -0
  21. package/dist/runtime/chunks/runtime-dom.esm-bundler-BbCcCl6A.js +4 -0
  22. package/dist/runtime/chunks/sdk-permissions-D_NYB67a.js +1 -0
  23. package/dist/runtime/chunks/state-CFbUQLzX.js +1 -0
  24. package/dist/runtime/frame.html +18 -0
  25. package/dist/runtime/runtime.css +1 -0
  26. package/dist/runtime/runtime.js +1 -0
  27. package/dist/runtime/sdk-vue.js +1 -0
  28. package/dist/runtime/sdk.js +1 -0
  29. package/dist/runtime/vue.js +1 -0
  30. package/dist/types/index.d.ts +9156 -0
  31. package/dist/types/vue.d.ts +6425 -0
  32. package/package.json +24 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @phantomclient/plugin
2
+
3
+ The API for writing [Phantom](https://phantm.site) plugins: `definePlugin`, the Phantom API a
4
+ plugin reaches the game through, and `@phantomclient/plugin/vue` for its panels and pages.
5
+
6
+ Start a plugin with `npm create phantom-plugin@latest`. The guides and the full reference are at
7
+ https://docs.phantm.site.
@@ -0,0 +1,9 @@
1
+ class o extends Error {
2
+ constructor(r, s) {
3
+ super(s), this.code = r, this.name = "PluginError";
4
+ }
5
+ code;
6
+ }
7
+ export {
8
+ o as P
9
+ };
@@ -0,0 +1,43 @@
1
+ const d = 1;
2
+ function r(e) {
3
+ return typeof e == "object" && e !== null && e.phantom === 1 && typeof e.type == "string";
4
+ }
5
+ function s(e) {
6
+ return r(e);
7
+ }
8
+ function n(e) {
9
+ return r(e);
10
+ }
11
+ function o(e, a = "") {
12
+ return `phantom-plugin://${e}/${a.replace(/^\/+/, "")}`;
13
+ }
14
+ const i = "__phantom/frame.html", c = "__phantom/runtime.js", l = "__phantom/runtime.css", u = 5299, m = "/__phantom/plugin.json", p = 15e8, v = 1e6, y = ["avatar.view", "adventures.record", "content.replaceOnScreen", "content.load"], h = { "avatar.view": "flash", "adventures.record": "sdk:adventures:read", "content.load": "flash", "content.replaceOnScreen": "flash", "recipes.chatShortcuts": "flash", "recipes.customChatBox": "flash", "recipes.chatHistoryPanel": "flash" }, t = { "avatar.position": "read", "avatar.walkTo": "act", "avatar.teleport": "act", "avatar.userId": "read", "avatar.userName": "read", "avatar.perUserAvId": "read", "avatar.colors": "read", "avatar.palette": "read", "avatar.colorOf": "read", "avatar.offerColors": "act", "avatar.restoreColors": "act", "avatar.pickColor": "act", "avatar.paint": "act", "avatar.act": "act", "avatar.list": "read", "avatar.switchTo": "act", "avatar.slots": "read", "avatar.remove": "act", "avatar.typeDefinition": "read", "avatar.isMemberOnlyType": "read", "avatar.lookup": "read", "avatar.lookupById": "read", "avatar.onSwitch": "read", "avatar.onLookup": "read", "avatar.onPaintResult": "read", "avatar.standing": "read", "avatar.idleAnimation": "read", "avatar.placeAt": "act", "avatar.playAnimation": "act", "avatar.tint": "act", "avatar.setOpacity": "act", "avatar.showBubble": "act", "avatar.setMode": "act", "avatar.face": "act", "avatar.walkSpeed": "read", "avatar.setWalkSpeed": "act", "avatar.glide": "act", "avatar.setNoClip": "act", "avatar.setAirborne": "act", "avatar.walkPath": "act", "avatar.walkThrough": "act", "player.login": "read", "player.onLogin": "read", "player.userName": "read", "player.uuid": "read", "player.avatarName": "read", "player.isMember": "read", "player.isModerator": "read", "player.accountType": "read", "player.isGuide": "read", "player.isSilenced": "read", "player.moderatedName": "read", "player.can": "read", "player.chatType": "read", "player.daysSinceLastLogin": "read", "player.isHostingParty": "read", "player.loginCount": "read", "player.createdAt": "read", "player.worldMapRoom": "read", "player.hasPendingFlag": "read", "player.discipline": "read", "player.onDiscipline": "read", "player.membershipDaysLeft": "read", "player.email": "read", "player.invisible": "read", "player.setInvisible": "act", "player.settingOn": "read", "chat.recent": "read", "chat.say": "act", "chat.emote": "act", "chat.phrase": "read", "chat.onMessage": "read", "chat.onAdminMessage": "read", "chat.onModeration": "read", "chat.onJamAGram": "read", "chat.phraseCode": "read", "chat.canSay": "read", "chat.phrasesReady": "read", "chat.blend": "act", "chat.fade": "act", "chat.slide": "act", "chat.phrases": "read", "chat.isEmote": "read", "chat.sayPhrase": "act", "chat.sayFree": "act", "chat.permanentEmote": "act", "chat.petAction": "act", "chat.attachmentEmote": "act", "chat.showBalloon": "act", "chat.log": "act", "chat.clearLog": "act", "buddies.list": "read", "buddies.online": "read", "buddies.blocked": "read", "buddies.get": "read", "buddies.isBlocked": "read", "buddies.refresh": "read", "buddies.add": "act", "buddies.remove": "act", "buddies.respond": "act", "buddies.block": "act", "buddies.unblock": "act", "buddies.locate": "read", "buddies.jumpTo": "act", "buddies.onRequest": "read", "buddies.onUpdate": "read", "buddies.onLocation": "read", "buddies.onBlockInfo": "read", "buddies.capacity": "read", "buddies.knows": "read", "buddies.details": "read", "buddies.pendingSent": "read", "buddies.isBlockingMe": "act", "buddies.showCard": "act", "buddies.closeCard": "act", "buddies.joinBuddyQuest": "act", "ecards.inbox": "read", "ecards.unread": "read", "ecards.get": "read", "ecards.refresh": "read", "ecards.unreadCount": "read", "ecards.remainingSends": "read", "ecards.cardMediaIds": "read", "ecards.stampMediaIds": "read", "ecards.isMessageAllowed": "read", "ecards.privacy": "read", "ecards.isComposerOpen": "read", "ecards.onReceived": "read", "ecards.onUpdated": "read", "ecards.onRemoved": "read", "ecards.onSendResult": "read", "ecards.onGiftResult": "read", "ecards.onPrivacyResult": "read", "ecards.clearCache": "act", "ecards.setPrivacy": "act", "ecards.markRead": "act", "ecards.remove": "act", "ecards.acceptGift": "act", "ecards.respondToBuddyRequest": "act", "ecards.openComposer": "act", "ecards.closeInbox": "act", "ecards.send": "act", "ecards.discardGift": "act", "playerWall.posts": "read", "playerWall.check": "read", "playerWall.privacyOf": "read", "playerWall.blockedMessages": "read", "playerWall.isOwnWallOpen": "read", "playerWall.openWallOwner": "read", "playerWall.onPosts": "read", "playerWall.post": "act", "playerWall.remove": "act", "playerWall.clear": "act", "playerWall.setPrivacy": "act", "playerWall.blockMessage": "act", "playerWall.acknowledgeNotifications": "act", "playerWall.countVisit": "act", "playerWall.openOwn": "act", "playerWall.open": "act", "playerWall.close": "act", "playerWall.myPrivacy": "read", "playerWall.cached": "read", "playerWall.hiddenPostIds": "read", "playerWall.permissions": "read", "playerWall.setParameters": "act", "playerWall.showPostAs": "act", "playerWall.removeMasterpiece": "act", "dailyGift.daysInCycle": "read", "dailyGift.statId": "read", "dailyGift.received": "read", "dailyGift.isOpen": "read", "dailyGift.current": "read", "dailyGift.onGift": "read", "dailyGift.open": "act", "dailyGift.keep": "act", "dailyGift.keepDiamonds": "act", "dailyGift.close": "act", "dailyGift.reject": "act", "sound.settings": "read", "sound.areSoundsMuted": "read", "sound.isMusicMuted": "read", "sound.volume": "read", "sound.musicVolume": "read", "sound.onChange": "read", "sound.muteSounds": "act", "sound.muteMusic": "act", "sound.muteAll": "act", "sound.toggleMute": "act", "sound.setVolume": "act", "sound.setSoundVolume": "act", "sound.setMusicVolume": "act", "sound.pauseMusic": "act", "sound.stopMusic": "act", "sound.stopSounds": "act", "sound.isBankLoaded": "read", "sound.pauseSounds": "act", "sound.unpauseSounds": "act", "sound.stopAll": "act", "sound.play": "act", "sound.stop": "act", "sound.onPlay": "read", "sound.onStop": "read", "sound.playEffect": "act", "sound.effects": "read", "sound.playSfx": "act", "sound.stopSfx": "act", "feedback.types": "read", "feedback.maxLength": "read", "feedback.isOpen": "read", "feedback.close": "act", "reports.report": "act", "reports.reportContent": "act", "newspaper.definitions": "read", "newspaper.dataOf": "read", "newspaper.hasUnseenPages": "read", "newspaper.hasSeenFirstPage": "read", "newspaper.onPageSeen": "read", "newspaper.markSeen": "act", "newspaper.open": "act", "masterpieces.itemsOf": "read", "masterpieces.creatorOf": "read", "trades.offer": "read", "trades.onOffer": "read", "trades.onConfirmRequest": "read", "trades.onComplete": "read", "trades.onEnd": "read", "trades.accept": "act", "trades.decline": "act", "trades.confirm": "act", "trades.cancel": "act", "trades.list": "read", "trades.myList": "read", "trades.request": "act", "trades.add": "act", "trades.remove": "act", "trades.onChange": "read", "trades.isTrading": "read", "trades.heldList": "read", "trades.setBusy": "act", "trades.onList": "read", "inventory.items": "read", "inventory.owned": "read", "inventory.worn": "read", "inventory.canWear": "read", "inventory.onChange": "read", "inventory.onUse": "read", "inventory.wear": "act", "inventory.takeOff": "act", "inventory.change": "act", "inventory.buy": "act", "inventory.recycle": "act", "inventory.wearableBy": "read", "inventory.limits": "read", "shops.offering": "read", "shops.definition": "read", "shops.listType": "read", "shops.isOpen": "read", "shops.open": "act", "shops.close": "act", "shops.diamondItem": "read", "shops.diamondDefinition": "read", "shops.diamondList": "read", "shops.buy": "act", "shops.sell": "act", "shops.onBuy": "read", "shops.onSell": "read", "shops.onList": "read", "shops.denOffering": "read", "shops.definitionsReady": "read", "shops.isAvailable": "read", "shops.onOpen": "read", "shops.buyDiamondBundle": "act", "pets.list": "read", "pets.active": "read", "pets.activeName": "read", "pets.get": "read", "pets.max": "read", "pets.kindName": "read", "pets.kindId": "read", "pets.hasUnnamedEggPet": "read", "pets.refresh": "read", "pets.sparkle": "act", "pets.activeInvId": "read", "pets.bringOut": "act", "pets.putAway": "act", "pets.free": "act", "pets.onSwitch": "read", "pets.onList": "read", "pets.onDismissed": "read", "pets.adoptionCards": "read", "pets.adoptionCard": "read", "pets.adoptionTier": "read", "pets.hasUnseenAdoption": "read", "pets.markAdoptionSeen": "act", "pets.definition": "read", "pets.appearance": "read", "pets.packBits": "read", "pets.canBringOut": "read", "pets.isUnlocked": "read", "pets.hasHatched": "read", "pets.setMasteryBadge": "act", "pets.nameEggPet": "act", "pets.create": "act", "pets.randomAppearance": "read", "room.players.list": "read", "room.players.count": "read", "room.players.get": "read", "room.players.byUserName": "read", "room.players.byAvatarName": "read", "room.players.onEnter": "read", "room.players.onLeave": "read", "room.players.onMove": "read", "room.players.refresh": "read", "room.current": "read", "room.details": "read", "room.layout": "read", "room.focusCamera": "act", "room.stopWalking": "act", "room.scene": "read", "room.restoreMusic": "act", "room.players.viewOf": "read", "room.players.views": "read", "room.toScreen": "read", "room.toWorld": "read", "room.worldItem": "read", "room.takeWorldItem": "act", "room.onJoin": "read", "room.onJoinFailed": "read", "room.join": "act", "room.teleport": "act", "room.respawn": "act", "room.spawns": "read", "room.portals": "read", "room.bounds": "read", "room.camera": "read", "room.moveCamera": "act", "room.holdCamera": "act", "room.setZoom": "act", "room.cellAt": "read", "room.checkWall": "read", "room.nearestOpen": "read", "room.respawnPoint": "read", "room.bounceAt": "read", "room.leavePreview": "act", "room.setPathDepth": "act", "room.volumes": "read", "room.volumesAt": "read", "room.layers": "read", "room.showAvatars": "act", "room.reload": "act", "dens.join": "act", "dens.joinOwn": "act", "dens.isOwnDen": "read", "dens.owner": "read", "dens.privacyOf": "read", "dens.setPrivacy": "act", "dens.rooms": "read", "dens.switchRoom": "act", "dens.visitors": "read", "dens.onVisitors": "read", "dens.onKicked": "read", "dens.items": "read", "dens.moveItem": "act", "dens.saveLayout": "act", "dens.inventory": "read", "dens.itemDefinition": "read", "dens.place": "act", "dens.removeItem": "act", "dens.buyItem": "act", "dens.recycleItems": "act", "dens.empty": "act", "dens.onEntered": "read", "dens.onEdited": "read", "dens.onRoomChanged": "read", "dens.onPrivacyChanged": "read", "dens.onRooms": "read", "dens.limits": "read", "dens.buyRoom": "act", "dens.recycleRooms": "act", "dens.ecoState": "read", "dens.redeemEcoCredits": "act", "dens.setEcoConsumer": "act", "denShop.offering": "read", "denShop.onChange": "read", "denShop.onBuy": "read", "denShop.list": "act", "denShop.reprice": "act", "denShop.unlist": "act", "denShop.buy": "act", "world.serverNode": "read", "world.shardId": "read", "world.shards": "read", "world.switchShard": "act", "world.roomCounts": "read", "world.onRoomCounts": "read", "world.requestNodeHop": "act", "world.onNodeHop": "read", "world.parties": "read", "world.customParties": "read", "world.joinParty": "act", "world.joinCustomParty": "act", "world.onPartyJoinFailed": "read", "world.onParties": "read", "world.onPartyNode": "read", "world.roomDefinition": "read", "world.goToPlayer": "act", "world.leaveRoom": "act", "world.partyDefinition": "read", "world.partyRules": "read", "world.shardName": "read", "world.hostParty": "act", "world.onHostingEnded": "read", "world.partyNode": "act", "world.hostingTimeLeft": "act", "world.showParties": "act", "world.onRoomList": "read", "world.onRandomKey": "read", "session.connected": "read", "session.mode": "read", "session.server": "read", "session.onConnectionLost": "read", "session.onConnected": "read", "session.onNodeSwitch": "read", "session.disconnect": "act", "session.requestList": "read", "session.onList": "read", "assets.deployVersion": "read", "assets.buildVersion": "read", "assets.loadMedia": "read", "assets.requestDefPack": "read", "assets.onLoaded": "read", "adventures.lobby": "read", "adventures.current": "read", "adventures.treasures": "read", "adventures.availableIds": "read", "adventures.definition": "read", "adventures.list": "read", "adventures.join": "act", "adventures.host": "act", "adventures.joinPrivate": "act", "adventures.joinBuddy": "act", "adventures.start": "act", "adventures.kick": "act", "adventures.leaveLobby": "act", "adventures.leave": "act", "adventures.openTreasure": "act", "adventures.keepTreasure": "act", "adventures.onJoinResult": "read", "adventures.onStart": "read", "adventures.onTreasure": "read", "adventures.onRewards": "read", "adventures.onXp": "read", "adventures.onLevelUp": "read", "adventures.onAward": "read", "adventures.onItemGiven": "read", "adventures.onPlayerLeft": "read", "adventures.onDefeated": "read", "adventures.onExited": "read", "adventures.onGiftChoice": "read", "adventures.onPlayerGiftChoice": "read", "adventures.actors": "read", "adventures.actor": "read", "adventures.collectables": "read", "adventures.health": "read", "adventures.actorPosition": "read", "adventures.trigger": "act", "adventures.pickUp": "act", "adventures.dropCarriedItem": "act", "adventures.collectTreasure": "act", "adventures.collect": "act", "adventures.crystalActors": "read", "adventures.takeRewards": "act", "adventures.clearRoomTransition": "act", "adventures.walkToActor": "act", "adventures.stopWalking": "act", "adventures.weapon": "read", "adventures.mode": "read", "adventures.attack": "act", "adventures.respawn": "act", "adventures.heal": "act", "adventures.answerQuestion": "act", "adventures.restart": "act", "adventures.pathDistances": "read", "adventures.crystals": "read", "adventures.liveActors": "read", "adventures.onCrystals": "read", "adventures.chooseReward": "act", "adventures.finishRewards": "act", "adventures.unlockedGifts": "read", "adventures.autoAcceptDialogue": "act", "adventures.stopAutoAcceptDialogue": "act", "adventures.closeDialogue": "act", "adventures.screenBlocked": "read", "adventures.closeGoalScreen": "act", "adventures.onActor": "read", "adventures.onActorIcon": "read", "adventures.onActorSeek": "read", "adventures.onAvatarSwitched": "read", "adventures.onCombatStats": "read", "adventures.onVolumeProgress": "read", "adventures.onHealth": "read", "adventures.onRewardChoice": "read", "adventures.onComplete": "read", "adventures.onEnd": "read", "adventures.phantomsNear": "read", "adventures.nearestPhantom": "read", "adventures.nearestPlant": "read", "adventures.darken": "act", "adventures.lighten": "act", "adventures.darkenFromScene": "act", "adventures.playSound": "act", "adventures.playMusic": "act", "adventures.loopSound": "act", "adventures.stopLoop": "act", "adventures.onStep": "read", "adventures.npcDefinition": "read", "adventures.inspectActor": "read", "adventures.hitAt": "read", "adventures.actorTouching": "read", "adventures.pointInActor": "read", "adventures.livePlayers": "read", "adventures.inStealth": "read", "adventures.meleeTargets": "act", "adventures.speak": "act", "adventures.actorHitText": "act", "adventures.statusText": "act", "adventures.showObjective": "act", "adventures.showActor": "act", "adventures.actorSwfState": "act", "adventures.actorPath": "act", "adventures.spawnActor": "act", "adventures.torch": "act", "adventures.shake": "act", "adventures.plantSeed": "act", "adventures.validatePlantSpot": "read", "adventures.eatPhantom": "act", "adventures.onSeedGiven": "read", "adventures.onSeedPlanted": "read", "adventures.onPlantAte": "read", "adventures.onPlantEatRecoil": "read", "adventures.canPlaySideScroll": "act", "minigames.current": "read", "minigames.isPlaying": "read", "minigames.play": "act", "minigames.leave": "act", "minigames.send": "act", "minigames.info": "read", "minigames.leaderboard": "read", "minigames.onJoinResult": "read", "minigames.onStart": "read", "minigames.onMessage": "read", "minigames.onEnd": "read", "minigames.onPvpInvite": "read", "minigames.onJoinRequest": "read", "minigames.definition": "read", "minigames.pvpGames": "read", "minigames.invitePvp": "act", "minigames.respondToPvp": "act", "minigames.submitScore": "act", "minigames.awardGems": "act", "minigames.awardPetMastery": "act", "minigames.keepAlive": "act", "minigames.status": "read", "minigames.playing": "read", "minigames.cachedLeaderboard": "read", "minigames.gameName": "read", "minigames.isOfferingPvp": "read", "minigames.onPlayerLeft": "read", "minigames.onInfo": "read", "minigames.onRoomRemoved": "read", "minigames.join": "act", "minigames.startNow": "act", "minigames.commitScore": "act", "minigames.feedGame": "act", "minigames.readyForPvp": "act", "minigames.offerPvp": "act", "minigames.joinOfferedPvp": "act", "minigames.chat": "act", "minigames.ticTacToe.board": "read", "minigames.ticTacToe.opponent": "read", "minigames.ticTacToe.myTurn": "read", "minigames.ticTacToe.mark": "act", "minigames.ticTacToe.onRoundStart": "read", "minigames.ticTacToe.onMarked": "read", "minigames.ticTacToe.onRoundEnd": "read", "minigames.connectFour.board": "read", "minigames.connectFour.opponent": "read", "minigames.connectFour.myTurn": "read", "minigames.connectFour.drop": "act", "minigames.connectFour.onRoundStart": "read", "minigames.connectFour.onDropped": "read", "minigames.connectFour.onRoundEnd": "read", "minigames.rockPaperScissors.opponent": "read", "minigames.rockPaperScissors.choose": "act", "minigames.rockPaperScissors.onRoundStart": "read", "minigames.rockPaperScissors.onReveal": "read", "minigames.shellGame.opponent": "read", "minigames.shellGame.winningShell": "read", "minigames.shellGame.pick": "act", "minigames.shellGame.onRoundStart": "read", "minigames.shellGame.onReveal": "read", "minigames.trivia.current": "read", "minigames.trivia.answer": "act", "minigames.trivia.react": "act", "minigames.trivia.onQuestion": "read", "minigames.trueFalse.current": "read", "minigames.trueFalse.answer": "act", "minigames.trueFalse.react": "act", "minigames.trueFalse.onQuestion": "read", "achievements.stat": "read", "achievements.stats": "read", "achievements.readStat": "read", "achievements.refreshStats": "read", "achievements.setStat": "act", "achievements.of": "read", "achievements.onStatChange": "read", "achievements.onAchievement": "read", "achievements.onAchievements": "read", "achievements.definition": "read", "achievements.definitions": "read", "achievements.hasUnseen": "read", "achievements.showNew": "act", "achievements.describe": "read", "achievements.types": "read", "achievements.catalogue": "read", "achievements.held": "read", "achievements.readStats": "read", "achievements.statBit": "read", "achievements.statType": "read", "currency.gems": "read", "currency.tickets": "read", "currency.diamonds": "read", "currency.balance": "read", "currency.read": "read", "currency.onChange": "read", "currency.donateGems": "act", "currency.redeemCode": "act", "currency.onRedeemResult": "read", "currency.onMembershipRedeemed": "read", "currency.canAfford": "read", "currency.wallet": "read", "currency.craftingCurrencies": "read", "currency.priceParts": "read", "currency.exchangeDefinition": "read", "currency.exchange": "act", "currency.onExchange": "read", "currency.onDonate": "read", "gui.tree": "read", "gui.find": "read", "gui.findAll": "read", "gui.at": "read", "gui.text": "read", "gui.isVisible": "read", "gui.isEnabled": "read", "gui.bounds": "read", "gui.popups": "read", "gui.click": "act", "gui.setText": "act", "gui.focus": "act", "gui.closePopup": "act", "gui.onPopup": "read", "gui.onText": "read", "gui.onVisible": "read", "gui.hud": "read", "gui.hudPart": "read", "gui.clickHud": "act", "gui.chatBox": "read", "gui.setChatBox": "act", "gui.chatHistory": "read", "gui.closeChatPanel": "act", "gui.freeChatEnabled": "read", "gui.onFreeChatChange": "read", "gui.gems": "read", "gui.diamonds": "read", "gui.openMap": "act", "gui.openBuddyList": "act", "gui.open": "act", "gui.screens": "read", "gui.close": "act", "gui.isModal": "read", "gui.isReconnecting": "read", "gui.focusChat": "act", "gui.refreshHudAvatar": "act", "gui.grayHudAvatar": "act", "gui.toggleHud": "act", "gui.isDarkened": "read", "editor.isAvatarEditorOpen": "read", "editor.avatarEditorColorTab": "read", "editor.openAvatarEditorTab": "act", "editor.onAvatarEditorTab": "read", "editor.onAvatarEditorOpen": "read", "editor.onAvatarEditorClose": "read", "editor.isDenEditorOpen": "read", "editor.toggleDenEditor": "act", "editor.onDenEditorToggle": "read", "editor.refreshDenLockSettings": "act", "editor.reloadDenItems": "act", "editor.clearDenInUseItems": "act", "editor.isPetCreatorOpen": "read", "editor.petCreatorTab": "read", "editor.openPetCreatorTab": "act", "editor.petCreatorColor": "read", "editor.pickPetCreatorColor": "act", "editor.onPetCreatorColorChange": "read", "editor.onPetCreatorOpen": "read", "editor.onPetCreatorClose": "read", "popups.list": "read", "popups.read": "read", "popups.answer": "act", "popups.onOpen": "read", "popups.onClose": "read", "popups.isOpen": "read", "popups.close": "act", "screens.isOpen": "read", "screens.close": "act", "screens.onOpen": "read", "screens.onClose": "read", "screens.denSwitcherIndex": "read", "screens.serverName": "read", "ui.skin": "act", "ui.theme": "read", "ui.symbols": "read", "ui.hasSymbol": "read", "ui.symbol": "act", "ui.window": "act", "ui.button": "act", "ui.label": "act", "ui.input": "act", "ui.checkbox": "act", "ui.dropdown": "act", "ui.tabs": "act", "ui.list": "act", "ui.grid": "act", "ui.scroll": "act", "ui.tooltip": "act", "ui.progress": "act", "ui.colors": "act", "ui.places": "read", "ui.place": "read", "ui.screens": "read", "ui.onScreen": "read", "ui.attach": "act", "ui.replace": "act", "ui.piece": "act", "ui.paletteValues": "read", "ui.feed": "act", "ui.hide": "act", "ui.clear": "act", "ui.popup.message": "act", "ui.popup.ok": "act", "ui.popup.okCancel": "act", "ui.popup.yesNo": "act", "ui.popup.titled": "act", "ui.popup.parchment": "act", "ui.popup.closeAll": "act", "localization.currentLanguage": "read", "localization.setLanguage": "act", "localization.hasLocalizations": "read", "localization.translate": "read", "localization.translatePreferred": "read", "localization.translateWithValues": "read", "localization.translateAvatarName": "read", "localization.translatePetName": "read", "localization.translateRichText": "read", "localization.isReversed": "read", "localization.languageId": "read", "localization.onLanguageChange": "read", "localization.onReady": "read", "content.available": "read", "content.replacements": "read", "content.onRequest": "read", "content.replace": "act", "content.restore": "act", "community.available": "read", "community.status": "read", "community.onStatus": "read", "community.members": "read", "community.onMembers": "read", "community.onMessage": "read", "community.online": "read", "community.join": "act", "community.leave": "act", "community.say": "act", "community.report": "act", "community.captureChat": "act", "community.invite": "act", "community.askToJoin": "act", "community.answer": "act", "community.onRequest": "read", "community.onAnswered": "read" };
15
+ function g(e) {
16
+ const a = e.slice(e.lastIndexOf(".") + 1);
17
+ return /^on[A-Z]/.test(a);
18
+ }
19
+ function f(e) {
20
+ return Object.prototype.hasOwnProperty.call(t, e);
21
+ }
22
+ function w(e) {
23
+ return `sdk:${e.slice(0, e.indexOf("."))}:${t[e]}`;
24
+ }
25
+ export {
26
+ m as D,
27
+ h as F,
28
+ y as N,
29
+ d as P,
30
+ c as R,
31
+ t as S,
32
+ n as a,
33
+ u as b,
34
+ i as c,
35
+ v as d,
36
+ p as e,
37
+ l as f,
38
+ s as g,
39
+ f as h,
40
+ g as i,
41
+ o as p,
42
+ w as s
43
+ };
@@ -0,0 +1,33 @@
1
+ import { shallowReactive as l } from "vue";
2
+ const s = l({ role: null, development: !1, initialized: !1, plugin: { id: "", version: "" }, mode: "dark", games: [], preferences: {}, granted: { scopes: [] }, flashIds: null, kind: null, contribution: null, props: {} });
3
+ let e = null;
4
+ function o(n) {
5
+ e = n;
6
+ }
7
+ function a() {
8
+ return e;
9
+ }
10
+ function r(n) {
11
+ Object.assign(s, { role: null, development: n, initialized: !1, plugin: { id: "", version: "" }, mode: "dark", games: [], preferences: {}, granted: { scopes: [] }, flashIds: null, kind: null, contribution: null, props: {} });
12
+ }
13
+ function t(n) {
14
+ if (!n) return null;
15
+ switch (n.kind) {
16
+ case "logic":
17
+ return n.game;
18
+ case "panel":
19
+ case "command-view":
20
+ return n.game;
21
+ case "page":
22
+ return null;
23
+ }
24
+ }
25
+ const u = /* @__PURE__ */ Symbol("phantom-plugin-context");
26
+ export {
27
+ u as P,
28
+ t as b,
29
+ a as c,
30
+ s as f,
31
+ r,
32
+ o as s
33
+ };