craft-native 0.0.353 → 0.0.355
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/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/ios/templates/CraftNativeActions.swift +2 -2
- package/dist/types.d.ts +4 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3047,7 +3047,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
|
|
|
3047
3047
|
`);
|
|
3048
3048
|
}
|
|
3049
3049
|
// package.json
|
|
3050
|
-
var version = "0.0.
|
|
3050
|
+
var version = "0.0.355";
|
|
3051
3051
|
|
|
3052
3052
|
// bin/cli.ts
|
|
3053
3053
|
var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1698,11 +1698,11 @@ enum CraftSnapshots {
|
|
|
1698
1698
|
.appendingPathComponent("craft-snapshots", isDirectory: true)
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
-
/// Letters, digits, `-`, `_
|
|
1701
|
+
/// Letters, digits, `-`, `_`, `.` and account namespace `:`, not starting with a dot: a file
|
|
1702
1702
|
/// name, never a path.
|
|
1703
1703
|
static func isValidName(_ name: String) -> Bool {
|
|
1704
1704
|
!name.isEmpty && name.count <= 128 && !name.hasPrefix(".")
|
|
1705
|
-
&& name.unicodeScalars.allSatisfy { $0.isASCII && (CharacterSet.alphanumerics.contains($0) || "-_
|
|
1705
|
+
&& name.unicodeScalars.allSatisfy { $0.isASCII && (CharacterSet.alphanumerics.contains($0) || "-_.:".unicodeScalars.contains($0)) }
|
|
1706
1706
|
}
|
|
1707
1707
|
|
|
1708
1708
|
static func url(for name: String) -> URL? {
|
package/dist/types.d.ts
CHANGED
|
@@ -1632,11 +1632,13 @@ export interface CraftHapticsAPI {
|
|
|
1632
1632
|
* `screen_sharing.zig` for the signal table.
|
|
1633
1633
|
*/
|
|
1634
1634
|
export interface CraftScreenSharingAPI {
|
|
1635
|
+
/** Read current native indicators. Rejects if a bounded Accessibility read is incomplete. */
|
|
1635
1636
|
getState(): Promise<ScreenSharingState>;
|
|
1636
1637
|
/**
|
|
1637
1638
|
* Start polling. Emits `craft:screenSharing:change` whenever the resolved
|
|
1638
|
-
* state differs, including once
|
|
1639
|
-
*
|
|
1639
|
+
* confirmed state differs, including once after the first complete read.
|
|
1640
|
+
* Incomplete native reads are retried without emitting a false stop.
|
|
1641
|
+
* Interval is clamped to 250ms–60s.
|
|
1640
1642
|
*/
|
|
1641
1643
|
watch(intervalMs?: number): Promise<{
|
|
1642
1644
|
ok: boolean;
|