@capacitor/contacts 1.0.1 → 1.0.2-next.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Contacts = registerPlugin('Contacts', {\n web: () => import('./web').then((m) => new m.ContactsWeb()),\n});\nexport * from './definitions';\nexport { Contacts };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation. The browser has no standardized, broadly-available\n * contacts database API (the Contact Picker API is limited, gated, and\n * read-only), so every method throws `unimplemented()`. The plugin is\n * native-only on iOS and Android.\n */\nexport class ContactsWeb extends WebPlugin {\n async find(_options) {\n throw this.unimplemented('Contacts.find() is not available on web.');\n }\n async save(_options) {\n throw this.unimplemented('Contacts.save() is not available on web.');\n }\n async remove(_options) {\n throw this.unimplemented('Contacts.remove() is not available on web.');\n }\n async pickContact() {\n throw this.unimplemented('Contacts.pickContact() is not available on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC;;ACFD;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAW,SAASC,cAAS,CAAC;AAC3C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;AAC5E,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;AAC5E,IAAI;AACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,4CAA4C,CAAC;AAC9E,IAAI;AACJ,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Contacts = registerPlugin('Contacts', {\n web: () => import('./web').then((m) => new m.ContactsWeb()),\n});\nexport * from './definitions';\nexport { Contacts };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation. The browser has no standardized, broadly-available\n * contacts database API (the Contact Picker API is limited, gated, and\n * read-only), so every method throws `unimplemented()`. The plugin is\n * native-only on iOS and Android.\n */\nexport class ContactsWeb extends WebPlugin {\n async find(_options) {\n throw this.unimplemented('Contacts.find() is not available on web.');\n }\n async save(_options) {\n throw this.unimplemented('Contacts.save() is not available on web.');\n }\n async remove(_options) {\n throw this.unimplemented('Contacts.remove() is not available on web.');\n }\n async pickContact() {\n throw this.unimplemented('Contacts.pickContact() is not available on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC;;ACFD;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAW,SAASC,cAAS,CAAC;AAC3C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;AAC5E,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;AAC5E,IAAI;AACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,4CAA4C,CAAC;AAC9E,IAAI;AACJ,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;AACnF,IAAI;AACJ;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Contacts = registerPlugin('Contacts', {\n web: () => import('./web').then((m) => new m.ContactsWeb()),\n});\nexport * from './definitions';\nexport { Contacts };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation. The browser has no standardized, broadly-available\n * contacts database API (the Contact Picker API is limited, gated, and\n * read-only), so every method throws `unimplemented()`. The plugin is\n * native-only on iOS and Android.\n */\nexport class ContactsWeb extends WebPlugin {\n async find(_options) {\n throw this.unimplemented('Contacts.find() is not available on web.');\n }\n async save(_options) {\n throw this.unimplemented('Contacts.save() is not available on web.');\n }\n async remove(_options) {\n throw this.unimplemented('Contacts.remove() is not available on web.');\n }\n async pickContact() {\n throw this.unimplemented('Contacts.pickContact() is not available on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;IAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/D,CAAC;;ICFD;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,WAAW,SAASC,cAAS,CAAC;IAC3C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;IAC5E,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;IAC5E,IAAI;IACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;IAC3B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,4CAA4C,CAAC;IAC9E,IAAI;IACJ,IAAI,MAAM,WAAW,GAAG;IACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Contacts = registerPlugin('Contacts', {\n web: () => import('./web').then((m) => new m.ContactsWeb()),\n});\nexport * from './definitions';\nexport { Contacts };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation. The browser has no standardized, broadly-available\n * contacts database API (the Contact Picker API is limited, gated, and\n * read-only), so every method throws `unimplemented()`. The plugin is\n * native-only on iOS and Android.\n */\nexport class ContactsWeb extends WebPlugin {\n async find(_options) {\n throw this.unimplemented('Contacts.find() is not available on web.');\n }\n async save(_options) {\n throw this.unimplemented('Contacts.save() is not available on web.');\n }\n async remove(_options) {\n throw this.unimplemented('Contacts.remove() is not available on web.');\n }\n async pickContact() {\n throw this.unimplemented('Contacts.pickContact() is not available on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;IAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/D,CAAC;;ICFD;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,WAAW,SAASC,cAAS,CAAC;IAC3C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;IAC5E,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,0CAA0C,CAAC;IAC5E,IAAI;IACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;IAC3B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,4CAA4C,CAAC;IAC9E,IAAI;IACJ,IAAI,MAAM,WAAW,GAAG;IACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,iDAAiD,CAAC;IACnF,IAAI;IACJ;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/contacts",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-next.1",
4
4
  "description": "Access, search, pick, create, update and remove device contacts.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -38,14 +38,13 @@
38
38
  "verify:web": "npm run build",
39
39
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
40
40
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
41
- "eslint": "eslint . --ext ts",
41
+ "eslint": "eslint .",
42
42
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
43
43
  "swiftlint": "node-swiftlint",
44
44
  "docgen": "docgen --api ContactsPlugin --output-readme README.md --output-json dist/docs.json",
45
45
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
46
46
  "clean": "rimraf ./dist",
47
47
  "watch": "tsc --watch",
48
- "prepare": "npm run build",
49
48
  "prepublishOnly": "npm run build",
50
49
  "publish:cocoapod": "pod trunk push ./CapacitorContacts.podspec --allow-warnings"
51
50
  },
@@ -54,10 +53,10 @@
54
53
  "@capacitor/core": "^8.0.0",
55
54
  "@capacitor/docgen": "^0.3.1",
56
55
  "@capacitor/ios": "^8.0.0",
57
- "@ionic/eslint-config": "^0.4.0",
56
+ "@ionic/eslint-config": "^0.5.0",
58
57
  "@ionic/prettier-config": "^4.0.0",
59
58
  "@ionic/swiftlint-config": "^2.0.0",
60
- "eslint": "^8.57.1",
59
+ "eslint": "^10.0.0",
61
60
  "prettier": "^3.6.2",
62
61
  "prettier-plugin-java": "^2.7.7",
63
62
  "rimraf": "^6.1.0",
@@ -75,9 +74,6 @@
75
74
  },
76
75
  "prettier": "@ionic/prettier-config",
77
76
  "swiftlint": "@ionic/swiftlint-config",
78
- "eslintConfig": {
79
- "extends": "@ionic/eslint-config/recommended"
80
- },
81
77
  "capacitor": {
82
78
  "ios": {
83
79
  "src": "ios"