@diagrammo/dgmo 0.2.25 → 0.2.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagrammo/dgmo",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "DGMO diagram markup language — parser, renderer, and color system",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/sharing.ts CHANGED
@@ -47,7 +47,9 @@ export function encodeDiagramUrl(
47
47
  hash += `&tag=${encodeURIComponent(options.viewState.activeTagGroup)}`;
48
48
  }
49
49
 
50
- return { url: `${baseUrl}?${hash}` };
50
+ // Encode in both query param AND hash fragment — some share mechanisms
51
+ // strip one or the other (iOS share sheet strips #, AirDrop strips ?)
52
+ return { url: `${baseUrl}?${hash}#${hash}` };
51
53
  }
52
54
 
53
55
  /**