linked-data-browser 0.0.4 → 0.0.6

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/.eslintrc.js CHANGED
@@ -9,5 +9,26 @@ module.exports = {
9
9
  'prettier/prettier': ['error'],
10
10
  'react/no-unstable-nested-components': 0,
11
11
  '@typescript-eslint/no-unused-vars': 1,
12
+ 'no-restricted-imports': [
13
+ 'error',
14
+ {
15
+ patterns: [
16
+ {
17
+ group: [
18
+ 'components/*',
19
+ '~/components/*',
20
+ 'lib/*',
21
+ '~/lib/*',
22
+ 'resourceViews/*',
23
+ '~/resourceViews/*',
24
+ '.ldo/*',
25
+ '~/ldo/*',
26
+ ],
27
+ message:
28
+ 'Absolute imports are not allowed. Please use relative imports instead.',
29
+ },
30
+ ],
31
+ },
32
+ ],
12
33
  },
13
34
  };
package/app/index.tsx CHANGED
@@ -5,7 +5,7 @@ import { RawCodeConfig } from '../resourceViews/RawCode/RawCodeConfig';
5
5
  import { ContainerConfig } from '../resourceViews/Container/ContainerConfig';
6
6
  import { SafeAreaProvider } from 'react-native-safe-area-context';
7
7
  import { StatusBar } from 'react-native';
8
- import { ProfileConfig } from 'resourceViews/Profile/ProfileConfig';
8
+ import { ProfileConfig } from '../resourceViews/Profile/ProfileConfig';
9
9
 
10
10
  export function Screen() {
11
11
  const mode = process.env.EXPO_PUBLIC_IS_SERVER_HOSTED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SolidProfileShape } from '.ldo/profile.typings';
2
+ import { SolidProfileShape } from '../../.ldo/profile.typings';
3
3
  import { Avatar, AvatarFallback, AvatarImage } from '../ui/avatar';
4
4
  import { Text } from '../ui/text';
5
5
  import { User } from '../../lib/icons/User';
@@ -11,7 +11,7 @@ import { View } from 'react-native';
11
11
  import { useViewContext, ViewContextProvider } from '../useViewContext';
12
12
  import { DialogProvider } from './DialogProvider';
13
13
  import { useSolidAuth } from '@ldo/solid-react';
14
- import { SharingModalProvider } from 'components/sharing/SharingModal';
14
+ import { SharingModalProvider } from '../sharing/SharingModal';
15
15
 
16
16
  export const ValidViewContext = createContext<{
17
17
  validViews: ResourceViewConfig[];
@@ -8,7 +8,6 @@ import { SignInMenu } from './SignInMenu';
8
8
  import { ViewMenu } from './ViewMenu';
9
9
  import { Card } from '../../ui/card';
10
10
  import { Button } from '../../ui/button';
11
- import { Text } from '../../ui/text';
12
11
  import { UserPlus } from '../../../lib/icons/UserPlus';
13
12
  import { useSharingModal } from '../../sharing/SharingModal';
14
13
 
@@ -4,7 +4,7 @@ import { Text } from '../ui/text';
4
4
  import { FunctionComponent } from 'react';
5
5
  import { AccessDropdown } from './AccessDropdown';
6
6
  import { View } from 'react-native';
7
- import { Avatar, AvatarFallback } from 'components/ui/avatar';
7
+ import { Avatar, AvatarFallback } from '../ui/avatar';
8
8
  import { LucideIcon } from 'lucide-react-native';
9
9
 
10
10
  interface PermissionRowProps {
@@ -1,8 +1,8 @@
1
- import { SolidProfileShapeShapeType } from '.ldo/profile.shapeTypes';
1
+ import { SolidProfileShapeShapeType } from '../../../.ldo/profile.shapeTypes';
2
2
  import { useResource, useSolidAuth, useSubject } from '@ldo/solid-react';
3
3
  import React, { FunctionComponent, ReactNode } from 'react';
4
4
  import { View } from 'react-native';
5
- import { ProfileAvatar } from 'components/common/ProfileAvatar';
5
+ import { ProfileAvatar } from '../../common/ProfileAvatar';
6
6
  import { Text } from '../../ui/text';
7
7
 
8
8
  interface AgentInformationProps {
@@ -11,7 +11,7 @@ import { Input } from './input';
11
11
  import { Card } from './card';
12
12
  import { ButtonProps } from './button';
13
13
  import { LoadingBar } from '../common/LoadingBar';
14
- import { cn } from 'lib/utils';
14
+ import { cn } from '../../lib/utils';
15
15
 
16
16
  interface InputDropdownProps<T> extends TextInputProps {
17
17
  onChangeText: (text: string) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "linked-data-browser",
3
3
  "main": "index.js",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "scripts": {
6
6
  "dev:ios": "expo start -c --ios",
7
7
  "dev:web": "concurrently \"npm run solid-server\" \"expo start -c --web\"",
@@ -14,7 +14,8 @@
14
14
  "build:server:watch": "npx chokidar '**/*' -i 'dist-standalone/**' -i 'dist-server/**' -i 'node_modules/**' -i 'data/**' -c 'npm run build:server'",
15
15
  "solid-server": "community-solid-server -c ./test-server/server-config.json -f ./data --seed-config ./test-server/solid-css-seed.json",
16
16
  "build:ldo": "ldo build --input .shapes --output .ldo",
17
- "build": "npm run build:standalone && npm run build:server"
17
+ "build": "npm run build:standalone && npm run build:server",
18
+ "prepublishOnly": "npm run build"
18
19
  },
19
20
  "dependencies": {
20
21
  "@inrupt/solid-client-authn-browser": "^3.0.0",
@@ -1,4 +1,4 @@
1
- import { SolidProfileShapeShapeType } from '.ldo/profile.shapeTypes';
1
+ import { SolidProfileShapeShapeType } from '../../.ldo/profile.shapeTypes';
2
2
  import { ResourceViewConfig } from '../../components/ResourceView';
3
3
  import { User } from '../../lib/icons/User';
4
4
  import { ProfileView } from './ProfileView';
@@ -1,7 +1,7 @@
1
1
  import { Input } from '../../components/ui/input';
2
2
  import React, { FunctionComponent, useCallback, useState } from 'react';
3
3
  import { Plus } from '../../lib/icons/Plus';
4
- import { SolidProfileShape } from '.ldo/profile.typings';
4
+ import { SolidProfileShape } from '../../.ldo/profile.typings';
5
5
  import { AgentInformation } from '../../components/sharing/agentPermissions/AgentInformation';
6
6
  import { View } from 'react-native';
7
7
  import { useChangeSetData } from '@ldo/react';
@@ -4,8 +4,8 @@ import React, { FunctionComponent } from 'react';
4
4
  import { Input } from '../../components/ui/input';
5
5
  import { Separator } from '../../components/ui/separator';
6
6
  import { ProfileKnows } from './ProfileKnows';
7
- import { useViewContext } from 'components/useViewContext';
8
- import { SolidProfileShapeShapeType } from '.ldo/profile.shapeTypes';
7
+ import { useViewContext } from '../../components/useViewContext';
8
+ import { SolidProfileShapeShapeType } from '../../.ldo/profile.shapeTypes';
9
9
  import { useChangeSubject, useResource } from '@ldo/solid-react';
10
10
  import { Button } from '../../components/ui/button';
11
11
  import { SolidLeaf } from '@ldo/connected-solid';