@diagrammo/dgmo 0.2.24 → 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/dist/cli.cjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sharing.ts +8 -5
package/dist/index.cjs
CHANGED
|
@@ -16838,13 +16838,13 @@ function encodeDiagramUrl(dsl, options) {
|
|
|
16838
16838
|
if (options?.viewState?.activeTagGroup) {
|
|
16839
16839
|
hash += `&tag=${encodeURIComponent(options.viewState.activeTagGroup)}`;
|
|
16840
16840
|
}
|
|
16841
|
-
return { url: `${baseUrl}#${hash}` };
|
|
16841
|
+
return { url: `${baseUrl}?${hash}#${hash}` };
|
|
16842
16842
|
}
|
|
16843
16843
|
function decodeDiagramUrl(hash) {
|
|
16844
16844
|
const empty = { dsl: "", viewState: {} };
|
|
16845
16845
|
if (!hash) return empty;
|
|
16846
16846
|
let raw = hash;
|
|
16847
|
-
if (raw.startsWith("#")) {
|
|
16847
|
+
if (raw.startsWith("#") || raw.startsWith("?")) {
|
|
16848
16848
|
raw = raw.slice(1);
|
|
16849
16849
|
}
|
|
16850
16850
|
const parts = raw.split("&");
|