Skip to content

Commit

Permalink
fix: deps on weba and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Sójko committed Jul 6, 2022
1 parent 0e40469 commit d380711
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 16 deletions.
3 changes: 0 additions & 3 deletions packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"@react-navigation/native": "^6.0.10",
"@react-navigation/stack": "^6.2.1",
"@standardnotes/components-meta": "workspace:*",
"@standardnotes/encryption": "workspace:*",
"@standardnotes/features": "workspace:*",
"@standardnotes/filepicker": "workspace:*",
"@standardnotes/files": "workspace:*",
"@standardnotes/icons": "workspace:*",
Expand All @@ -47,7 +45,6 @@
"@standardnotes/sncrypto-common": "workspace:*",
"@standardnotes/snjs": "workspace:*",
"@standardnotes/stylekit": "5.29.3",
"@standardnotes/utils": "workspace:*",
"@standardnotes/web": "workspace:*",
"@types/styled-components-react-native": "5.1.3",
"dompurify": "^2.3.8",
Expand Down
6 changes: 4 additions & 2 deletions packages/mobile/src/Lib/ComponentManager.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { MobileTheme } from '@Root/Style/MobileTheme'
import { ComponentChecksumsType } from '@standardnotes/components-meta'
import RawComponentChecksumsFile from '@standardnotes/components-meta/dist/zips/checksums.json'
import { EncryptionService } from '@standardnotes/encryption'
import { FeatureDescription, FeatureIdentifier, GetFeatures } from '@standardnotes/features'
import {
ComponentMutator,
EncryptionService,
FeatureDescription,
FeatureIdentifier,
GetFeatures,
isRightVersionGreaterThanLeft,
PermissionDialog,
SNApplication,
Expand Down
3 changes: 1 addition & 2 deletions packages/mobile/src/Screens/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { ModalStackNavigationProp } from '@Root/ModalStack'
import { SCREEN_SETTINGS } from '@Root/Screens/screens'
import { FilesSection } from '@Screens/Settings/Sections/FilesSection'
import { WorkspacesSection } from '@Screens/Settings/Sections/WorkspacesSection'
import { FeatureIdentifier } from '@standardnotes/features'
import { ApplicationEvent, FeatureStatus } from '@standardnotes/snjs'
import { ApplicationEvent, FeatureIdentifier, FeatureStatus } from '@standardnotes/snjs'
import React, { useCallback, useEffect, useState } from 'react'
import { AuthSection } from './Sections/AuthSection'
import { CompanySection } from './Sections/CompanySection'
Expand Down
3 changes: 1 addition & 2 deletions packages/mobile/src/Screens/SideMenu/Files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import {
import { SideMenuOptionIconDescriptionType } from '@Root/Screens/SideMenu/SideMenuSection'
import { SideMenuCell } from '@Screens/SideMenu/SideMenuCell'
import { UploadedFileItemActionType } from '@Screens/UploadedFilesList/UploadedFileItemAction'
import { FeatureIdentifier } from '@standardnotes/features'
import { FeatureStatus, SNNote } from '@standardnotes/snjs'
import { FeatureIdentifier, FeatureStatus, SNNote } from '@standardnotes/snjs'
import React, { FC } from 'react'

type Props = {
Expand Down
3 changes: 2 additions & 1 deletion packages/mobile/src/Screens/SideMenu/NoteSideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import { useSafeApplicationContext } from '@Root/Hooks/useSafeApplicationContext
import { SCREEN_COMPOSE, SCREEN_INPUT_MODAL_TAG, SCREEN_NOTE_HISTORY } from '@Root/Screens/screens'
import { Files } from '@Root/Screens/SideMenu/Files'
import { Listed } from '@Root/Screens/SideMenu/Listed'
import { FeatureIdentifier, FindNativeFeature } from '@standardnotes/features'
import {
ApplicationEvent,
ButtonType,
ComponentArea,
ComponentMutator,
ContentType,
FeatureIdentifier,
FeatureStatus,
FindNativeFeature,
NoteMutator,
NoteViewController,
PayloadEmitSource,
Expand Down
2 changes: 0 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@
"@reach/listbox": "^0.16.2",
"@reach/tooltip": "^0.16.2",
"@reach/visually-hidden": "^0.16.0",
"@standardnotes/encryption": "workspace:*",
"@standardnotes/filepicker": "workspace:*",
"@standardnotes/files": "workspace:*",
"@standardnotes/icons": "workspace:*",
"@standardnotes/services": "workspace:*",
"@standardnotes/sncrypto-web": "workspace:*",
"@standardnotes/snjs": "workspace:*",
"@standardnotes/styles": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
STRING_LOCAL_ENC_ENABLED,
STRING_ENC_NOT_ENABLED,
} from '@/Constants/Strings'
import { BackupFile } from '@standardnotes/encryption'
import { BackupFile } from '@standardnotes/snjs'
import { ChangeEventHandler, MouseEventHandler, useCallback, useEffect, useRef, useState } from 'react'
import { WebApplication } from '@/Application/Application'
import { ViewControllerManager } from '@/Services/ViewControllerManager'
Expand Down
3 changes: 1 addition & 2 deletions packages/web/src/javascripts/Services/AlertService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ButtonType, sanitizeHtmlString } from '@standardnotes/snjs'
import { AlertService } from '@standardnotes/services'
import { AlertService, ButtonType, sanitizeHtmlString } from '@standardnotes/snjs'
import { SKAlert } from '@standardnotes/styles'

/** @returns a promise resolving to true if the user confirmed, false if they canceled */
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/javascripts/Services/ArchiveManager.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { WebApplication } from '@/Application/Application'
import { parseFileName } from '@standardnotes/filepicker'
import {
BackupFile,
ContentType,
BackupFileDecryptedContextualPayload,
NoteContent,
EncryptedItemInterface,
} from '@standardnotes/snjs'
import { BackupFile } from '@standardnotes/encryption'

function sanitizeFileName(name: string): string {
return name.trim().replace(/[.\\/:"?*|<>]/g, '_')
Expand Down

0 comments on commit d380711

Please sign in to comment.