@xyo-network/react-schema 2.64.0-rc.2 → 2.64.0-rc.4
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/browser/components/Property/SchemaProperty.d.mts.map +1 -0
- package/dist/browser/components/Property/SchemaProperty.d.ts.map +1 -0
- package/dist/browser/components/Property/SchemaProperty.js +54 -0
- package/dist/browser/components/Property/SchemaProperty.js.map +1 -0
- package/dist/browser/components/Property/SchemaProperty.stories.js +37 -0
- package/dist/browser/components/Property/SchemaProperty.stories.js.map +1 -0
- package/dist/browser/components/Property/index.d.mts.map +1 -0
- package/dist/browser/components/Property/index.d.ts.map +1 -0
- package/dist/browser/components/Property/index.js +2 -0
- package/dist/browser/components/Property/index.js.map +1 -0
- package/dist/browser/components/SelectEx/SchemaSelectEx.d.mts.map +1 -0
- package/dist/browser/components/SelectEx/SchemaSelectEx.d.ts.map +1 -0
- package/dist/browser/components/SelectEx/SchemaSelectEx.js +35 -0
- package/dist/browser/components/SelectEx/SchemaSelectEx.js.map +1 -0
- package/dist/browser/components/SelectEx/index.d.mts.map +1 -0
- package/dist/browser/components/SelectEx/index.d.ts.map +1 -0
- package/dist/browser/components/SelectEx/index.js +2 -0
- package/dist/browser/components/SelectEx/index.js.map +1 -0
- package/dist/browser/components/index.d.mts.map +1 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/components/index.js +3 -0
- package/dist/browser/components/index.js.map +1 -0
- package/dist/browser/contexts/Schema/Context.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/Context.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/Context.js +6 -0
- package/dist/browser/contexts/Schema/Context.js.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Memory.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Memory.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Memory.js +21 -0
- package/dist/browser/contexts/Schema/Provider/Memory.js.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Props.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Props.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Props.js +1 -0
- package/dist/browser/contexts/Schema/Provider/Props.js.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Route.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Route.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/Route.js +47 -0
- package/dist/browser/contexts/Schema/Provider/Route.js.map +1 -0
- package/dist/browser/contexts/Schema/Provider/index.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/index.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/Provider/index.js +4 -0
- package/dist/browser/contexts/Schema/Provider/index.js.map +1 -0
- package/dist/browser/contexts/Schema/State.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/State.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/State.js +1 -0
- package/dist/browser/contexts/Schema/State.js.map +1 -0
- package/dist/browser/contexts/Schema/index.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/index.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/index.js +5 -0
- package/dist/browser/contexts/Schema/index.js.map +1 -0
- package/dist/browser/contexts/Schema/use.d.mts.map +1 -0
- package/dist/browser/contexts/Schema/use.d.ts.map +1 -0
- package/dist/browser/contexts/Schema/use.js +9 -0
- package/dist/browser/contexts/Schema/use.js.map +1 -0
- package/dist/browser/contexts/index.d.mts.map +1 -0
- package/dist/browser/contexts/index.d.ts.map +1 -0
- package/dist/browser/contexts/index.js +2 -0
- package/dist/browser/contexts/index.js.map +1 -0
- package/dist/browser/hooks/index.d.mts.map +1 -0
- package/dist/browser/hooks/index.d.ts.map +1 -0
- package/dist/browser/hooks/index.js +5 -0
- package/dist/browser/hooks/index.js.map +1 -0
- package/dist/browser/hooks/stories/TestSchemaHooks.stories.js +65 -0
- package/dist/browser/hooks/stories/TestSchemaHooks.stories.js.map +1 -0
- package/dist/browser/hooks/useGetSchema.d.mts.map +1 -0
- package/dist/browser/hooks/useGetSchema.d.ts.map +1 -0
- package/dist/browser/hooks/useGetSchema.js +47 -0
- package/dist/browser/hooks/useGetSchema.js.map +1 -0
- package/dist/browser/hooks/useGetSchema.stories.js +63 -0
- package/dist/browser/hooks/useGetSchema.stories.js.map +1 -0
- package/dist/browser/hooks/useSchemaDefinitions.d.mts.map +1 -0
- package/dist/browser/hooks/useSchemaDefinitions.d.ts.map +1 -0
- package/dist/browser/hooks/useSchemaDefinitions.js +25 -0
- package/dist/browser/hooks/useSchemaDefinitions.js.map +1 -0
- package/dist/browser/hooks/useSchemaList.d.mts.map +1 -0
- package/dist/browser/hooks/useSchemaList.d.ts.map +1 -0
- package/dist/browser/hooks/useSchemaList.js +47 -0
- package/dist/browser/hooks/useSchemaList.js.map +1 -0
- package/dist/browser/hooks/useSchemaStats.d.mts.map +1 -0
- package/dist/browser/hooks/useSchemaStats.d.ts.map +1 -0
- package/dist/browser/hooks/useSchemaStats.js +49 -0
- package/dist/browser/hooks/useSchemaStats.js.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/components/Property/SchemaProperty.d.mts +40 -0
- package/dist/node/components/Property/SchemaProperty.d.mts.map +1 -0
- package/dist/node/components/Property/SchemaProperty.d.ts +40 -0
- package/dist/node/components/Property/SchemaProperty.d.ts.map +1 -0
- package/dist/node/components/Property/SchemaProperty.js +78 -0
- package/dist/node/components/Property/SchemaProperty.js.map +1 -0
- package/dist/node/components/Property/SchemaProperty.mjs +54 -0
- package/dist/node/components/Property/SchemaProperty.mjs.map +1 -0
- package/dist/node/components/Property/SchemaProperty.stories.js +64 -0
- package/dist/node/components/Property/SchemaProperty.stories.js.map +1 -0
- package/dist/node/components/Property/SchemaProperty.stories.mjs +37 -0
- package/dist/node/components/Property/SchemaProperty.stories.mjs.map +1 -0
- package/dist/node/components/Property/index.d.mts +2 -0
- package/dist/node/components/Property/index.d.mts.map +1 -0
- package/dist/node/components/Property/index.d.ts +2 -0
- package/dist/node/components/Property/index.d.ts.map +1 -0
- package/dist/node/components/Property/index.js +23 -0
- package/dist/node/components/Property/index.js.map +1 -0
- package/dist/node/components/Property/index.mjs +2 -0
- package/dist/node/components/Property/index.mjs.map +1 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.d.mts +5 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.d.mts.map +1 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.d.ts +5 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.d.ts.map +1 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.js +59 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.js.map +1 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.mjs +35 -0
- package/dist/node/components/SelectEx/SchemaSelectEx.mjs.map +1 -0
- package/dist/node/components/SelectEx/index.d.mts +2 -0
- package/dist/node/components/SelectEx/index.d.mts.map +1 -0
- package/dist/node/components/SelectEx/index.d.ts +2 -0
- package/dist/node/components/SelectEx/index.d.ts.map +1 -0
- package/dist/node/components/SelectEx/index.js +23 -0
- package/dist/node/components/SelectEx/index.js.map +1 -0
- package/dist/node/components/SelectEx/index.mjs +2 -0
- package/dist/node/components/SelectEx/index.mjs.map +1 -0
- package/dist/node/components/index.d.mts +3 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +3 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +25 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +3 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/contexts/Schema/Context.d.mts +4 -0
- package/dist/node/contexts/Schema/Context.d.mts.map +1 -0
- package/dist/node/contexts/Schema/Context.d.ts +4 -0
- package/dist/node/contexts/Schema/Context.d.ts.map +1 -0
- package/dist/node/contexts/Schema/Context.js +30 -0
- package/dist/node/contexts/Schema/Context.js.map +1 -0
- package/dist/node/contexts/Schema/Context.mjs +6 -0
- package/dist/node/contexts/Schema/Context.mjs.map +1 -0
- package/dist/node/contexts/Schema/Provider/Memory.d.mts +5 -0
- package/dist/node/contexts/Schema/Provider/Memory.d.mts.map +1 -0
- package/dist/node/contexts/Schema/Provider/Memory.d.ts +5 -0
- package/dist/node/contexts/Schema/Provider/Memory.d.ts.map +1 -0
- package/dist/node/contexts/Schema/Provider/Memory.js +45 -0
- package/dist/node/contexts/Schema/Provider/Memory.js.map +1 -0
- package/dist/node/contexts/Schema/Provider/Memory.mjs +21 -0
- package/dist/node/contexts/Schema/Provider/Memory.mjs.map +1 -0
- package/dist/node/contexts/Schema/Provider/Props.d.mts +5 -0
- package/dist/node/contexts/Schema/Provider/Props.d.mts.map +1 -0
- package/dist/node/contexts/Schema/Provider/Props.d.ts +5 -0
- package/dist/node/contexts/Schema/Provider/Props.d.ts.map +1 -0
- package/dist/node/contexts/Schema/Provider/Props.js +17 -0
- package/dist/node/contexts/Schema/Provider/Props.js.map +1 -0
- package/dist/node/contexts/Schema/Provider/Props.mjs +1 -0
- package/dist/node/contexts/Schema/Provider/Props.mjs.map +1 -0
- package/dist/node/contexts/Schema/Provider/Route.d.mts +5 -0
- package/dist/node/contexts/Schema/Provider/Route.d.mts.map +1 -0
- package/dist/node/contexts/Schema/Provider/Route.d.ts +5 -0
- package/dist/node/contexts/Schema/Provider/Route.d.ts.map +1 -0
- package/dist/node/contexts/Schema/Provider/Route.js +71 -0
- package/dist/node/contexts/Schema/Provider/Route.js.map +1 -0
- package/dist/node/contexts/Schema/Provider/Route.mjs +47 -0
- package/dist/node/contexts/Schema/Provider/Route.mjs.map +1 -0
- package/dist/node/contexts/Schema/Provider/index.d.mts +4 -0
- package/dist/node/contexts/Schema/Provider/index.d.mts.map +1 -0
- package/dist/node/contexts/Schema/Provider/index.d.ts +4 -0
- package/dist/node/contexts/Schema/Provider/index.d.ts.map +1 -0
- package/dist/node/contexts/Schema/Provider/index.js +27 -0
- package/dist/node/contexts/Schema/Provider/index.js.map +1 -0
- package/dist/node/contexts/Schema/Provider/index.mjs +4 -0
- package/dist/node/contexts/Schema/Provider/index.mjs.map +1 -0
- package/dist/node/contexts/Schema/State.d.mts +13 -0
- package/dist/node/contexts/Schema/State.d.mts.map +1 -0
- package/dist/node/contexts/Schema/State.d.ts +13 -0
- package/dist/node/contexts/Schema/State.d.ts.map +1 -0
- package/dist/node/contexts/Schema/State.js +17 -0
- package/dist/node/contexts/Schema/State.js.map +1 -0
- package/dist/node/contexts/Schema/State.mjs +1 -0
- package/dist/node/contexts/Schema/State.mjs.map +1 -0
- package/dist/node/contexts/Schema/index.d.mts +5 -0
- package/dist/node/contexts/Schema/index.d.mts.map +1 -0
- package/dist/node/contexts/Schema/index.d.ts +5 -0
- package/dist/node/contexts/Schema/index.d.ts.map +1 -0
- package/dist/node/contexts/Schema/index.js +29 -0
- package/dist/node/contexts/Schema/index.js.map +1 -0
- package/dist/node/contexts/Schema/index.mjs +5 -0
- package/dist/node/contexts/Schema/index.mjs.map +1 -0
- package/dist/node/contexts/Schema/use.d.mts +3 -0
- package/dist/node/contexts/Schema/use.d.mts.map +1 -0
- package/dist/node/contexts/Schema/use.d.ts +3 -0
- package/dist/node/contexts/Schema/use.d.ts.map +1 -0
- package/dist/node/contexts/Schema/use.js +33 -0
- package/dist/node/contexts/Schema/use.js.map +1 -0
- package/dist/node/contexts/Schema/use.mjs +9 -0
- package/dist/node/contexts/Schema/use.mjs.map +1 -0
- package/dist/node/contexts/index.d.mts +2 -0
- package/dist/node/contexts/index.d.mts.map +1 -0
- package/dist/node/contexts/index.d.ts +2 -0
- package/dist/node/contexts/index.d.ts.map +1 -0
- package/dist/node/contexts/index.js +23 -0
- package/dist/node/contexts/index.js.map +1 -0
- package/dist/node/contexts/index.mjs +2 -0
- package/dist/node/contexts/index.mjs.map +1 -0
- package/dist/node/hooks/index.d.mts +5 -0
- package/dist/node/hooks/index.d.mts.map +1 -0
- package/dist/node/hooks/index.d.ts +5 -0
- package/dist/node/hooks/index.d.ts.map +1 -0
- package/dist/node/hooks/index.js +29 -0
- package/dist/node/hooks/index.js.map +1 -0
- package/dist/node/hooks/index.mjs +5 -0
- package/dist/node/hooks/index.mjs.map +1 -0
- package/dist/node/hooks/stories/TestSchemaHooks.stories.js +89 -0
- package/dist/node/hooks/stories/TestSchemaHooks.stories.js.map +1 -0
- package/dist/node/hooks/stories/TestSchemaHooks.stories.mjs +65 -0
- package/dist/node/hooks/stories/TestSchemaHooks.stories.mjs.map +1 -0
- package/dist/node/hooks/useGetSchema.d.mts +27 -0
- package/dist/node/hooks/useGetSchema.d.mts.map +1 -0
- package/dist/node/hooks/useGetSchema.d.ts +27 -0
- package/dist/node/hooks/useGetSchema.d.ts.map +1 -0
- package/dist/node/hooks/useGetSchema.js +71 -0
- package/dist/node/hooks/useGetSchema.js.map +1 -0
- package/dist/node/hooks/useGetSchema.mjs +47 -0
- package/dist/node/hooks/useGetSchema.mjs.map +1 -0
- package/dist/node/hooks/useGetSchema.stories.js +98 -0
- package/dist/node/hooks/useGetSchema.stories.js.map +1 -0
- package/dist/node/hooks/useGetSchema.stories.mjs +63 -0
- package/dist/node/hooks/useGetSchema.stories.mjs.map +1 -0
- package/dist/node/hooks/useSchemaDefinitions.d.mts +6 -0
- package/dist/node/hooks/useSchemaDefinitions.d.mts.map +1 -0
- package/dist/node/hooks/useSchemaDefinitions.d.ts +6 -0
- package/dist/node/hooks/useSchemaDefinitions.d.ts.map +1 -0
- package/dist/node/hooks/useSchemaDefinitions.js +49 -0
- package/dist/node/hooks/useSchemaDefinitions.js.map +1 -0
- package/dist/node/hooks/useSchemaDefinitions.mjs +25 -0
- package/dist/node/hooks/useSchemaDefinitions.mjs.map +1 -0
- package/dist/node/hooks/useSchemaList.d.mts +3 -0
- package/dist/node/hooks/useSchemaList.d.mts.map +1 -0
- package/dist/node/hooks/useSchemaList.d.ts +3 -0
- package/dist/node/hooks/useSchemaList.d.ts.map +1 -0
- package/dist/node/hooks/useSchemaList.js +71 -0
- package/dist/node/hooks/useSchemaList.js.map +1 -0
- package/dist/node/hooks/useSchemaList.mjs +47 -0
- package/dist/node/hooks/useSchemaList.mjs.map +1 -0
- package/dist/node/hooks/useSchemaStats.d.mts +4 -0
- package/dist/node/hooks/useSchemaStats.d.mts.map +1 -0
- package/dist/node/hooks/useSchemaStats.d.ts +4 -0
- package/dist/node/hooks/useSchemaStats.d.ts.map +1 -0
- package/dist/node/hooks/useSchemaStats.js +73 -0
- package/dist/node/hooks/useSchemaStats.js.map +1 -0
- package/dist/node/hooks/useSchemaStats.mjs +49 -0
- package/dist/node/hooks/useSchemaStats.mjs.map +1 -0
- package/dist/node/index.d.mts +4 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +27 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +4 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +37 -37
- package/dist/components/Property/SchemaProperty.d.mts.map +0 -1
- package/dist/components/Property/SchemaProperty.d.ts.map +0 -1
- package/dist/components/Property/SchemaProperty.stories.d.mts +0 -130
- package/dist/components/Property/SchemaProperty.stories.d.mts.map +0 -1
- package/dist/components/Property/SchemaProperty.stories.d.ts +0 -130
- package/dist/components/Property/SchemaProperty.stories.d.ts.map +0 -1
- package/dist/components/Property/index.d.mts.map +0 -1
- package/dist/components/Property/index.d.ts.map +0 -1
- package/dist/components/SelectEx/SchemaSelectEx.d.mts.map +0 -1
- package/dist/components/SelectEx/SchemaSelectEx.d.ts.map +0 -1
- package/dist/components/SelectEx/index.d.mts.map +0 -1
- package/dist/components/SelectEx/index.d.ts.map +0 -1
- package/dist/components/index.d.mts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/contexts/Schema/Context.d.mts.map +0 -1
- package/dist/contexts/Schema/Context.d.ts.map +0 -1
- package/dist/contexts/Schema/Provider/Memory.d.mts.map +0 -1
- package/dist/contexts/Schema/Provider/Memory.d.ts.map +0 -1
- package/dist/contexts/Schema/Provider/Props.d.mts.map +0 -1
- package/dist/contexts/Schema/Provider/Props.d.ts.map +0 -1
- package/dist/contexts/Schema/Provider/Route.d.mts.map +0 -1
- package/dist/contexts/Schema/Provider/Route.d.ts.map +0 -1
- package/dist/contexts/Schema/Provider/index.d.mts.map +0 -1
- package/dist/contexts/Schema/Provider/index.d.ts.map +0 -1
- package/dist/contexts/Schema/State.d.mts.map +0 -1
- package/dist/contexts/Schema/State.d.ts.map +0 -1
- package/dist/contexts/Schema/index.d.mts.map +0 -1
- package/dist/contexts/Schema/index.d.ts.map +0 -1
- package/dist/contexts/Schema/use.d.mts.map +0 -1
- package/dist/contexts/Schema/use.d.ts.map +0 -1
- package/dist/contexts/index.d.mts.map +0 -1
- package/dist/contexts/index.d.ts.map +0 -1
- package/dist/hooks/index.d.mts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/stories/TestSchemaHooks.stories.d.mts +0 -5
- package/dist/hooks/stories/TestSchemaHooks.stories.d.mts.map +0 -1
- package/dist/hooks/stories/TestSchemaHooks.stories.d.ts +0 -5
- package/dist/hooks/stories/TestSchemaHooks.stories.d.ts.map +0 -1
- package/dist/hooks/useGetSchema.d.mts.map +0 -1
- package/dist/hooks/useGetSchema.d.ts.map +0 -1
- package/dist/hooks/useGetSchema.stories.d.mts +0 -11
- package/dist/hooks/useGetSchema.stories.d.mts.map +0 -1
- package/dist/hooks/useGetSchema.stories.d.ts +0 -11
- package/dist/hooks/useGetSchema.stories.d.ts.map +0 -1
- package/dist/hooks/useSchemaDefinitions.d.mts.map +0 -1
- package/dist/hooks/useSchemaDefinitions.d.ts.map +0 -1
- package/dist/hooks/useSchemaList.d.mts.map +0 -1
- package/dist/hooks/useSchemaList.d.ts.map +0 -1
- package/dist/hooks/useSchemaStats.d.mts.map +0 -1
- package/dist/hooks/useSchemaStats.d.ts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -367
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -331
- package/dist/index.mjs.map +0 -1
- /package/dist/{components → browser/components}/Property/SchemaProperty.d.mts +0 -0
- /package/dist/{components → browser/components}/Property/SchemaProperty.d.ts +0 -0
- /package/dist/{components → browser/components}/Property/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Property/index.d.ts +0 -0
- /package/dist/{components → browser/components}/SelectEx/SchemaSelectEx.d.mts +0 -0
- /package/dist/{components → browser/components}/SelectEx/SchemaSelectEx.d.ts +0 -0
- /package/dist/{components → browser/components}/SelectEx/index.d.mts +0 -0
- /package/dist/{components → browser/components}/SelectEx/index.d.ts +0 -0
- /package/dist/{components → browser/components}/index.d.mts +0 -0
- /package/dist/{components → browser/components}/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Context.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Context.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/Memory.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/Memory.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/Props.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/Props.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/Route.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/Route.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/Provider/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/State.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/State.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/use.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/Schema/use.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/index.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/index.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/useGetSchema.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/useGetSchema.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/useSchemaDefinitions.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/useSchemaDefinitions.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/useSchemaList.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/useSchemaList.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/useSchemaStats.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/useSchemaStats.d.ts +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var Props_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(Props_exports);
|
|
17
|
+
//# sourceMappingURL=Props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/contexts/Schema/Provider/Props.tsx"],"sourcesContent":["export interface SchemaProviderProps {\n defaultSchema?: string\n knownSchemaList?: string[]\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=Props.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAgD7C,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAM3E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAgD7C,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAM3E,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Route_exports = {};
|
|
20
|
+
__export(Route_exports, {
|
|
21
|
+
SchemaRouteProvider: () => SchemaRouteProvider
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Route_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var import_react_router_dom = require("react-router-dom");
|
|
27
|
+
var import_Context = require("../Context");
|
|
28
|
+
var import_use = require("../use");
|
|
29
|
+
var import_Memory = require("./Memory");
|
|
30
|
+
const SchemaRouteProviderInner = ({ children }) => {
|
|
31
|
+
const { schema, setSchema, schemaList } = (0, import_use.useSchema)();
|
|
32
|
+
const [params, setParams] = (0, import_react_router_dom.useSearchParams)();
|
|
33
|
+
const routeSchema = params.get("schema");
|
|
34
|
+
const setSchemaParam = (0, import_react.useCallback)(
|
|
35
|
+
(schema2) => {
|
|
36
|
+
if (schema2) {
|
|
37
|
+
params.set("schema", schema2);
|
|
38
|
+
setParams(params, { replace: true });
|
|
39
|
+
setSchema?.(schema2);
|
|
40
|
+
} else {
|
|
41
|
+
params.delete("network");
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
[params, setParams, setSchema]
|
|
45
|
+
);
|
|
46
|
+
const setSchemaLocal = (0, import_react.useCallback)(
|
|
47
|
+
(schema2) => {
|
|
48
|
+
setSchemaParam(schema2);
|
|
49
|
+
setSchema?.(schema2);
|
|
50
|
+
},
|
|
51
|
+
[setSchemaParam, setSchema]
|
|
52
|
+
);
|
|
53
|
+
(0, import_react.useEffect)(() => {
|
|
54
|
+
if (routeSchema !== schema) {
|
|
55
|
+
if (routeSchema === void 0 && schema !== void 0) {
|
|
56
|
+
setSchemaLocal(schema);
|
|
57
|
+
} else if (routeSchema) {
|
|
58
|
+
setSchema?.(routeSchema);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal]);
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Context.SchemaContext.Provider, { value: { provided: true, schema, schemaList, setSchema: setSchemaLocal }, children });
|
|
63
|
+
};
|
|
64
|
+
const SchemaRouteProvider = ({ knownSchemaList, defaultSchema, ...props }) => {
|
|
65
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Memory.SchemaMemoryProvider, { knownSchemaList, defaultSchema, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SchemaRouteProviderInner, { ...props }) });
|
|
66
|
+
};
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
SchemaRouteProvider
|
|
70
|
+
});
|
|
71
|
+
//# sourceMappingURL=Route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"sourcesContent":["import type { WithChildren } from '@xylabs/react-shared'\nimport { useCallback, useEffect } from 'react'\nimport { useSearchParams } from 'react-router-dom'\n\nimport { SchemaContext } from '../Context'\nimport { useSchema } from '../use'\nimport { SchemaMemoryProvider } from './Memory'\nimport { SchemaProviderProps } from './Props'\n\nconst SchemaRouteProviderInner: React.FC<WithChildren> = ({ children }) => {\n const { schema, setSchema, schemaList } = useSchema()\n\n const [params, setParams] = useSearchParams()\n\n const routeSchema = params.get('schema')\n\n //update the network stored in the route\n const setSchemaParam = useCallback(\n (schema?: string) => {\n if (schema) {\n params.set('schema', schema)\n setParams(params, { replace: true })\n setSchema?.(schema)\n } else {\n params.delete('network')\n }\n },\n [params, setParams, setSchema],\n )\n\n //if the network is actively changed, update both memory and route\n const setSchemaLocal = useCallback(\n (schema: string) => {\n setSchemaParam(schema)\n setSchema?.(schema)\n },\n [setSchemaParam, setSchema],\n )\n\n //sync memory and route storage of network\n useEffect(() => {\n if (routeSchema !== schema) {\n if (routeSchema === undefined && schema !== undefined) {\n //if the route does not have a network selected, use what is in the memory context\n setSchemaLocal(schema)\n } else if (routeSchema) {\n //if the route has a selection and it is different from memory, update memory\n setSchema?.(routeSchema)\n }\n }\n }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal])\n\n return <SchemaContext.Provider value={{ provided: true, schema, schemaList, setSchema: setSchemaLocal }}>{children}</SchemaContext.Provider>\n}\n\nexport const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>> = ({ knownSchemaList, defaultSchema, ...props }) => {\n return (\n <SchemaMemoryProvider knownSchemaList={knownSchemaList} defaultSchema={defaultSchema}>\n <SchemaRouteProviderInner {...props} />\n </SchemaMemoryProvider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoDS;AAnDT,mBAAuC;AACvC,8BAAgC;AAEhC,qBAA8B;AAC9B,iBAA0B;AAC1B,oBAAqC;AAGrC,MAAM,2BAAmD,CAAC,EAAE,SAAS,MAAM;AACzE,QAAM,EAAE,QAAQ,WAAW,WAAW,QAAI,sBAAU;AAEpD,QAAM,CAAC,QAAQ,SAAS,QAAI,yCAAgB;AAE5C,QAAM,cAAc,OAAO,IAAI,QAAQ;AAGvC,QAAM,qBAAiB;AAAA,IACrB,CAACA,YAAoB;AACnB,UAAIA,SAAQ;AACV,eAAO,IAAI,UAAUA,OAAM;AAC3B,kBAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;AACnC,oBAAYA,OAAM;AAAA,MACpB,OAAO;AACL,eAAO,OAAO,SAAS;AAAA,MACzB;AAAA,IACF;AAAA,IACA,CAAC,QAAQ,WAAW,SAAS;AAAA,EAC/B;AAGA,QAAM,qBAAiB;AAAA,IACrB,CAACA,YAAmB;AAClB,qBAAeA,OAAM;AACrB,kBAAYA,OAAM;AAAA,IACpB;AAAA,IACA,CAAC,gBAAgB,SAAS;AAAA,EAC5B;AAGA,8BAAU,MAAM;AACd,QAAI,gBAAgB,QAAQ;AAC1B,UAAI,gBAAgB,UAAa,WAAW,QAAW;AAErD,uBAAe,MAAM;AAAA,MACvB,WAAW,aAAa;AAEtB,oBAAY,WAAW;AAAA,MACzB;AAAA,IACF;AAAA,EACF,GAAG,CAAC,aAAa,QAAQ,gBAAgB,WAAW,cAAc,CAAC;AAEnE,SAAO,4CAAC,6BAAc,UAAd,EAAuB,OAAO,EAAE,UAAU,MAAM,QAAQ,YAAY,WAAW,eAAe,GAAI,UAAS;AACrH;AAEO,MAAM,sBAAmE,CAAC,EAAE,iBAAiB,eAAe,GAAG,MAAM,MAAM;AAChI,SACE,4CAAC,sCAAqB,iBAAkC,eACtD,sDAAC,4BAA0B,GAAG,OAAO,GACvC;AAEJ;","names":["schema"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect } from "react";
|
|
3
|
+
import { useSearchParams } from "react-router-dom";
|
|
4
|
+
import { SchemaContext } from "../Context";
|
|
5
|
+
import { useSchema } from "../use";
|
|
6
|
+
import { SchemaMemoryProvider } from "./Memory";
|
|
7
|
+
const SchemaRouteProviderInner = ({ children }) => {
|
|
8
|
+
const { schema, setSchema, schemaList } = useSchema();
|
|
9
|
+
const [params, setParams] = useSearchParams();
|
|
10
|
+
const routeSchema = params.get("schema");
|
|
11
|
+
const setSchemaParam = useCallback(
|
|
12
|
+
(schema2) => {
|
|
13
|
+
if (schema2) {
|
|
14
|
+
params.set("schema", schema2);
|
|
15
|
+
setParams(params, { replace: true });
|
|
16
|
+
setSchema?.(schema2);
|
|
17
|
+
} else {
|
|
18
|
+
params.delete("network");
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
[params, setParams, setSchema]
|
|
22
|
+
);
|
|
23
|
+
const setSchemaLocal = useCallback(
|
|
24
|
+
(schema2) => {
|
|
25
|
+
setSchemaParam(schema2);
|
|
26
|
+
setSchema?.(schema2);
|
|
27
|
+
},
|
|
28
|
+
[setSchemaParam, setSchema]
|
|
29
|
+
);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (routeSchema !== schema) {
|
|
32
|
+
if (routeSchema === void 0 && schema !== void 0) {
|
|
33
|
+
setSchemaLocal(schema);
|
|
34
|
+
} else if (routeSchema) {
|
|
35
|
+
setSchema?.(routeSchema);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal]);
|
|
39
|
+
return /* @__PURE__ */ jsx(SchemaContext.Provider, { value: { provided: true, schema, schemaList, setSchema: setSchemaLocal }, children });
|
|
40
|
+
};
|
|
41
|
+
const SchemaRouteProvider = ({ knownSchemaList, defaultSchema, ...props }) => {
|
|
42
|
+
return /* @__PURE__ */ jsx(SchemaMemoryProvider, { knownSchemaList, defaultSchema, children: /* @__PURE__ */ jsx(SchemaRouteProviderInner, { ...props }) });
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
SchemaRouteProvider
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Route.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"sourcesContent":["import type { WithChildren } from '@xylabs/react-shared'\nimport { useCallback, useEffect } from 'react'\nimport { useSearchParams } from 'react-router-dom'\n\nimport { SchemaContext } from '../Context'\nimport { useSchema } from '../use'\nimport { SchemaMemoryProvider } from './Memory'\nimport { SchemaProviderProps } from './Props'\n\nconst SchemaRouteProviderInner: React.FC<WithChildren> = ({ children }) => {\n const { schema, setSchema, schemaList } = useSchema()\n\n const [params, setParams] = useSearchParams()\n\n const routeSchema = params.get('schema')\n\n //update the network stored in the route\n const setSchemaParam = useCallback(\n (schema?: string) => {\n if (schema) {\n params.set('schema', schema)\n setParams(params, { replace: true })\n setSchema?.(schema)\n } else {\n params.delete('network')\n }\n },\n [params, setParams, setSchema],\n )\n\n //if the network is actively changed, update both memory and route\n const setSchemaLocal = useCallback(\n (schema: string) => {\n setSchemaParam(schema)\n setSchema?.(schema)\n },\n [setSchemaParam, setSchema],\n )\n\n //sync memory and route storage of network\n useEffect(() => {\n if (routeSchema !== schema) {\n if (routeSchema === undefined && schema !== undefined) {\n //if the route does not have a network selected, use what is in the memory context\n setSchemaLocal(schema)\n } else if (routeSchema) {\n //if the route has a selection and it is different from memory, update memory\n setSchema?.(routeSchema)\n }\n }\n }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal])\n\n return <SchemaContext.Provider value={{ provided: true, schema, schemaList, setSchema: setSchemaLocal }}>{children}</SchemaContext.Provider>\n}\n\nexport const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>> = ({ knownSchemaList, defaultSchema, ...props }) => {\n return (\n <SchemaMemoryProvider knownSchemaList={knownSchemaList} defaultSchema={defaultSchema}>\n <SchemaRouteProviderInner {...props} />\n </SchemaMemoryProvider>\n )\n}\n"],"mappings":"AAoDS;AAnDT,SAAS,aAAa,iBAAiB;AACvC,SAAS,uBAAuB;AAEhC,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB;AAC1B,SAAS,4BAA4B;AAGrC,MAAM,2BAAmD,CAAC,EAAE,SAAS,MAAM;AACzE,QAAM,EAAE,QAAQ,WAAW,WAAW,IAAI,UAAU;AAEpD,QAAM,CAAC,QAAQ,SAAS,IAAI,gBAAgB;AAE5C,QAAM,cAAc,OAAO,IAAI,QAAQ;AAGvC,QAAM,iBAAiB;AAAA,IACrB,CAACA,YAAoB;AACnB,UAAIA,SAAQ;AACV,eAAO,IAAI,UAAUA,OAAM;AAC3B,kBAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;AACnC,oBAAYA,OAAM;AAAA,MACpB,OAAO;AACL,eAAO,OAAO,SAAS;AAAA,MACzB;AAAA,IACF;AAAA,IACA,CAAC,QAAQ,WAAW,SAAS;AAAA,EAC/B;AAGA,QAAM,iBAAiB;AAAA,IACrB,CAACA,YAAmB;AAClB,qBAAeA,OAAM;AACrB,kBAAYA,OAAM;AAAA,IACpB;AAAA,IACA,CAAC,gBAAgB,SAAS;AAAA,EAC5B;AAGA,YAAU,MAAM;AACd,QAAI,gBAAgB,QAAQ;AAC1B,UAAI,gBAAgB,UAAa,WAAW,QAAW;AAErD,uBAAe,MAAM;AAAA,MACvB,WAAW,aAAa;AAEtB,oBAAY,WAAW;AAAA,MACzB;AAAA,IACF;AAAA,EACF,GAAG,CAAC,aAAa,QAAQ,gBAAgB,WAAW,cAAc,CAAC;AAEnE,SAAO,oBAAC,cAAc,UAAd,EAAuB,OAAO,EAAE,UAAU,MAAM,QAAQ,YAAY,WAAW,eAAe,GAAI,UAAS;AACrH;AAEO,MAAM,sBAAmE,CAAC,EAAE,iBAAiB,eAAe,GAAG,MAAM,MAAM;AAChI,SACE,oBAAC,wBAAqB,iBAAkC,eACtD,8BAAC,4BAA0B,GAAG,OAAO,GACvC;AAEJ;","names":["schema"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var Provider_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(Provider_exports);
|
|
18
|
+
__reExport(Provider_exports, require("./Memory"), module.exports);
|
|
19
|
+
__reExport(Provider_exports, require("./Props"), module.exports);
|
|
20
|
+
__reExport(Provider_exports, require("./Route"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("./Memory"),
|
|
24
|
+
...require("./Props"),
|
|
25
|
+
...require("./Route")
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"sourcesContent":["export * from './Memory'\nexport * from './Props'\nexport * from './Route'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,qBAAd;AACA,6BAAc,oBADd;AAEA,6BAAc,oBAFd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"sourcesContent":["export * from './Memory'\nexport * from './Props'\nexport * from './Route'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContextExState } from '@xyo-network/react-shared';
|
|
2
|
+
import { Dispatch } from 'react';
|
|
3
|
+
export interface SchemaContextState extends ContextExState {
|
|
4
|
+
/** @field The currently selected XYO Schema */
|
|
5
|
+
schema?: string;
|
|
6
|
+
/** @field The list of known available schema */
|
|
7
|
+
schemaList?: string[];
|
|
8
|
+
/** @field Function to set the selected Schema */
|
|
9
|
+
setSchema?: Dispatch<string>;
|
|
10
|
+
/** @field Function to set the list of known available schema */
|
|
11
|
+
setSchemaList?: Dispatch<string[]>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iDAAiD;IACjD,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC5B,gEAAgE;IAChE,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContextExState } from '@xyo-network/react-shared';
|
|
2
|
+
import { Dispatch } from 'react';
|
|
3
|
+
export interface SchemaContextState extends ContextExState {
|
|
4
|
+
/** @field The currently selected XYO Schema */
|
|
5
|
+
schema?: string;
|
|
6
|
+
/** @field The list of known available schema */
|
|
7
|
+
schemaList?: string[];
|
|
8
|
+
/** @field Function to set the selected Schema */
|
|
9
|
+
setSchema?: Dispatch<string>;
|
|
10
|
+
/** @field Function to set the list of known available schema */
|
|
11
|
+
setSchemaList?: Dispatch<string[]>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iDAAiD;IACjD,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC5B,gEAAgE;IAChE,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var State_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(State_exports);
|
|
17
|
+
//# sourceMappingURL=State.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/Schema/State.ts"],"sourcesContent":["import { ContextExState } from '@xyo-network/react-shared'\nimport { Dispatch } from 'react'\n\nexport interface SchemaContextState extends ContextExState {\n /** @field The currently selected XYO Schema */\n schema?: string\n /** @field The list of known available schema */\n schemaList?: string[]\n /** @field Function to set the selected Schema */\n setSchema?: Dispatch<string>\n /** @field Function to set the list of known available schema */\n setSchemaList?: Dispatch<string[]>\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=State.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var Schema_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(Schema_exports);
|
|
18
|
+
__reExport(Schema_exports, require("./Context"), module.exports);
|
|
19
|
+
__reExport(Schema_exports, require("./Provider"), module.exports);
|
|
20
|
+
__reExport(Schema_exports, require("./State"), module.exports);
|
|
21
|
+
__reExport(Schema_exports, require("./use"), module.exports);
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
...require("./Context"),
|
|
25
|
+
...require("./Provider"),
|
|
26
|
+
...require("./State"),
|
|
27
|
+
...require("./use")
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/Schema/index.ts"],"sourcesContent":["export * from './Context'\nexport * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,sBAAd;AACA,2BAAc,uBADd;AAEA,2BAAc,oBAFd;AAGA,2BAAc,kBAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/Schema/index.ts"],"sourcesContent":["export * from './Context'\nexport * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/use.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,SAAS,8DAErB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/use.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,SAAS,8DAErB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var use_exports = {};
|
|
20
|
+
__export(use_exports, {
|
|
21
|
+
useSchema: () => useSchema
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(use_exports);
|
|
24
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
|
25
|
+
var import_Context = require("./Context");
|
|
26
|
+
const useSchema = (required = false) => {
|
|
27
|
+
return (0, import_react_shared.useContextEx)(import_Context.SchemaContext, "Schema", required);
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
useSchema
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=use.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/Schema/use.ts"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { SchemaContext } from './Context'\nimport { SchemaContextState } from './State'\n\nexport const useSchema = (required = false) => {\n return useContextEx<SchemaContextState>(SchemaContext, 'Schema', required)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B;AAE7B,qBAA8B;AAGvB,MAAM,YAAY,CAAC,WAAW,UAAU;AAC7C,aAAO,kCAAiC,8BAAe,UAAU,QAAQ;AAC3E;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
|
2
|
+
import { SchemaContext } from "./Context";
|
|
3
|
+
const useSchema = (required = false) => {
|
|
4
|
+
return useContextEx(SchemaContext, "Schema", required);
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
useSchema
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=use.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/Schema/use.ts"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { SchemaContext } from './Context'\nimport { SchemaContextState } from './State'\n\nexport const useSchema = (required = false) => {\n return useContextEx<SchemaContextState>(SchemaContext, 'Schema', required)\n}\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,qBAAqB;AAGvB,MAAM,YAAY,CAAC,WAAW,UAAU;AAC7C,SAAO,aAAiC,eAAe,UAAU,QAAQ;AAC3E;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var contexts_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(contexts_exports);
|
|
18
|
+
__reExport(contexts_exports, require("./Schema"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./Schema")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/contexts/index.ts"],"sourcesContent":["export * from './Schema'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,qBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/contexts/index.ts"],"sourcesContent":["export * from './Schema'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var hooks_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
18
|
+
__reExport(hooks_exports, require("./useGetSchema"), module.exports);
|
|
19
|
+
__reExport(hooks_exports, require("./useSchemaDefinitions"), module.exports);
|
|
20
|
+
__reExport(hooks_exports, require("./useSchemaList"), module.exports);
|
|
21
|
+
__reExport(hooks_exports, require("./useSchemaStats"), module.exports);
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
...require("./useGetSchema"),
|
|
25
|
+
...require("./useSchemaDefinitions"),
|
|
26
|
+
...require("./useSchemaList"),
|
|
27
|
+
...require("./useSchemaStats")
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/index.ts"],"sourcesContent":["export * from './useGetSchema'\nexport * from './useSchemaDefinitions'\nexport * from './useSchemaList'\nexport * from './useSchemaStats'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,2BAAd;AACA,0BAAc,mCADd;AAEA,0BAAc,4BAFd;AAGA,0BAAc,6BAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/index.ts"],"sourcesContent":["export * from './useGetSchema'\nexport * from './useSchemaDefinitions'\nexport * from './useSchemaList'\nexport * from './useSchemaStats'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|