@powerhousedao/shared 6.2.2-dev.10 → 6.2.2-dev.12

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.
Files changed (60) hide show
  1. package/dist/clis/args/{common-DfMf08ur.d.mts → common-Cr8LZG55.d.mts} +3 -3
  2. package/dist/clis/args/{common-DfMf08ur.d.mts.map → common-Cr8LZG55.d.mts.map} +1 -1
  3. package/dist/clis/args/common.d.mts +1 -1
  4. package/dist/clis/args/connect.d.mts +5 -5
  5. package/dist/clis/args/index.d.mts +1 -1
  6. package/dist/clis/args/vetra.d.mts +1 -1
  7. package/dist/clis/constants.d.mts +138 -47
  8. package/dist/clis/constants.d.mts.map +1 -1
  9. package/dist/clis/index.d.mts +348 -10
  10. package/dist/clis/index.d.mts.map +1 -1
  11. package/dist/clis/index.mjs +195 -0
  12. package/dist/clis/index.mjs.map +1 -1
  13. package/dist/connect/config-loader.d.ts +2 -1
  14. package/dist/connect/config-loader.d.ts.map +1 -1
  15. package/dist/connect/index.d.ts +347 -2
  16. package/dist/connect/index.d.ts.map +1 -1
  17. package/dist/connect/index.js +415 -1
  18. package/dist/connect/index.js.map +1 -1
  19. package/dist/connect/json-adapter.d.ts.map +1 -1
  20. package/dist/{constants-C_EQX4DY.d.ts → constants-BP_gjn8g.d.ts} +1 -1
  21. package/dist/constants-BP_gjn8g.d.ts.map +1 -0
  22. package/dist/constants.d.ts +1 -1
  23. package/dist/document-drive/index.d.ts +2 -2
  24. package/dist/document-drive/index.d.ts.map +1 -1
  25. package/dist/document-model/index.d.ts +5 -5
  26. package/dist/document-model/index.js +86 -2
  27. package/dist/document-model/index.js.map +1 -1
  28. package/dist/document-model/mock.d.ts +1 -1
  29. package/dist/document-model/utils.d.ts +2 -2
  30. package/dist/{index-CQDIrK1k.d.ts → index-BJU79_T5.d.ts} +1 -1
  31. package/dist/index-BJU79_T5.d.ts.map +1 -0
  32. package/dist/{index-3VMAi263.d.ts → index-DNdb0zBA.d.ts} +2 -2
  33. package/dist/{index-3VMAi263.d.ts.map → index-DNdb0zBA.d.ts.map} +1 -1
  34. package/dist/index.d.ts +5 -6
  35. package/dist/{mock-CBcf78ra.d.ts → mock-NzxaNX9T.d.ts} +1 -1
  36. package/dist/{mock-CBcf78ra.d.ts.map → mock-NzxaNX9T.d.ts.map} +1 -1
  37. package/dist/processors/index.d.ts +1 -1
  38. package/dist/registry/index.d.ts +4 -3
  39. package/dist/registry/index.d.ts.map +1 -1
  40. package/dist/registry/index.js +2 -1
  41. package/dist/registry/index.js.map +1 -1
  42. package/dist/registry/manifest-slim.d.ts +1 -1
  43. package/dist/registry/manifest-slim.d.ts.map +1 -1
  44. package/dist/registry/urls.d.ts +11 -0
  45. package/dist/registry/urls.d.ts.map +1 -0
  46. package/dist/registry/urls.js +15 -0
  47. package/dist/registry/urls.js.map +1 -0
  48. package/dist/{types-cHvbFx61.d.ts → types-5cwMsljz.d.ts} +258 -2
  49. package/dist/types-5cwMsljz.d.ts.map +1 -0
  50. package/dist/{types-DlZQKoQT.d.ts → types-D-iHI22b.d.ts} +29 -3
  51. package/dist/{types-DlZQKoQT.d.ts.map → types-D-iHI22b.d.ts.map} +1 -1
  52. package/dist/{utils-BEByNOHo.d.ts → utils-1EXU6Qr1.d.ts} +1 -1
  53. package/dist/utils-1EXU6Qr1.d.ts.map +1 -0
  54. package/package.json +1 -1
  55. package/dist/constants-C_EQX4DY.d.ts.map +0 -1
  56. package/dist/index-CQDIrK1k.d.ts.map +0 -1
  57. package/dist/types-C0jOn6Ob.d.ts +0 -167
  58. package/dist/types-C0jOn6Ob.d.ts.map +0 -1
  59. package/dist/types-cHvbFx61.d.ts.map +0 -1
  60. package/dist/utils-BEByNOHo.d.ts.map +0 -1
@@ -7685,6 +7685,35 @@ const driveSectionSchema = {
7685
7685
  }
7686
7686
  }
7687
7687
  };
7688
+ const pwaUrlPatternSchema = {
7689
+ description: "URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.",
7690
+ oneOf: [{ type: "string" }, {
7691
+ type: "object",
7692
+ additionalProperties: false,
7693
+ required: ["source"],
7694
+ properties: {
7695
+ source: {
7696
+ type: "string",
7697
+ description: "RegExp source."
7698
+ },
7699
+ flags: {
7700
+ type: "string",
7701
+ description: "RegExp flags (e.g. 'i')."
7702
+ }
7703
+ }
7704
+ }]
7705
+ };
7706
+ const pwaIconSchema = {
7707
+ type: "object",
7708
+ additionalProperties: false,
7709
+ required: ["src"],
7710
+ properties: {
7711
+ src: { type: "string" },
7712
+ sizes: { type: "string" },
7713
+ type: { type: "string" },
7714
+ purpose: { type: "string" }
7715
+ }
7716
+ };
7688
7717
  const phConnectRuntimeConfigSchema = {
7689
7718
  type: "object",
7690
7719
  additionalProperties: false,
@@ -7857,6 +7886,172 @@ const phConnectRuntimeConfigSchema = {
7857
7886
  default: false
7858
7887
  }
7859
7888
  }
7889
+ },
7890
+ pwa: {
7891
+ type: "object",
7892
+ additionalProperties: false,
7893
+ description: "Progressive-web-app / service-worker overrides, layered on Connect's built-in PWA defaults at build time. Scalar fields deep-merge (this layer wins); the array members (icons, file_handlers, globs, runtimeCaching and denylist patterns) are additive; maximumFileSizeToCacheInBytes takes the max across contributors. (categories is not set here — it is derived from the manifest's category field.) Only applied when connect.app.offline is true.",
7894
+ properties: {
7895
+ manifest: {
7896
+ type: "object",
7897
+ additionalProperties: false,
7898
+ description: "Web-app-manifest field overrides.",
7899
+ properties: {
7900
+ name: { type: "string" },
7901
+ short_name: { type: "string" },
7902
+ description: { type: "string" },
7903
+ theme_color: { type: "string" },
7904
+ background_color: { type: "string" },
7905
+ display: {
7906
+ type: "string",
7907
+ enum: [
7908
+ "fullscreen",
7909
+ "standalone",
7910
+ "minimal-ui",
7911
+ "browser"
7912
+ ]
7913
+ },
7914
+ start_url: { type: "string" },
7915
+ scope: { type: "string" },
7916
+ icons: {
7917
+ type: "array",
7918
+ description: "Icons appended to the built-in set and de-duplicated by (src, sizes, purpose).",
7919
+ items: pwaIconSchema
7920
+ },
7921
+ file_handlers: {
7922
+ type: "array",
7923
+ description: "File associations appended after Connect's built-in .phd/.phdm handler and de-duplicated on the whole entry. Entries only declare accepted types; there is no action field, because opening the files requires Connect's own runtime handling, so every handler opens at the app root.",
7924
+ items: {
7925
+ type: "object",
7926
+ additionalProperties: false,
7927
+ required: ["accept"],
7928
+ properties: {
7929
+ accept: {
7930
+ type: "object",
7931
+ description: "MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it.",
7932
+ additionalProperties: {
7933
+ type: "array",
7934
+ items: {
7935
+ type: "string",
7936
+ pattern: "^\\."
7937
+ }
7938
+ }
7939
+ },
7940
+ icons: {
7941
+ type: "array",
7942
+ description: "OS-level file-type icons.",
7943
+ items: pwaIconSchema
7944
+ },
7945
+ launch_type: {
7946
+ type: "string",
7947
+ enum: ["single-client", "multiple-clients"]
7948
+ }
7949
+ }
7950
+ }
7951
+ },
7952
+ launch_handler: {
7953
+ type: "object",
7954
+ additionalProperties: false,
7955
+ required: ["client_mode"],
7956
+ description: "How the OS launches the app for handled files/links. Connect defaults to focus-existing.",
7957
+ properties: { client_mode: {
7958
+ type: "string",
7959
+ enum: [
7960
+ "auto",
7961
+ "focus-existing",
7962
+ "navigate-existing",
7963
+ "navigate-new"
7964
+ ]
7965
+ } }
7966
+ }
7967
+ }
7968
+ },
7969
+ globPatterns: {
7970
+ type: "array",
7971
+ items: { type: "string" },
7972
+ description: "Extra Workbox precache globs, unioned with the built-ins."
7973
+ },
7974
+ globIgnores: {
7975
+ type: "array",
7976
+ items: { type: "string" },
7977
+ description: "Extra precache ignore globs, unioned with the built-ins."
7978
+ },
7979
+ maximumFileSizeToCacheInBytes: {
7980
+ type: "number",
7981
+ description: "Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit."
7982
+ },
7983
+ runtimeCaching: {
7984
+ type: "array",
7985
+ description: "Runtime-caching rules appended after the built-in rules. Workbox is first-match-wins, so these cannot override a built-in rule matching the same URL.",
7986
+ items: {
7987
+ type: "object",
7988
+ additionalProperties: false,
7989
+ required: ["urlPattern", "handler"],
7990
+ properties: {
7991
+ urlPattern: pwaUrlPatternSchema,
7992
+ handler: {
7993
+ type: "string",
7994
+ enum: [
7995
+ "CacheFirst",
7996
+ "CacheOnly",
7997
+ "NetworkFirst",
7998
+ "NetworkOnly",
7999
+ "StaleWhileRevalidate"
8000
+ ]
8001
+ },
8002
+ method: {
8003
+ type: "string",
8004
+ enum: [
8005
+ "GET",
8006
+ "POST",
8007
+ "PUT",
8008
+ "DELETE",
8009
+ "HEAD",
8010
+ "PATCH"
8011
+ ]
8012
+ },
8013
+ options: {
8014
+ type: "object",
8015
+ additionalProperties: false,
8016
+ properties: {
8017
+ cacheName: { type: "string" },
8018
+ networkTimeoutSeconds: {
8019
+ type: "number",
8020
+ description: "Seconds a NetworkFirst rule waits for the network before falling back to the cache."
8021
+ },
8022
+ expiration: {
8023
+ type: "object",
8024
+ additionalProperties: false,
8025
+ properties: {
8026
+ maxEntries: { type: "number" },
8027
+ maxAgeSeconds: { type: "number" }
8028
+ }
8029
+ },
8030
+ cacheableResponse: {
8031
+ type: "object",
8032
+ additionalProperties: false,
8033
+ properties: {
8034
+ statuses: {
8035
+ type: "array",
8036
+ items: { type: "number" }
8037
+ },
8038
+ headers: {
8039
+ type: "object",
8040
+ additionalProperties: { type: "string" }
8041
+ }
8042
+ }
8043
+ }
8044
+ }
8045
+ }
8046
+ }
8047
+ }
8048
+ },
8049
+ navigateFallbackDenylist: {
8050
+ type: "array",
8051
+ description: "Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.",
8052
+ items: pwaUrlPatternSchema
8053
+ }
8054
+ }
7860
8055
  }
7861
8056
  }
7862
8057
  };