@sigx/lynx-share 0.4.0 → 0.4.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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { Share } from './share';
2
- export type { ShareOptions } from './share';
1
+ export { Share } from './share.js';
2
+ export type { ShareOptions } from './share.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,14 +1,2 @@
1
- import { callSync as e, isModuleAvailable as t } from "@sigx/lynx-core";
2
- //#region src/share.ts
3
- var n = "Share", r = {
4
- share(t) {
5
- e(n, "share", t);
6
- },
7
- isAvailable() {
8
- return t(n);
9
- }
10
- };
11
- //#endregion
12
- export { r as Share };
13
-
1
+ export { Share } from './share.js';
14
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/share.ts"],"sourcesContent":["import { callSync, isModuleAvailable } from '@sigx/lynx-core';\n\nconst MODULE = 'Share';\n\nexport interface ShareOptions {\n title?: string;\n message?: string;\n url?: string;\n}\n\n/**\n * Native share dialog APIs.\n *\n * @example\n * ```ts\n * import { Share } from '@sigx/lynx-share';\n *\n * Share.share({ title: 'Check this out', message: 'Built with sigx-lynx!', url: 'https://sigx.dev' });\n * ```\n */\nexport const Share = {\n share(options: ShareOptions): void {\n callSync(MODULE, 'share', options);\n },\n\n isAvailable(): boolean {\n return isModuleAvailable(MODULE);\n },\n} as const;\n"],"mappings":";;AAEA,IAAM,IAAS,SAkBF,IAAQ;CACjB,MAAM,GAA6B;EAC/B,EAAS,GAAQ,SAAS,EAAQ;;CAGtC,cAAuB;EACnB,OAAO,EAAkB,EAAO;;CAEvC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
package/dist/share.js ADDED
@@ -0,0 +1,21 @@
1
+ import { callSync, isModuleAvailable } from '@sigx/lynx-core';
2
+ const MODULE = 'Share';
3
+ /**
4
+ * Native share dialog APIs.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { Share } from '@sigx/lynx-share';
9
+ *
10
+ * Share.share({ title: 'Check this out', message: 'Built with sigx-lynx!', url: 'https://sigx.dev' });
11
+ * ```
12
+ */
13
+ export const Share = {
14
+ share(options) {
15
+ callSync(MODULE, 'share', options);
16
+ },
17
+ isAvailable() {
18
+ return isModuleAvailable(MODULE);
19
+ },
20
+ };
21
+ //# sourceMappingURL=share.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.js","sourceRoot":"","sources":["../src/share.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,MAAM,GAAG,OAAO,CAAC;AAQvB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,KAAK,CAAC,OAAqB;QACvB,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,WAAW;QACP,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx-share",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Native share dialog for sigx-lynx",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,11 +19,11 @@
19
19
  "signalx-module.json"
20
20
  ],
21
21
  "dependencies": {
22
- "@sigx/lynx-core": "^0.4.0"
22
+ "@sigx/lynx-core": "^0.4.1"
23
23
  },
24
24
  "devDependencies": {
25
- "typescript": "^6.0.3",
26
- "@sigx/vite": "^0.4.3"
25
+ "@typescript/native-preview": "7.0.0-dev.20260511.1",
26
+ "typescript": "^6.0.3"
27
27
  },
28
28
  "author": "Andreas Ekdahl",
29
29
  "license": "MIT",
@@ -49,7 +49,8 @@
49
49
  "share"
50
50
  ],
51
51
  "scripts": {
52
- "build": "vite build && tsgo --emitDeclarationOnly",
53
- "dev": "vite build --watch"
52
+ "build": "node ../../scripts/clean.mjs dist && tsgo",
53
+ "dev": "tsgo --watch",
54
+ "clean": "node ../../scripts/clean.mjs dist .turbo"
54
55
  }
55
56
  }