@classicy/classicy 0.0.0 → 3.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.
- package/LICENSE +24 -0
- package/README.md +844 -2
- package/dist/classicy.css +2 -0
- package/dist/classicy.es.js +59906 -0
- package/dist/classicy.es.js.map +1 -0
- package/dist/classicy.umd.js +208 -0
- package/dist/classicy.umd.js.map +1 -0
- package/dist/fonts.d.ts +2 -0
- package/dist/fonts.js +1 -0
- package/dist/pdf-DM8UBKbM.js +18807 -0
- package/dist/pdf-DM8UBKbM.js.map +1 -0
- package/dist/sample.mp4 +0 -0
- package/dist/types/src/Appearance/ClassicyActiveAppearancePackage.internal.d.ts +11 -0
- package/dist/types/src/Appearance/ClassicyActiveAppearancePackage.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppIdentity.d.ts +50 -0
- package/dist/types/src/Appearance/ClassicyAppIdentity.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppearanceDefaults.d.ts +9 -0
- package/dist/types/src/Appearance/ClassicyAppearanceDefaults.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppearancePackage.d.ts +193 -0
- package/dist/types/src/Appearance/ClassicyAppearancePackage.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppearancePackageRegistry.d.ts +48 -0
- package/dist/types/src/Appearance/ClassicyAppearancePackageRegistry.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppearancePackageSchema.d.ts +268 -0
- package/dist/types/src/Appearance/ClassicyAppearancePackageSchema.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppearanceSound.d.ts +20 -0
- package/dist/types/src/Appearance/ClassicyAppearanceSound.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAppearanceStyles.d.ts +15 -0
- package/dist/types/src/Appearance/ClassicyAppearanceStyles.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAssetPackageSource.internal.d.ts +19 -0
- package/dist/types/src/Appearance/ClassicyAssetPackageSource.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAssetRegistry.d.ts +78 -0
- package/dist/types/src/Appearance/ClassicyAssetRegistry.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyAssetSource.d.ts +18 -0
- package/dist/types/src/Appearance/ClassicyAssetSource.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyCoreTheme.d.ts +23 -0
- package/dist/types/src/Appearance/ClassicyCoreTheme.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyFontFaceCss.internal.d.ts +15 -0
- package/dist/types/src/Appearance/ClassicyFontFaceCss.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyPixelArtSource.d.ts +35 -0
- package/dist/types/src/Appearance/ClassicyPixelArtSource.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyPixelArtSource.internal.d.ts +28 -0
- package/dist/types/src/Appearance/ClassicyPixelArtSource.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyWallpaperIndex.d.ts +108 -0
- package/dist/types/src/Appearance/ClassicyWallpaperIndex.d.ts.map +1 -0
- package/dist/types/src/Appearance/ClassicyWallpaperSource.internal.d.ts +42 -0
- package/dist/types/src/Appearance/ClassicyWallpaperSource.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/useClassicyAppearance.d.ts +52 -0
- package/dist/types/src/Appearance/useClassicyAppearance.d.ts.map +1 -0
- package/dist/types/src/Appearance/useClassicyAppearance.internal.d.ts +9 -0
- package/dist/types/src/Appearance/useClassicyAppearance.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/useClassicyAppearanceInput.internal.d.ts +35 -0
- package/dist/types/src/Appearance/useClassicyAppearanceInput.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/useClassicyAppearanceLayout.d.ts +31 -0
- package/dist/types/src/Appearance/useClassicyAppearanceLayout.d.ts.map +1 -0
- package/dist/types/src/Appearance/useClassicyMergedRef.internal.d.ts +22 -0
- package/dist/types/src/Appearance/useClassicyMergedRef.internal.d.ts.map +1 -0
- package/dist/types/src/Appearance/vocabulary/ClassicyVocabulary.d.ts +102 -0
- package/dist/types/src/Appearance/vocabulary/ClassicyVocabulary.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ClassicyBundledApps.internal.d.ts +1 -0
- package/dist/types/src/SystemFolder/ClassicyBundledApps.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyActionPredicates.d.ts +324 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyActionPredicates.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyActionTrust.d.ts +103 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyActionTrust.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppHelpers.d.ts +41 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppHelpers.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManager.d.ts +177 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManagerContext.d.ts +28 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManagerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManagerUtils.d.ts +70 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManagerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManifest.d.ts +105 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppOpenFileRouting.d.ts +35 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppOpenFileRouting.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppWindows.d.ts +70 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyAppWindows.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyDefaultStateSeed.internal.d.ts +7 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyDefaultStateSeed.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyStateMigrations.d.ts +56 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppManager/ClassicyStateMigrations.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearance.d.ts +256 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearance.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceKeyGuards.internal.d.ts +16 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceKeyGuards.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Colors.d.ts +18 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Colors.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Desktop.d.ts +45 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Desktop.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Fonts.d.ts +14 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Fonts.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Metrics.d.ts +33 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Metrics.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Options.d.ts +36 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Options.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Packages.d.ts +22 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Packages.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Sound.d.ts +26 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Sound.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Themes.d.ts +29 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.Themes.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManagerManifest.d.ts +2 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManagerManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceOptions.d.ts +48 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceOptions.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyBuiltInThemes.internal.d.ts +104 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyBuiltInThemes.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyColors.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyColors.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyCustomTheme.d.ts +92 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyCustomTheme.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyFontStack.d.ts +32 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyFontStack.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyIcons.d.ts +399 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyIcons.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicySize.d.ts +5 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicySize.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeColorTargets.d.ts +60 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeColorTargets.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeDerivations.d.ts +56 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeDerivations.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeDerivations.internal.d.ts +8 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeDerivations.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeFile.d.ts +100 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeFile.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeFontSizes.d.ts +58 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeFontSizes.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMeasurementSource.internal.d.ts +15 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMeasurementSource.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMetricReader.d.ts +26 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMetricReader.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMetricTargets.d.ts +114 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMetricTargets.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMetrics.d.ts +154 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeMetrics.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeSchema.d.ts +285 -0
- package/dist/types/src/SystemFolder/ControlPanels/AppearanceManager/ClassicyThemeSchema.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/ClassicyControlPanels.d.ts +2 -0
- package/dist/types/src/SystemFolder/ControlPanels/ClassicyControlPanels.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/ControlStripManager/ClassicyControlStripManager.d.ts +10 -0
- package/dist/types/src/SystemFolder/ControlPanels/ControlStripManager/ClassicyControlStripManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/ControlStripManager/ClassicyControlStripManagerManifest.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/ControlStripManager/ClassicyControlStripManagerManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeEventHandler.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeEventHandler.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManager.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManagerManifest.d.ts +2 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManagerManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManagerUtils.d.ts +48 -0
- package/dist/types/src/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManagerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/ClassicyDriveSetup.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/ClassicyDriveSetup.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/ClassicyDriveSetupManifest.d.ts +2 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/ClassicyDriveSetupManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/ClassicyDriveSetupUtils.d.ts +32 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/ClassicyDriveSetupUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/DriveSetupController.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/DriveSetupController.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/DriveSetupList.d.ts +14 -0
- package/dist/types/src/SystemFolder/ControlPanels/DriveSetup/DriveSetupList.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/ScreenSaverManager/ClassicyScreenSaverManager.d.ts +8 -0
- package/dist/types/src/SystemFolder/ControlPanels/ScreenSaverManager/ClassicyScreenSaverManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/ScreenSaverManager/ClassicyScreenSaverManagerManifest.d.ts +2 -0
- package/dist/types/src/SystemFolder/ControlPanels/ScreenSaverManager/ClassicyScreenSaverManagerManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicyAlertSounds.d.ts +7 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicyAlertSounds.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundControlStripModule.d.ts +7 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundControlStripModule.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManager.d.ts +3 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerContext.d.ts +12 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerManifest.d.ts +2 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerProvider.d.ts +12 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerProvider.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerUtils.d.ts +104 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundPackLookup.internal.d.ts +11 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundPackLookup.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundPacks.d.ts +37 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundPacks.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundSchema.d.ts +7 -0
- package/dist/types/src/SystemFolder/ControlPanels/SoundManager/ClassicySoundSchema.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuide.d.ts +8 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuide.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuideContext.d.ts +24 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuideContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuideTopics.d.ts +20 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuideTopics.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuideWindow.d.ts +39 -0
- package/dist/types/src/SystemFolder/Extensions/AppleGuide/AppleGuideWindow.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaver.d.ts +13 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaver.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverConfigForm.d.ts +25 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverConfigForm.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverContext.d.ts +41 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverControlStripModule.d.ts +6 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverControlStripModule.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverOffer.d.ts +23 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverOffer.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverRegistry.d.ts +99 -0
- package/dist/types/src/SystemFolder/Extensions/ScreenSaver/ClassicyScreenSaverRegistry.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/Finder.d.ts +2 -0
- package/dist/types/src/SystemFolder/Finder/Finder.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/FinderAboutThisComputer.d.ts +10 -0
- package/dist/types/src/SystemFolder/Finder/FinderAboutThisComputer.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/FinderContext.d.ts +182 -0
- package/dist/types/src/SystemFolder/Finder/FinderContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/FinderPreferences.d.ts +10 -0
- package/dist/types/src/SystemFolder/Finder/FinderPreferences.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/FinderViewOptions.d.ts +43 -0
- package/dist/types/src/SystemFolder/Finder/FinderViewOptions.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/useFinderFolderSize.d.ts +3 -0
- package/dist/types/src/SystemFolder/Finder/useFinderFolderSize.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/Finder/useFinderViewsTab.d.ts +4 -0
- package/dist/types/src/SystemFolder/Finder/useFinderViewsTab.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorCanvas.d.ts +13 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorCanvas.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorContext.d.ts +3 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorOverlay.d.ts +28 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorOverlay.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorSave.d.ts +15 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorSave.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorSchemas.d.ts +10 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorSchemas.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorUtils.d.ts +82 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardEditorUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardInspector.d.ts +13 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardInspector.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptBuilder.d.ts +28 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptBuilder.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptEditor.d.ts +13 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptEditor.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptJson.d.ts +15 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptJson.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptModel.d.ts +12 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardScriptModel.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardToolsPalette.d.ts +13 -0
- package/dist/types/src/SystemFolder/HyperCard/Editor/HyperCardToolsPalette.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCard.d.ts +4 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCard.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardCard.d.ts +15 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardCard.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardContext.d.ts +3 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardDialog.d.ts +13 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardEngine.d.ts +46 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardEngine.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardExpression.d.ts +22 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardExpression.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardModel.d.ts +189 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardModel.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardPlugins.d.ts +152 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardPlugins.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardScriptEffects.d.ts +17 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardScriptEffects.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardTransition.d.ts +18 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardTransition.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardUtils.d.ts +154 -0
- package/dist/types/src/SystemFolder/HyperCard/HyperCardUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewer.d.ts +3 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewer.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewerContext.d.ts +8 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewerDocument.d.ts +15 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewerDocument.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewerUtils.d.ts +15 -0
- package/dist/types/src/SystemFolder/PDFViewer/PDFViewerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/QuickTime/MoviePlayer/MoviePlayer.d.ts +3 -0
- package/dist/types/src/SystemFolder/QuickTime/MoviePlayer/MoviePlayer.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/QuickTime/MoviePlayer/MoviePlayerContext.d.ts +17 -0
- package/dist/types/src/SystemFolder/QuickTime/MoviePlayer/MoviePlayerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/QuickTime/MoviePlayer/MoviePlayerUtils.d.ts +54 -0
- package/dist/types/src/SystemFolder/QuickTime/MoviePlayer/MoviePlayerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/QuickTime/PictureViewer/PictureViewer.d.ts +3 -0
- package/dist/types/src/SystemFolder/QuickTime/PictureViewer/PictureViewer.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/QuickTime/PictureViewer/PictureViewerContext.d.ts +11 -0
- package/dist/types/src/SystemFolder/QuickTime/PictureViewer/PictureViewerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/QuickTime/PictureViewer/PictureViewerUtils.d.ts +31 -0
- package/dist/types/src/SystemFolder/QuickTime/PictureViewer/PictureViewerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SimpleText/SimpleText.d.ts +2 -0
- package/dist/types/src/SystemFolder/SimpleText/SimpleText.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SimpleText/SimpleTextManifest.d.ts +2 -0
- package/dist/types/src/SystemFolder/SimpleText/SimpleTextManifest.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/AboutWindow/ClassicyAboutWindow.d.ts +40 -0
- package/dist/types/src/SystemFolder/SystemResources/AboutWindow/ClassicyAboutWindow.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/AboutWindow/ClassicyAboutWindowUtils.d.ts +3 -0
- package/dist/types/src/SystemFolder/SystemResources/AboutWindow/ClassicyAboutWindowUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Alert/ClassicyAlert.d.ts +108 -0
- package/dist/types/src/SystemFolder/SystemResources/Alert/ClassicyAlert.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Analytics/ClassicyAnalyticsPath.d.ts +22 -0
- package/dist/types/src/SystemFolder/SystemResources/Analytics/ClassicyAnalyticsPath.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Analytics/useClassicyAnalytics.d.ts +55 -0
- package/dist/types/src/SystemFolder/SystemResources/Analytics/useClassicyAnalytics.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyApp.d.ts +108 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyApp.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyAppIdContext.d.ts +19 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyAppIdContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyAppMenuHooks.d.ts +45 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyAppMenuHooks.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyAppUtils.d.ts +24 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyAppUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyDefaultAppsContext.d.ts +10 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyDefaultAppsContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyEditCommands.d.ts +37 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyEditCommands.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyMountedApps.d.ts +11 -0
- package/dist/types/src/SystemFolder/SystemResources/App/ClassicyMountedApps.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Assistant/ClassicyAssistant.d.ts +88 -0
- package/dist/types/src/SystemFolder/SystemResources/Assistant/ClassicyAssistant.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/BalloonHelp/ClassicyBalloonHelp.d.ts +52 -0
- package/dist/types/src/SystemFolder/SystemResources/BalloonHelp/ClassicyBalloonHelp.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/BalloonHelp/useClassicyBalloonHelp.d.ts +70 -0
- package/dist/types/src/SystemFolder/SystemResources/BalloonHelp/useClassicyBalloonHelp.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/BevelButton/ClassicyBevelButton.d.ts +170 -0
- package/dist/types/src/SystemFolder/SystemResources/BevelButton/ClassicyBevelButton.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/BevelButton/ClassicyBevelButtonPopup.d.ts +42 -0
- package/dist/types/src/SystemFolder/SystemResources/BevelButton/ClassicyBevelButtonPopup.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/BevelButton/ClassicyBevelButtonPopupPlacement.d.ts +24 -0
- package/dist/types/src/SystemFolder/SystemResources/BevelButton/ClassicyBevelButtonPopupPlacement.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyBootManager.d.ts +17 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyBootManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyBootSequence.d.ts +38 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyBootSequence.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyDefaultParadeIcons.d.ts +9 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyDefaultParadeIcons.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyStartupScreen.d.ts +40 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyStartupScreen.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyStartupScreenSession.d.ts +8 -0
- package/dist/types/src/SystemFolder/SystemResources/Boot/ClassicyStartupScreenSession.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Button/ClassicyButton.d.ts +58 -0
- package/dist/types/src/SystemFolder/SystemResources/Button/ClassicyButton.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ButtonToolbar/ClassicyButtonToolbar.d.ts +107 -0
- package/dist/types/src/SystemFolder/SystemResources/ButtonToolbar/ClassicyButtonToolbar.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ButtonToolbar/ClassicyButtonToolbarContext.d.ts +20 -0
- package/dist/types/src/SystemFolder/SystemResources/ButtonToolbar/ClassicyButtonToolbarContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Checkbox/ClassicyCheckbox.d.ts +67 -0
- package/dist/types/src/SystemFolder/SystemResources/Checkbox/ClassicyCheckbox.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPicker.d.ts +51 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPicker.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerCMYK.d.ts +12 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerCMYK.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerCrayon.d.ts +14 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerCrayon.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerCrayons.d.ts +6 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerCrayons.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerDialog.d.ts +42 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerHLS.d.ts +12 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerHLS.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerHSV.d.ts +12 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerHSV.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerRGB.d.ts +12 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerRGB.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerUtils.d.ts +38 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorPickerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorWheel.d.ts +16 -0
- package/dist/types/src/SystemFolder/SystemResources/ColorPicker/ClassicyColorWheel.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ComboBox/ClassicyComboBox.d.ts +68 -0
- package/dist/types/src/SystemFolder/SystemResources/ComboBox/ClassicyComboBox.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenu.d.ts +44 -0
- package/dist/types/src/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenu.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenuProvider.d.ts +32 -0
- package/dist/types/src/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenuProvider.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenuTarget.d.ts +30 -0
- package/dist/types/src/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenuTarget.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlGroup/ClassicyControlGroup.d.ts +139 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlGroup/ClassicyControlGroup.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlLabel/ClassicyControlLabel.d.ts +75 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlLabel/ClassicyControlLabel.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlStrip/ClassicyControlStrip.d.ts +76 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlStrip/ClassicyControlStrip.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlStrip/ClassicyControlStripRegistry.d.ts +141 -0
- package/dist/types/src/SystemFolder/SystemResources/ControlStrip/ClassicyControlStripRegistry.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/CrashScreen/ClassicyCrashScreen.d.ts +54 -0
- package/dist/types/src/SystemFolder/SystemResources/CrashScreen/ClassicyCrashScreen.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Cursor/useClassicyCursor.d.ts +24 -0
- package/dist/types/src/SystemFolder/SystemResources/Cursor/useClassicyCursor.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/DatePicker/ClassicyDatePicker.d.ts +63 -0
- package/dist/types/src/SystemFolder/SystemResources/DatePicker/ClassicyDatePicker.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/DatePicker/ClassicyDatePickerUtils.d.ts +3 -0
- package/dist/types/src/SystemFolder/SystemResources/DatePicker/ClassicyDatePickerUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktop.d.ts +75 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktop.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIcon.d.ts +125 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIcon.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconBalloons.d.ts +10 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconBalloons.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconContext.d.ts +42 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconKeyboardSelection.internal.d.ts +19 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconKeyboardSelection.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconKinds.d.ts +2 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconKinds.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopKeyNav.d.ts +24 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopKeyNav.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopManager.d.ts +131 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopManager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopWindowManagerContext.d.ts +128 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyDesktopWindowManagerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyNoAppearancePackage.d.ts +19 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyNoAppearancePackage.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyOpenUrlController.d.ts +16 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicyOpenUrlController.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicySpecialMenu.d.ts +33 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/ClassicySpecialMenu.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyAppSwitcherUtils.d.ts +46 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyAppSwitcherUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyDesktopMenuBar.d.ts +44 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyDesktopMenuBar.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyMenuBarExtension.d.ts +47 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyMenuBarExtension.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyShortcutDispatcher.d.ts +12 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyShortcutDispatcher.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Sound/ClassicyDesktopMenuWidgetSound.d.ts +27 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Sound/ClassicyDesktopMenuWidgetSound.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Time/ClassicyDesktopMenuWidgetTime.d.ts +10 -0
- package/dist/types/src/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Time/ClassicyDesktopMenuWidgetTime.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Disclosure/ClassicyDisclosure.d.ts +48 -0
- package/dist/types/src/SystemFolder/SystemResources/Disclosure/ClassicyDisclosure.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyDerivedEntryNameWarnings.internal.d.ts +12 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyDerivedEntryNameWarnings.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyDerivedFolderPlaceholders.internal.d.ts +31 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyDerivedFolderPlaceholders.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowser.d.ts +127 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowser.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowserUtils.d.ts +50 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowserUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowserViewIcons.d.ts +33 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowserViewIcons.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowserViewTable.d.ts +37 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileBrowserViewTable.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileDrag.d.ts +103 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileDrag.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileDragAppearance.internal.d.ts +37 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileDragAppearance.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileDragOutline.d.ts +31 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileDragOutline.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileMove.d.ts +79 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileMove.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystem.d.ts +184 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystem.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemAdapter.d.ts +76 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemAdapter.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemApplications.d.ts +56 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemApplications.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemContentResolver.d.ts +18 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemContentResolver.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemContext.d.ts +42 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemControlStripModules.d.ts +47 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemControlStripModules.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemExtensions.d.ts +28 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemExtensions.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemModel.d.ts +63 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemModel.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemSeedCopy.internal.d.ts +13 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemSeedCopy.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemSeedMigrations.d.ts +39 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemSeedMigrations.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemValidation.d.ts +10 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyFileSystemValidation.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyPointerStreamLost.internal.d.ts +90 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyPointerStreamLost.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyTrash.d.ts +57 -0
- package/dist/types/src/SystemFolder/SystemResources/File/ClassicyTrash.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/DefaultClassicyFileSystem.d.ts +162 -0
- package/dist/types/src/SystemFolder/SystemResources/File/DefaultClassicyFileSystem.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/File/useResolvedMediaSource.d.ts +8 -0
- package/dist/types/src/SystemFolder/SystemResources/File/useResolvedMediaSource.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileDialog.d.ts +117 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileDialogVolume.d.ts +59 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileDialogVolume.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileOpenDialog.d.ts +33 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileOpenDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileSaveDialog.d.ts +27 -0
- package/dist/types/src/SystemFolder/SystemResources/FileDialog/ClassicyFileSaveDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/FileInput/ClassicyFileInput.d.ts +55 -0
- package/dist/types/src/SystemFolder/SystemResources/FileInput/ClassicyFileInput.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Form/ClassicyForm.d.ts +55 -0
- package/dist/types/src/SystemFolder/SystemResources/Form/ClassicyForm.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/HelpButton/ClassicyHelpButton.d.ts +38 -0
- package/dist/types/src/SystemFolder/SystemResources/HelpButton/ClassicyHelpButton.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Icon/ClassicyIcon.d.ts +107 -0
- package/dist/types/src/SystemFolder/SystemResources/Icon/ClassicyIcon.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ImageWell/ClassicyImageWell.d.ts +36 -0
- package/dist/types/src/SystemFolder/SystemResources/ImageWell/ClassicyImageWell.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Input/ClassicyInput.d.ts +62 -0
- package/dist/types/src/SystemFolder/SystemResources/Input/ClassicyInput.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/InputDialog/ClassicyInputDialog.d.ts +86 -0
- package/dist/types/src/SystemFolder/SystemResources/InputDialog/ClassicyInputDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Kbd/ClassicyKbd.d.ts +40 -0
- package/dist/types/src/SystemFolder/SystemResources/Kbd/ClassicyKbd.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Keyboard/useKeyboardEquivalents.d.ts +49 -0
- package/dist/types/src/SystemFolder/SystemResources/Keyboard/useKeyboardEquivalents.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Keyboard/useListNavigation.d.ts +23 -0
- package/dist/types/src/SystemFolder/SystemResources/Keyboard/useListNavigation.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/KeyboardEquivalent/ClassicyKeyboardEquivalentDialog.d.ts +50 -0
- package/dist/types/src/SystemFolder/SystemResources/KeyboardEquivalent/ClassicyKeyboardEquivalentDialog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/KeyboardEquivalent/ClassicyKeyboardEquivalentField.d.ts +40 -0
- package/dist/types/src/SystemFolder/SystemResources/KeyboardEquivalent/ClassicyKeyboardEquivalentField.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/KeyboardEquivalent/ClassicyKeyboardEquivalentRules.d.ts +42 -0
- package/dist/types/src/SystemFolder/SystemResources/KeyboardEquivalent/ClassicyKeyboardEquivalentRules.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Link/ClassicyLink.d.ts +56 -0
- package/dist/types/src/SystemFolder/SystemResources/Link/ClassicyLink.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ListBox/ClassicyListBox.d.ts +64 -0
- package/dist/types/src/SystemFolder/SystemResources/ListBox/ClassicyListBox.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/LittleArrows/ClassicyLittleArrows.d.ts +53 -0
- package/dist/types/src/SystemFolder/SystemResources/LittleArrows/ClassicyLittleArrows.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Log/ClassicyLog.d.ts +46 -0
- package/dist/types/src/SystemFolder/SystemResources/Log/ClassicyLog.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyKeyboardShortcut.d.ts +112 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyKeyboardShortcut.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyMenu.d.ts +132 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyMenu.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyMenuContext.d.ts +13 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyMenuContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyMenuProvider.d.ts +22 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/ClassicyMenuProvider.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/useClassicyMenuCloseOnOutsideMouseDown.d.ts +16 -0
- package/dist/types/src/SystemFolder/SystemResources/Menu/useClassicyMenuCloseOnOutsideMouseDown.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Meter/ClassicyMeter.d.ts +62 -0
- package/dist/types/src/SystemFolder/SystemResources/Meter/ClassicyMeter.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Output/ClassicyOutput.d.ts +46 -0
- package/dist/types/src/SystemFolder/SystemResources/Output/ClassicyOutput.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Pager/ClassicyPager.d.ts +45 -0
- package/dist/types/src/SystemFolder/SystemResources/Pager/ClassicyPager.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/PixelArt/ClassicyPixelArt.d.ts +62 -0
- package/dist/types/src/SystemFolder/SystemResources/PixelArt/ClassicyPixelArt.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Placard/ClassicyPlacard.d.ts +52 -0
- package/dist/types/src/SystemFolder/SystemResources/Placard/ClassicyPlacard.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/PopUpMenu/ClassicyPopUpMenu.d.ts +93 -0
- package/dist/types/src/SystemFolder/SystemResources/PopUpMenu/ClassicyPopUpMenu.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/PopUpMenu/ClassicyPopUpMenuPlacement.d.ts +37 -0
- package/dist/types/src/SystemFolder/SystemResources/PopUpMenu/ClassicyPopUpMenuPlacement.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/PopUpSlider/ClassicyPopUpSlider.d.ts +49 -0
- package/dist/types/src/SystemFolder/SystemResources/PopUpSlider/ClassicyPopUpSlider.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/ProgressBar/ClassicyProgressBar.d.ts +52 -0
- package/dist/types/src/SystemFolder/SystemResources/ProgressBar/ClassicyProgressBar.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeCaptionsOverlay.d.ts +44 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeCaptionsOverlay.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeFullscreenButton.d.ts +14 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeFullscreenButton.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeMovieEmbed.d.ts +99 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeMovieEmbed.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimePlayPauseButton.d.ts +16 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimePlayPauseButton.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeSeekBar.d.ts +22 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeSeekBar.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeUtils.d.ts +3 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeUtils.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeVolumeControl.d.ts +15 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/QuickTimeVolumeControl.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/useControllableState.d.ts +8 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/useControllableState.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/useQuickTimePlayback.d.ts +36 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/useQuickTimePlayback.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/useQuickTimeSubtitles.d.ts +8 -0
- package/dist/types/src/SystemFolder/SystemResources/QuickTime/useQuickTimeSubtitles.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/RadioInput/ClassicyRadioInput.d.ts +79 -0
- package/dist/types/src/SystemFolder/SystemResources/RadioInput/ClassicyRadioInput.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/RichTextEditor/ClassicyRichTextEditor.d.ts +60 -0
- package/dist/types/src/SystemFolder/SystemResources/RichTextEditor/ClassicyRichTextEditor.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/SchemaForm/ClassicySchemaForm.d.ts +46 -0
- package/dist/types/src/SystemFolder/SystemResources/SchemaForm/ClassicySchemaForm.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/SchemaForm/ClassicySchemaFormFields.d.ts +33 -0
- package/dist/types/src/SystemFolder/SystemResources/SchemaForm/ClassicySchemaFormFields.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Separator/ClassicySeparator.d.ts +29 -0
- package/dist/types/src/SystemFolder/SystemResources/Separator/ClassicySeparator.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Shortcut/ClassicyShortcut.d.ts +34 -0
- package/dist/types/src/SystemFolder/SystemResources/Shortcut/ClassicyShortcut.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Slider/ClassicySlider.d.ts +136 -0
- package/dist/types/src/SystemFolder/SystemResources/Slider/ClassicySlider.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Spinner/ClassicySpinner.d.ts +65 -0
- package/dist/types/src/SystemFolder/SystemResources/Spinner/ClassicySpinner.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/SplitView/ClassicySplitView.d.ts +85 -0
- package/dist/types/src/SystemFolder/SystemResources/SplitView/ClassicySplitView.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Table/ClassicyTable.d.ts +141 -0
- package/dist/types/src/SystemFolder/SystemResources/Table/ClassicyTable.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Tabs/ClassicyTabs.d.ts +69 -0
- package/dist/types/src/SystemFolder/SystemResources/Tabs/ClassicyTabs.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/TextEditor/ClassicyTextEditor.d.ts +69 -0
- package/dist/types/src/SystemFolder/SystemResources/TextEditor/ClassicyTextEditor.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/TimePicker/ClassicyTimePicker.d.ts +69 -0
- package/dist/types/src/SystemFolder/SystemResources/TimePicker/ClassicyTimePicker.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Tree/ClassicyTree.d.ts +111 -0
- package/dist/types/src/SystemFolder/SystemResources/Tree/ClassicyTree.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Triangle/ClassicyTriangle.d.ts +45 -0
- package/dist/types/src/SystemFolder/SystemResources/Triangle/ClassicyTriangle.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/base64Compression.d.ts +11 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/base64Compression.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/deepMerge.d.ts +13 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/deepMerge.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/urlValidation.d.ts +7 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/urlValidation.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/withoutZIndex.internal.d.ts +8 -0
- package/dist/types/src/SystemFolder/SystemResources/Utils/withoutZIndex.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindow.d.ts +318 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindow.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowContext.d.ts +16 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowFrame.d.ts +36 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowFrame.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowMenuBar.d.ts +37 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowMenuBar.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowResize.d.ts +45 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowResize.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowResize.internal.d.ts +10 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowResize.internal.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowTitleBar.d.ts +57 -0
- package/dist/types/src/SystemFolder/SystemResources/Window/ClassicyWindowTitleBar.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/WebViewer/WebViewer.d.ts +3 -0
- package/dist/types/src/SystemFolder/WebViewer/WebViewer.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/WebViewer/WebViewerContext.d.ts +10 -0
- package/dist/types/src/SystemFolder/WebViewer/WebViewerContext.d.ts.map +1 -0
- package/dist/types/src/SystemFolder/WebViewer/WebViewerUtils.d.ts +28 -0
- package/dist/types/src/SystemFolder/WebViewer/WebViewerUtils.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +288 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/docs/AGENT-REFERENCE.md +5116 -0
- package/docs/BUILDING-APPS.md +1491 -0
- package/package.json +150 -4
- package/src/Appearance/ClassicyActiveAppearancePackage.internal.ts +27 -0
- package/src/Appearance/ClassicyAppIdentity.ts +127 -0
- package/src/Appearance/ClassicyAppearanceDefaults.ts +23 -0
- package/src/Appearance/ClassicyAppearancePackage.ts +292 -0
- package/src/Appearance/ClassicyAppearancePackageRegistry.ts +214 -0
- package/src/Appearance/ClassicyAppearancePackageSchema.ts +294 -0
- package/src/Appearance/ClassicyAppearanceSound.ts +59 -0
- package/src/Appearance/ClassicyAppearanceStyles.ts +46 -0
- package/src/Appearance/ClassicyAssetPackageSource.internal.ts +41 -0
- package/src/Appearance/ClassicyAssetRegistry.ts +701 -0
- package/src/Appearance/ClassicyAssetSource.ts +54 -0
- package/src/Appearance/ClassicyCoreTheme.ts +216 -0
- package/src/Appearance/ClassicyFontFaceCss.internal.ts +50 -0
- package/src/Appearance/ClassicyPixelArtSource.internal.ts +43 -0
- package/src/Appearance/ClassicyPixelArtSource.ts +70 -0
- package/src/Appearance/ClassicyWallpaperIndex.ts +454 -0
- package/src/Appearance/ClassicyWallpaperSource.internal.ts +85 -0
- package/src/Appearance/useClassicyAppearance.internal.ts +14 -0
- package/src/Appearance/useClassicyAppearance.ts +272 -0
- package/src/Appearance/useClassicyAppearanceInput.internal.ts +106 -0
- package/src/Appearance/useClassicyAppearanceLayout.ts +69 -0
- package/src/Appearance/useClassicyMergedRef.internal.ts +53 -0
- package/src/Appearance/vocabulary/ClassicyVocabulary.json +560 -0
- package/src/Appearance/vocabulary/ClassicyVocabulary.ts +113 -0
- package/src/Appearance/vocabulary/_color.scss +50 -0
- package/src/Appearance/vocabulary/_layout.scss +16 -0
- package/src/Appearance/vocabulary/_package.scss +14 -0
- package/src/Appearance/vocabulary/_vocabulary.scss +11 -0
|
@@ -0,0 +1,1491 @@
|
|
|
1
|
+
# Building a Classicy App
|
|
2
|
+
|
|
3
|
+
This guide shows how to write an application for a Classicy desktop. It starts
|
|
4
|
+
with the smallest app that runs, then documents every feature an app can use.
|
|
5
|
+
|
|
6
|
+
For a flat, machine-oriented dump of the whole public API, see
|
|
7
|
+
[`AGENT-REFERENCE.md`](AGENT-REFERENCE.md). This document is the narrative
|
|
8
|
+
version, aimed at a person writing an app for the first time.
|
|
9
|
+
|
|
10
|
+
**Contents**
|
|
11
|
+
|
|
12
|
+
1. [What an app is](#1-what-an-app-is)
|
|
13
|
+
2. [Hello, world](#2-hello-world)
|
|
14
|
+
3. [The four-file pattern](#3-the-four-file-pattern)
|
|
15
|
+
4. [`ClassicyApp` reference](#4-classicyapp-reference)
|
|
16
|
+
5. [`ClassicyWindow` reference](#5-classicywindow-reference)
|
|
17
|
+
6. [State: the store, selectors, dispatch](#6-state-the-store-selectors-dispatch)
|
|
18
|
+
7. [Manifests: `registerApp`](#7-manifests-registerapp)
|
|
19
|
+
8. [Reducers](#8-reducers)
|
|
20
|
+
9. [Menus](#9-menus)
|
|
21
|
+
10. [Icons](#10-icons)
|
|
22
|
+
11. [Files](#11-files)
|
|
23
|
+
12. [Dialogs and alerts](#12-dialogs-and-alerts)
|
|
24
|
+
13. [Balloon help](#13-balloon-help)
|
|
25
|
+
14. [Sound](#14-sound)
|
|
26
|
+
15. [Analytics](#15-analytics)
|
|
27
|
+
16. [Extensions, global shortcuts and Control Strip modules](#16-extensions-global-shortcuts-and-control-strip-modules)
|
|
28
|
+
17. [Persistence](#17-persistence)
|
|
29
|
+
18. [Testing](#18-testing)
|
|
30
|
+
19. [Checklist and known traps](#19-checklist-and-known-traps)
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 1. What an app is
|
|
35
|
+
|
|
36
|
+
A Classicy app is three things at once:
|
|
37
|
+
|
|
38
|
+
| Layer | What it is | Where it lives |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| **Component** | A React component that renders `<ClassicyApp>` and some `<ClassicyWindow>` children. | `MyApp.tsx` |
|
|
41
|
+
| **Store entry** | A record at `System.Manager.Applications.apps["MyApp.app"]` holding window list, open/focus flags, and a free-form `data` bag. | Zustand store |
|
|
42
|
+
| **Manifest** | A `registerApp({ … })` call that declares the app's description, its action prefix, its reducer, its actions, and the schema of its `data`. | `MyAppContext.ts` |
|
|
43
|
+
|
|
44
|
+
You always write the component and the manifest. You write a reducer only when
|
|
45
|
+
the app needs to keep state that must survive a reload.
|
|
46
|
+
|
|
47
|
+
An app mounts as a child of `<ClassicyDesktop>`, which itself mounts inside
|
|
48
|
+
`<ClassicyAppManagerProvider>`:
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
<ClassicyAppManagerProvider>
|
|
52
|
+
<ClassicyDesktop>
|
|
53
|
+
<MyApp />
|
|
54
|
+
</ClassicyDesktop>
|
|
55
|
+
</ClassicyAppManagerProvider>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`ClassicyDesktop` renders your children after the menu bar, the bundled apps,
|
|
59
|
+
and the desktop icons. Nothing else is required to make the app appear — mounting
|
|
60
|
+
`<ClassicyApp>` registers the app, adds its desktop icon, and adds it to the
|
|
61
|
+
Applications folder.
|
|
62
|
+
|
|
63
|
+
> **Import an Appearance Package at your app's entry.** The core draws no
|
|
64
|
+
> desktop without one: with none registered, `ClassicyDesktop` shows a "No
|
|
65
|
+
> Appearance Package is loaded" message and mounts none of its children, your
|
|
66
|
+
> app included. Add `import '@classicy/appearance-platinum'` once, before you
|
|
67
|
+
> render (and in your test setup file, for tests that render a desktop). The
|
|
68
|
+
> entry is in AGENT-REFERENCE §1.
|
|
69
|
+
|
|
70
|
+
> **Mount `ClassicyDesktop` eagerly.** Lazy-loading it so that it mounts a tick
|
|
71
|
+
> after `ClassicyAppManagerProvider` corrupts manager state: early dispatches
|
|
72
|
+
> reach a reducer whose state the desktop has not seeded yet, and every later
|
|
73
|
+
> dispatch throws.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 2. Hello, world
|
|
78
|
+
|
|
79
|
+
Four things: an id, a name, an icon, and a window.
|
|
80
|
+
|
|
81
|
+
```tsx
|
|
82
|
+
import { ClassicyApp, ClassicyWindow, ClassicyButton } from '@classicy/classicy'
|
|
83
|
+
import appIcon from './my-app.png'
|
|
84
|
+
|
|
85
|
+
export default function MyApp() {
|
|
86
|
+
return (
|
|
87
|
+
<ClassicyApp id="MyApp.app" name="MyApp" icon={appIcon} defaultWindow="myapp_main">
|
|
88
|
+
<ClassicyWindow
|
|
89
|
+
id="myapp_main"
|
|
90
|
+
appId="MyApp.app"
|
|
91
|
+
title="My App"
|
|
92
|
+
icon={appIcon}
|
|
93
|
+
initialSize={[400, 300]}
|
|
94
|
+
initialPosition={["center", "center"]}
|
|
95
|
+
>
|
|
96
|
+
<ClassicyButton onClickFunc={() => alert('Hi')}>Click me</ClassicyButton>
|
|
97
|
+
</ClassicyWindow>
|
|
98
|
+
</ClassicyApp>
|
|
99
|
+
)
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
That app already has: a desktop icon, an Applications-folder entry, an Apple-menu
|
|
104
|
+
entry, a draggable and resizable window with close/zoom/collapse boxes, window
|
|
105
|
+
sounds, theming, and persistence of its window position across reloads.
|
|
106
|
+
|
|
107
|
+
### App id and app name
|
|
108
|
+
|
|
109
|
+
- **The id ends in `.app`.** Every bundled app follows this (`Finder.app`,
|
|
110
|
+
`SimpleText.app`), a test pins it, and `"Finder.app"` is hard-coded as the
|
|
111
|
+
menu-bar fallback.
|
|
112
|
+
- **The name is the internal name.** It is the app's own name, shown unless
|
|
113
|
+
the active Appearance Package says otherwise, and it is load-bearing: Finder
|
|
114
|
+
builds the generic action type `` `ClassicyApp${app.name}OpenFile` `` from the
|
|
115
|
+
stored name, verbatim (an OpenFile your manifest declares is used instead),
|
|
116
|
+
and `ClassicyApp` builds `` `ClassicyApp${name}CloseFile` `` from the prop.
|
|
117
|
+
A name with a space produces an action type with a space in it, which will
|
|
118
|
+
not match your registered prefix. **Prefer a single word for `name`.**
|
|
119
|
+
- **A package may display another name.** An Appearance Package can show your
|
|
120
|
+
app under another name or icon, by its id (`apps["MyApp.app"]`;
|
|
121
|
+
AGENT-REFERENCE §8, "App display overrides"). Your action types, Finder's
|
|
122
|
+
OpenFile routing and every store record keep this one; only what is drawn
|
|
123
|
+
changes. You need do nothing for it, unless your app draws its own name
|
|
124
|
+
(below) or builds something from a name.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 3. The four-file pattern
|
|
129
|
+
|
|
130
|
+
A non-trivial app is normally four files:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
src/Applications/MyApp/
|
|
134
|
+
├── MyApp.tsx # component: ClassicyApp + windows + menus
|
|
135
|
+
├── MyAppContext.ts # reducer + zod schemas + registerApp (module side effect)
|
|
136
|
+
├── MyApp.module.scss # styles
|
|
137
|
+
└── my-app.png # icon
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`MyApp.tsx` imports `MyAppContext.ts` for its side effect:
|
|
141
|
+
|
|
142
|
+
```tsx
|
|
143
|
+
import './MyAppContext' // runs registerApp() at module load
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Register the manifest at module load, not at mount.** `registerApp` must run
|
|
147
|
+
as a module side effect. If the module is never pulled into the import graph,
|
|
148
|
+
`dispatchToPlugin` logs `No handler registered for prefix` and every action for
|
|
149
|
+
the app silently falls through.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 4. `ClassicyApp` reference
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
interface ClassicyAppProps {
|
|
157
|
+
id: string
|
|
158
|
+
name: string
|
|
159
|
+
icon: string
|
|
160
|
+
defaultWindow?: string
|
|
161
|
+
showDesktopIcon?: boolean
|
|
162
|
+
showInApplicationsFolder?: boolean
|
|
163
|
+
desktopIconBalloonHelp?: string | ClassicyIconBalloonHelp
|
|
164
|
+
noDesktopIcon?: boolean // @deprecated → showDesktopIcon={false}
|
|
165
|
+
inApplicationsFolder?: boolean // @deprecated → showInApplicationsFolder
|
|
166
|
+
addSystemMenu?: boolean
|
|
167
|
+
extension?: boolean
|
|
168
|
+
globalShortcuts?: ClassicyGlobalShortcut[]
|
|
169
|
+
bootIcon?: boolean | string
|
|
170
|
+
debug?: boolean
|
|
171
|
+
handlesFileTypes?: ClassicyFileSystemEntryFileType[]
|
|
172
|
+
handlesOwnFiles?: boolean
|
|
173
|
+
contextMenu?: ClassicyMenuItem[]
|
|
174
|
+
children?: ReactNode
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
| Prop | Default | Purpose |
|
|
179
|
+
|---|---|---|
|
|
180
|
+
| `id` | — | Unique app id. Convention: `MyApp.app`. |
|
|
181
|
+
| `name` | — | Internal name, and the display name unless a package overrides it. Builds file-open action types — prefer one word. |
|
|
182
|
+
| `icon` | — | Icon URL. Required even for extensions, which never render it. |
|
|
183
|
+
| *(display overrides)* | — | Not a prop: an Appearance Package's `apps[id]` may show another `name`, `icon` and balloon `description` for your app wherever it is drawn. The props stay the internal identity and the default. Text your app draws that names the app reads `useClassicyAppIdentity(id, { name, icon })`. |
|
|
184
|
+
| `defaultWindow` | — | Enables focus restore: when the app is focused but none of its open windows is, the most recently focused one is refocused (this window if none has been). |
|
|
185
|
+
| `showDesktopIcon` | `true` | Draw an icon on the desktop. |
|
|
186
|
+
| `showInApplicationsFolder` | `true` | List the app in the derived Applications folder. Independent of the above. |
|
|
187
|
+
| `desktopIconBalloonHelp` | manifest `description` | Balloon help for the desktop icon. A bare string is titled with the name the icon shows. Pass it only for copy of your own: given, it beats a package's `description`; omitted, the icon shows the package's `description`, else the manifest's, resolved at render. |
|
|
188
|
+
| `addSystemMenu` | — | Add an Apple-menu entry. Forced off for extensions. |
|
|
189
|
+
| `extension` | `false` | Background app: always open, no icon, no focus, no Apple-menu entry. |
|
|
190
|
+
| `globalShortcuts` | — | Honored **only** when `extension` is set. |
|
|
191
|
+
| `bootIcon` | — | Show an icon in the startup parade. `true` uses the app icon; a string uses that icon. |
|
|
192
|
+
| `debug` | `false` | Render a JSON-tree debugger window over the app's store entry. |
|
|
193
|
+
| `handlesFileTypes` | — | File types Finder should route to this app. |
|
|
194
|
+
| `handlesOwnFiles` | `false` | Suppress the automatic file windows and render your own. |
|
|
195
|
+
| `contextMenu` | — | Right-click menu for every window of this app, unless a window overrides it. |
|
|
196
|
+
|
|
197
|
+
Children render only when the app is open.
|
|
198
|
+
|
|
199
|
+
### Three canonical shapes
|
|
200
|
+
|
|
201
|
+
**Standard app** — desktop icon, Applications entry, its own File menu:
|
|
202
|
+
|
|
203
|
+
```tsx
|
|
204
|
+
<ClassicyApp
|
|
205
|
+
id={appId}
|
|
206
|
+
name={appName}
|
|
207
|
+
icon={appIcon}
|
|
208
|
+
defaultWindow="myapp_main"
|
|
209
|
+
addSystemMenu={false}
|
|
210
|
+
>
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Control panel** — Apple menu only, no desktop icon:
|
|
214
|
+
|
|
215
|
+
```tsx
|
|
216
|
+
<ClassicyApp
|
|
217
|
+
id={APP_ID}
|
|
218
|
+
name={APP_NAME}
|
|
219
|
+
icon={appIcon}
|
|
220
|
+
defaultWindow={WINDOW_ID}
|
|
221
|
+
showDesktopIcon={false}
|
|
222
|
+
addSystemMenu={true}
|
|
223
|
+
>
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
**Background extension** — no window, no icon, runs from boot:
|
|
227
|
+
|
|
228
|
+
```tsx
|
|
229
|
+
<ClassicyApp id={appId} name={appName} icon={appIcon} extension addSystemMenu={false}>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### What mounting does
|
|
233
|
+
|
|
234
|
+
On mount, `ClassicyApp` dispatches, in order:
|
|
235
|
+
|
|
236
|
+
1. `ClassicyAppLoad` — creates or refreshes `apps[id]`, storing `contextMenu`
|
|
237
|
+
and refreshing `name` and `icon` from the props (never a package's override).
|
|
238
|
+
2. `ClassicyDesktopAppMenuAdd` / `…Remove` — per `addSystemMenu`.
|
|
239
|
+
3. `ClassicyDesktopIconAdd` with `kind: "app_shortcut"`, or `ClassicyDesktopIconRemove`
|
|
240
|
+
when both icon surfaces are off. (The removal matters: icons persist to
|
|
241
|
+
`localStorage`, so a stale icon would otherwise survive.)
|
|
242
|
+
4. `ClassicyBootParadeIconAdd` — when `bootIcon` is set.
|
|
243
|
+
5. `ClassicyAppRegisterFileTypes` — when `handlesFileTypes` is set.
|
|
244
|
+
6. `ClassicyShortcutRegister` per entry — extensions only.
|
|
245
|
+
|
|
246
|
+
`contextMenu` is deliberately **excluded** from the effect's dependencies, so an
|
|
247
|
+
inline array literal does not re-fire the effect.
|
|
248
|
+
|
|
249
|
+
### Alias badging
|
|
250
|
+
|
|
251
|
+
Every icon `ClassicyApp` registers has kind `app_shortcut`, so it renders the
|
|
252
|
+
Mac OS 8 alias arrow over its bottom-left corner and italicizes its label. System
|
|
253
|
+
kinds (`drive`, `trash`, `directory`, `file`, `icon`) get neither.
|
|
254
|
+
|
|
255
|
+
### Display overrides: what your app must do
|
|
256
|
+
|
|
257
|
+
An Appearance Package can show your app under another name, icon and balloon
|
|
258
|
+
copy (`apps[id]`). The shell does the rest by itself: the desktop icon, the
|
|
259
|
+
Applications or Extensions entry, the App Switcher, the Apple menu, the About
|
|
260
|
+
box, the startup parade and a Control Strip module you own with `appId` all
|
|
261
|
+
follow the package, with no code in your app.
|
|
262
|
+
|
|
263
|
+
Your app has work to do only where it draws or builds from its own name:
|
|
264
|
+
|
|
265
|
+
- **Text that names the app** (a window title that is the app name, a proxy
|
|
266
|
+
icon that is the app icon, an "Open … Control Panel" item) reads the display
|
|
267
|
+
identity:
|
|
268
|
+
|
|
269
|
+
```tsx
|
|
270
|
+
const identity = useClassicyAppIdentity(appId, { name: appName, icon: appIcon })
|
|
271
|
+
<ClassicyWindow title={identity.name} icon={identity.icon} /* … */ />
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Pass the internal `appName`/`appIcon` everywhere else: `ClassicyApp`,
|
|
275
|
+
`useClassicyAboutMenu`, `quitMenuItemHelper`, `ClassicyAppOpen` payloads.
|
|
276
|
+
- **Action types, paths and lookups** never use a displayed name. Write your
|
|
277
|
+
action types as literals (`"ClassicyAppMyAppCloseFile"`), not
|
|
278
|
+
`` `ClassicyApp${appName}CloseFile` ``.
|
|
279
|
+
- **Your About item** keeps the id `useClassicyAboutMenu` gives it,
|
|
280
|
+
`${appId}_about`, and a title in the internal name: its plain "About", or
|
|
281
|
+
`` `About ${appName}` `` when you retitle it (stored menus never hold a
|
|
282
|
+
display name). A window's own menu bar retitles the item "About <display
|
|
283
|
+
name>" only when it finds `${appId}_about` titled `` `About ${appName}` ``;
|
|
284
|
+
another id, or other wording, is drawn as stored. The screen menu bar always
|
|
285
|
+
titles the hoisted Apple-menu copy "About <display name>".
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## 5. `ClassicyWindow` reference
|
|
290
|
+
|
|
291
|
+
Every prop, with its default:
|
|
292
|
+
|
|
293
|
+
| Prop | Type | Default | Purpose |
|
|
294
|
+
|---|---|---|---|
|
|
295
|
+
| `id` | `string` | — | Window id, unique **across the whole store**. |
|
|
296
|
+
| `appId` | `string` | — | Owning app id. |
|
|
297
|
+
| `title` | `string` | `""` | Title-bar text. Sent to analytics verbatim. |
|
|
298
|
+
| `icon` | `string` | file icon | Title-bar icon. |
|
|
299
|
+
| `hideIcon` | `boolean` | `false` | Hide the title-bar icon. |
|
|
300
|
+
| `hidden` | `boolean` | `false` | Render but do not show. |
|
|
301
|
+
| `closable` | `boolean` | `true` | Draw the close box. |
|
|
302
|
+
| `zoomable` | `boolean` | `true` | Draw the zoom box. |
|
|
303
|
+
| `collapsable` | `boolean` | `true` | Draw the collapse (windowshade) box. |
|
|
304
|
+
| `resizable` | `boolean` | `true` | Draw the grow box. |
|
|
305
|
+
| `scrollable` | `boolean` | `true` | Give the content region scroll bars (always both, Mac OS 8 style). Pass `false` when the content scrolls itself — a full-window `<textarea>`, a `ClassicySplitView`, a pan surface — or it gets a second set of bars. |
|
|
306
|
+
| `growable` | `boolean` | — | Let content drive the window size. |
|
|
307
|
+
| `modal` | `boolean` | `false` | Modal dialog. Destroyed on unmount, so each open takes focus. |
|
|
308
|
+
| `defaultWindow` | `boolean` | `false` | Mark this as the app's default window. |
|
|
309
|
+
| `initialSize` | `[dim, dim]` | `[350, 0]` | `number`, `"50%"`, or `0` for auto. |
|
|
310
|
+
| `initialPosition` | `[x, y]` | `[110, 110]` | `number`, or `"left"`/`"center"`/`"right"` and `"top"`/`"center"`/`"bottom"`. |
|
|
311
|
+
| `minimumSize` | `[dim, dim]` | `[300, 0]` | Resize floor. |
|
|
312
|
+
| `header` | `ReactNode` | — | Fixed header strip above the content region. |
|
|
313
|
+
| `headerVariant` | `"standard" \| "list"` | `"standard"` | `"list"` drops the header's bottom separator. |
|
|
314
|
+
| `placard` | `ReactNode` | — | Status region at the bottom-left, left of the horizontal scroll bar. |
|
|
315
|
+
| `appMenu` | `ClassicyMenuItem[]` | — | Menu bar published when this window is focused. **Memoize it.** |
|
|
316
|
+
| `contextMenu` | `ClassicyMenuItem[]` | app's menu | Right-click menu for this window. |
|
|
317
|
+
| `windowType` | `"document" \| "utility"` | `"document"` | `"utility"` renders a tool-palette crosshatch drag region. |
|
|
318
|
+
| `alwaysOnTop` | `boolean` | `false` | Utility only. Float above every app's windows. |
|
|
319
|
+
| `zoomMode` | `"full" \| "horizontal" \| "vertical"` | `"full"` | Which axes the zoom box affects. |
|
|
320
|
+
| `contentFrame` | `boolean` | `false` | 2px active/inactive frame — marks a modeless dialog. |
|
|
321
|
+
| `backgroundColor` | `string` | theme | Any CSS color, including `var(--…)`. |
|
|
322
|
+
| `dimContents` | `boolean` | `true` | Dim contents when the window is inactive. |
|
|
323
|
+
| `analyticsPath` | `string` | derived | Override the generated pageview path. |
|
|
324
|
+
| `analyticsExclude` | `boolean` | — | Emit no pageview at all. |
|
|
325
|
+
| `initialFocusRef` | `RefObject<HTMLElement \| null>` | — | Element focused when the window becomes the focused window (unless focus is already inside it), so its keyboard navigation works without a click. A modal's focus trap starts there instead. |
|
|
326
|
+
| `onCloseFunc` | `(id) => void` | — | Runs after a close is allowed. |
|
|
327
|
+
| `onBeforeClose` | `(id) => boolean \| Promise<boolean>` | — | Close veto. Return `false` to cancel. |
|
|
328
|
+
| `type` | `string` | `"default"` | Free-form class hook. |
|
|
329
|
+
|
|
330
|
+
### Sizing idioms
|
|
331
|
+
|
|
332
|
+
```tsx
|
|
333
|
+
initialSize={[400, 300]} // fixed
|
|
334
|
+
initialSize={["75%", "75%"]} // proportional to the viewport
|
|
335
|
+
initialSize={["45%", 0]} // proportional width, height from content
|
|
336
|
+
initialSize={[0, 0]} // both from content (tool palettes)
|
|
337
|
+
initialPosition={["center", "center"]}
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Persisted windows are re-clamped to the viewport on load, so a window saved off
|
|
341
|
+
the edge of a large screen comes back on a small one.
|
|
342
|
+
|
|
343
|
+
### Vetoing a close
|
|
344
|
+
|
|
345
|
+
`onBeforeClose` runs before `onCloseFunc`, before the close sound, before the
|
|
346
|
+
analytics event, and before the `ClassicyWindowClose` dispatch. None of those
|
|
347
|
+
fire when the veto cancels. The callback may return a promise, so an app can
|
|
348
|
+
show a save-changes alert and then decide:
|
|
349
|
+
|
|
350
|
+
```tsx
|
|
351
|
+
<ClassicyWindow
|
|
352
|
+
id={winId}
|
|
353
|
+
appId={appId}
|
|
354
|
+
onBeforeClose={async () => {
|
|
355
|
+
if (!dirty) return true
|
|
356
|
+
return await confirmDiscard() // your own alert
|
|
357
|
+
}}
|
|
358
|
+
>
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
### Window order and focus
|
|
362
|
+
|
|
363
|
+
Windows stack by when they were last opened or focused, and focus follows the
|
|
364
|
+
same history, so a dialog an app shows and hides needs no focus bookkeeping:
|
|
365
|
+
|
|
366
|
+
- **Opening a window brings it to the front.** That applies to a brand-new
|
|
367
|
+
window and to one reopened after being closed earlier in the session,
|
|
368
|
+
whether it was closed with its close box or by the app no longer rendering
|
|
369
|
+
it. A persisted window re-registering after a page reload does not steal
|
|
370
|
+
focus.
|
|
371
|
+
- **Unmounting a window closes it.** A non-modal window the app stops
|
|
372
|
+
rendering (e.g. a Settings dialog's Cancel button) is marked closed, exactly
|
|
373
|
+
as if its close box had been clicked.
|
|
374
|
+
- **Closing a window refocuses the one focused before it.** Focus passes to
|
|
375
|
+
the app's most recently focused open window (utility palettes excluded).
|
|
376
|
+
|
|
377
|
+
To raise a window that is already open but sitting behind others, for example
|
|
378
|
+
when its menu command is chosen again, dispatch `ClassicyWindowFocus` for it.
|
|
379
|
+
That is safe in the same click that first renders the window.
|
|
380
|
+
|
|
381
|
+
### Opening a window programmatically
|
|
382
|
+
|
|
383
|
+
`ClassicyWindowFocus` does not clear a window's `closed` flag, so focusing a
|
|
384
|
+
closed window does nothing visible. Open, then focus:
|
|
385
|
+
|
|
386
|
+
```tsx
|
|
387
|
+
dispatch({ type: "ClassicyWindowOpen", app: { id: appId }, window: { id: windowId } })
|
|
388
|
+
dispatch({ type: "ClassicyWindowFocus", app: { id: appId }, window: { id: windowId } })
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Window ids must be unique per instance
|
|
392
|
+
|
|
393
|
+
If a component that renders a window is itself rendered more than once, derive
|
|
394
|
+
the window id from the instance. A shared id lets two instances collide in the
|
|
395
|
+
store, and the first to unmount destroys the other's entry.
|
|
396
|
+
|
|
397
|
+
```tsx
|
|
398
|
+
id={`myapp_rename_${documentId}`} // not "myapp_rename"
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## 6. State: the store, selectors, dispatch
|
|
404
|
+
|
|
405
|
+
The store is Zustand. The app slice is **`System.Manager.Applications`** — not
|
|
406
|
+
`.App`.
|
|
407
|
+
|
|
408
|
+
```ts
|
|
409
|
+
interface ClassicyStoreSystemApp {
|
|
410
|
+
id: string
|
|
411
|
+
name: string
|
|
412
|
+
icon: string
|
|
413
|
+
windows: ClassicyStoreSystemAppWindows // Record<windowId, window>
|
|
414
|
+
open: boolean
|
|
415
|
+
data?: Record<string, unknown> // your app's state lives here
|
|
416
|
+
focused?: boolean
|
|
417
|
+
lastFocusedAt?: number
|
|
418
|
+
lastAccessedWindowId?: string
|
|
419
|
+
extension?: boolean
|
|
420
|
+
debug?: boolean
|
|
421
|
+
appMenu?: ClassicyMenuItem[]
|
|
422
|
+
contextMenu?: ClassicyMenuItem[]
|
|
423
|
+
handlesFileTypes?: ClassicyFileSystemEntryFileType[]
|
|
424
|
+
}
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Reading
|
|
428
|
+
|
|
429
|
+
Always read through a selector. Selecting the whole app record makes the
|
|
430
|
+
component re-render on every window interaction.
|
|
431
|
+
|
|
432
|
+
```tsx
|
|
433
|
+
// whole record — use only when you genuinely need windows + data + flags
|
|
434
|
+
const appState = useAppManager((s) => s.System.Manager.Applications.apps[appId])
|
|
435
|
+
|
|
436
|
+
// just the data bag
|
|
437
|
+
const appData = useAppManager((s) => s.System.Manager.Applications.apps[appId]?.data)
|
|
438
|
+
|
|
439
|
+
// a boolean — cheapest, and stable across unrelated store writes
|
|
440
|
+
const isOpen = useAppManager((s) => s.System.Manager.Applications.apps[appId]?.open ?? false)
|
|
441
|
+
|
|
442
|
+
// "is running" for an extension, which has no windows
|
|
443
|
+
const isRunning = useAppManager((s) => appId in (s.System.Manager.Applications.apps ?? {}))
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
Other useful slices:
|
|
447
|
+
|
|
448
|
+
```tsx
|
|
449
|
+
useAppManager((s) => s.System.Manager.Applications.focusedAppId === appId)
|
|
450
|
+
useAppManager((s) => s.System.Manager.DateAndTime.dateTime)
|
|
451
|
+
useAppManager((s) => s.System.Manager.Appearance.activeTheme.measurements.window.paddingSize)
|
|
452
|
+
useAppManager((s) => s.System.Manager.Desktop.disableBalloonHelp)
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
Outside React, read imperatively with `useAppManager.getState()`.
|
|
456
|
+
|
|
457
|
+
### Windows
|
|
458
|
+
|
|
459
|
+
`apps[id].windows` is a record keyed by window id
|
|
460
|
+
(`ClassicyStoreSystemAppWindows = Record<string, ClassicyStoreSystemAppWindow>`;
|
|
461
|
+
each entry's `id` equals its key). Go through the helpers rather than indexing
|
|
462
|
+
it yourself — they accept a missing app, so a selector can pass
|
|
463
|
+
`apps[appId]` straight in:
|
|
464
|
+
|
|
465
|
+
```tsx
|
|
466
|
+
import { getAppWindow, listAppWindows } from "@classicy/classicy"
|
|
467
|
+
|
|
468
|
+
// one window's flag — a primitive, so the component re-renders only when it changes
|
|
469
|
+
const inspectorOpen = useAppManager((s) =>
|
|
470
|
+
getAppWindow(s.System.Manager.Applications.apps[appId], "myapp_inspector")?.closed === false,
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
// any open window?
|
|
474
|
+
const anyOpen = useAppManager((s) =>
|
|
475
|
+
listAppWindows(s.System.Manager.Applications.apps[appId]).some((w) => !w.closed),
|
|
476
|
+
)
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
| Helper | Does |
|
|
480
|
+
|---|---|
|
|
481
|
+
| `getAppWindow(app, id)` | the window, or `undefined` |
|
|
482
|
+
| `listAppWindows(app)` | a fresh array of every window (insertion order) |
|
|
483
|
+
| `hasAppWindow(app, id)` | membership |
|
|
484
|
+
| `countAppWindows(app)` | number of registered windows, open or closed |
|
|
485
|
+
| `setAppWindow(app, window)` | insert or replace by `window.id` (reducers only) |
|
|
486
|
+
| `removeAppWindow(app, id)` | delete; returns whether it existed (reducers only) |
|
|
487
|
+
| `updateAppWindow(app, id, patch \| (w) => void)` | merge a patch or run a mutator (reducers only) |
|
|
488
|
+
| `mostRecentAppWindow(windows)` | highest `zOrder` of a list |
|
|
489
|
+
|
|
490
|
+
The write helpers mutate, so call them on the immer draft inside your event
|
|
491
|
+
handler. Decide on window data (`zOrder`, `default`, `closed`), never on list
|
|
492
|
+
position: JavaScript lists integer-like keys (`"2"`) before all others.
|
|
493
|
+
|
|
494
|
+
### Dispatching
|
|
495
|
+
|
|
496
|
+
```tsx
|
|
497
|
+
const dispatch = useAppManagerDispatch()
|
|
498
|
+
dispatch({ type: "ClassicyAppMyAppSetMode", mode: "grid" })
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
`useAppManagerDispatch()` returns a module-level function, so it is referentially
|
|
502
|
+
stable and safe in dependency arrays. Outside React, import `dispatch` directly
|
|
503
|
+
from `@classicy/classicy`.
|
|
504
|
+
|
|
505
|
+
Dispatch takes an optional second argument, the trust level
|
|
506
|
+
(`"trusted"` by default). See
|
|
507
|
+
[AGENT-REFERENCE §6](AGENT-REFERENCE.md#6-untrusted-actions-hypercard-script-safety)
|
|
508
|
+
for the untrusted-action rules.
|
|
509
|
+
|
|
510
|
+
### Action creators
|
|
511
|
+
|
|
512
|
+
Export action creators next to the reducer. They keep action types in one place
|
|
513
|
+
and give the call site a typed signature.
|
|
514
|
+
|
|
515
|
+
```ts
|
|
516
|
+
export const myAppSetMode = (mode: string): ActionMessage =>
|
|
517
|
+
({ type: "ClassicyAppMyAppSetMode", mode })
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### The one-shot command idiom
|
|
521
|
+
|
|
522
|
+
To let one app drive another (a remote control, a deep link), do not dispatch a
|
|
523
|
+
transient event — the receiving app may not be mounted yet. Write a command with
|
|
524
|
+
a monotonic sequence number into `data`, and have the receiver run it once per
|
|
525
|
+
new `seq`:
|
|
526
|
+
|
|
527
|
+
```ts
|
|
528
|
+
const nextSeq = (d: Record<string, unknown>) =>
|
|
529
|
+
((d.command as MyCommand | undefined)?.seq ?? 0) + 1
|
|
530
|
+
|
|
531
|
+
case "ClassicyAppMyAppTune":
|
|
532
|
+
apps[appId].data = {
|
|
533
|
+
...appData,
|
|
534
|
+
command: { seq: nextSeq(appData), kind: "tune", station: action.station },
|
|
535
|
+
}
|
|
536
|
+
return ds
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
## 7. Manifests: `registerApp`
|
|
542
|
+
|
|
543
|
+
One call declares everything the rest of the system needs to know about the app.
|
|
544
|
+
|
|
545
|
+
```ts
|
|
546
|
+
registerApp({
|
|
547
|
+
id: "MyApp.app",
|
|
548
|
+
description: "One sentence saying what this app is for.",
|
|
549
|
+
prefix: "ClassicyAppMyApp",
|
|
550
|
+
handler: classicyMyAppEventHandler,
|
|
551
|
+
actions: { /* … */ },
|
|
552
|
+
state: MyAppDataSchema,
|
|
553
|
+
})
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
| Field | Required | Purpose |
|
|
557
|
+
|---|---|---|
|
|
558
|
+
| `id` | yes | The app id. |
|
|
559
|
+
| `description` | yes | Human sentence. Becomes the desktop icon's balloon help by default, and feeds every discovery surface. |
|
|
560
|
+
| `prefix` | with `handler` | Action-type prefix routed to `handler`. |
|
|
561
|
+
| `handler` | with `prefix` | The reducer. |
|
|
562
|
+
| `actions` | no | Per-type `{ description, params?, scriptable? }`. |
|
|
563
|
+
| `state` | no | Zod schema of `apps[id].data`. Must be `z.looseObject`. |
|
|
564
|
+
|
|
565
|
+
Declaring `prefix` without `handler` (or the reverse) logs a dev warning and
|
|
566
|
+
registers **no** routing.
|
|
567
|
+
|
|
568
|
+
### Description-only manifests
|
|
569
|
+
|
|
570
|
+
An app with no reducer still registers a manifest. The description is the balloon
|
|
571
|
+
help for its desktop icon, and there is no other place to put it:
|
|
572
|
+
|
|
573
|
+
```ts
|
|
574
|
+
import { registerApp } from '@classicy/classicy'
|
|
575
|
+
|
|
576
|
+
registerApp({
|
|
577
|
+
id: "MarketWatch.app",
|
|
578
|
+
description: "Follow stock, index and bond markets.",
|
|
579
|
+
})
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
### Actions
|
|
583
|
+
|
|
584
|
+
```ts
|
|
585
|
+
actions: {
|
|
586
|
+
ClassicyAppMyAppSetMode: {
|
|
587
|
+
description: "Switch between list and grid presentation.",
|
|
588
|
+
params: z.object({
|
|
589
|
+
mode: z.enum(["list", "grid"]).describe("Presentation mode."),
|
|
590
|
+
}),
|
|
591
|
+
},
|
|
592
|
+
ClassicyAppMyAppReset: {
|
|
593
|
+
description: "Return every setting to its default.",
|
|
594
|
+
},
|
|
595
|
+
}
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
- `params` is a zod schema for everything except `type`. It is optional — an
|
|
599
|
+
action with no payload just omits it.
|
|
600
|
+
- `.describe()` on each field is what makes the action self-documenting.
|
|
601
|
+
- `scriptable: true` exposes the action to HyperCard stack scripts. It delegates
|
|
602
|
+
to the untrusted-action allowlist and can never grant access past the kernel's
|
|
603
|
+
guarded-route floor.
|
|
604
|
+
|
|
605
|
+
### State schema
|
|
606
|
+
|
|
607
|
+
```ts
|
|
608
|
+
export const MyAppDataSchema = z.looseObject({
|
|
609
|
+
mode: z.enum(["list", "grid"]).optional().describe("Presentation mode."),
|
|
610
|
+
selected: z.array(z.string()).optional().describe("Selected item ids."),
|
|
611
|
+
})
|
|
612
|
+
export type MyAppData = z.infer<typeof MyAppDataSchema>
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
Two hard rules:
|
|
616
|
+
|
|
617
|
+
- **`z.looseObject`, never `z.object`.** The kernel writes undeclared keys into
|
|
618
|
+
`data` — the `openFiles` queue, for one — and a strict schema would reject
|
|
619
|
+
legitimate state.
|
|
620
|
+
- **Every top-level field `.optional()`.** `data` is legitimately empty before
|
|
621
|
+
the app's first action.
|
|
622
|
+
|
|
623
|
+
In development, every dispatch runs the owning app's data through its schema and
|
|
624
|
+
logs a warning on failure. It is **warn-only**: state is never rejected or rolled
|
|
625
|
+
back.
|
|
626
|
+
|
|
627
|
+
### Reading the registry
|
|
628
|
+
|
|
629
|
+
```ts
|
|
630
|
+
getAppManifest(appId) // the merged manifest, or undefined
|
|
631
|
+
listAppManifests() // every registered manifest
|
|
632
|
+
listScriptableActions() // every script-exposed action
|
|
633
|
+
getScriptableAction(type)
|
|
634
|
+
describeAppAction(appId, type) // → { title, content }, balloon-ready
|
|
635
|
+
describeAppState(appId, "settings.skip") // dot-path into the state schema
|
|
636
|
+
parseAppData<MyAppData>(appId, raw) // typed guard; undefined on failure
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
`parseAppData` replaces hand-rolled `isMyAppData()` functions:
|
|
640
|
+
|
|
641
|
+
```ts
|
|
642
|
+
const data = parseAppData<MyAppData>(appId, appState?.data) ?? {}
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
### Merging and prefix collisions
|
|
646
|
+
|
|
647
|
+
Re-registering the same id **merges additively**: a new prefix and handler are
|
|
648
|
+
appended, the same prefix twice is a no-op, actions merge first-wins, and the
|
|
649
|
+
first `state` schema wins. This is how one app can span two modules.
|
|
650
|
+
|
|
651
|
+
> **The prefix trap.** Classicy routes an action to exactly one handler — the
|
|
652
|
+
> **first registered prefix** that `action.type.startsWith()`. If module A
|
|
653
|
+
> registers `ClassicyAppPlaylist` and module B registers
|
|
654
|
+
> `ClassicyAppPlaylistEditor`, every `ClassicyAppPlaylistEditor…` action goes to
|
|
655
|
+
> A's handler, because A's prefix is a prefix of B's. Registering the same
|
|
656
|
+
> prefix twice does not help either: the registry keeps the first and drops the
|
|
657
|
+
> second without complaint. Pick prefixes that are not prefixes of each other,
|
|
658
|
+
> and add a test:
|
|
659
|
+
>
|
|
660
|
+
> ```ts
|
|
661
|
+
> it("registers no prefix that is a prefix of another", () => {
|
|
662
|
+
> const overlaps = prefixes.flatMap((a) =>
|
|
663
|
+
> prefixes.filter((b) => b !== a && b.startsWith(a)).map((b) => `${a} swallows ${b}`))
|
|
664
|
+
> expect(overlaps).toEqual([])
|
|
665
|
+
> })
|
|
666
|
+
> ```
|
|
667
|
+
|
|
668
|
+
When one app spans two modules, only the primary module declares `state`:
|
|
669
|
+
|
|
670
|
+
```ts
|
|
671
|
+
// flightTrackerCommands.ts — secondary module
|
|
672
|
+
registerApp({
|
|
673
|
+
id: "FlightTracker.app",
|
|
674
|
+
description: "…",
|
|
675
|
+
prefix: "ClassicyAppFlightRemote",
|
|
676
|
+
handler: flightRemoteHandler,
|
|
677
|
+
actions: { /* … */ },
|
|
678
|
+
// State schema intentionally omitted: flightMapSettings.ts is the primary
|
|
679
|
+
// module and its schema covers this data. First state schema wins.
|
|
680
|
+
})
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
`registerAppEventHandler` and `registerClassicyUntrustedActionAllowlist` still
|
|
684
|
+
work but are deprecated. Use `registerApp`.
|
|
685
|
+
|
|
686
|
+
---
|
|
687
|
+
|
|
688
|
+
## 8. Reducers
|
|
689
|
+
|
|
690
|
+
A reducer takes the store and an action and returns the store. It runs inside
|
|
691
|
+
Immer, so mutate the draft in place.
|
|
692
|
+
|
|
693
|
+
```ts
|
|
694
|
+
import type { ActionMessage, ClassicyStore } from '@classicy/classicy'
|
|
695
|
+
|
|
696
|
+
export const classicyMyAppEventHandler = (ds: ClassicyStore, action: ActionMessage) => {
|
|
697
|
+
const apps = ds.System.Manager.Applications.apps
|
|
698
|
+
if (!apps[appId]) return ds
|
|
699
|
+
const appData = apps[appId].data ?? {}
|
|
700
|
+
|
|
701
|
+
switch (action.type) {
|
|
702
|
+
case "ClassicyAppMyAppSetMode":
|
|
703
|
+
apps[appId].data = { ...appData, mode: action.mode }
|
|
704
|
+
return ds
|
|
705
|
+
|
|
706
|
+
case "ClassicyAppMyAppReset":
|
|
707
|
+
apps[appId].data = {}
|
|
708
|
+
return ds
|
|
709
|
+
|
|
710
|
+
default:
|
|
711
|
+
return ds
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
Notes:
|
|
717
|
+
|
|
718
|
+
- **Return `ds` from every branch,** including `default`. A reducer that returns
|
|
719
|
+
nothing wipes the store.
|
|
720
|
+
- **Guard on the app existing.** The reducer can run before the component mounts.
|
|
721
|
+
A reducer that must work before mount can call `loadApp(ds, id, name, icon)`
|
|
722
|
+
itself — that is what the bundled Picture Viewer does.
|
|
723
|
+
- A reducer may write into **another** app's `data`. That is a legitimate way to
|
|
724
|
+
build a cross-app bridge; just omit `state` from that manifest, since the
|
|
725
|
+
handler does not own its own app's data.
|
|
726
|
+
|
|
727
|
+
### Action routing order
|
|
728
|
+
|
|
729
|
+
`classicyDesktopStateEventReducer` routes by prefix, in this order:
|
|
730
|
+
|
|
731
|
+
1. Trust gate (untrusted actions are filtered here)
|
|
732
|
+
2. `ClassicyWindow*`
|
|
733
|
+
3. `ClassicyDesktopIcon*`
|
|
734
|
+
4. `ClassicyDesktop*`
|
|
735
|
+
5. `ClassicyBootParadeIcon*`
|
|
736
|
+
6. `ClassicyManagerDateTime*`
|
|
737
|
+
7. `ClassicyShortcut*`
|
|
738
|
+
8. **First registered plugin prefix** that the type starts with — your reducer
|
|
739
|
+
9. The generic `ClassicyApp*` handler (app open/close/focus, and the
|
|
740
|
+
`…OpenFile` / `…CloseFile` fallbacks)
|
|
741
|
+
10. A `Unhandled action type` warning
|
|
742
|
+
|
|
743
|
+
---
|
|
744
|
+
|
|
745
|
+
## 9. Menus
|
|
746
|
+
|
|
747
|
+
Menu items are **plain data**, not components.
|
|
748
|
+
|
|
749
|
+
```ts
|
|
750
|
+
interface ClassicyMenuItem {
|
|
751
|
+
id: string
|
|
752
|
+
title?: string
|
|
753
|
+
image?: string
|
|
754
|
+
icon?: string
|
|
755
|
+
disabled?: boolean
|
|
756
|
+
checked?: boolean // renders ✓ in the left gutter
|
|
757
|
+
keyboardShortcut?: string
|
|
758
|
+
nativeShortcut?: boolean // browser handles it; do not intercept
|
|
759
|
+
titleWidthSamples?: string[] // reserve width for a title that changes
|
|
760
|
+
link?: string
|
|
761
|
+
event?: string
|
|
762
|
+
eventData?: Record<string, unknown>
|
|
763
|
+
onClickFunc?: () => void
|
|
764
|
+
menuChildren?: ClassicyMenuItem[]
|
|
765
|
+
className?: string
|
|
766
|
+
part?: string // rendered as data-classicy-part, for theme packages
|
|
767
|
+
balloon?: { title?: string; content: string; position?: ClassicyBalloonPosition }
|
|
768
|
+
}
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
`{ id: "spacer" }` is the separator.
|
|
772
|
+
|
|
773
|
+
### An app menu
|
|
774
|
+
|
|
775
|
+
```tsx
|
|
776
|
+
const appMenu = useMemo(() => [{
|
|
777
|
+
id: `${appId}_file`,
|
|
778
|
+
title: "File",
|
|
779
|
+
menuChildren: [
|
|
780
|
+
{ ...aboutMenuItem, title: `About ${appName}` },
|
|
781
|
+
{ id: "spacer" },
|
|
782
|
+
{
|
|
783
|
+
id: `${appId}_save`,
|
|
784
|
+
title: "Save",
|
|
785
|
+
keyboardShortcut: "S",
|
|
786
|
+
disabled: !dirty,
|
|
787
|
+
onClickFunc: save,
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
id: `${appId}_status`,
|
|
791
|
+
title: "Status",
|
|
792
|
+
menuChildren: [
|
|
793
|
+
{ id: "st_draft", title: "Draft", checked: status === "draft",
|
|
794
|
+
onClickFunc: () => setStatus("draft") },
|
|
795
|
+
{ id: "st_pub", title: "Published", checked: status === "published",
|
|
796
|
+
onClickFunc: () => setStatus("published") },
|
|
797
|
+
],
|
|
798
|
+
},
|
|
799
|
+
{ id: "spacer" },
|
|
800
|
+
quitMenuItemHelper(appId, appName, appIcon),
|
|
801
|
+
],
|
|
802
|
+
}], [aboutMenuItem, dirty, status])
|
|
803
|
+
|
|
804
|
+
<ClassicyWindow appMenu={appMenu} /* … */ >
|
|
805
|
+
```
|
|
806
|
+
|
|
807
|
+
> **Memoize `appMenu`.** `ClassicyWindow` writes it to the store behind a
|
|
808
|
+
> structural signature guard. An inline array literal defeats the guard and has
|
|
809
|
+
> previously caused render loops. The same applies to `contextMenu` and
|
|
810
|
+
> help-menu arrays.
|
|
811
|
+
|
|
812
|
+
> **Omitting `appMenu` does not clear the menu bar.** The focus reducer falls
|
|
813
|
+
> back to the window's stored `menuBar`. A window that should have no app menu
|
|
814
|
+
> must pass an explicit empty structure, not nothing.
|
|
815
|
+
|
|
816
|
+
### Menu helpers
|
|
817
|
+
|
|
818
|
+
```ts
|
|
819
|
+
quitAppHelper(appId, appName, appIcon) // → ActionMessage
|
|
820
|
+
quitMenuItemHelper(appId, appName, appIcon) // → ClassicyMenuItem
|
|
821
|
+
closeWindowMenuItemHelper(id, onClickFunc)
|
|
822
|
+
closeAllWindowsMenuItemHelper(id, onClickFunc)
|
|
823
|
+
```
|
|
824
|
+
|
|
825
|
+
### Menu hooks
|
|
826
|
+
|
|
827
|
+
```ts
|
|
828
|
+
useClassicyAboutMenu(appId, appName, appIcon) // → { aboutMenuItem, aboutWindow }
|
|
829
|
+
useClassicyWindowClose(appId) // → (windowId, appCleanupAction) => void
|
|
830
|
+
useClassicyHelpMenu(appId, items) // items MUST be memoized
|
|
831
|
+
useClassicyEditMenu(idPrefix) // → a standard Edit menu item
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
`useClassicyAboutMenu` returns both a menu item and the window that renders it.
|
|
835
|
+
Put the item in your File menu and render `aboutWindow` as a `ClassicyApp` child:
|
|
836
|
+
|
|
837
|
+
```tsx
|
|
838
|
+
const { aboutMenuItem, aboutWindow } = useClassicyAboutMenu(appId, appName, appIcon)
|
|
839
|
+
// …
|
|
840
|
+
<ClassicyApp /* … */>
|
|
841
|
+
<ClassicyWindow appMenu={appMenu} /* … */>{/* … */}</ClassicyWindow>
|
|
842
|
+
{aboutWindow}
|
|
843
|
+
</ClassicyApp>
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
`ClassicyDesktopMenuBar` hoists the About entry into the Apple menu and strips it
|
|
847
|
+
from your File menu before rendering, so listing it in File is correct. Keep the
|
|
848
|
+
item's id, `${appId}_about`: it is how both menu bars find it and title it with
|
|
849
|
+
a package's display name (§4, "Display overrides: what your app must do").
|
|
850
|
+
|
|
851
|
+
### Balloon help on menu items
|
|
852
|
+
|
|
853
|
+
Menu items are data, so balloon help rides along as the `balloon` field rather
|
|
854
|
+
than a `<ClassicyBalloonHelp>` wrapper. Wrappers are for JSX controls.
|
|
855
|
+
|
|
856
|
+
```ts
|
|
857
|
+
{
|
|
858
|
+
id: `${appId}_copy_link`,
|
|
859
|
+
title: "Copy Link",
|
|
860
|
+
disabled: status !== "published",
|
|
861
|
+
balloon: { title: "Copy Link", content: "Publish the document first." },
|
|
862
|
+
onClickFunc: copyLink,
|
|
863
|
+
}
|
|
864
|
+
```
|
|
865
|
+
|
|
866
|
+
Layer help onto a helper-built item by spreading it:
|
|
867
|
+
|
|
868
|
+
```ts
|
|
869
|
+
const quitMenuItem = {
|
|
870
|
+
...quitMenuItemHelper(appId, appName, appIcon),
|
|
871
|
+
balloon: { title: "Quit", content: `Close ${appName}.` },
|
|
872
|
+
}
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
### Contextual menus
|
|
876
|
+
|
|
877
|
+
Right-click menus resolve innermost-first:
|
|
878
|
+
|
|
879
|
+
`ClassicyContextualMenuTarget` → window `contextMenu` → app `contextMenu` →
|
|
880
|
+
desktop default (empty desktop only).
|
|
881
|
+
|
|
882
|
+
```tsx
|
|
883
|
+
<ClassicyContextualMenuTarget menuItems={[{ id: "copy", title: "Copy" }]}>
|
|
884
|
+
<ClassicyButton>Copy</ClassicyButton>
|
|
885
|
+
</ClassicyContextualMenuTarget>
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
Every layer checks `e.defaultPrevented`, so a control with its own right-click
|
|
889
|
+
behavior calls `e.preventDefault()` and stays silent. Right-clicking a window
|
|
890
|
+
focuses it first, so the menu always tracks focus.
|
|
891
|
+
|
|
892
|
+
To open a menu at an arbitrary point yourself:
|
|
893
|
+
|
|
894
|
+
```tsx
|
|
895
|
+
<ClassicyContextualMenu
|
|
896
|
+
name="myapp_dropdown"
|
|
897
|
+
position={[x, y]}
|
|
898
|
+
menuItems={items}
|
|
899
|
+
onClose={close}
|
|
900
|
+
/>
|
|
901
|
+
```
|
|
902
|
+
|
|
903
|
+
### Menu bar extensions
|
|
904
|
+
|
|
905
|
+
Put an icon in the right-hand menu-bar tray:
|
|
906
|
+
|
|
907
|
+
```tsx
|
|
908
|
+
<ClassicyMenuBarExtension id="myapp_menu" order={1} title={appName} menuItems={items}>
|
|
909
|
+
<img src={appIcon} alt={appName} />
|
|
910
|
+
</ClassicyMenuBarExtension>
|
|
911
|
+
```
|
|
912
|
+
|
|
913
|
+
Props: `id`, `order` (default `0`), `icon`, `title`, `menuItems`, `onClick`,
|
|
914
|
+
`children`.
|
|
915
|
+
|
|
916
|
+
---
|
|
917
|
+
|
|
918
|
+
## 10. Icons
|
|
919
|
+
|
|
920
|
+
Register icons **once, at module scope**, before anything renders.
|
|
921
|
+
|
|
922
|
+
```tsx
|
|
923
|
+
import { registerClassicyIcons, useClassicyAsset } from '@classicy/classicy'
|
|
924
|
+
import appIconPng from './my-app.png'
|
|
925
|
+
|
|
926
|
+
// Registration deep-merges, so this keeps the bundled app icons (and other
|
|
927
|
+
// apps' registrations) intact; no spreading of existing namespaces needed.
|
|
928
|
+
registerClassicyIcons({
|
|
929
|
+
applications: {
|
|
930
|
+
myApp: { app: appIconPng, doc: docPng },
|
|
931
|
+
},
|
|
932
|
+
})
|
|
933
|
+
|
|
934
|
+
// In a component, read it at render time so it follows the active package:
|
|
935
|
+
const appIcon = useClassicyAsset('icons', 'applications.myApp.app') ?? ''
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
Outside a component, read at call time with
|
|
939
|
+
`resolveClassicyAsset('icons', 'applications.myApp.app')`. Don't capture an icon
|
|
940
|
+
in a module-scope constant; a later registration or appearance-package switch
|
|
941
|
+
would not reach it.
|
|
942
|
+
|
|
943
|
+
Bundled icons are read the same way, by dotted path (the `ClassicyIcons`
|
|
944
|
+
constant is only the tree Platinum ships and misses later registrations):
|
|
945
|
+
|
|
946
|
+
```ts
|
|
947
|
+
useClassicyAsset('icons', 'system.files.document')
|
|
948
|
+
useClassicyAsset('icons', 'system.folders.directory')
|
|
949
|
+
useClassicyAsset('icons', 'system.drives.disk')
|
|
950
|
+
useClassicyAsset('icons', 'system.macos')
|
|
951
|
+
```
|
|
952
|
+
|
|
953
|
+
An Appearance Package can also replace your app's icon by id
|
|
954
|
+
(`apps["MyApp.app"].icon`), separately from the icon registry: the registry
|
|
955
|
+
swaps the art behind a key for every user of that key, while `apps[id].icon`
|
|
956
|
+
changes only how your app is shown, wherever its icon is drawn. Your `icon`
|
|
957
|
+
prop stays the app's own icon in the store.
|
|
958
|
+
|
|
959
|
+
Override the alias-badge artwork with `registerClassicySystemArt("platinum", { aliasBadge })`. Cursors, wallpapers, fonts and the rest of the system art register the same way; see AGENT-REFERENCE §5 (Asset registries).
|
|
960
|
+
|
|
961
|
+
---
|
|
962
|
+
|
|
963
|
+
## 11. Files
|
|
964
|
+
|
|
965
|
+
### Letting Finder open files with your app
|
|
966
|
+
|
|
967
|
+
Declare the types you handle:
|
|
968
|
+
|
|
969
|
+
```tsx
|
|
970
|
+
<ClassicyApp
|
|
971
|
+
id={appId}
|
|
972
|
+
name="MyApp"
|
|
973
|
+
icon={appIcon}
|
|
974
|
+
handlesFileTypes={[ClassicyFileSystemEntryFileType.Markdown]}
|
|
975
|
+
>
|
|
976
|
+
```
|
|
977
|
+
|
|
978
|
+
When the user opens a matching file, Finder hands it to your app. If your
|
|
979
|
+
manifest declares `<prefix>OpenFile` in `actions` (§7), your reducer's own case
|
|
980
|
+
receives `{ type, app: { id }, path }`, reduced by the kernel under the trust
|
|
981
|
+
Finder's own action arrived with.
|
|
982
|
+
Otherwise Finder builds `` `ClassicyApp${name}OpenFile` `` and the generic
|
|
983
|
+
handler appends the path to `apps[id].data.openFiles` and opens the app. `name`
|
|
984
|
+
here is always the internal name (the record's), never a package's display
|
|
985
|
+
name, so the type does not change with the Appearance Package.
|
|
986
|
+
|
|
987
|
+
By default `ClassicyApp` then renders one plain window per queued path. To render
|
|
988
|
+
your own windows instead, set `handlesOwnFiles` and read the queue:
|
|
989
|
+
|
|
990
|
+
```tsx
|
|
991
|
+
<ClassicyApp id={appId} name="MyApp" icon={appIcon} handlesOwnFiles={true}>
|
|
992
|
+
{openFiles.map((path, idx) => (
|
|
993
|
+
<ClassicyWindow
|
|
994
|
+
key={`${appId}_file_${path}`}
|
|
995
|
+
id={`${appId}_file_${path}`}
|
|
996
|
+
appId={appId}
|
|
997
|
+
title={path.split(":").pop() || path}
|
|
998
|
+
onCloseFunc={() => dispatch({
|
|
999
|
+
type: `ClassicyAppMyAppCloseFile`, app: { id: appId }, path,
|
|
1000
|
+
})}
|
|
1001
|
+
>
|
|
1002
|
+
{/* your renderer */}
|
|
1003
|
+
</ClassicyWindow>
|
|
1004
|
+
))}
|
|
1005
|
+
</ClassicyApp>
|
|
1006
|
+
```
|
|
1007
|
+
|
|
1008
|
+
Keep the `` `${appId}_file_${filePath}` `` id convention. Window ids containing a
|
|
1009
|
+
filesystem separator (`:` or `/`) collapse to `/file` in analytics, which is what
|
|
1010
|
+
keeps user file names out of pageview paths.
|
|
1011
|
+
|
|
1012
|
+
### The file system API
|
|
1013
|
+
|
|
1014
|
+
```ts
|
|
1015
|
+
const fs = useClassicyFileSystem() // default key "classicyStorage", separator ":"
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
Paths use colons: `"Macintosh HD:Documents:Read Me"`.
|
|
1019
|
+
|
|
1020
|
+
Every `ClassicyFileSystem` for a storage key shares one live tree. A change made
|
|
1021
|
+
through any of them — your app's `writeFile`, a Finder drag, a Save dialog's New
|
|
1022
|
+
Folder — is visible at once through all of them, and `useClassicyFileSystem`
|
|
1023
|
+
re-renders its component with a fresh `fs` (subscribed via
|
|
1024
|
+
`subscribeClassicyFileSystem`), so anything memoized on `fs` re-reads the tree.
|
|
1025
|
+
In an event handler that should not re-render on every change, use
|
|
1026
|
+
`useClassicyFileSystemAccessor()`, which returns a stable `() => fs`.
|
|
1027
|
+
|
|
1028
|
+
| Method | Purpose |
|
|
1029
|
+
|---|---|
|
|
1030
|
+
| `readFile(path)` | Contents, or `undefined`. |
|
|
1031
|
+
| `writeFile(path, data, metadata?)` | Returns `false` on a rejected path. |
|
|
1032
|
+
| `mkDir(path)` / `rmDir(path)` | Create / remove a folder. |
|
|
1033
|
+
| `move(path, toFolderPath, { name?, metadata? })` | Move a file or folder into another folder or drive (optionally renaming it and patching metadata in the same journaled move). Returns `{ ok: true, path }` (the new path) or `{ ok: false, reason }`: `missing`, `not-a-folder`, `same-folder`, `into-itself`, `locked` (drives, `_system` and read-only items or folders), `exists` (name clash — nothing is replaced). |
|
|
1034
|
+
| `setMetadata(path, patch)` | The **only** way to change metadata. Returns `false` if the path does not resolve. |
|
|
1035
|
+
| `resolve(path)` | The entry. Returns `undefined` on a miss despite its declared type. |
|
|
1036
|
+
| `statFile(path)` / `statDir(path)` | Async entry info. |
|
|
1037
|
+
| `size(path)` / `calculateSizeDir(path)` | Async byte counts. |
|
|
1038
|
+
| `hash(path)` | Content hash. |
|
|
1039
|
+
| `filterByType(path, types, showInvisible, notCreatedAfter)` | Filtered listing. |
|
|
1040
|
+
| `countVisibleFiles(path)` / `countInvisibleFilesInDir(path)` | Counts. |
|
|
1041
|
+
| `formatSize(bytes, measure, decimals)` | Human-readable size. |
|
|
1042
|
+
| `snapshot()` / `load(json)` / `persist()` | Whole-tree serialization. |
|
|
1043
|
+
| `flushNow()` / `flushNowAsync()` | Force a write. |
|
|
1044
|
+
| `buildSnapshot()` / `reconcileWithAdapters()` | Sync-adapter plumbing. |
|
|
1045
|
+
|
|
1046
|
+
**Never mutate `fs.fs` or an entry directly.** Every mutation must flow through
|
|
1047
|
+
these methods, or sync adapters will not see it. `writeFile` and `mkDir` reject
|
|
1048
|
+
any path containing `__proto__`, `constructor`, or `prototype`.
|
|
1049
|
+
|
|
1050
|
+
### Seeding a file system
|
|
1051
|
+
|
|
1052
|
+
```tsx
|
|
1053
|
+
<ClassicyAppManagerProvider
|
|
1054
|
+
defaultFileSystem={{
|
|
1055
|
+
"Macintosh HD": {
|
|
1056
|
+
_type: "drive",
|
|
1057
|
+
_icon: ClassicyIcons.system.drives.disk,
|
|
1058
|
+
Documents: {
|
|
1059
|
+
_type: "directory",
|
|
1060
|
+
"Read Me.txt": { _type: "text_file", _mimeType: "text/plain", _data: "Hi" },
|
|
1061
|
+
},
|
|
1062
|
+
},
|
|
1063
|
+
}}
|
|
1064
|
+
defaultFileSystemMode="exclusive" // or "merge" (default)
|
|
1065
|
+
>
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
`"merge"` deep-merges onto the library's default tree; `"exclusive"` replaces it.
|
|
1069
|
+
Both are seed-only — they apply when nothing is stored under
|
|
1070
|
+
`localStorage["classicyStorage"]`. `defaultFileSystemSeedMigrations` applies
|
|
1071
|
+
one-time corrections to a **returning** visitor's persisted tree. The live
|
|
1072
|
+
tree is a deep copy of the seed, so your `defaultFileSystem` object (and the
|
|
1073
|
+
library's `DefaultFSContent`) is never changed.
|
|
1074
|
+
|
|
1075
|
+
### Mirroring to a backend
|
|
1076
|
+
|
|
1077
|
+
```ts
|
|
1078
|
+
registerClassicyFileSystemAdapter({
|
|
1079
|
+
id: 'my-backend',
|
|
1080
|
+
onChange: (entry) => {}, // journal mode: every mutation, sequenced
|
|
1081
|
+
onSnapshot: (snapshot) => {}, // snapshot mode: debounced tree + sha256
|
|
1082
|
+
reconcile: async (local) => ({ action: 'useLocal' }), // or { action: 'replace', tree }
|
|
1083
|
+
}, { snapshotDebounceMs: 500 })
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
All methods are optional. Errors always degrade to local-wins. Journal `op`s are
|
|
1087
|
+
`write`, `mkdir`, `rmdir`, `meta`, `load` and `move` (the old path in `path`, the
|
|
1088
|
+
new one in `to`; metadata it set in `metadata`, keys it removed in
|
|
1089
|
+
`unsetMetadata`). Derived folders (Applications, Extensions, Control Strip
|
|
1090
|
+
Modules) are applied through `applyDerivedTree()` and never journal; their
|
|
1091
|
+
entries are left out of every snapshot and the localStorage write. Their names
|
|
1092
|
+
can follow an Appearance Package's display names: an entry never overwrites a
|
|
1093
|
+
static file of the same name, and takes "<own name> (<id>)" instead
|
|
1094
|
+
(AGENT-REFERENCE §8, "App display overrides").
|
|
1095
|
+
|
|
1096
|
+
---
|
|
1097
|
+
|
|
1098
|
+
## 12. Dialogs and alerts
|
|
1099
|
+
|
|
1100
|
+
### Alerts
|
|
1101
|
+
|
|
1102
|
+
An alert contains **only** an icon, text, and buttons. Anything with a text field
|
|
1103
|
+
or a control is a window, not an alert.
|
|
1104
|
+
|
|
1105
|
+
```tsx
|
|
1106
|
+
<ClassicyAlert
|
|
1107
|
+
id="myapp_confirm"
|
|
1108
|
+
appId={appId}
|
|
1109
|
+
alertType="caution" // "note" | "caution" | "stop"
|
|
1110
|
+
title="My App"
|
|
1111
|
+
label="Discard changes?"
|
|
1112
|
+
message="Your edits will be lost."
|
|
1113
|
+
buttons={[
|
|
1114
|
+
{ id: "cancel", label: "Cancel", role: "cancel", onClick: keep },
|
|
1115
|
+
{ id: "discard", label: "Discard", role: "default", onClick: discard },
|
|
1116
|
+
]}
|
|
1117
|
+
defaultButtonId="cancel"
|
|
1118
|
+
movable={false}
|
|
1119
|
+
onClose={close}
|
|
1120
|
+
/>
|
|
1121
|
+
```
|
|
1122
|
+
|
|
1123
|
+
Button roles: `default` (Return triggers it, gets the ring), `cancel`
|
|
1124
|
+
(Escape / Command-period), `help` (far left), `normal`. Omit `buttons` and a
|
|
1125
|
+
sensible set is generated from `alertType`.
|
|
1126
|
+
|
|
1127
|
+
> **`onClose` fires after *every* button**, in addition to that button's own
|
|
1128
|
+
> `onClick`. A handler pair that undoes itself is a real failure mode here.
|
|
1129
|
+
|
|
1130
|
+
### File dialogs
|
|
1131
|
+
|
|
1132
|
+
```tsx
|
|
1133
|
+
const volumes = useMemo(() => [desktopVolume(fs), fileSystemVolume(fs, "Macintosh HD")], [fs])
|
|
1134
|
+
|
|
1135
|
+
<ClassicyFileOpenDialog
|
|
1136
|
+
id="myapp_open"
|
|
1137
|
+
appId={appId}
|
|
1138
|
+
open={dialogOpen}
|
|
1139
|
+
title="Open"
|
|
1140
|
+
volumes={volumes}
|
|
1141
|
+
selectionMode="single" // or "multi"
|
|
1142
|
+
fileTypeFilters={[{ label: "Text", types: ["text_file", "markdown"] }]}
|
|
1143
|
+
onOpenFunc={handleOpen}
|
|
1144
|
+
onCancelFunc={() => setDialogOpen(false)}
|
|
1145
|
+
/>
|
|
1146
|
+
```
|
|
1147
|
+
|
|
1148
|
+
### Forms
|
|
1149
|
+
|
|
1150
|
+
```tsx
|
|
1151
|
+
<ClassicyForm layout="dialog" onSubmitFunc={submit}>
|
|
1152
|
+
<ClassicyInput id="title" labelTitle="Title" labelPosition="left"
|
|
1153
|
+
prefillValue={title} onChangeFunc={(e) => setTitle(e.target.value)} />
|
|
1154
|
+
<ClassicyFormButtonRow>
|
|
1155
|
+
<ClassicyButton onClickFunc={cancel}>Cancel</ClassicyButton>
|
|
1156
|
+
<ClassicyButton buttonType="submit" isDefault disabled={!title}>OK</ClassicyButton>
|
|
1157
|
+
</ClassicyFormButtonRow>
|
|
1158
|
+
</ClassicyForm>
|
|
1159
|
+
```
|
|
1160
|
+
|
|
1161
|
+
Submitting never navigates.
|
|
1162
|
+
|
|
1163
|
+
---
|
|
1164
|
+
|
|
1165
|
+
## 13. Balloon help
|
|
1166
|
+
|
|
1167
|
+
Wrap any element:
|
|
1168
|
+
|
|
1169
|
+
```tsx
|
|
1170
|
+
<ClassicyBalloonHelp content="Click to open" title="Open File" position="top-left">
|
|
1171
|
+
<ClassicyButton>Open</ClassicyButton>
|
|
1172
|
+
</ClassicyBalloonHelp>
|
|
1173
|
+
```
|
|
1174
|
+
|
|
1175
|
+
`position` is one of `top-left | top-center | top-right | bottom-left |
|
|
1176
|
+
bottom-center | bottom-right` (default `top-left`); `delay` is the hover delay in
|
|
1177
|
+
ms (default `600`). The balloon renders through a portal into `#classicyDesktop`,
|
|
1178
|
+
so no parent can clip it.
|
|
1179
|
+
|
|
1180
|
+
The wrapper is `position: relative; display: inline-block`. When that breaks the
|
|
1181
|
+
layout — an absolutely positioned element, for one — use the hook instead, which
|
|
1182
|
+
adds no DOM:
|
|
1183
|
+
|
|
1184
|
+
```tsx
|
|
1185
|
+
const { handlers, balloon } = useClassicyBalloonHelp(anchorRef, { content: "…" })
|
|
1186
|
+
return <div ref={anchorRef} {...handlers}>{children}{balloon}</div>
|
|
1187
|
+
```
|
|
1188
|
+
|
|
1189
|
+
Balloon help is globally switchable with
|
|
1190
|
+
`dispatch({ type: 'ClassicyDesktopSetBalloonHelp', disableBalloonHelp: true })`.
|
|
1191
|
+
|
|
1192
|
+
For the app's desktop icon, do nothing: the manifest `description` is the balloon.
|
|
1193
|
+
|
|
1194
|
+
---
|
|
1195
|
+
|
|
1196
|
+
## 14. Sound
|
|
1197
|
+
|
|
1198
|
+
Route sound through the dispatcher, not a raw `Audio` element. The dispatcher
|
|
1199
|
+
honors the Sound control panel's volume, the global mute, and the per-sound
|
|
1200
|
+
disable list.
|
|
1201
|
+
|
|
1202
|
+
```tsx
|
|
1203
|
+
import { ClassicySoundActionTypes, useSoundDispatch } from '@classicy/classicy'
|
|
1204
|
+
|
|
1205
|
+
const player = useSoundDispatch()
|
|
1206
|
+
player({ type: ClassicySoundActionTypes.ClassicySoundPlay, sound: "ClassicyBeep" })
|
|
1207
|
+
```
|
|
1208
|
+
|
|
1209
|
+
`ClassicySoundPlay` is skipped when something is already playing;
|
|
1210
|
+
`ClassicySoundPlayInterrupt` stops the current sound first. `sound` is a sprite
|
|
1211
|
+
key from the active sound pack.
|
|
1212
|
+
|
|
1213
|
+
For the user's chosen alert sound, use `useClassicyAlertSound()`, which returns a
|
|
1214
|
+
zero-argument function.
|
|
1215
|
+
|
|
1216
|
+
---
|
|
1217
|
+
|
|
1218
|
+
## 15. Analytics
|
|
1219
|
+
|
|
1220
|
+
```tsx
|
|
1221
|
+
const { track, page } = useClassicyAnalytics()
|
|
1222
|
+
track('document_saved', { size })
|
|
1223
|
+
```
|
|
1224
|
+
|
|
1225
|
+
Both functions are referentially stable and become silent no-ops without an
|
|
1226
|
+
`AnalyticsProvider`. Event names get the `eventPrefix` (default `classicy_`);
|
|
1227
|
+
pageview paths do not.
|
|
1228
|
+
|
|
1229
|
+
`ClassicyWindow` emits a pageview when a window becomes open and when an open
|
|
1230
|
+
window gains focus. Paths are derived as `/<app>/<window>`. A window id
|
|
1231
|
+
containing `:` or `/` collapses to `/file` or `/folder`, because those are
|
|
1232
|
+
assumed to be user data.
|
|
1233
|
+
|
|
1234
|
+
**That collapse is syntactic.** If your app builds a window id from user or
|
|
1235
|
+
consumer data with no separator in it, pass `analyticsPath` explicitly — only the
|
|
1236
|
+
app knows a segment is user data. Build it with the helper so the app segment
|
|
1237
|
+
stays in sync:
|
|
1238
|
+
|
|
1239
|
+
```tsx
|
|
1240
|
+
<ClassicyWindow analyticsPath={classicyWindowPagePath(appId, "document")} />
|
|
1241
|
+
<ClassicyWindow analyticsExclude />
|
|
1242
|
+
```
|
|
1243
|
+
|
|
1244
|
+
The window **title** is sent verbatim, user file names included. That is a
|
|
1245
|
+
deliberate trade for readable content reports; the path is what stays clean.
|
|
1246
|
+
|
|
1247
|
+
---
|
|
1248
|
+
|
|
1249
|
+
## 16. Extensions, global shortcuts and Control Strip modules
|
|
1250
|
+
|
|
1251
|
+
An extension is a background app: always open, no desktop icon, no Applications
|
|
1252
|
+
entry, no Apple-menu entry, never focused, usually no window. Use one for a
|
|
1253
|
+
bridge, a listener, or a poller.
|
|
1254
|
+
|
|
1255
|
+
```tsx
|
|
1256
|
+
<ClassicyApp id="MyBridge.app" name="MyBridge" icon={appIcon} extension addSystemMenu={false}>
|
|
1257
|
+
{/* usually nothing, or an alert */}
|
|
1258
|
+
</ClassicyApp>
|
|
1259
|
+
```
|
|
1260
|
+
|
|
1261
|
+
`icon` is still required even though nothing renders it. Reuse a bundled icon
|
|
1262
|
+
rather than shipping an asset that is never shown.
|
|
1263
|
+
|
|
1264
|
+
Select on a boolean for an extension. The full `apps[appId]` object changes
|
|
1265
|
+
reference on unrelated window interactions, and an extension has no windows to
|
|
1266
|
+
care about:
|
|
1267
|
+
|
|
1268
|
+
```tsx
|
|
1269
|
+
const isRunning = useAppManager((s) => appId in (s.System.Manager.Applications.apps ?? {}))
|
|
1270
|
+
```
|
|
1271
|
+
|
|
1272
|
+
Global keyboard shortcuts are honored **only** for extensions:
|
|
1273
|
+
|
|
1274
|
+
```tsx
|
|
1275
|
+
<ClassicyApp
|
|
1276
|
+
id="MyBridge.app" name="MyBridge" icon={appIcon} extension
|
|
1277
|
+
globalShortcuts={[
|
|
1278
|
+
{ shortcut: "⌘⇧K", event: "ClassicyAppMyBridgeToggle", eventData: { source: "key" } },
|
|
1279
|
+
]}
|
|
1280
|
+
>
|
|
1281
|
+
```
|
|
1282
|
+
|
|
1283
|
+
Each is canonicalized and registered on mount (first registrant wins) and
|
|
1284
|
+
unregistered on unmount.
|
|
1285
|
+
|
|
1286
|
+
### Control Strip modules
|
|
1287
|
+
|
|
1288
|
+
An app or extension adds a button to the Control Strip (HIGOS8 Figure 6-15)
|
|
1289
|
+
with `registerClassicyControlStripModule`. Call it **once, at module scope**,
|
|
1290
|
+
next to your `registerApp` call:
|
|
1291
|
+
|
|
1292
|
+
```tsx
|
|
1293
|
+
import {
|
|
1294
|
+
classicyControlStripOpenControlPanelItem,
|
|
1295
|
+
registerClassicyControlStripModule,
|
|
1296
|
+
useAppManager,
|
|
1297
|
+
useAppManagerDispatch,
|
|
1298
|
+
} from '@classicy/classicy'
|
|
1299
|
+
|
|
1300
|
+
registerClassicyControlStripModule({
|
|
1301
|
+
id: 'com.example.vpn',
|
|
1302
|
+
appId: 'MyBridge.app', // shows only while <ClassicyApp id="MyBridge.app"> is mounted
|
|
1303
|
+
label: 'VPN', // accessible name, and its name in the control panel
|
|
1304
|
+
icon: vpnIcon16, // 16 × 16; or a hook returning one
|
|
1305
|
+
fileIcon: vpnIcon32, // its file in System Folder:Control Strip Modules
|
|
1306
|
+
order: 50, // lower first; default 100 (after the built-ins)
|
|
1307
|
+
menuItems: () => { // a hook: runs inside the providers
|
|
1308
|
+
const connected = useAppManager((s) => s.System.Manager.Applications.apps['MyBridge.app']?.data?.connected === true)
|
|
1309
|
+
const dispatch = useAppManagerDispatch()
|
|
1310
|
+
return [
|
|
1311
|
+
{ id: 'vpn-status', title: connected ? 'Connected' : 'Not Connected', disabled: true, className: 'classicyControlStripStatus' },
|
|
1312
|
+
{ id: 'spacer' },
|
|
1313
|
+
{ id: 'vpn-toggle', title: connected ? 'Disconnect' : 'Connect', event: 'ClassicyAppMyBridgeToggle' },
|
|
1314
|
+
{ id: 'spacer' },
|
|
1315
|
+
classicyControlStripOpenControlPanelItem(dispatch, 'VPN', { id: 'VPNPanel.app', name: 'VPN', icon: panelIcon }),
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1318
|
+
})
|
|
1319
|
+
```
|
|
1320
|
+
|
|
1321
|
+
- **A menu or a surface.** `menuItems` (an array, or a hook returning one) pops
|
|
1322
|
+
up a menu; a disabled item with class `classicyControlStripStatus` is the
|
|
1323
|
+
italic status line. `content` (a component) pops up anything else — the Sound
|
|
1324
|
+
module's slider is one. `content` is ignored when `menuItems` is set.
|
|
1325
|
+
- **Hooks.** Each module renders as its own component, so the function forms of
|
|
1326
|
+
`icon` and `menuItems`, and `content`, may call hooks. Keep their hook calls
|
|
1327
|
+
unconditional.
|
|
1328
|
+
- **Ownership.** With an `appId`, the module shows (and its file is listed) only
|
|
1329
|
+
while a `ClassicyApp` with that id is mounted. That is runtime presence
|
|
1330
|
+
(`useClassicyMountedApps`), not the persisted `apps[id]` record. Without an
|
|
1331
|
+
`appId`, it shows while registered.
|
|
1332
|
+
- **Re-registering.** The same `appId` replaces the module in place; a different
|
|
1333
|
+
`appId` is ignored with a warning. `unregisterClassicyControlStripModule(id)`
|
|
1334
|
+
removes one. The strip updates live either way.
|
|
1335
|
+
- **Always shown unless turned off.** Built-in and registered modules always
|
|
1336
|
+
show. The host turns one off with
|
|
1337
|
+
`<ClassicyDesktop controlStrip={{ disabledModules: [CLASSICY_CONTROL_STRIP_MODULE_IDS.sound] }} />`
|
|
1338
|
+
(it is then neither drawn nor offered to the user); the user hides one, or
|
|
1339
|
+
reorders them, in the Control Strip control panel.
|
|
1340
|
+
- **HIG p.125.** A module that belongs to a control panel includes an
|
|
1341
|
+
"Open … Control Panel" command (`classicyControlStripOpenControlPanelItem`).
|
|
1342
|
+
Name the panel with `useClassicyAppIdentity(panelId, { name, icon }).name`
|
|
1343
|
+
inside the `menuItems` hook, as the Screen Saver module does, so a package
|
|
1344
|
+
that renames the panel renames the command; keep the internal identity in
|
|
1345
|
+
the `app` argument, which is what opens it.
|
|
1346
|
+
- **Display names.** A module with an `appId` is shown by that app's display
|
|
1347
|
+
name (the button's accessible name, the control panel and its file) when an
|
|
1348
|
+
Appearance Package renames the app; otherwise, and with no `appId`, by its
|
|
1349
|
+
`label`.
|
|
1350
|
+
- **Anywhere on screen.** The user can Control-drag the strip's collapse box
|
|
1351
|
+
to dock it on the left or right edge at any height, so don't assume it sits
|
|
1352
|
+
at the lower left: a module's menu or `content` opens beside the module and
|
|
1353
|
+
flips to whichever side has room.
|
|
1354
|
+
- Every installed module is listed as a read-only file in
|
|
1355
|
+
`Macintosh HD:System Folder:Control Strip Modules`.
|
|
1356
|
+
|
|
1357
|
+
---
|
|
1358
|
+
|
|
1359
|
+
## 17. Persistence
|
|
1360
|
+
|
|
1361
|
+
The store is written to `localStorage["classicyDesktopState"]`, debounced 500 ms,
|
|
1362
|
+
on every change. The file system is written to `localStorage["classicyStorage"]`.
|
|
1363
|
+
|
|
1364
|
+
Consequences for an app author:
|
|
1365
|
+
|
|
1366
|
+
- **Everything under `apps[id].data` must survive a JSON round-trip.** No
|
|
1367
|
+
functions, no class instances, no `Date` objects. The same applies to desktop
|
|
1368
|
+
icon records.
|
|
1369
|
+
- **Menu `onClickFunc` handlers do not survive persistence.** That is why
|
|
1370
|
+
`loadApp` overwrites `contextMenu` on every remount.
|
|
1371
|
+
- **Session-only or sensitive data needs stripping.**
|
|
1372
|
+
`sanitizeStateForPersistence` is the single place that knows which keys to drop
|
|
1373
|
+
before the write. There is no per-app opt-out hook — if your app stores
|
|
1374
|
+
ephemeral or private data under `apps[id].data`, that function has to learn
|
|
1375
|
+
about it.
|
|
1376
|
+
- **Persisted state beats `defaultState`.** To reset during development, clear
|
|
1377
|
+
`localStorage["classicyDesktopState"]` — or drag the desktop's Trash icon,
|
|
1378
|
+
which does exactly that and reloads.
|
|
1379
|
+
- **Old saved state is migrated on load.** `migrateClassicyState` runs on the
|
|
1380
|
+
loaded state after it is merged over the defaults, and on every
|
|
1381
|
+
`mergeClassicyState` result (so a `defaultState` written for 0.x is
|
|
1382
|
+
converted too). It detects old shapes rather than reading a version number,
|
|
1383
|
+
so it is idempotent. Today it converts 0.x `windows` arrays into records.
|
|
1384
|
+
|
|
1385
|
+
---
|
|
1386
|
+
|
|
1387
|
+
## 18. Testing
|
|
1388
|
+
|
|
1389
|
+
### Never mock the manifest registry when testing it
|
|
1390
|
+
|
|
1391
|
+
```ts
|
|
1392
|
+
// Deliberately NO vi.mock("@classicy/classicy"): these tests exercise the real registry
|
|
1393
|
+
// that each context module writes into at import time.
|
|
1394
|
+
import { getAppManifest, listScriptableActions } from '@classicy/classicy'
|
|
1395
|
+
import './Applications/MyApp/MyAppContext' // runs registerApp()
|
|
1396
|
+
|
|
1397
|
+
it("registers a description", () => {
|
|
1398
|
+
expect(getAppManifest("MyApp.app")?.description).toBeTruthy()
|
|
1399
|
+
})
|
|
1400
|
+
```
|
|
1401
|
+
|
|
1402
|
+
A table-driven test over `[appId, prefixes, action types, hasState]` catches a
|
|
1403
|
+
renamed action or a dropped schema cheaply. Add the prefix-overlap guard from
|
|
1404
|
+
[§7](#7-manifests-registerapp).
|
|
1405
|
+
|
|
1406
|
+
### Prefer partial mocks
|
|
1407
|
+
|
|
1408
|
+
A full-replacement `vi.mock("@classicy/classicy")` must stub every registration side effect
|
|
1409
|
+
the import graph touches — `registerApp`, `registerClassicyIcons`,
|
|
1410
|
+
`getAppManifest`, `describeAppState` — and breaks whenever an import is added.
|
|
1411
|
+
Spread the original instead:
|
|
1412
|
+
|
|
1413
|
+
```tsx
|
|
1414
|
+
vi.mock("@classicy/classicy", async (importOriginal) => ({
|
|
1415
|
+
...(await importOriginal<typeof import("@classicy/classicy")>()),
|
|
1416
|
+
useAppManagerDispatch: () => dispatchMock,
|
|
1417
|
+
ClassicyWindow: ({ children, id, appMenu, onCloseFunc, title }) => {
|
|
1418
|
+
if (appMenu) menus.current = appMenu // capture the menu for assertions
|
|
1419
|
+
if (id && onCloseFunc) closeFns.current[id] = onCloseFunc
|
|
1420
|
+
return <div data-testid={`win-${id}`} data-title={title}>{children}</div>
|
|
1421
|
+
},
|
|
1422
|
+
}))
|
|
1423
|
+
```
|
|
1424
|
+
|
|
1425
|
+
When a full replacement is unavoidable, the reusable `useAppManager` stub is
|
|
1426
|
+
`(sel) => sel(fakeStore)`:
|
|
1427
|
+
|
|
1428
|
+
```tsx
|
|
1429
|
+
useAppManager: (sel: (s: unknown) => unknown) =>
|
|
1430
|
+
sel({ System: { Manager: { DateAndTime: { dateTimeLocked: false } } } }),
|
|
1431
|
+
registerApp: () => {},
|
|
1432
|
+
```
|
|
1433
|
+
|
|
1434
|
+
### End-to-end selectors
|
|
1435
|
+
|
|
1436
|
+
Classicy chrome exposes stable hooks:
|
|
1437
|
+
|
|
1438
|
+
```ts
|
|
1439
|
+
page.locator(".classicyDesktop")
|
|
1440
|
+
page.getByRole("button", { name: "My App" }).dblclick() // desktop icon
|
|
1441
|
+
page.getByRole("application", { name: "My App" }) // a window
|
|
1442
|
+
expect(win).toHaveClass(/\bactive\b/) // vs \binactive\b; bare state classes
|
|
1443
|
+
page.locator('.classicyWindow.active [data-classicy-control="close"]').click()
|
|
1444
|
+
```
|
|
1445
|
+
|
|
1446
|
+
> ARIA name computation folds every descendant `menuitem`'s text into the
|
|
1447
|
+
> top-level item's own name, so a substring match on a menu title matches both
|
|
1448
|
+
> the parent and the child. Use `{ exact: true }`.
|
|
1449
|
+
|
|
1450
|
+
jsdom needs `IntersectionObserver`, `ResizeObserver`, and `localStorage` stubs in
|
|
1451
|
+
the vitest setup file — Classicy uses all three.
|
|
1452
|
+
|
|
1453
|
+
---
|
|
1454
|
+
|
|
1455
|
+
## 19. Checklist and known traps
|
|
1456
|
+
|
|
1457
|
+
**Before you ship an app:**
|
|
1458
|
+
|
|
1459
|
+
- [ ] The id ends in `.app` and the `name` is a single word.
|
|
1460
|
+
- [ ] No action type, path or lookup is built from a displayed name; text that names the app reads `useClassicyAppIdentity`.
|
|
1461
|
+
- [ ] A manifest is registered at module load, with a `description`.
|
|
1462
|
+
- [ ] The `state` schema is a `z.looseObject` with `.optional()` top-level fields.
|
|
1463
|
+
- [ ] The action prefix is not a prefix of another registered prefix.
|
|
1464
|
+
- [ ] `appMenu`, `contextMenu`, and help-menu arrays are memoized.
|
|
1465
|
+
- [ ] Window ids are unique per instance, not per component.
|
|
1466
|
+
- [ ] Everything written to `apps[id].data` is JSON-safe.
|
|
1467
|
+
- [ ] Store reads go through narrow selectors.
|
|
1468
|
+
- [ ] Ephemeral or private `data` keys are handled in `sanitizeStateForPersistence`.
|
|
1469
|
+
|
|
1470
|
+
**Traps, in one place:**
|
|
1471
|
+
|
|
1472
|
+
| Symptom | Cause |
|
|
1473
|
+
|---|---|
|
|
1474
|
+
| Every dispatch throws after boot | `ClassicyDesktop` was lazy-loaded a tick after the provider. Import it eagerly. |
|
|
1475
|
+
| `No handler registered for prefix` | The manifest module is not in the import graph. Import it for its side effect. |
|
|
1476
|
+
| Actions reach the wrong reducer | A registered prefix is a prefix of yours. First match wins. |
|
|
1477
|
+
| Registering the same prefix twice does nothing | The registry keeps the first and drops the second silently. |
|
|
1478
|
+
| Render loop when a window mounts | `appMenu` is an inline array literal. Memoize it. |
|
|
1479
|
+
| The menu bar shows a stale menu | Omitting `appMenu` falls back to the window's stored `menuBar`. |
|
|
1480
|
+
| A file-open action never reaches the reducer | The app `name` contains a space, so the derived action type does too. |
|
|
1481
|
+
| Focusing a window does nothing | The window is closed. Dispatch `ClassicyWindowOpen` first. |
|
|
1482
|
+
| Two windows fight over one store entry | A shared window id across component instances. |
|
|
1483
|
+
| An icon persists after the app is removed | Icons persist to `localStorage`; turning both icon surfaces off dispatches the removal. |
|
|
1484
|
+
| State change is ignored after reload | Persisted state beats `defaultState`. Clear `classicyDesktopState`. |
|
|
1485
|
+
| A desktop icon has no balloon help | The manifest has no `description`. |
|
|
1486
|
+
| A package's `description` never shows on your desktop icon | You pass `desktopIconBalloonHelp`, which beats it. Omit the prop to use the manifest's description. |
|
|
1487
|
+
| A package renames your app, but a window title still shows the old name | The window reads the `name` constant. Use `useClassicyAppIdentity(id, { name, icon }).name`. |
|
|
1488
|
+
| Your window's About item keeps its old title under a renaming package | Its id is not `${appId}_about`, or its title is not `` `About ${appName}` ``. |
|
|
1489
|
+
| A Control Strip module never appears | Its `appId` app is not mounted, the host lists it in `disabledModules`, or the user hid it in the Control Strip control panel. |
|
|
1490
|
+
| A Control Strip registration is ignored | Another `appId` already registered that module id. |
|
|
1491
|
+
| Schema warnings in the console | Dev-only manifest validation. Warn-only — state is never rejected. |
|