@buoy-gg/shared-ui 7.0.59 → 7.0.60
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/lib/commonjs/index.js +1 -1
- package/lib/commonjs/license/BuoyUpgradeSheet.js +1 -0
- package/lib/commonjs/license/FeatureGate.js +1 -1
- package/lib/commonjs/license/index.js +1 -1
- package/lib/commonjs/license/licenseModule.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/license/BuoyUpgradeSheet.js +1 -0
- package/lib/module/license/FeatureGate.js +1 -1
- package/lib/module/license/index.js +1 -1
- package/lib/module/license/licenseModule.js +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/license/BuoyUpgradeSheet.d.ts +27 -0
- package/lib/typescript/commonjs/license/FeatureGate.d.ts +1 -1
- package/lib/typescript/commonjs/license/index.d.ts +2 -2
- package/lib/typescript/commonjs/license/licenseModule.d.ts +25 -0
- package/lib/typescript/commonjs/ui/otto/ottoEngine.d.ts +1 -1
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/license/BuoyUpgradeSheet.d.ts +27 -0
- package/lib/typescript/module/license/FeatureGate.d.ts +1 -1
- package/lib/typescript/module/license/index.d.ts +2 -2
- package/lib/typescript/module/license/licenseModule.d.ts +25 -0
- package/lib/typescript/module/ui/otto/ottoEngine.d.ts +1 -1
- package/lib/web/chunks/chunk-7YVWZ4ZK.mjs +1 -1
- package/lib/web/chunks/chunk-BZTGYXMT.mjs +1 -0
- package/lib/web/chunks/chunk-GF364FIK.mjs +1 -0
- package/lib/web/chunks/chunk-JYM7MCKQ.mjs +1 -1
- package/lib/web/chunks/chunk-L7OYS724.mjs +1 -0
- package/lib/web/chunks/chunk-OPTY6SMO.mjs +1 -1
- package/lib/web/chunks/chunk-PXAINEZK.mjs +6 -6
- package/lib/web/chunks/chunk-SYU4BFQR.mjs +6 -0
- package/lib/web/chunks/chunk-T2SPCEHP.mjs +1 -1
- package/lib/web/chunks/chunk-UYWHGSA7.mjs +1 -0
- package/lib/web/dataViewer.mjs +2 -2
- package/lib/web/history.mjs +1 -1
- package/lib/web/index.mjs +3 -3
- package/lib/web/ui.mjs +1 -1
- package/lib/web/utils.mjs +1 -1
- package/package.json +5 -5
- package/lib/commonjs/license/LicenseEntryModal.js +0 -5
- package/lib/module/license/LicenseEntryModal.js +0 -5
- package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts +0 -22
- package/lib/typescript/module/license/LicenseEntryModal.d.ts +0 -22
package/lib/web/ui.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{$ as a,$a as s,$b as o,Aa as t,Ab as e,Ac as b,Ba as r,Bb as i,Bc as l,Ca as n,Cb as T,Cc as c,Da as S,Db as
|
|
1
|
+
"use client";import{$ as a,$a as s,$b as o,Aa as t,Ab as e,Ac as b,Ba as r,Bb as i,Bc as l,Ca as n,Cb as T,Cc as c,Da as S,Db as E,Dc as O,Ea as p,Eb as d,Ec as g,Fa as u,Fb as C,Fc as _,Ga as m,Gb as R,Gc as A,Ha as B,Hb as F,Ia as y,Ib as I,Ja as P,Jb as w,Ka as L,Kb as D,La as N,Lb as h,Ma as G,Mb as f,Na as W,Oa as U,P as k,Pa as H,Q as M,Qa as v,R as V,Ra as x,S as K,Sa as j,Sb as Y,T as q,Ta as z,Tb as X,U as Z,Ua as $,Ub as J,V as Q,Va as aa,Vb as sa,W as oa,Wa as ta,Wb as ea,X as ba,Xa as ra,Xb as ia,Y as la,Ya as na,Yb as Ta,Z as ca,Za as Sa,Zb as Ea,_ as Oa,_a as pa,_b as da,a as ga,aa as ua,ab as Ca,ac as _a,b as ma,ba as Ra,bb as Aa,bc as Ba,c as Fa,ca as ya,cb as Ia,cc as Pa,da as wa,db as La,dc as Da,ea as Na,eb as ha,ec as Ga,fa,fb as Wa,fc as Ua,g as ka,ga as Ha,gb as Ma,gc as va,ha as Va,hb as xa,hc as Ka,ia as ja,ib as Ya,ic as qa,ja as za,jb as Xa,jc as Za,ka as $a,kb as Ja,kc as Qa,la as as,lb as ss,lc as os,ma as ts,mb as es,mc as bs,na as rs,nb as is,nc as ls,oa as ns,ob as Ts,oc as cs,pa as Ss,pb as Es,pc as Os,qa as ps,qb as ds,qc as gs,ra as us,rb as Cs,rc as _s,sa as ms,sb as Rs,sc as As,ta as Bs,tb as Fs,tc as ys,ua as Is,ub as Ps,uc as ws,va as Ls,vb as Ds,vc as Ns,wa as hs,wb as Gs,wc as fs,xa as Ws,xb as Us,xc as ks,ya as Hs,yc as Ms,za as vs,zb as Vs,zc as xs}from"./chunks/chunk-SYU4BFQR.mjs";import{a as Ks}from"./chunks/chunk-GF364FIK.mjs";import{a as js,b as Ys,c as qs,d as zs,e as Xs,f as Zs,g as $s,h as Js,i as Qs,j as ao,k as so,l as oo,m as to,n as eo,o as bo,p as ro}from"./chunks/chunk-4IM4VIMP.mjs";import"./chunks/chunk-GF5C5DVX.mjs";import"./chunks/chunk-NVD5LLXD.mjs";import{f as io,h as lo,i as no,j as To,k as co,l as So}from"./chunks/chunk-UYWHGSA7.mjs";import{sd as Eo}from"./chunks/chunk-L7OYS724.mjs";import{a as Oo,d as po,f as go,g as uo}from"./chunks/chunk-CE5U3CSQ.mjs";import"./chunks/chunk-QNLAFQET.mjs";import"./chunks/chunk-FP44YK4E.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-L63X3LPR.mjs";export{js as ARROW_BOTTOM_OFFSET,Ys as ARROW_HEIGHT,K as ActionCopyButton,Ra as AddFilterButton,ua as AddFilterInput,gs as BACKGROUND_PRESETS,Ns as BACKGROUND_STORAGE_KEY,ga as BackButton,xs as BackgroundSwitcher,Na as Badge,p as CELLS,g as CLIP_OFFSCREEN_CELLS,Y as ChangeRow,_a as ChipStrip,ka as ClipboardHintBanner,Fs as CollapsibleSection,wa as CompactFilterChips,Ks as CompactRow,I as CompareBar,k as CopyButton,Ha as CountBadge,O as CyberpunkSectionButton,_s as DEFAULT_BACKGROUND,rs as DEVTOOLS_CARD_CONSTANTS,Ps as DataInspector,l as DaylightTunable,Qa as DeepFieldTunable,ds as DetailView,f as DetailViewToggle,ns as DevToolsCard,F as DiffModeTabs,Cs as DraggableHeader,Gs as DynamicFilterView,_ as EVENT_LIST_PRESET,Ya as EmptyState,Ea as EntityFilterView,w as EventHistoryViewer,as as EventListItem,D as EventPickerModal,i as EventStepperFooter,T as ExpandablePopover,d as ExpandedInfoRow,Pa as ExportPreview,a as FilterBadge,ya as FilterList,Oa as FilterSection,ao as FloatingTool,$s as FloatingToolDivider,ro as FloatingToolHost,Js as FloatingToolUserStatus,Ta as FooterButton,ea as FooterCaption,ia as FooterMessage,sa as FooterRow,co as GAME_UI_ALERT_STATES,io as GameUICollapsibleSection,no as GameUICompactStats,To as GameUIIssuesList,lo as GameUIStatusHeader,Rs as GripVerticalIcon,Ss as HeaderSearchButton,h as InfoRow,M as InlineCopyButton,A as LOG_LIST_PRESET,Za as LinearFade,ca as ListItem,Os as LiveSkyTunable,L as MAX_PERIOD,ja as MethodBadge,oa as ModalHeader,ba as ModalHintBanner,b as MoonlightTunable,Xa as NoDataEmptyState,Ja as NoResultsEmptyState,ss as NoSearchResultsEmptyState,Is as OTTO_ANCHORS,Ls as OTTO_ANCHOR_SIZE,ps as OTTO_GRID,Hs as OTTO_GROUPS,hs as OTTO_NOTES,us as OTTO_PALETTE,t as OTTO_REEL,La as OTTO_SCENES,ha as OTTO_SCENE_BY_ID,Wa as OTTO_SCENE_CROP_H,pa as OTTO_SCENE_H,s as OTTO_SCENE_OTTO,na as OTTO_SCENE_PALETTE,Sa as OTTO_SCENE_W,Bs as OTTO_STATES,Ws as OTTO_STATE_NAMES,vs as OTTO_USES,ra as Otto,aa as OttoMotionView,j as OttoPixels,Ma as OttoSceneFrame,xa as OttoSceneStill,z as OttoStill,X as Pill,C as PillBadge,E as PowerToggleButton,qa as RadialGlow,Ka as RasterLayer,qs as SPACING_GAP,Ds as SearchBar,la as SectionHeader,ts as StatsCard,fa as StatusBadge,Ts as StatusIndicator,Fa as StorageTypeBadge,P as TRANSPARENT,za as TabSelector,Es as TimeDisplay,da as ToggleRow,Ms as ToolBackground,$a as ToolButton,es as ToolEmptyState,J as ToolFooter,q as ToolbarClearButton,V as ToolbarCopyButton,Va as TypeBadge,ma as ValueTypeBadge,R as ViewToggleCards,B as WATER_CELLS,y as WATER_FRAMES,u as WATER_ROW0,m as WATER_ROWS,e as WindowControls,os as Wormhole,fs as backgroundStore,go as buoyColors,Zs as calculateTargetPosition,Xs as calculateTooltipPosition,U as cycleIndexes,uo as dialColors,eo as dismissFloatingTool,Vs as expandableWindowControlsSupported,G as flatColors,po as gameUIColors,Qs as getBubbleAnchorPosition,so as getFloatingTools,ws as getPreset,zs as getScreenCenterY,bs as getSkyScrub,N as gridKey,Oo as macOSColors,Eo as monoFont,x as motionUnits,Q as noWindowDragProps,to as openFloatingTool,W as ottoCycle,r as ottoReel,S as ottoRuns,Ia as ottoSceneBounds,Aa as ottoSceneRuns,v as ottoSheets,ms as ottoWaterRows,ys as presetAt,As as presetIndex,H as rectsOf,bo as registerPersistentFloatingTool,n as renderOttoFrame,Ca as renderOttoScene,is as resolveListEmptyState,Da as scatter,Us as setExpandableWindowControls,ls as setSkyScrub,Ba as sizeWarningLevel,oo as subscribeFloatingTools,c as toolTheme,o as useChipTap,So as useGameUIAlertState,Ua as useLoop,ta as useOttoAnchorMotion,$ as useOttoReel,va as usePulse,cs as useSkyScrub,ks as useToolBackground,Z as windowDragProps,Ga as withBgAlpha};
|
package/lib/web/utils.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{$ as a,A as s,B as e,C as r,D as t,E as o,F as i,G as l,H as u,I as n,J as g,K as p,L as S,M as d,N as b,O as m,P as c,Q as f,R,S as M,T as v,U as C,V as P,W as T,X as h,Y as O,Z as D,_ as y,a as E,aa as A,b as B,c as w,d as V,e as N,f as _,g as z,h as J,i as L,j as x,k as H,m as I,n as U,o as Y,p as j,q as k,r as F,s as G,t as K,u as q,v as Q,w as W,x as X,y as Z,z as $}from"./chunks/chunk-ASHW3TI7.mjs";import{a as aa,b as sa}from"./chunks/chunk-LZ7FZZ7R.mjs";import{a as ea,b as ra,c as ta,d as oa,e as ia,g as la}from"./chunks/chunk-
|
|
1
|
+
"use client";import{$ as a,A as s,B as e,C as r,D as t,E as o,F as i,G as l,H as u,I as n,J as g,K as p,L as S,M as d,N as b,O as m,P as c,Q as f,R,S as M,T as v,U as C,V as P,W as T,X as h,Y as O,Z as D,_ as y,a as E,aa as A,b as B,c as w,d as V,e as N,f as _,g as z,h as J,i as L,j as x,k as H,m as I,n as U,o as Y,p as j,q as k,r as F,s as G,t as K,u as q,v as Q,w as W,x as X,y as Z,z as $}from"./chunks/chunk-ASHW3TI7.mjs";import{a as aa,b as sa}from"./chunks/chunk-LZ7FZZ7R.mjs";import{a as ea,b as ra,c as ta,d as oa,e as ia,g as la}from"./chunks/chunk-UYWHGSA7.mjs";import"./chunks/chunk-L7OYS724.mjs";import"./chunks/chunk-CE5U3CSQ.mjs";import{a as ua,b as na,c as ga,d as pa,e as Sa}from"./chunks/chunk-QNLAFQET.mjs";import{d as da,e as ba,f as ma}from"./chunks/chunk-FP44YK4E.mjs";import"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-L63X3LPR.mjs";export{na as BUOY_SYNTHETIC_MARK,t as REMOTE_RELOAD_DELAY_MS,E as Subscribable,la as absoluteFill,p as browserRouter,ga as countBuoyListener,oa as displayValue,F as flattenObject,G as formatPath,Y as formatValue,u as getBrowserHref,n as getBrowserRouteURL,aa as getBrowserStorage,q as getCachedOptionalModule,L as getConstructorName,T as getDOMControlProps,P as getDOMFiber,C as getDOMNodeHandle,h as getDOMPublicInstance,i as getDevServerOrigin,pa as getRealAppState,y as getRegisteredToolModule,W as getRenderCaptureProvider,ua as getSafeAreaInsets,f as getSafeCurrentPathname,R as getSafeCurrentRoute,c as getSafeRouter,$ as getStateSnapshotProvider,Z as getStateSnapshotProviders,ma as getStorageBackendType,a as getToolModuleVersion,j as getTypeColor,H as getValueSize,N as getValueType,v as isDOMElement,x as isEmpty,M as isExpoRouterAvailable,z as isJsonSerializable,_ as isPrimitive,ba as isUsingPersistentStorage,J as isValidJson,K as loadOptionalModule,A as loadToolModule,V as notifySubscriberCountChange,ia as parseDisplayValue,U as parseValue,da as persistentStorage,I as realNow,l as registerBrowserRouter,X as registerStateSnapshotProvider,D as registerToolModules,r as reloadApp,O as resolveDOMEventEmitter,e as resolveReloadStrategy,ea as safeStringify,o as scheduleReloadApp,Q as setRenderCaptureProvider,g as subscribeBrowserNavigation,Sa as subscribeRealAppState,sa as subscribeToBrowserStorage,s as subscribeToStateSnapshotProviders,w as subscribeToSubscriberCountChanges,B as subscriberCountNotifier,ta as superJsonDeserialize,ra as superJsonSerialize,k as truncateText,m as useSafeGlobalSearchParams,d as useSafePathname,S as useSafeRouter,b as useSafeSegments};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/shared-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.60",
|
|
4
4
|
"description": "Shared UI components, hooks, and utilities",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -225,11 +225,11 @@
|
|
|
225
225
|
],
|
|
226
226
|
"sideEffects": false,
|
|
227
227
|
"dependencies": {
|
|
228
|
-
"@buoy-gg/floating-tools-core": "^7.0.
|
|
229
|
-
"@buoy-gg/floating-tools-react": "^7.0.
|
|
228
|
+
"@buoy-gg/floating-tools-core": "^7.0.60",
|
|
229
|
+
"@buoy-gg/floating-tools-react": "^7.0.60"
|
|
230
230
|
},
|
|
231
231
|
"peerDependencies": {
|
|
232
|
-
"@buoy-gg/license": "7.0.
|
|
232
|
+
"@buoy-gg/license": "7.0.60",
|
|
233
233
|
"react": "*"
|
|
234
234
|
},
|
|
235
235
|
"peerDependenciesMeta": {
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
"expo-clipboard": "~7.1.5",
|
|
263
263
|
"react-native-safe-area-context": "^5.6.2",
|
|
264
264
|
"typescript": "~5.8.3",
|
|
265
|
-
"@buoy-gg/license": "^7.0.
|
|
265
|
+
"@buoy-gg/license": "^7.0.60"
|
|
266
266
|
},
|
|
267
267
|
"react-native-builder-bob": {
|
|
268
268
|
"source": "src",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.LicenseEntryModal=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _absoluteFill=require("../utils/absoluteFill.js");var _macOSDesignSystemColors=require("../ui/gameUI/constants/macOSDesignSystemColors.js");var _openPricing=require("./openPricing.js");var _lucideIcons=require("../icons/lucide-icons.js");var _fonts=require("../ui/fonts.js");var _index=require("../clipboard/index.js");var _autoDetectClipboard=require("../clipboard/autoDetectClipboard.js");var _jsxRuntime=require("react/jsx-runtime");function _interopRequireWildcard(l,r){if("function"==typeof WeakMap)var s=new WeakMap,i=new WeakMap;return(_interopRequireWildcard=function(e,c){if(!c&&e&&e.__esModule)return e;var o,a,n={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return n;if(o=c?i:s){if(o.has(e))return o.get(e);o.set(e,n)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?o(n,t,a):n[t]=e[t]);return n})(l,r)}const CODE_SNIPPET=`import { Buoy } from '@buoy-gg/core';
|
|
2
|
-
|
|
3
|
-
Buoy.init({
|
|
4
|
-
licenseKey: 'YOUR_LICENSE_KEY',
|
|
5
|
-
});`;const LicenseEntryModal=({visible:l,onClose:r,purchaseUrl:s="https://buoy.gg/pricing"})=>{const[i,e]=_react.default.useState(false);const c=(0,_react.useCallback)(()=>{(0,_openPricing.openPricing)(s)},[s]);const o=(0,_react.useCallback)(async()=>{if(await(0,_index.copyToClipboard)(CODE_SNIPPET)){e(true);setTimeout(()=>e(false),2e3)}},[]);return(0,_jsxRuntime.jsx)(_reactNative.Modal,{visible:l,transparent:true,animationType:"fade",onRequestClose:r,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.overlay,children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:styles.backdrop,activeOpacity:1,onPress:r}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.modal,children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:styles.closeButton,onPress:r,activeOpacity:.7,children:(0,_jsxRuntime.jsx)(_lucideIcons.X,{size:18,color:_macOSDesignSystemColors.macOSColors.text.muted})}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.header,children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.iconContainer,children:(0,_jsxRuntime.jsx)(_lucideIcons.Key,{size:20,color:_macOSDesignSystemColors.macOSColors.semantic.info})}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.title,children:"Unlock Pro Features"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.subtitle,children:"Get access to all Buoy DevTools features"})]}),(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:styles.primaryButton,onPress:c,activeOpacity:.8,children:[(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.primaryButtonText,children:"Get a License"}),(0,_jsxRuntime.jsx)(_lucideIcons.Link,{size:14,color:"#000"})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.divider,children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.dividerLine}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.dividerText,children:"already have one?"}),(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.dividerLine})]}),_openPricing.isWeb?(0,_jsxRuntime.jsx)(_reactNative.View,{style:styles.instructionsContainer,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.instructionsNote,children:"Click the Upgrade button in the top toolbar and paste your license key. It also unlocks automatically when a connected device is running Buoy Pro."})}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.instructionsContainer,children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.instructionsHeader,children:[(0,_jsxRuntime.jsx)(_lucideIcons.FileCode,{size:14,color:_macOSDesignSystemColors.macOSColors.text.secondary}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.instructionsTitle,children:"Add to your App.tsx"})]}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.codeBlock,children:[(0,_jsxRuntime.jsxs)(_reactNative.Text,{style:styles.codeText,children:[(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeKeyword,children:"import"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:" { "}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeVariable,children:"Buoy"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:" } "}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeKeyword,children:"from"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeString,children:" '@buoy-gg/core'"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:";"}),"\n\n",(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeVariable,children:"Buoy"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:"."}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeFunction,children:"init"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:"({"}),"\n",(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeProperty,children:" licenseKey"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:": "}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codeString,children:"'YOUR_KEY'"}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:","}),"\n",(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.codePunctuation,children:"});"})]}),(0,_autoDetectClipboard.isClipboardAvailable)()&&(0,_jsxRuntime.jsxs)(_reactNative.TouchableOpacity,{style:styles.copyButton,onPress:o,activeOpacity:.7,children:[(0,_jsxRuntime.jsx)(_lucideIcons.Copy,{size:12,color:i?_macOSDesignSystemColors.macOSColors.semantic.success:_macOSDesignSystemColors.macOSColors.text.muted}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.copyText,i&&styles.copyTextSuccess],children:i?"Copied!":"Copy"})]})]}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.instructionsNote,children:"Replace YOUR_KEY with your license key"})]})]})]})})};exports.LicenseEntryModal=LicenseEntryModal;const styles=_reactNative.StyleSheet.create({overlay:{flex:1,justifyContent:"center",alignItems:"center"},backdrop:{..._absoluteFill.absoluteFill,backgroundColor:"rgba(0, 0, 0, 0.8)"},modal:{backgroundColor:_macOSDesignSystemColors.macOSColors.background.card,borderRadius:12,padding:24,width:"90%",maxWidth:380,maxHeight:"85%",borderWidth:1,borderColor:_macOSDesignSystemColors.macOSColors.semantic.info+"50",shadowColor:_macOSDesignSystemColors.macOSColors.semantic.info,shadowOffset:{width:0,height:0},shadowOpacity:.8,shadowRadius:24,elevation:24},closeButton:{position:"absolute",top:12,right:12,width:28,height:28,borderRadius:6,backgroundColor:_macOSDesignSystemColors.macOSColors.background.hover,alignItems:"center",justifyContent:"center",zIndex:1},header:{alignItems:"center",marginBottom:24,paddingTop:8},iconContainer:{width:48,height:48,borderRadius:12,backgroundColor:_macOSDesignSystemColors.macOSColors.semantic.info+"15",borderWidth:1,borderColor:_macOSDesignSystemColors.macOSColors.semantic.info+"30",alignItems:"center",justifyContent:"center",marginBottom:16,shadowColor:_macOSDesignSystemColors.macOSColors.semantic.info,shadowOffset:{width:0,height:0},shadowOpacity:.2,shadowRadius:8},title:{fontSize:18,fontWeight:"600",color:_macOSDesignSystemColors.macOSColors.text.primary,marginBottom:6},subtitle:{fontSize:13,color:_macOSDesignSystemColors.macOSColors.text.secondary,textAlign:"center",lineHeight:18},primaryButton:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,backgroundColor:_macOSDesignSystemColors.macOSColors.semantic.info,borderRadius:8,paddingVertical:14,shadowColor:_macOSDesignSystemColors.macOSColors.semantic.info,shadowOffset:{width:0,height:2},shadowOpacity:.3,shadowRadius:8},primaryButtonText:{fontSize:15,fontWeight:"600",color:"#000"},divider:{flexDirection:"row",alignItems:"center",marginVertical:20},dividerLine:{flex:1,height:1,backgroundColor:_macOSDesignSystemColors.macOSColors.border.default},dividerText:{marginHorizontal:12,fontSize:11,color:_macOSDesignSystemColors.macOSColors.text.muted,textTransform:"uppercase",letterSpacing:.5},instructionsContainer:{backgroundColor:_macOSDesignSystemColors.macOSColors.background.hover,borderRadius:8,padding:16,borderWidth:1,borderColor:_macOSDesignSystemColors.macOSColors.border.default},instructionsHeader:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},instructionsTitle:{fontSize:12,fontWeight:"600",color:_macOSDesignSystemColors.macOSColors.text.secondary},codeBlock:{backgroundColor:_macOSDesignSystemColors.macOSColors.background.input,borderRadius:6,padding:12,borderWidth:1,borderColor:_macOSDesignSystemColors.macOSColors.border.input,position:"relative"},codeText:{fontSize:11,fontFamily:_fonts.monoFont,lineHeight:18,color:_macOSDesignSystemColors.macOSColors.text.primary},codeKeyword:{color:"#FF79C6"},codeVariable:{color:"#50FA7B"},codeFunction:{color:"#8BE9FD"},codeProperty:{color:"#FFB86C"},codeString:{color:"#F1FA8C"},codePunctuation:{color:_macOSDesignSystemColors.macOSColors.text.secondary},copyButton:{position:"absolute",top:8,right:8,flexDirection:"row",alignItems:"center",gap:4,paddingVertical:4,paddingHorizontal:8,borderRadius:4,backgroundColor:_macOSDesignSystemColors.macOSColors.background.hover},copyText:{fontSize:10,color:_macOSDesignSystemColors.macOSColors.text.muted,fontWeight:"500"},copyTextSuccess:{color:_macOSDesignSystemColors.macOSColors.semantic.success},instructionsNote:{fontSize:11,color:_macOSDesignSystemColors.macOSColors.text.muted,marginTop:12,textAlign:"center",fontStyle:"italic"}});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";import m,{useCallback as u}from"react";import{View as r,Text as i,TouchableOpacity as c,StyleSheet as g,Modal as f}from"react-native";import{absoluteFill as b}from"../utils/absoluteFill.js";import{macOSColors as o}from"../ui/gameUI/constants/macOSDesignSystemColors.js";import{openPricing as C,isWeb as x}from"./openPricing.js";import{X as w,Key as k,Link as v,FileCode as B,Copy as T}from"../icons/lucide-icons.js";import{monoFont as S}from"../ui/fonts.js";import{copyToClipboard as P}from"../clipboard/index.js";import{isClipboardAvailable as z}from"../clipboard/autoDetectClipboard.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";const O=`import { Buoy } from '@buoy-gg/core';
|
|
2
|
-
|
|
3
|
-
Buoy.init({
|
|
4
|
-
licenseKey: 'YOUR_LICENSE_KEY',
|
|
5
|
-
});`;export const LicenseEntryModal=({visible:y,onClose:d,purchaseUrl:s="https://buoy.gg/pricing"})=>{const[l,a]=m.useState(false);const h=u(()=>{C(s)},[s]);const p=u(async()=>{if(await P(O)){a(true);setTimeout(()=>a(false),2e3)}},[]);return t(f,{visible:y,transparent:true,animationType:"fade",onRequestClose:d,children:n(r,{style:e.overlay,children:[t(c,{style:e.backdrop,activeOpacity:1,onPress:d}),n(r,{style:e.modal,children:[t(c,{style:e.closeButton,onPress:d,activeOpacity:.7,children:t(w,{size:18,color:o.text.muted})}),n(r,{style:e.header,children:[t(r,{style:e.iconContainer,children:t(k,{size:20,color:o.semantic.info})}),t(i,{style:e.title,children:"Unlock Pro Features"}),t(i,{style:e.subtitle,children:"Get access to all Buoy DevTools features"})]}),n(c,{style:e.primaryButton,onPress:h,activeOpacity:.8,children:[t(i,{style:e.primaryButtonText,children:"Get a License"}),t(v,{size:14,color:"#000"})]}),n(r,{style:e.divider,children:[t(r,{style:e.dividerLine}),t(i,{style:e.dividerText,children:"already have one?"}),t(r,{style:e.dividerLine})]}),x?t(r,{style:e.instructionsContainer,children:t(i,{style:e.instructionsNote,children:"Click the Upgrade button in the top toolbar and paste your license key. It also unlocks automatically when a connected device is running Buoy Pro."})}):n(r,{style:e.instructionsContainer,children:[n(r,{style:e.instructionsHeader,children:[t(B,{size:14,color:o.text.secondary}),t(i,{style:e.instructionsTitle,children:"Add to your App.tsx"})]}),n(r,{style:e.codeBlock,children:[n(i,{style:e.codeText,children:[t(i,{style:e.codeKeyword,children:"import"}),t(i,{style:e.codePunctuation,children:" { "}),t(i,{style:e.codeVariable,children:"Buoy"}),t(i,{style:e.codePunctuation,children:" } "}),t(i,{style:e.codeKeyword,children:"from"}),t(i,{style:e.codeString,children:" '@buoy-gg/core'"}),t(i,{style:e.codePunctuation,children:";"}),"\n\n",t(i,{style:e.codeVariable,children:"Buoy"}),t(i,{style:e.codePunctuation,children:"."}),t(i,{style:e.codeFunction,children:"init"}),t(i,{style:e.codePunctuation,children:"({"}),"\n",t(i,{style:e.codeProperty,children:" licenseKey"}),t(i,{style:e.codePunctuation,children:": "}),t(i,{style:e.codeString,children:"'YOUR_KEY'"}),t(i,{style:e.codePunctuation,children:","}),"\n",t(i,{style:e.codePunctuation,children:"});"})]}),z()&&n(c,{style:e.copyButton,onPress:p,activeOpacity:.7,children:[t(T,{size:12,color:l?o.semantic.success:o.text.muted}),t(i,{style:[e.copyText,l&&e.copyTextSuccess],children:l?"Copied!":"Copy"})]})]}),t(i,{style:e.instructionsNote,children:"Replace YOUR_KEY with your license key"})]})]})]})})};const e=g.create({overlay:{flex:1,justifyContent:"center",alignItems:"center"},backdrop:{...b,backgroundColor:"rgba(0, 0, 0, 0.8)"},modal:{backgroundColor:o.background.card,borderRadius:12,padding:24,width:"90%",maxWidth:380,maxHeight:"85%",borderWidth:1,borderColor:o.semantic.info+"50",shadowColor:o.semantic.info,shadowOffset:{width:0,height:0},shadowOpacity:.8,shadowRadius:24,elevation:24},closeButton:{position:"absolute",top:12,right:12,width:28,height:28,borderRadius:6,backgroundColor:o.background.hover,alignItems:"center",justifyContent:"center",zIndex:1},header:{alignItems:"center",marginBottom:24,paddingTop:8},iconContainer:{width:48,height:48,borderRadius:12,backgroundColor:o.semantic.info+"15",borderWidth:1,borderColor:o.semantic.info+"30",alignItems:"center",justifyContent:"center",marginBottom:16,shadowColor:o.semantic.info,shadowOffset:{width:0,height:0},shadowOpacity:.2,shadowRadius:8},title:{fontSize:18,fontWeight:"600",color:o.text.primary,marginBottom:6},subtitle:{fontSize:13,color:o.text.secondary,textAlign:"center",lineHeight:18},primaryButton:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,backgroundColor:o.semantic.info,borderRadius:8,paddingVertical:14,shadowColor:o.semantic.info,shadowOffset:{width:0,height:2},shadowOpacity:.3,shadowRadius:8},primaryButtonText:{fontSize:15,fontWeight:"600",color:"#000"},divider:{flexDirection:"row",alignItems:"center",marginVertical:20},dividerLine:{flex:1,height:1,backgroundColor:o.border.default},dividerText:{marginHorizontal:12,fontSize:11,color:o.text.muted,textTransform:"uppercase",letterSpacing:.5},instructionsContainer:{backgroundColor:o.background.hover,borderRadius:8,padding:16,borderWidth:1,borderColor:o.border.default},instructionsHeader:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},instructionsTitle:{fontSize:12,fontWeight:"600",color:o.text.secondary},codeBlock:{backgroundColor:o.background.input,borderRadius:6,padding:12,borderWidth:1,borderColor:o.border.input,position:"relative"},codeText:{fontSize:11,fontFamily:S,lineHeight:18,color:o.text.primary},codeKeyword:{color:"#FF79C6"},codeVariable:{color:"#50FA7B"},codeFunction:{color:"#8BE9FD"},codeProperty:{color:"#FFB86C"},codeString:{color:"#F1FA8C"},codePunctuation:{color:o.text.secondary},copyButton:{position:"absolute",top:8,right:8,flexDirection:"row",alignItems:"center",gap:4,paddingVertical:4,paddingHorizontal:8,borderRadius:4,backgroundColor:o.background.hover},copyText:{fontSize:10,color:o.text.muted,fontWeight:"500"},copyTextSuccess:{color:o.semantic.success},instructionsNote:{fontSize:11,color:o.text.muted,marginTop:12,textAlign:"center",fontStyle:"italic"}});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LicenseEntryModal - Modal showing how to activate a license
|
|
3
|
-
*
|
|
4
|
-
* Shows two options:
|
|
5
|
-
* 1. Get a license (link to pricing)
|
|
6
|
-
* 2. Already have one? Add Buoy.init() to your code
|
|
7
|
-
*/
|
|
8
|
-
import React from "react";
|
|
9
|
-
export interface LicenseEntryModalProps {
|
|
10
|
-
visible: boolean;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
onSuccess?: () => void;
|
|
13
|
-
purchaseUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface LicenseState {
|
|
16
|
-
setLicenseKey: (key: string) => Promise<boolean>;
|
|
17
|
-
isPro: boolean;
|
|
18
|
-
isValidating: boolean;
|
|
19
|
-
error: string | null;
|
|
20
|
-
}
|
|
21
|
-
export declare const LicenseEntryModal: ({ visible, onClose, purchaseUrl, }: LicenseEntryModalProps) => React.JSX.Element;
|
|
22
|
-
//# sourceMappingURL=LicenseEntryModal.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LicenseEntryModal - Modal showing how to activate a license
|
|
3
|
-
*
|
|
4
|
-
* Shows two options:
|
|
5
|
-
* 1. Get a license (link to pricing)
|
|
6
|
-
* 2. Already have one? Add Buoy.init() to your code
|
|
7
|
-
*/
|
|
8
|
-
import React from "react";
|
|
9
|
-
export interface LicenseEntryModalProps {
|
|
10
|
-
visible: boolean;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
onSuccess?: () => void;
|
|
13
|
-
purchaseUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface LicenseState {
|
|
16
|
-
setLicenseKey: (key: string) => Promise<boolean>;
|
|
17
|
-
isPro: boolean;
|
|
18
|
-
isValidating: boolean;
|
|
19
|
-
error: string | null;
|
|
20
|
-
}
|
|
21
|
-
export declare const LicenseEntryModal: ({ visible, onClose, purchaseUrl, }: LicenseEntryModalProps) => React.JSX.Element;
|
|
22
|
-
//# sourceMappingURL=LicenseEntryModal.d.ts.map
|