contacts-pane 2.6.12-beta4 → 2.6.12-cf37cf94
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.md +0 -0
- package/Makefile +0 -0
- package/README.md +0 -0
- package/__tests__/unit/data-reformat-test.js +0 -0
- package/__tests__/unit/data-reformat-test.ts +0 -0
- package/__tests__/unit/setup.js +1 -1
- package/__tests__/unit/setup.ts +0 -0
- package/babel.config.js +0 -0
- package/card.ai +0 -0
- package/card.png +0 -0
- package/contactLogic.js +0 -0
- package/contactsPane.js +0 -0
- package/diff.txt +0 -0
- package/exampleOfOpenData/mit-wikidata-details.ttl +0 -0
- package/exampleOfOpenData/mit-wikidata-query.sparql +0 -0
- package/exampleOfOpenData/wikidata-get.json +0 -0
- package/groupMembershipControl.js +2 -1
- package/individual.js +0 -0
- package/individualForm.js +0 -0
- package/jest.config.js +0 -0
- package/jest.setup.ts +0 -0
- package/lib/autocompleteBar.js +0 -0
- package/lib/autocompleteBar.js.map +0 -0
- package/lib/autocompleteField.js +0 -0
- package/lib/autocompleteField.js.map +0 -0
- package/lib/autocompletePicker.js +0 -0
- package/lib/autocompletePicker.js.map +0 -0
- package/lib/forms.js +0 -0
- package/lib/instituteDetailsQuery.js +0 -0
- package/lib/publicData.js +0 -0
- package/lib/publicData.js.map +0 -0
- package/lib/vcard.js +0 -0
- package/mintNewAddressBook.js +0 -0
- package/mugshotGallery.js +0 -0
- package/organizationForm.js +0 -0
- package/organizationForm.ttl +0 -0
- package/package.json +4 -4
- package/shapes/contacts-shapes.ttl +0 -0
- package/src/autocompleteBar.ts +0 -0
- package/src/autocompleteField.ts +0 -0
- package/src/autocompletePicker.ts +0 -0
- package/src/forms.ttl +0 -0
- package/src/instituteDetailsQuery.sparql +0 -0
- package/src/publicData.ts +0 -0
- package/src/vcard.ttl +0 -0
- package/toolsPane.js +0 -0
- package/tsconfig.json +0 -0
- package/webidControl.js +0 -0
- package/.eslintrc +0 -20
- package/.github/workflows/ci.yml +0 -74
- package/.nvmrc +0 -1
package/LICENSE.md
CHANGED
|
File without changes
|
package/Makefile
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/__tests__/unit/setup.js
CHANGED
|
@@ -49,7 +49,7 @@ export function mockFetchFunction(req) {
|
|
|
49
49
|
const contents = web[req.url];
|
|
50
50
|
if (contents !== undefined) { //
|
|
51
51
|
return {
|
|
52
|
-
body: prefixes + contents,
|
|
52
|
+
body: prefixes + contents, // Add namespaces to anything
|
|
53
53
|
status: 200,
|
|
54
54
|
headers: {
|
|
55
55
|
"Content-Type": "text/turtle",
|
package/__tests__/unit/setup.ts
CHANGED
|
File without changes
|
package/babel.config.js
CHANGED
|
File without changes
|
package/card.ai
CHANGED
|
File without changes
|
package/card.png
CHANGED
|
File without changes
|
package/contactLogic.js
CHANGED
|
File without changes
|
package/contactsPane.js
CHANGED
|
File without changes
|
package/diff.txt
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -87,7 +87,8 @@ export async function renderGroupMemberships (person, context) {
|
|
|
87
87
|
if (!book) {
|
|
88
88
|
book = kb.any(undefined, ns.vcard('includesGroup'))
|
|
89
89
|
if (!book) {
|
|
90
|
-
throw new Error('findBookFromGroups: Cant find address book which this group is part of')
|
|
90
|
+
// throw new Error('findBookFromGroups: Cant find address book which this group is part of')
|
|
91
|
+
return // no book => no groups
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
const groupIndex = kb.any(book, ns.vcard('groupIndex'))
|
package/individual.js
CHANGED
|
File without changes
|
package/individualForm.js
CHANGED
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
package/jest.setup.ts
CHANGED
|
File without changes
|
package/lib/autocompleteBar.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/autocompleteField.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/forms.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/publicData.js
CHANGED
|
File without changes
|
package/lib/publicData.js.map
CHANGED
|
File without changes
|
package/lib/vcard.js
CHANGED
|
File without changes
|
package/mintNewAddressBook.js
CHANGED
|
File without changes
|
package/mugshotGallery.js
CHANGED
|
File without changes
|
package/organizationForm.js
CHANGED
|
File without changes
|
package/organizationForm.ttl
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contacts-pane",
|
|
3
|
-
"version": "2.6.12-
|
|
3
|
+
"version": "2.6.12-cf37cf94",
|
|
4
4
|
"description": "Contacts Pane: Contacts manager for Address Book, Groups, and Individuals.",
|
|
5
5
|
"main": "./contactsPane.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"lint-fix": "eslint '*.js' --fix",
|
|
12
12
|
"test": "npm run lint && npm run build && npx tsc --target es2015 --moduleResolution node --allowSyntheticDefaultImports __tests__/unit/*.ts && jest __tests__/unit/*test.ts",
|
|
13
13
|
"jest": "jest __tests__/unit/*test.ts",
|
|
14
|
-
"prepublishOnly": "npm run lint && npm run build && npm run jest",
|
|
15
|
-
"postpublish": "git push origin main --follow-tags"
|
|
14
|
+
"ignore:prepublishOnly": "npm run lint && npm run build && npm run jest",
|
|
15
|
+
"ignore:postpublish": "git push origin main --follow-tags"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/solid/contacts-pane",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"solid-ui": "^2.4.33
|
|
41
|
+
"solid-ui": "^2.4.33"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/cli": "^7.24.1",
|
|
File without changes
|
package/src/autocompleteBar.ts
CHANGED
|
File without changes
|
package/src/autocompleteField.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/forms.ttl
CHANGED
|
File without changes
|
|
File without changes
|
package/src/publicData.ts
CHANGED
|
File without changes
|
package/src/vcard.ttl
CHANGED
|
File without changes
|
package/toolsPane.js
CHANGED
|
File without changes
|
package/tsconfig.json
CHANGED
|
File without changes
|
package/webidControl.js
CHANGED
|
File without changes
|
package/.eslintrc
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"plugins": ["@typescript-eslint"],
|
|
5
|
-
"env": {
|
|
6
|
-
"browser": true,
|
|
7
|
-
"es6": true,
|
|
8
|
-
"node": true
|
|
9
|
-
},
|
|
10
|
-
"globals": {
|
|
11
|
-
"Atomics": "readonly",
|
|
12
|
-
"SharedArrayBuffer": "readonly"
|
|
13
|
-
},
|
|
14
|
-
"rules": {
|
|
15
|
-
"no-unused-vars": ["warn", {
|
|
16
|
-
"argsIgnorePattern": "^_",
|
|
17
|
-
"varsIgnorePattern": "^_"
|
|
18
|
-
}]
|
|
19
|
-
}
|
|
20
|
-
}
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- "**"
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- "**"
|
|
10
|
-
workflow_dispatch:
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
test:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
strategy:
|
|
16
|
-
matrix:
|
|
17
|
-
node-version:
|
|
18
|
-
- 16.x
|
|
19
|
-
- 18.x
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v2
|
|
22
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
23
|
-
uses: actions/setup-node@v1
|
|
24
|
-
with:
|
|
25
|
-
node-version: ${{ matrix.node-version }}
|
|
26
|
-
- run: npm ci
|
|
27
|
-
- run: npm test
|
|
28
|
-
- run: npm run build
|
|
29
|
-
- name: Save build
|
|
30
|
-
if: matrix.node-version == '16.x'
|
|
31
|
-
uses: actions/upload-artifact@v2
|
|
32
|
-
with:
|
|
33
|
-
name: build
|
|
34
|
-
path: |
|
|
35
|
-
.
|
|
36
|
-
!node_modules
|
|
37
|
-
retention-days: 1
|
|
38
|
-
|
|
39
|
-
npm-publish-build:
|
|
40
|
-
needs: test
|
|
41
|
-
runs-on: ubuntu-latest
|
|
42
|
-
steps:
|
|
43
|
-
- uses: actions/download-artifact@v2
|
|
44
|
-
with:
|
|
45
|
-
name: build
|
|
46
|
-
- uses: actions/setup-node@v1
|
|
47
|
-
with:
|
|
48
|
-
node-version: 16.x
|
|
49
|
-
- uses: rlespinasse/github-slug-action@v3.x
|
|
50
|
-
- name: Append commit hash to package version
|
|
51
|
-
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
|
|
52
|
-
- name: Disable pre- and post-publish actions
|
|
53
|
-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
54
|
-
- uses: JS-DevTools/npm-publish@v1
|
|
55
|
-
with:
|
|
56
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
57
|
-
tag: ${{ env.GITHUB_REF_SLUG }}
|
|
58
|
-
npm-publish-latest:
|
|
59
|
-
needs: test
|
|
60
|
-
runs-on: ubuntu-latest
|
|
61
|
-
if: github.ref == 'refs/heads/main'
|
|
62
|
-
steps:
|
|
63
|
-
- uses: actions/download-artifact@v2
|
|
64
|
-
with:
|
|
65
|
-
name: build
|
|
66
|
-
- uses: actions/setup-node@v1
|
|
67
|
-
with:
|
|
68
|
-
node-version: 16.x
|
|
69
|
-
- name: Disable pre- and post-publish actions
|
|
70
|
-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
71
|
-
- uses: JS-DevTools/npm-publish@v1
|
|
72
|
-
with:
|
|
73
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
74
|
-
tag: latest
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v18.19.0
|