react-easy-wall 1.0.18 → 1.0.21
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/cjs/assets/corona.svg.js +10 -0
- package/dist/cjs/assets/corona.svg.js.map +1 -0
- package/dist/cjs/components/panel/Panel.js +1 -0
- package/dist/cjs/components/panel/Panel.js.map +1 -1
- package/dist/cjs/components/panel/PanelAvatar.js +4 -2
- package/dist/cjs/components/panel/PanelAvatar.js.map +1 -1
- package/dist/cjs/components/panel/PanelButton.js +1 -0
- package/dist/cjs/components/panel/PanelButton.js.map +1 -1
- package/dist/cjs/components/panel/PanelDivider.js +1 -0
- package/dist/cjs/components/panel/PanelDivider.js.map +1 -1
- package/dist/cjs/components/panel/PanelFooter.js +1 -0
- package/dist/cjs/components/panel/PanelFooter.js.map +1 -1
- package/dist/cjs/components/panel/PanelHeader.js +1 -0
- package/dist/cjs/components/panel/PanelHeader.js.map +1 -1
- package/dist/cjs/components/panel/PanelItem.js +1 -0
- package/dist/cjs/components/panel/PanelItem.js.map +1 -1
- package/dist/cjs/components/panel/PanelListItems.js +2 -1
- package/dist/cjs/components/panel/PanelListItems.js.map +1 -1
- package/dist/cjs/components/session/SessionProvider.js +1 -0
- package/dist/cjs/components/session/SessionProvider.js.map +1 -1
- package/dist/cjs/components/session/SessionUserContext.js +1 -0
- package/dist/cjs/components/session/SessionUserContext.js.map +1 -1
- package/dist/cjs/components/session/SessionUserProvider.js +2 -0
- package/dist/cjs/components/session/SessionUserProvider.js.map +1 -1
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/shared/apollo/apollo.client.js +2 -2
- package/dist/cjs/shared/apollo/apollo.client.js.map +1 -1
- package/dist/cjs/shared/types/generated.js +2 -2
- package/dist/cjs/shared/types/generated.js.map +1 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +30 -1
- package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/esm/_virtual/_react.js +7 -0
- package/dist/esm/_virtual/_react.js.map +1 -0
- package/dist/esm/_virtual/navigation.js +5 -2
- package/dist/esm/_virtual/navigation.js.map +1 -1
- package/dist/esm/_virtual/router.js +5 -2
- package/dist/esm/_virtual/router.js.map +1 -1
- package/dist/esm/assets/corona.svg.js +6 -0
- package/dist/esm/assets/corona.svg.js.map +1 -0
- package/dist/esm/components/panel/Panel.js +1 -0
- package/dist/esm/components/panel/Panel.js.map +1 -1
- package/dist/esm/components/panel/PanelAvatar.js +4 -2
- package/dist/esm/components/panel/PanelAvatar.js.map +1 -1
- package/dist/esm/components/panel/PanelButton.js +1 -0
- package/dist/esm/components/panel/PanelButton.js.map +1 -1
- package/dist/esm/components/panel/PanelDivider.js +1 -0
- package/dist/esm/components/panel/PanelDivider.js.map +1 -1
- package/dist/esm/components/panel/PanelFooter.js +1 -0
- package/dist/esm/components/panel/PanelFooter.js.map +1 -1
- package/dist/esm/components/panel/PanelHeader.js +1 -0
- package/dist/esm/components/panel/PanelHeader.js.map +1 -1
- package/dist/esm/components/panel/PanelItem.js +1 -0
- package/dist/esm/components/panel/PanelItem.js.map +1 -1
- package/dist/esm/components/panel/PanelListItems.js +2 -1
- package/dist/esm/components/panel/PanelListItems.js.map +1 -1
- package/dist/esm/components/session/SessionProvider.js +1 -0
- package/dist/esm/components/session/SessionProvider.js.map +1 -1
- package/dist/esm/components/session/SessionUserContext.js +1 -0
- package/dist/esm/components/session/SessionUserContext.js.map +1 -1
- package/dist/esm/components/session/SessionUserProvider.js +2 -0
- package/dist/esm/components/session/SessionUserProvider.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/hooks.js +2 -2
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/hooks.js.map +1 -1
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js +2 -2
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js.map +1 -1
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/views.js +2 -2
- package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/views.js.map +1 -1
- package/dist/esm/node_modules/@mui/material-nextjs/esm/nextCompatRouter.js +1 -1
- package/dist/esm/node_modules/@mui/material-nextjs/esm/v13-appRouter/nextNavigation.js +1 -1
- package/dist/esm/shared/apollo/apollo.client.js +1 -1
- package/dist/esm/shared/types/generated.js +1 -1
- package/dist/esm/types/components/panel/index.d.ts +1 -0
- package/dist/esm/types/components/session/session.types.d.ts +2 -1
- package/dist/index.d.ts +9 -3
- package/package.json +3 -1
- package/dist/cjs/_virtual/_interop_require_default.js +0 -6
- package/dist/cjs/_virtual/_interop_require_default.js.map +0 -1
- package/dist/cjs/_virtual/_interop_require_wildcard.js +0 -6
- package/dist/cjs/_virtual/_interop_require_wildcard.js.map +0 -1
- package/dist/cjs/_virtual/action-async-storage-instance.js +0 -6
- package/dist/cjs/_virtual/action-async-storage-instance.js.map +0 -1
- package/dist/cjs/_virtual/action-async-storage.external.js +0 -6
- package/dist/cjs/_virtual/action-async-storage.external.js.map +0 -1
- package/dist/cjs/_virtual/after-task-async-storage-instance.js +0 -6
- package/dist/cjs/_virtual/after-task-async-storage-instance.js.map +0 -1
- package/dist/cjs/_virtual/after-task-async-storage.external.js +0 -6
- package/dist/cjs/_virtual/after-task-async-storage.external.js.map +0 -1
- package/dist/cjs/_virtual/app-router-context.shared-runtime.js +0 -6
- package/dist/cjs/_virtual/app-router-context.shared-runtime.js.map +0 -1
- package/dist/cjs/_virtual/app-router-headers.js +0 -6
- package/dist/cjs/_virtual/app-router-headers.js.map +0 -1
- package/dist/cjs/_virtual/async-local-storage.js +0 -6
- package/dist/cjs/_virtual/async-local-storage.js.map +0 -1
- package/dist/cjs/_virtual/bailout-to-client-rendering.js +0 -6
- package/dist/cjs/_virtual/bailout-to-client-rendering.js.map +0 -1
- package/dist/cjs/_virtual/bailout-to-csr.js +0 -6
- package/dist/cjs/_virtual/bailout-to-csr.js.map +0 -1
- package/dist/cjs/_virtual/boundary-constants.js +0 -6
- package/dist/cjs/_virtual/boundary-constants.js.map +0 -1
- package/dist/cjs/_virtual/cookies.js +0 -6
- package/dist/cjs/_virtual/cookies.js.map +0 -1
- package/dist/cjs/_virtual/cookies2.js +0 -6
- package/dist/cjs/_virtual/cookies2.js.map +0 -1
- package/dist/cjs/_virtual/create-deduped-by-callsite-server-error-logger.js +0 -6
- package/dist/cjs/_virtual/create-deduped-by-callsite-server-error-logger.js.map +0 -1
- package/dist/cjs/_virtual/draft-mode.js +0 -6
- package/dist/cjs/_virtual/draft-mode.js.map +0 -1
- package/dist/cjs/_virtual/dynamic-rendering-utils.js +0 -6
- package/dist/cjs/_virtual/dynamic-rendering-utils.js.map +0 -1
- package/dist/cjs/_virtual/dynamic-rendering.js +0 -6
- package/dist/cjs/_virtual/dynamic-rendering.js.map +0 -1
- package/dist/cjs/_virtual/forbidden.js +0 -6
- package/dist/cjs/_virtual/forbidden.js.map +0 -1
- package/dist/cjs/_virtual/get-segment-value.js +0 -6
- package/dist/cjs/_virtual/get-segment-value.js.map +0 -1
- package/dist/cjs/_virtual/headers.js +0 -8
- package/dist/cjs/_virtual/headers.js.map +0 -1
- package/dist/cjs/_virtual/headers2.js +0 -6
- package/dist/cjs/_virtual/headers2.js.map +0 -1
- package/dist/cjs/_virtual/headers3.js +0 -6
- package/dist/cjs/_virtual/headers3.js.map +0 -1
- package/dist/cjs/_virtual/headers4.js +0 -6
- package/dist/cjs/_virtual/headers4.js.map +0 -1
- package/dist/cjs/_virtual/hooks-client-context.shared-runtime.js +0 -6
- package/dist/cjs/_virtual/hooks-client-context.shared-runtime.js.map +0 -1
- package/dist/cjs/_virtual/hooks-server-context.js +0 -6
- package/dist/cjs/_virtual/hooks-server-context.js.map +0 -1
- package/dist/cjs/_virtual/http-access-fallback.js +0 -6
- package/dist/cjs/_virtual/http-access-fallback.js.map +0 -1
- package/dist/cjs/_virtual/invariant-error.js +0 -6
- package/dist/cjs/_virtual/invariant-error.js.map +0 -1
- package/dist/cjs/_virtual/is-next-router-error.js +0 -6
- package/dist/cjs/_virtual/is-next-router-error.js.map +0 -1
- package/dist/cjs/_virtual/is-postpone.js +0 -6
- package/dist/cjs/_virtual/is-postpone.js.map +0 -1
- package/dist/cjs/_virtual/navigation.react-server.js +0 -6
- package/dist/cjs/_virtual/navigation.react-server.js.map +0 -1
- package/dist/cjs/_virtual/not-found.js +0 -6
- package/dist/cjs/_virtual/not-found.js.map +0 -1
- package/dist/cjs/_virtual/redirect-error.js +0 -6
- package/dist/cjs/_virtual/redirect-error.js.map +0 -1
- package/dist/cjs/_virtual/redirect-status-code.js +0 -6
- package/dist/cjs/_virtual/redirect-status-code.js.map +0 -1
- package/dist/cjs/_virtual/redirect.js +0 -6
- package/dist/cjs/_virtual/redirect.js.map +0 -1
- package/dist/cjs/_virtual/reflect.js +0 -6
- package/dist/cjs/_virtual/reflect.js.map +0 -1
- package/dist/cjs/_virtual/request-cookies.js +0 -6
- package/dist/cjs/_virtual/request-cookies.js.map +0 -1
- package/dist/cjs/_virtual/router-context.shared-runtime.js +0 -6
- package/dist/cjs/_virtual/router-context.shared-runtime.js.map +0 -1
- package/dist/cjs/_virtual/scheduler.js +0 -6
- package/dist/cjs/_virtual/scheduler.js.map +0 -1
- package/dist/cjs/_virtual/segment.js +0 -6
- package/dist/cjs/_virtual/segment.js.map +0 -1
- package/dist/cjs/_virtual/server-inserted-html.shared-runtime.js +0 -6
- package/dist/cjs/_virtual/server-inserted-html.shared-runtime.js.map +0 -1
- package/dist/cjs/_virtual/static-generation-bailout.js +0 -6
- package/dist/cjs/_virtual/static-generation-bailout.js.map +0 -1
- package/dist/cjs/_virtual/unauthorized.js +0 -6
- package/dist/cjs/_virtual/unauthorized.js.map +0 -1
- package/dist/cjs/_virtual/unrecognized-action-error.js +0 -6
- package/dist/cjs/_virtual/unrecognized-action-error.js.map +0 -1
- package/dist/cjs/_virtual/unstable-rethrow.browser.js +0 -6
- package/dist/cjs/_virtual/unstable-rethrow.browser.js.map +0 -1
- package/dist/cjs/_virtual/unstable-rethrow.js +0 -6
- package/dist/cjs/_virtual/unstable-rethrow.js.map +0 -1
- package/dist/cjs/_virtual/unstable-rethrow.server.js +0 -6
- package/dist/cjs/_virtual/unstable-rethrow.server.js.map +0 -1
- package/dist/cjs/_virtual/utils.js +0 -6
- package/dist/cjs/_virtual/utils.js.map +0 -1
- package/dist/cjs/_virtual/work-async-storage-instance.js +0 -6
- package/dist/cjs/_virtual/work-async-storage-instance.js.map +0 -1
- package/dist/cjs/_virtual/work-async-storage.external.js +0 -6
- package/dist/cjs/_virtual/work-async-storage.external.js.map +0 -1
- package/dist/cjs/_virtual/work-unit-async-storage-instance.js +0 -6
- package/dist/cjs/_virtual/work-unit-async-storage-instance.js.map +0 -1
- package/dist/cjs/_virtual/work-unit-async-storage.external.js +0 -6
- package/dist/cjs/_virtual/work-unit-async-storage.external.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/errors/CombinedProtocolErrors.js +0 -85
- package/dist/cjs/node_modules/@apollo/client/errors/CombinedProtocolErrors.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/errors/ServerError.js +0 -80
- package/dist/cjs/node_modules/@apollo/client/errors/ServerError.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/errors/ServerParseError.js +0 -77
- package/dist/cjs/node_modules/@apollo/client/errors/ServerParseError.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/errors/index.js +0 -9
- package/dist/cjs/node_modules/@apollo/client/errors/index.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/errors/utils.js +0 -19
- package/dist/cjs/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/client-awareness/ClientAwarenessLink.js +0 -91
- package/dist/cjs/node_modules/@apollo/client/link/client-awareness/ClientAwarenessLink.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/core/ApolloLink.js +0 -262
- package/dist/cjs/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/http/BaseHttpLink.js +0 -155
- package/dist/cjs/node_modules/@apollo/client/link/http/BaseHttpLink.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/http/HttpLink.js +0 -41
- package/dist/cjs/node_modules/@apollo/client/link/http/HttpLink.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +0 -168
- package/dist/cjs/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/http/rewriteURIForGET.js +0 -56
- package/dist/cjs/node_modules/@apollo/client/link/http/rewriteURIForGET.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js +0 -106
- package/dist/cjs/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/http/selectURI.js +0 -18
- package/dist/cjs/node_modules/@apollo/client/link/http/selectURI.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/utils/createOperation.js +0 -40
- package/dist/cjs/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/link/utils/filterOperationVariables.js +0 -27
- package/dist/cjs/node_modules/@apollo/client/link/utils/filterOperationVariables.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/caching/sizes.js +0 -31
- package/dist/cjs/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/environment/index.production.js +0 -6
- package/dist/cjs/node_modules/@apollo/client/utilities/environment/index.production.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/graphql/operations.js +0 -65
- package/dist/cjs/node_modules/@apollo/client/utilities/graphql/operations.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/graphql/print.js +0 -31
- package/dist/cjs/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.js +0 -49
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -62
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/compact.js +0 -27
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/compact.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -16
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -13
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -21
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -11
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -13
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -19
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/memoize.js +0 -33
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -20
- package/dist/cjs/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/utilities/invariant/index.js +0 -94
- package/dist/cjs/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/cjs/node_modules/@apollo/client/version.js +0 -6
- package/dist/cjs/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -19
- package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +0 -1
- package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -51
- package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +0 -1
- package/dist/cjs/node_modules/@wry/caches/lib/weak.js +0 -147
- package/dist/cjs/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/cjs/node_modules/@wry/trie/lib/index.js +0 -86
- package/dist/cjs/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/graphql/error/GraphQLError.js +0 -232
- package/dist/cjs/node_modules/graphql/error/GraphQLError.js.map +0 -1
- package/dist/cjs/node_modules/graphql/error/syntaxError.js +0 -18
- package/dist/cjs/node_modules/graphql/error/syntaxError.js.map +0 -1
- package/dist/cjs/node_modules/graphql/jsutils/devAssert.js +0 -12
- package/dist/cjs/node_modules/graphql/jsutils/devAssert.js.map +0 -1
- package/dist/cjs/node_modules/graphql/jsutils/inspect.js +0 -120
- package/dist/cjs/node_modules/graphql/jsutils/inspect.js.map +0 -1
- package/dist/cjs/node_modules/graphql/jsutils/instanceOf.js +0 -63
- package/dist/cjs/node_modules/graphql/jsutils/instanceOf.js.map +0 -1
- package/dist/cjs/node_modules/graphql/jsutils/invariant.js +0 -14
- package/dist/cjs/node_modules/graphql/jsutils/invariant.js.map +0 -1
- package/dist/cjs/node_modules/graphql/jsutils/isObjectLike.js +0 -12
- package/dist/cjs/node_modules/graphql/jsutils/isObjectLike.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/ast.js +0 -227
- package/dist/cjs/node_modules/graphql/language/ast.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/blockString.js +0 -114
- package/dist/cjs/node_modules/graphql/language/blockString.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/characterClasses.js +0 -73
- package/dist/cjs/node_modules/graphql/language/characterClasses.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/directiveLocation.js +0 -34
- package/dist/cjs/node_modules/graphql/language/directiveLocation.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/kinds.js +0 -63
- package/dist/cjs/node_modules/graphql/language/kinds.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/lexer.js +0 -925
- package/dist/cjs/node_modules/graphql/language/lexer.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/location.js +0 -36
- package/dist/cjs/node_modules/graphql/language/location.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/parser.js +0 -1582
- package/dist/cjs/node_modules/graphql/language/parser.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/printLocation.js +0 -72
- package/dist/cjs/node_modules/graphql/language/printLocation.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/printString.js +0 -181
- package/dist/cjs/node_modules/graphql/language/printString.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/printer.js +0 -374
- package/dist/cjs/node_modules/graphql/language/printer.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/source.js +0 -56
- package/dist/cjs/node_modules/graphql/language/source.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/tokenKind.js +0 -39
- package/dist/cjs/node_modules/graphql/language/tokenKind.js.map +0 -1
- package/dist/cjs/node_modules/graphql/language/visitor.js +0 -274
- package/dist/cjs/node_modules/graphql/language/visitor.js.map +0 -1
- package/dist/cjs/node_modules/graphql-tag/lib/index.js +0 -129
- package/dist/cjs/node_modules/graphql-tag/lib/index.js.map +0 -1
- package/dist/cjs/node_modules/next/compat/router.js +0 -16
- package/dist/cjs/node_modules/next/compat/router.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/compat/router.js +0 -40
- package/dist/cjs/node_modules/next/dist/client/compat/router.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/app-router-headers.js +0 -109
- package/dist/cjs/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/bailout-to-client-rendering.js +0 -58
- package/dist/cjs/node_modules/next/dist/client/components/bailout-to-client-rendering.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/forbidden.js +0 -65
- package/dist/cjs/node_modules/next/dist/client/components/forbidden.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/hooks-server-context.js +0 -53
- package/dist/cjs/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -80
- package/dist/cjs/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/is-next-router-error.js +0 -40
- package/dist/cjs/node_modules/next/dist/client/components/is-next-router-error.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/navigation.js +0 -192
- package/dist/cjs/node_modules/next/dist/client/components/navigation.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/navigation.react-server.js +0 -102
- package/dist/cjs/node_modules/next/dist/client/components/navigation.react-server.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/not-found.js +0 -59
- package/dist/cjs/node_modules/next/dist/client/components/not-found.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/redirect-error.js +0 -63
- package/dist/cjs/node_modules/next/dist/client/components/redirect-error.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/redirect-status-code.js +0 -39
- package/dist/cjs/node_modules/next/dist/client/components/redirect-status-code.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/redirect.js +0 -104
- package/dist/cjs/node_modules/next/dist/client/components/redirect.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +0 -36
- package/dist/cjs/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/static-generation-bailout.js +0 -53
- package/dist/cjs/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/unauthorized.js +0 -66
- package/dist/cjs/node_modules/next/dist/client/components/unauthorized.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -50
- package/dist/cjs/node_modules/next/dist/client/components/unrecognized-action-error.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -45
- package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.browser.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.js +0 -44
- package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -53
- package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.server.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -343
- package/dist/cjs/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/lib/framework/boundary-constants.js +0 -45
- package/dist/cjs/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/lib/scheduler.js +0 -73
- package/dist/cjs/node_modules/next/dist/lib/scheduler.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -30
- package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -29
- package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +0 -30
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +0 -29
- package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage.external.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/async-local-storage.js +0 -85
- package/dist/cjs/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -656
- package/dist/cjs/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -30
- package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -29
- package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -30
- package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -212
- package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +0 -112
- package/dist/cjs/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -92
- package/dist/cjs/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -31
- package/dist/cjs/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/request/cookies.js +0 -415
- package/dist/cjs/node_modules/next/dist/server/request/cookies.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/request/draft-mode.js +0 -293
- package/dist/cjs/node_modules/next/dist/server/request/draft-mode.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/request/headers.js +0 -366
- package/dist/cjs/node_modules/next/dist/server/request/headers.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/request/utils.js +0 -73
- package/dist/cjs/node_modules/next/dist/server/request/utils.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -204
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -45
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -218
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -40
- package/dist/cjs/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -60
- package/dist/cjs/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -49
- package/dist/cjs/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/invariant-error.js +0 -33
- package/dist/cjs/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -47
- package/dist/cjs/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -35
- package/dist/cjs/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/segment.js +0 -61
- package/dist/cjs/node_modules/next/dist/shared/lib/segment.js.map +0 -1
- package/dist/cjs/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -48
- package/dist/cjs/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +0 -1
- package/dist/cjs/node_modules/next/headers.js +0 -20
- package/dist/cjs/node_modules/next/headers.js.map +0 -1
- package/dist/cjs/node_modules/next/navigation.js +0 -16
- package/dist/cjs/node_modules/next/navigation.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -106
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -158
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -148
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/config.js +0 -7
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -20
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -6
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -17
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -15
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -10
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -18
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -14
- package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/cjs/node_modules/tslib/tslib.es6.js +0 -93
- package/dist/cjs/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/components/Panel.d.ts +0 -4
- package/dist/components/panel/Panel.d.ts +0 -7
- package/dist/components/panel/PanelAvatar.d.ts +0 -7
- package/dist/components/panel/PanelDivider.d.ts +0 -5
- package/dist/components/panel/PanelHeader.d.ts +0 -7
- package/dist/components/panel/PanelItem.d.ts +0 -9
- package/dist/components/panel/PanelListItems.d.ts +0 -12
- package/dist/components/panel/index.d.ts +0 -9
- package/dist/components/panel/panel.actions.d.ts +0 -3
- package/dist/components/panel/panel.store.d.ts +0 -5
- package/dist/components/panel/panel.types.d.ts +0 -7
- package/dist/components/session/SessionProvider.d.ts +0 -8
- package/dist/components/session/SessionUserContext.d.ts +0 -3
- package/dist/components/session/SessionUserProvider.d.ts +0 -10
- package/dist/components/session/index.d.ts +0 -1
- package/dist/components/session/session.constants.d.ts +0 -3
- package/dist/components/session/session.hooks.d.ts +0 -1
- package/dist/components/session/session.types.d.ts +0 -6
- package/dist/config/config.types.d.ts +0 -4
- package/dist/esm/_virtual/_interop_require_default.js +0 -4
- package/dist/esm/_virtual/_interop_require_default.js.map +0 -1
- package/dist/esm/_virtual/_interop_require_wildcard.js +0 -4
- package/dist/esm/_virtual/_interop_require_wildcard.js.map +0 -1
- package/dist/esm/_virtual/action-async-storage-instance.js +0 -4
- package/dist/esm/_virtual/action-async-storage-instance.js.map +0 -1
- package/dist/esm/_virtual/action-async-storage.external.js +0 -4
- package/dist/esm/_virtual/action-async-storage.external.js.map +0 -1
- package/dist/esm/_virtual/after-task-async-storage-instance.js +0 -4
- package/dist/esm/_virtual/after-task-async-storage-instance.js.map +0 -1
- package/dist/esm/_virtual/after-task-async-storage.external.js +0 -4
- package/dist/esm/_virtual/after-task-async-storage.external.js.map +0 -1
- package/dist/esm/_virtual/app-router-context.shared-runtime.js +0 -4
- package/dist/esm/_virtual/app-router-context.shared-runtime.js.map +0 -1
- package/dist/esm/_virtual/app-router-headers.js +0 -4
- package/dist/esm/_virtual/app-router-headers.js.map +0 -1
- package/dist/esm/_virtual/async-local-storage.js +0 -4
- package/dist/esm/_virtual/async-local-storage.js.map +0 -1
- package/dist/esm/_virtual/bailout-to-client-rendering.js +0 -4
- package/dist/esm/_virtual/bailout-to-client-rendering.js.map +0 -1
- package/dist/esm/_virtual/bailout-to-csr.js +0 -4
- package/dist/esm/_virtual/bailout-to-csr.js.map +0 -1
- package/dist/esm/_virtual/boundary-constants.js +0 -4
- package/dist/esm/_virtual/boundary-constants.js.map +0 -1
- package/dist/esm/_virtual/cookies.js +0 -4
- package/dist/esm/_virtual/cookies.js.map +0 -1
- package/dist/esm/_virtual/cookies2.js +0 -4
- package/dist/esm/_virtual/cookies2.js.map +0 -1
- package/dist/esm/_virtual/create-deduped-by-callsite-server-error-logger.js +0 -4
- package/dist/esm/_virtual/create-deduped-by-callsite-server-error-logger.js.map +0 -1
- package/dist/esm/_virtual/draft-mode.js +0 -4
- package/dist/esm/_virtual/draft-mode.js.map +0 -1
- package/dist/esm/_virtual/dynamic-rendering-utils.js +0 -4
- package/dist/esm/_virtual/dynamic-rendering-utils.js.map +0 -1
- package/dist/esm/_virtual/dynamic-rendering.js +0 -4
- package/dist/esm/_virtual/dynamic-rendering.js.map +0 -1
- package/dist/esm/_virtual/forbidden.js +0 -4
- package/dist/esm/_virtual/forbidden.js.map +0 -1
- package/dist/esm/_virtual/get-segment-value.js +0 -4
- package/dist/esm/_virtual/get-segment-value.js.map +0 -1
- package/dist/esm/_virtual/headers.js +0 -6
- package/dist/esm/_virtual/headers.js.map +0 -1
- package/dist/esm/_virtual/headers2.js +0 -4
- package/dist/esm/_virtual/headers2.js.map +0 -1
- package/dist/esm/_virtual/headers3.js +0 -4
- package/dist/esm/_virtual/headers3.js.map +0 -1
- package/dist/esm/_virtual/headers4.js +0 -4
- package/dist/esm/_virtual/headers4.js.map +0 -1
- package/dist/esm/_virtual/hooks-client-context.shared-runtime.js +0 -4
- package/dist/esm/_virtual/hooks-client-context.shared-runtime.js.map +0 -1
- package/dist/esm/_virtual/hooks-server-context.js +0 -4
- package/dist/esm/_virtual/hooks-server-context.js.map +0 -1
- package/dist/esm/_virtual/http-access-fallback.js +0 -4
- package/dist/esm/_virtual/http-access-fallback.js.map +0 -1
- package/dist/esm/_virtual/invariant-error.js +0 -4
- package/dist/esm/_virtual/invariant-error.js.map +0 -1
- package/dist/esm/_virtual/is-next-router-error.js +0 -4
- package/dist/esm/_virtual/is-next-router-error.js.map +0 -1
- package/dist/esm/_virtual/is-postpone.js +0 -4
- package/dist/esm/_virtual/is-postpone.js.map +0 -1
- package/dist/esm/_virtual/navigation.react-server.js +0 -4
- package/dist/esm/_virtual/navigation.react-server.js.map +0 -1
- package/dist/esm/_virtual/not-found.js +0 -4
- package/dist/esm/_virtual/not-found.js.map +0 -1
- package/dist/esm/_virtual/redirect-error.js +0 -4
- package/dist/esm/_virtual/redirect-error.js.map +0 -1
- package/dist/esm/_virtual/redirect-status-code.js +0 -4
- package/dist/esm/_virtual/redirect-status-code.js.map +0 -1
- package/dist/esm/_virtual/redirect.js +0 -4
- package/dist/esm/_virtual/redirect.js.map +0 -1
- package/dist/esm/_virtual/reflect.js +0 -4
- package/dist/esm/_virtual/reflect.js.map +0 -1
- package/dist/esm/_virtual/request-cookies.js +0 -4
- package/dist/esm/_virtual/request-cookies.js.map +0 -1
- package/dist/esm/_virtual/router-context.shared-runtime.js +0 -4
- package/dist/esm/_virtual/router-context.shared-runtime.js.map +0 -1
- package/dist/esm/_virtual/scheduler.js +0 -4
- package/dist/esm/_virtual/scheduler.js.map +0 -1
- package/dist/esm/_virtual/segment.js +0 -4
- package/dist/esm/_virtual/segment.js.map +0 -1
- package/dist/esm/_virtual/server-inserted-html.shared-runtime.js +0 -4
- package/dist/esm/_virtual/server-inserted-html.shared-runtime.js.map +0 -1
- package/dist/esm/_virtual/static-generation-bailout.js +0 -4
- package/dist/esm/_virtual/static-generation-bailout.js.map +0 -1
- package/dist/esm/_virtual/unauthorized.js +0 -4
- package/dist/esm/_virtual/unauthorized.js.map +0 -1
- package/dist/esm/_virtual/unrecognized-action-error.js +0 -4
- package/dist/esm/_virtual/unrecognized-action-error.js.map +0 -1
- package/dist/esm/_virtual/unstable-rethrow.browser.js +0 -4
- package/dist/esm/_virtual/unstable-rethrow.browser.js.map +0 -1
- package/dist/esm/_virtual/unstable-rethrow.js +0 -4
- package/dist/esm/_virtual/unstable-rethrow.js.map +0 -1
- package/dist/esm/_virtual/unstable-rethrow.server.js +0 -4
- package/dist/esm/_virtual/unstable-rethrow.server.js.map +0 -1
- package/dist/esm/_virtual/utils.js +0 -4
- package/dist/esm/_virtual/utils.js.map +0 -1
- package/dist/esm/_virtual/work-async-storage-instance.js +0 -4
- package/dist/esm/_virtual/work-async-storage-instance.js.map +0 -1
- package/dist/esm/_virtual/work-async-storage.external.js +0 -4
- package/dist/esm/_virtual/work-async-storage.external.js.map +0 -1
- package/dist/esm/_virtual/work-unit-async-storage-instance.js +0 -4
- package/dist/esm/_virtual/work-unit-async-storage-instance.js.map +0 -1
- package/dist/esm/_virtual/work-unit-async-storage.external.js +0 -4
- package/dist/esm/_virtual/work-unit-async-storage.external.js.map +0 -1
- package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -17
- package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +0 -1
- package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -49
- package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +0 -1
- package/dist/esm/node_modules/next/compat/router.js +0 -14
- package/dist/esm/node_modules/next/compat/router.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/compat/router.js +0 -38
- package/dist/esm/node_modules/next/dist/client/compat/router.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/app-router-headers.js +0 -107
- package/dist/esm/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/bailout-to-client-rendering.js +0 -56
- package/dist/esm/node_modules/next/dist/client/components/bailout-to-client-rendering.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/forbidden.js +0 -63
- package/dist/esm/node_modules/next/dist/client/components/forbidden.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/hooks-server-context.js +0 -51
- package/dist/esm/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -78
- package/dist/esm/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/is-next-router-error.js +0 -38
- package/dist/esm/node_modules/next/dist/client/components/is-next-router-error.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/navigation.js +0 -190
- package/dist/esm/node_modules/next/dist/client/components/navigation.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/navigation.react-server.js +0 -100
- package/dist/esm/node_modules/next/dist/client/components/navigation.react-server.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/not-found.js +0 -57
- package/dist/esm/node_modules/next/dist/client/components/not-found.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/redirect-error.js +0 -61
- package/dist/esm/node_modules/next/dist/client/components/redirect-error.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/redirect-status-code.js +0 -37
- package/dist/esm/node_modules/next/dist/client/components/redirect-status-code.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/redirect.js +0 -102
- package/dist/esm/node_modules/next/dist/client/components/redirect.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +0 -34
- package/dist/esm/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/static-generation-bailout.js +0 -51
- package/dist/esm/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/unauthorized.js +0 -64
- package/dist/esm/node_modules/next/dist/client/components/unauthorized.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -48
- package/dist/esm/node_modules/next/dist/client/components/unrecognized-action-error.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -43
- package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.browser.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.js +0 -42
- package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.js.map +0 -1
- package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -51
- package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.server.js.map +0 -1
- package/dist/esm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -341
- package/dist/esm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
- package/dist/esm/node_modules/next/dist/lib/framework/boundary-constants.js +0 -43
- package/dist/esm/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
- package/dist/esm/node_modules/next/dist/lib/scheduler.js +0 -71
- package/dist/esm/node_modules/next/dist/lib/scheduler.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -28
- package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -27
- package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +0 -28
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +0 -27
- package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage.external.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
- package/dist/esm/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -654
- package/dist/esm/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -28
- package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -27
- package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -28
- package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -210
- package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +0 -110
- package/dist/esm/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
- package/dist/esm/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -29
- package/dist/esm/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/request/cookies.js +0 -413
- package/dist/esm/node_modules/next/dist/server/request/cookies.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/request/draft-mode.js +0 -291
- package/dist/esm/node_modules/next/dist/server/request/draft-mode.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/request/headers.js +0 -364
- package/dist/esm/node_modules/next/dist/server/request/headers.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/request/utils.js +0 -71
- package/dist/esm/node_modules/next/dist/server/request/utils.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -202
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -43
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -216
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +0 -1
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -38
- package/dist/esm/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -58
- package/dist/esm/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -47
- package/dist/esm/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/invariant-error.js +0 -31
- package/dist/esm/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -45
- package/dist/esm/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
- package/dist/esm/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/segment.js +0 -59
- package/dist/esm/node_modules/next/dist/shared/lib/segment.js.map +0 -1
- package/dist/esm/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -46
- package/dist/esm/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +0 -1
- package/dist/esm/node_modules/next/headers.js +0 -18
- package/dist/esm/node_modules/next/headers.js.map +0 -1
- package/dist/esm/node_modules/next/navigation.js +0 -14
- package/dist/esm/node_modules/next/navigation.js.map +0 -1
- package/dist/index.esm.js +0 -28936
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -28966
- package/dist/index.js.map +0 -1
- package/dist/shared/apollo/apollo.client.d.ts +0 -7
- package/dist/shared/mui/theme.d.ts +0 -1
- package/dist/shared/types/generated.d.ts +0 -1480
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelItem.js","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["'use client'\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelItem.js","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["'use client'\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AAkBO;;AAgBP;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
3
4
|
import { PanelDivider } from './PanelDivider.js';
|
|
4
5
|
import { theme } from '../../shared/mui/theme.js';
|
|
5
6
|
import { PanelItem } from './PanelItem.js';
|
|
@@ -13,7 +14,7 @@ const PanelListItems = ({ dividerProps, containerProps, listProps, titleProps, r
|
|
|
13
14
|
}, listItemTextProps: {
|
|
14
15
|
primary: route.name,
|
|
15
16
|
primaryTypographyProps: { sx: { fontWeight: 400, fontSize: 16 } },
|
|
16
|
-
} }))) })] }));
|
|
17
|
+
} }, index))) })] }));
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export { PanelListItems };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelListItems.js","sources":["../../../../src/components/panel/PanelListItems.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport {\n ListProps,\n Box,\n Typography,\n DividerProps,\n BoxProps,\n List,\n TypographyProps,\n} from '@mui/material';\nimport { PanelDivider } from './PanelDivider';\nimport { theme } from '../../shared/mui/theme';\nimport { PanelListRoute } from './panel.types';\nimport { PanelItem } from './PanelItem';\n\nexport interface PanelListItems {\n dividerProps?: DividerProps;\n containerProps?: BoxProps;\n listProps?: ListProps;\n routes?: PanelListRoute[];\n titleProps?: TypographyProps;\n title?: string;\n}\n\nexport const PanelListItems: React.FC<PanelListItems> = ({\n dividerProps,\n containerProps,\n listProps,\n titleProps,\n routes = [],\n title = 'Title',\n}) => {\n return (\n <Box {...containerProps}>\n {title ? (\n <>\n <Typography\n px={1.5}\n mb={1}\n lineHeight={1.2}\n fontWeight=\"bold\"\n fontSize={16}\n {...titleProps}>\n {title}\n </Typography>\n <PanelDivider {...dividerProps} />\n </>\n ) : null}\n\n <List disablePadding sx={{ marginBottom: theme.spacing(1) }} {...listProps}>\n {routes.map((route, index) => (\n <PanelItem\n listItemProps={{\n href: route.path,\n }}\n listItemTextProps={{\n primary: route.name,\n primaryTypographyProps: { sx: { fontWeight: 400, fontSize: 16 } },\n }}\n />\n ))}\n </List>\n </Box>\n );\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelListItems.js","sources":["../../../../src/components/panel/PanelListItems.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport {\n ListProps,\n Box,\n Typography,\n DividerProps,\n BoxProps,\n List,\n TypographyProps,\n} from '@mui/material';\nimport { PanelDivider } from './PanelDivider';\nimport { theme } from '../../shared/mui/theme';\nimport { PanelListRoute } from './panel.types';\nimport { PanelItem } from './PanelItem';\n\nexport interface PanelListItems {\n dividerProps?: DividerProps;\n containerProps?: BoxProps;\n listProps?: ListProps;\n routes?: PanelListRoute[];\n titleProps?: TypographyProps;\n title?: string;\n}\n\nexport const PanelListItems: React.FC<PanelListItems> = ({\n dividerProps,\n containerProps,\n listProps,\n titleProps,\n routes = [],\n title = 'Title',\n}) => {\n return (\n <Box {...containerProps}>\n {title ? (\n <>\n <Typography\n px={1.5}\n mb={1}\n lineHeight={1.2}\n fontWeight=\"bold\"\n fontSize={16}\n {...titleProps}>\n {title}\n </Typography>\n <PanelDivider {...dividerProps} />\n </>\n ) : null}\n\n <List disablePadding sx={{ marginBottom: theme.spacing(1) }} {...listProps}>\n {routes.map((route, index) => (\n <PanelItem\n key={index}\n listItemProps={{\n href: route.path,\n }}\n listItemTextProps={{\n primary: route.name,\n primaryTypographyProps: { sx: { fontWeight: 400, fontSize: 16 } },\n }}\n />\n ))}\n </List>\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAiCE;;AAuBW;;AAGC;AACD;AAMb;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
2
3
|
import { SessionUserProvider } from './SessionUserProvider.js';
|
|
3
4
|
import { getUserServer } from './session.server.actions.js';
|
|
4
5
|
import AppRouterCacheProvider from '../../node_modules/@mui/material-nextjs/esm/v13-appRouter/appRouterV13.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionProvider.js","sources":["../../../../src/components/session/SessionProvider.tsx"],"sourcesContent":["import React from 'react';\nimport { Config } from '../../config/config.types';\nimport { SessionUserProvider } from './SessionUserProvider';\nimport { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter';\nimport { getUserServer } from './session.server.actions';\n\ntype SessionProviderProps = {\n children: React.ReactNode;\n config: Config;\n};\n\nexport const SessionProvider: React.FC<SessionProviderProps> = async ({ children, config }) => {\n const user = await getUserServer(config);\n console.log({ user });\n return (\n <AppRouterCacheProvider>\n <SessionUserProvider initial={user} config={config}>\n {children}\n </SessionUserProvider>\n </AppRouterCacheProvider>\n );\n};\n"],"names":["_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionProvider.js","sources":["../../../../src/components/session/SessionProvider.tsx"],"sourcesContent":["import React from 'react';\nimport { Config } from '../../config/config.types';\nimport { SessionUserProvider } from './SessionUserProvider';\nimport { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter';\nimport { getUserServer } from './session.server.actions';\n\ntype SessionProviderProps = {\n children: React.ReactNode;\n config: Config;\n};\n\nexport const SessionProvider: React.FC<SessionProviderProps> = async ({ children, config }) => {\n const user = await getUserServer(config);\n console.log({ user });\n return (\n <AppRouterCacheProvider>\n <SessionUserProvider initial={user} config={config}>\n {children}\n </SessionUserProvider>\n </AppRouterCacheProvider>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;AAWO,MAAM,eAAe,GAAmC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAI;AAC5F,IAAA,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC;AACxC,IAAA,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;AACrB,IAAA,QACEA,GAAA,CAAC,sBAAsB,cACrBA,GAAA,CAAC,mBAAmB,IAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAA,QAAA,EAC/C,QAAQ,EAAA,CACW,EAAA,CACC;AAE7B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionUserContext.js","sources":["../../../../src/components/session/SessionUserContext.tsx"],"sourcesContent":["'use client'\nimport { createContext } from 'react';\n\nimport { SessionContextDefaultValues } from './session.types';\nimport { DEFAULT_USER_CONTEXT } from './session.constants';\n\nexport const Context = createContext<SessionContextDefaultValues>(DEFAULT_USER_CONTEXT);\n\nexport const { Provider } = Context;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionUserContext.js","sources":["../../../../src/components/session/SessionUserContext.tsx"],"sourcesContent":["'use client'\nimport { createContext } from 'react';\n\nimport { SessionContextDefaultValues } from './session.types';\nimport { DEFAULT_USER_CONTEXT } from './session.constants';\n\nexport const Context = createContext<SessionContextDefaultValues>(DEFAULT_USER_CONTEXT);\n\nexport const { Provider } = Context;\n"],"names":[],"mappings":";;;;;;AAQO;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
+
import '../../shared/types/generated.js';
|
|
4
5
|
import { Provider } from './SessionUserContext.js';
|
|
5
6
|
import { theme } from '../../shared/mui/theme.js';
|
|
6
7
|
import ThemeProvider from '../../node_modules/@mui/material/esm/styles/ThemeProvider.js';
|
|
@@ -11,6 +12,7 @@ const SessionUserProvider = ({ children, initial, config, }) => {
|
|
|
11
12
|
const values = {
|
|
12
13
|
user,
|
|
13
14
|
config,
|
|
15
|
+
subscription: { id: 1 },
|
|
14
16
|
};
|
|
15
17
|
return (jsx(Provider, { value: values, children: jsxs(ThemeProvider, { theme: theme, children: [jsx(CssBaseline, {}), children] }) }));
|
|
16
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionUserProvider.js","sources":["../../../../src/components/session/SessionUserProvider.tsx"],"sourcesContent":["'use client';\nimport React, { useState } from 'react';\nimport { User } from '../../shared/types/generated';\nimport { Provider } from './SessionUserContext';\nimport { SessionContextDefaultValues } from './session.types';\nimport { Config } from '../../config/config.types';\nimport { ThemeProvider } from '@mui/material/styles';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport { theme } from '../../shared/mui/theme';\n\ntype SessionUserProviderProps = {\n children: React.ReactNode;\n initial: User | null | undefined;\n config: Config;\n};\n\nexport const SessionUserProvider: React.FC<SessionUserProviderProps> = ({\n children,\n initial,\n config,\n}) => {\n const [user] = useState<User | null | undefined>(initial);\n\n const values: SessionContextDefaultValues = {\n user,\n config,\n };\n return (\n <Provider value={values}>\n <ThemeProvider theme={theme}>\n <CssBaseline />\n\n {children}\n </ThemeProvider>\n </Provider>\n );\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionUserProvider.js","sources":["../../../../src/components/session/SessionUserProvider.tsx"],"sourcesContent":["'use client';\nimport React, { useState } from 'react';\nimport { User } from '../../shared/types/generated';\nimport { Provider } from './SessionUserContext';\nimport { SessionContextDefaultValues } from './session.types';\nimport { Config } from '../../config/config.types';\nimport { ThemeProvider } from '@mui/material/styles';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport { theme } from '../../shared/mui/theme';\n\ntype SessionUserProviderProps = {\n children: React.ReactNode;\n initial: User | null | undefined;\n config: Config;\n};\n\nexport const SessionUserProvider: React.FC<SessionUserProviderProps> = ({\n children,\n initial,\n config,\n}) => {\n const [user] = useState<User | null | undefined>(initial);\n\n const values: SessionContextDefaultValues = {\n user,\n config,\n subscription: { id: 1 },\n };\n return (\n <Provider value={values}>\n <ThemeProvider theme={theme}>\n <CssBaseline />\n\n {children}\n </ThemeProvider>\n </Provider>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAgBO;;AAOL;;;AAGE;;;AAWJ;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Panel } from './components/panel/Panel.js';
|
|
2
2
|
export { PanelAvatar } from './components/panel/PanelAvatar.js';
|
|
3
|
+
export { PanelHeader } from './components/panel/PanelHeader.js';
|
|
3
4
|
export { PanelDivider } from './components/panel/PanelDivider.js';
|
|
4
5
|
export { PanelButton } from './components/panel/PanelButton.js';
|
|
5
6
|
export { PanelFooter } from './components/panel/PanelFooter.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exports as hooks } from '../../../../_virtual/hooks.js';
|
|
2
|
-
import
|
|
2
|
+
import require$$0 from '../../../../_virtual/_react.js';
|
|
3
3
|
|
|
4
4
|
var hasRequiredHooks;
|
|
5
5
|
|
|
@@ -28,7 +28,7 @@ function requireHooks () {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(hooks, "__esModule", { value: true });
|
|
30
30
|
hooks.useCallAction = hooks.useFetchAction = hooks.useEvent = hooks.useSubscription = void 0;
|
|
31
|
-
var react_1 =
|
|
31
|
+
var react_1 = require$$0;
|
|
32
32
|
/**
|
|
33
33
|
* React Hook to subscribe to an specific event.
|
|
34
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":["../../../../../../node_modules/@cobuildlab/react-simple-state/lib/hooks.js"],"sourcesContent":["\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useCallAction = exports.useFetchAction = exports.useEvent = exports.useSubscription = void 0;\nvar react_1 = require(\"react\");\n/**\n * React Hook to subscribe to an specific event.\n *\n * @param {Event} event - The event to subscribe. The Event is considered constant across renders.\n * @param {Function} callback - A function to be called when the subscription gets triggered.\n * @param {any[]} deps - List of dependencies for the callback. Follow the same rules of useEffect.\n * @returns {void} - Void hook.\n */\nfunction useSubscription(event, callback, deps) {\n if (deps === void 0) { deps = undefined; }\n var callbackRef = (0, react_1.useRef)(callback);\n callbackRef.current = callback;\n if (deps) {\n console.warn(\"Deps param has been deprecated, it is not useful anymore.\");\n }\n (0, react_1.useEffect)(function () {\n var subscriptionCallback = function (eventData) {\n callbackRef.current(eventData);\n };\n var subscription = event.subscribe(subscriptionCallback);\n return function () {\n subscription.unsubscribe();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event]);\n}\nexports.useSubscription = useSubscription;\n/**\n * React Hook to subscribe to an Event.\n *\n * @param {Event} event - The event.\n * @param {object} params - Params.\n * @param {object} params.initialValue - Initial Value.\n * @param {Function} params.reducer - Reducer for transform the data.\n * @returns {object} Data object.\n */\nfunction useEvent(event, params) {\n var _a = params || {}, reducer = _a.reducer, initialValue = _a.initialValue;\n var _b = (0, react_1.useState)(function () {\n if (initialValue && event.isEmpty()) {\n return initialValue;\n }\n else if (reducer) {\n return reducer(event.get());\n }\n return event.get();\n }), value = _b[0], setValue = _b[1];\n var reducerRef = (0, react_1.useRef)(params === null || params === void 0 ? void 0 : params.reducer);\n reducerRef.current = params === null || params === void 0 ? void 0 : params.reducer;\n (0, react_1.useEffect)(function () {\n var handleStateChange = function (state) {\n var eventState = reducerRef.current\n ? reducerRef.current(state)\n : state;\n setValue(eventState);\n };\n var subscription = event.subscribe(handleStateChange);\n return function () {\n subscription.unsubscribe();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event]);\n return value;\n}\nexports.useEvent = useEvent;\n/**\n * Hook that handle fetch promise actions, like querys to database.\n * This hook uses a declarative pattern.\n *\n * @param {ActionType} action - Action to fetch.\n * @param {Array} params - Param to call the action.\n * @param {UseFetchActionOptions} options - Option to handle the actions.\n * @param {Function} options.onCompleted - A callback to be called when the promise get resolved.\n * @param {Function} options.onError - A callback to be called when an error occurs.\n * @param {Function} options.skip - To skip the fetch ultil some validation happen.\n * @returns {UseFetchActionReturn} - Hook state result.\n */\nfunction useFetchAction(action, params, options) {\n var _a = options || {}, onCompleted = _a.onCompleted, onError = _a.onError, skip = _a.skip;\n var event = action.event, errorEvent = action.errorEvent;\n var _b = (0, react_1.useState)(function () { return ({\n value: event.get(),\n loading: (options === null || options === void 0 ? void 0 : options.skip) ? false : true,\n error: null,\n }); }), _c = _b[0], value = _c.value, loading = _c.loading, error = _c.error, setState = _b[1];\n var callbacksRef = (0, react_1.useRef)({\n completed: onCompleted,\n error: onError,\n });\n callbacksRef.current = {\n completed: onCompleted,\n error: onError,\n };\n var fetch = (0, react_1.useCallback)(function () {\n setState(function (state) { return (__assign(__assign({}, state), { loading: true })); });\n action.apply(void 0, params);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, __spreadArray([action], params, true));\n (0, react_1.useEffect)(function () {\n if (skip) {\n return;\n }\n fetch();\n }, [fetch, skip]);\n (0, react_1.useEffect)(function () {\n var onSuccessCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, value: data })); });\n if (callbacksRef.current.completed)\n callbacksRef.current.completed(data);\n };\n var onErrorCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, error: data })); });\n if (callbacksRef.current.error)\n callbacksRef.current.error(data);\n };\n var successSub = event.subscribe(onSuccessCallback);\n var errorSub = errorEvent.subscribe(onErrorCallback);\n return function () {\n successSub.unsubscribe();\n errorSub.unsubscribe();\n };\n }, [event, errorEvent]);\n return [\n value,\n loading,\n {\n error: error,\n refetch: fetch,\n },\n ];\n}\nexports.useFetchAction = useFetchAction;\n/**\n * Hook that handle call promise actions, like mutations to database in a declarative way.\n *\n * @param {ActionType} action - The action to be called.\n * @param {UseActionOptions} options - Option to handle the actions.\n * @param {Function} options.onCompleted - A callback to be called when the promise get resolved.\n * @param {Function} options.onError - A callback to be called when an error occurs.\n * @returns {UseCallActionReturn} - Hook state result.\n */\nfunction useCallAction(action, options) {\n var _a = options || {}, onCompleted = _a.onCompleted, onError = _a.onError;\n var event = action.event, errorEvent = action.errorEvent;\n var _b = (0, react_1.useState)(function () { return ({\n value: event.get(),\n loading: false,\n error: null,\n }); }), _c = _b[0], value = _c.value, loading = _c.loading, error = _c.error, setState = _b[1];\n var callbacksRef = (0, react_1.useRef)({\n completed: onCompleted,\n error: onError,\n });\n callbacksRef.current = {\n completed: onCompleted,\n error: onError,\n };\n var call = (0, react_1.useCallback)(function () {\n var params = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n setState(function (state) { return (__assign(__assign({}, state), { loading: true })); });\n action.apply(void 0, params);\n }, [action]);\n (0, react_1.useEffect)(function () {\n var onSuccessCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, value: data })); });\n if (callbacksRef.current.completed)\n callbacksRef.current.completed(data);\n };\n var onErrorCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, error: data })); });\n if (callbacksRef.current.error)\n callbacksRef.current.error(data);\n };\n var successSub = event.subscribe(onSuccessCallback);\n var errorSub = errorEvent.subscribe(onErrorCallback);\n return function () {\n successSub.unsubscribe();\n errorSub.unsubscribe();\n };\n }, [event, errorEvent]);\n return [\n call,\n loading,\n {\n error: error,\n data: value,\n },\n ];\n}\nexports.useCallAction = useCallAction;\n"],"names":["this","require$$0"],"mappings":";;;;;;;;CACA,IAAI,QAAQ,GAAG,CAACA,KAAI,IAAIA,KAAI,CAAC,QAAQ,KAAK,YAAY;KAClD,QAAQ,GA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AE,CAAC;AACnH,aAAY,IAAI,YAAY,CAAC,OAAO,CAAC,KAAK;AAC1C,iBAAgB,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;SAChD,CAAS;SACD,IAAI,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;SACnD,IAAI,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC;AAC5D,SAAQ,OAAO,YAAY;aACf,UAAU,CAAC,WAAW,EAAE;aACxB,QAAQ,CAAC,WAAW,EAAE;SAClC,CAAS;AACT,KAAA,CAAK,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAC3B,KAAI,OAAO;AACX,SAAQ,IAAI;AACZ,SAAQ,OAAO;SACP;aACI,KAAK,EAAE,KAAK;aACZ,IAAI,EAAE,KAAK;UACd;MACJ;AACL,CAAA;AACA,CAAA,KAAA,CAAA,aAAqB,GAAG,aAAa;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":["../../../../../../node_modules/@cobuildlab/react-simple-state/lib/hooks.js"],"sourcesContent":["\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useCallAction = exports.useFetchAction = exports.useEvent = exports.useSubscription = void 0;\nvar react_1 = require(\"react\");\n/**\n * React Hook to subscribe to an specific event.\n *\n * @param {Event} event - The event to subscribe. The Event is considered constant across renders.\n * @param {Function} callback - A function to be called when the subscription gets triggered.\n * @param {any[]} deps - List of dependencies for the callback. Follow the same rules of useEffect.\n * @returns {void} - Void hook.\n */\nfunction useSubscription(event, callback, deps) {\n if (deps === void 0) { deps = undefined; }\n var callbackRef = (0, react_1.useRef)(callback);\n callbackRef.current = callback;\n if (deps) {\n console.warn(\"Deps param has been deprecated, it is not useful anymore.\");\n }\n (0, react_1.useEffect)(function () {\n var subscriptionCallback = function (eventData) {\n callbackRef.current(eventData);\n };\n var subscription = event.subscribe(subscriptionCallback);\n return function () {\n subscription.unsubscribe();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event]);\n}\nexports.useSubscription = useSubscription;\n/**\n * React Hook to subscribe to an Event.\n *\n * @param {Event} event - The event.\n * @param {object} params - Params.\n * @param {object} params.initialValue - Initial Value.\n * @param {Function} params.reducer - Reducer for transform the data.\n * @returns {object} Data object.\n */\nfunction useEvent(event, params) {\n var _a = params || {}, reducer = _a.reducer, initialValue = _a.initialValue;\n var _b = (0, react_1.useState)(function () {\n if (initialValue && event.isEmpty()) {\n return initialValue;\n }\n else if (reducer) {\n return reducer(event.get());\n }\n return event.get();\n }), value = _b[0], setValue = _b[1];\n var reducerRef = (0, react_1.useRef)(params === null || params === void 0 ? void 0 : params.reducer);\n reducerRef.current = params === null || params === void 0 ? void 0 : params.reducer;\n (0, react_1.useEffect)(function () {\n var handleStateChange = function (state) {\n var eventState = reducerRef.current\n ? reducerRef.current(state)\n : state;\n setValue(eventState);\n };\n var subscription = event.subscribe(handleStateChange);\n return function () {\n subscription.unsubscribe();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event]);\n return value;\n}\nexports.useEvent = useEvent;\n/**\n * Hook that handle fetch promise actions, like querys to database.\n * This hook uses a declarative pattern.\n *\n * @param {ActionType} action - Action to fetch.\n * @param {Array} params - Param to call the action.\n * @param {UseFetchActionOptions} options - Option to handle the actions.\n * @param {Function} options.onCompleted - A callback to be called when the promise get resolved.\n * @param {Function} options.onError - A callback to be called when an error occurs.\n * @param {Function} options.skip - To skip the fetch ultil some validation happen.\n * @returns {UseFetchActionReturn} - Hook state result.\n */\nfunction useFetchAction(action, params, options) {\n var _a = options || {}, onCompleted = _a.onCompleted, onError = _a.onError, skip = _a.skip;\n var event = action.event, errorEvent = action.errorEvent;\n var _b = (0, react_1.useState)(function () { return ({\n value: event.get(),\n loading: (options === null || options === void 0 ? void 0 : options.skip) ? false : true,\n error: null,\n }); }), _c = _b[0], value = _c.value, loading = _c.loading, error = _c.error, setState = _b[1];\n var callbacksRef = (0, react_1.useRef)({\n completed: onCompleted,\n error: onError,\n });\n callbacksRef.current = {\n completed: onCompleted,\n error: onError,\n };\n var fetch = (0, react_1.useCallback)(function () {\n setState(function (state) { return (__assign(__assign({}, state), { loading: true })); });\n action.apply(void 0, params);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, __spreadArray([action], params, true));\n (0, react_1.useEffect)(function () {\n if (skip) {\n return;\n }\n fetch();\n }, [fetch, skip]);\n (0, react_1.useEffect)(function () {\n var onSuccessCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, value: data })); });\n if (callbacksRef.current.completed)\n callbacksRef.current.completed(data);\n };\n var onErrorCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, error: data })); });\n if (callbacksRef.current.error)\n callbacksRef.current.error(data);\n };\n var successSub = event.subscribe(onSuccessCallback);\n var errorSub = errorEvent.subscribe(onErrorCallback);\n return function () {\n successSub.unsubscribe();\n errorSub.unsubscribe();\n };\n }, [event, errorEvent]);\n return [\n value,\n loading,\n {\n error: error,\n refetch: fetch,\n },\n ];\n}\nexports.useFetchAction = useFetchAction;\n/**\n * Hook that handle call promise actions, like mutations to database in a declarative way.\n *\n * @param {ActionType} action - The action to be called.\n * @param {UseActionOptions} options - Option to handle the actions.\n * @param {Function} options.onCompleted - A callback to be called when the promise get resolved.\n * @param {Function} options.onError - A callback to be called when an error occurs.\n * @returns {UseCallActionReturn} - Hook state result.\n */\nfunction useCallAction(action, options) {\n var _a = options || {}, onCompleted = _a.onCompleted, onError = _a.onError;\n var event = action.event, errorEvent = action.errorEvent;\n var _b = (0, react_1.useState)(function () { return ({\n value: event.get(),\n loading: false,\n error: null,\n }); }), _c = _b[0], value = _c.value, loading = _c.loading, error = _c.error, setState = _b[1];\n var callbacksRef = (0, react_1.useRef)({\n completed: onCompleted,\n error: onError,\n });\n callbacksRef.current = {\n completed: onCompleted,\n error: onError,\n };\n var call = (0, react_1.useCallback)(function () {\n var params = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n setState(function (state) { return (__assign(__assign({}, state), { loading: true })); });\n action.apply(void 0, params);\n }, [action]);\n (0, react_1.useEffect)(function () {\n var onSuccessCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, value: data })); });\n if (callbacksRef.current.completed)\n callbacksRef.current.completed(data);\n };\n var onErrorCallback = function (data) {\n setState(function (state) { return (__assign(__assign({}, state), { loading: false, error: data })); });\n if (callbacksRef.current.error)\n callbacksRef.current.error(data);\n };\n var successSub = event.subscribe(onSuccessCallback);\n var errorSub = errorEvent.subscribe(onErrorCallback);\n return function () {\n successSub.unsubscribe();\n errorSub.unsubscribe();\n };\n }, [event, errorEvent]);\n return [\n call,\n loading,\n {\n error: error,\n data: value,\n },\n ];\n}\nexports.useCallAction = useCallAction;\n"],"names":["this"],"mappings":";;;;;;;;CACA,IAAI,QAAQ,GAAG,CAACA,KAAI,IAAIA,KAAI,CAAC,QAAQ,KAAK,YAAY;KAClD,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE;SACpC,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,aAAY,CAAC,GAAG,SAAS,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Q,GAAG,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC;AAC5D,SAAQ,OAAO,YAAY;aACf,UAAU,CAAC,WAAW,EAAE;aACxB,QAAQ,CAAC,WAAW,EAAE;SAClC,CAAS;AACT,KAAA,CAAK,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAC3B,KAAI,OAAO;AACX,SAAQ,IAAI;AACZ,SAAQ,OAAO;SACP;aACI,KAAK,EAAE,KAAK;aACZ,IAAI,EAAE,KAAK;UACd;MACJ;AACL,CAAA;AACA,CAAA,KAAA,CAAA,aAAqB,GAAG,aAAa;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exports as storeHooks } from '../../../../_virtual/store-hooks.js';
|
|
2
|
-
import
|
|
2
|
+
import require$$0 from '../../../../_virtual/_react.js';
|
|
3
3
|
|
|
4
4
|
var hasRequiredStoreHooks;
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ function requireStoreHooks () {
|
|
|
8
8
|
hasRequiredStoreHooks = 1;
|
|
9
9
|
Object.defineProperty(storeHooks, "__esModule", { value: true });
|
|
10
10
|
storeHooks.useStoreError = storeHooks.useStore = storeHooks.useStoreErrorSubscription = storeHooks.useStoreSubcription = void 0;
|
|
11
|
-
var react_1 =
|
|
11
|
+
var react_1 = require$$0;
|
|
12
12
|
/**
|
|
13
13
|
* @param {Store} store - Store to subscribe.
|
|
14
14
|
* @param {Function} callback - Function to call on each dipatch.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-hooks.js","sources":["../../../../../../node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useStoreError = exports.useStore = exports.useStoreErrorSubscription = exports.useStoreSubcription = void 0;\nvar react_1 = require(\"react\");\n/**\n * @param {Store} store - Store to subscribe.\n * @param {Function} callback - Function to call on each dipatch.\n * @param {Function} errorCallback - Function to call on each error dipatch.\n */\nfunction useStoreSubcription(store, callback, errorCallback) {\n var callbacksRef = (0, react_1.useRef)({\n callback: callback,\n errorCallback: errorCallback,\n });\n callbacksRef.current = {\n callback: callback,\n errorCallback: errorCallback,\n };\n var hasCallBack = Boolean(callback);\n var hasErrorCallBack = Boolean(errorCallback);\n (0, react_1.useEffect)(function () {\n if (!hasCallBack) {\n return;\n }\n var unsubscribe = store.subscribe(function (data) {\n if (callbacksRef.current.callback) {\n callbacksRef.current.callback(data);\n }\n });\n return function () {\n unsubscribe.unsubscribe();\n };\n }, [store, hasCallBack]);\n (0, react_1.useEffect)(function () {\n if (!hasErrorCallBack) {\n return;\n }\n var unsubscribe = store.subscribeError(function (data) {\n if (callbacksRef.current.errorCallback) {\n callbacksRef.current.errorCallback(data);\n }\n });\n return function () {\n unsubscribe.unsubscribe();\n };\n }, [store, hasErrorCallBack]);\n}\nexports.useStoreSubcription = useStoreSubcription;\n/**\n * @param {Store} store - Store to subscribe.\n * @param {Function} errorcCallback - Function to call on each error dipatch.\n */\nfunction useStoreErrorSubscription(store, errorcCallback) {\n var callbacksRef = (0, react_1.useRef)({\n errorcCallback: errorcCallback,\n });\n callbacksRef.current = {\n errorcCallback: errorcCallback,\n };\n (0, react_1.useEffect)(function () {\n var unsubscribeError = store.subscribeError(function (data) {\n if (callbacksRef.current.errorcCallback) {\n callbacksRef.current.errorcCallback(data);\n }\n });\n return function () {\n unsubscribeError.unsubscribe();\n };\n }, [store]);\n}\nexports.useStoreErrorSubscription = useStoreErrorSubscription;\n/**\n * @param {Store} store - Store to subscribe.\n * @returns {Object} - Resulto object from the store.\n */\nfunction useStore(store) {\n var _a = (0, react_1.useState)(store.get()), state = _a[0], setState = _a[1];\n useStoreSubcription(store, function (data) {\n setState(data);\n });\n return state;\n}\nexports.useStore = useStore;\n/**\n * @param {Store} store - Store to subscribe.\n * @returns {Object} - Resulto object from the store.\n */\nfunction useStoreError(store) {\n var _a = (0, react_1.useState)(null), state = _a[0], setState = _a[1];\n useStoreErrorSubscription(store, function (data) {\n setState(data);\n });\n return state;\n}\nexports.useStoreError = useStoreError;\n"],"names":[
|
|
1
|
+
{"version":3,"file":"store-hooks.js","sources":["../../../../../../node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useStoreError = exports.useStore = exports.useStoreErrorSubscription = exports.useStoreSubcription = void 0;\nvar react_1 = require(\"react\");\n/**\n * @param {Store} store - Store to subscribe.\n * @param {Function} callback - Function to call on each dipatch.\n * @param {Function} errorCallback - Function to call on each error dipatch.\n */\nfunction useStoreSubcription(store, callback, errorCallback) {\n var callbacksRef = (0, react_1.useRef)({\n callback: callback,\n errorCallback: errorCallback,\n });\n callbacksRef.current = {\n callback: callback,\n errorCallback: errorCallback,\n };\n var hasCallBack = Boolean(callback);\n var hasErrorCallBack = Boolean(errorCallback);\n (0, react_1.useEffect)(function () {\n if (!hasCallBack) {\n return;\n }\n var unsubscribe = store.subscribe(function (data) {\n if (callbacksRef.current.callback) {\n callbacksRef.current.callback(data);\n }\n });\n return function () {\n unsubscribe.unsubscribe();\n };\n }, [store, hasCallBack]);\n (0, react_1.useEffect)(function () {\n if (!hasErrorCallBack) {\n return;\n }\n var unsubscribe = store.subscribeError(function (data) {\n if (callbacksRef.current.errorCallback) {\n callbacksRef.current.errorCallback(data);\n }\n });\n return function () {\n unsubscribe.unsubscribe();\n };\n }, [store, hasErrorCallBack]);\n}\nexports.useStoreSubcription = useStoreSubcription;\n/**\n * @param {Store} store - Store to subscribe.\n * @param {Function} errorcCallback - Function to call on each error dipatch.\n */\nfunction useStoreErrorSubscription(store, errorcCallback) {\n var callbacksRef = (0, react_1.useRef)({\n errorcCallback: errorcCallback,\n });\n callbacksRef.current = {\n errorcCallback: errorcCallback,\n };\n (0, react_1.useEffect)(function () {\n var unsubscribeError = store.subscribeError(function (data) {\n if (callbacksRef.current.errorcCallback) {\n callbacksRef.current.errorcCallback(data);\n }\n });\n return function () {\n unsubscribeError.unsubscribe();\n };\n }, [store]);\n}\nexports.useStoreErrorSubscription = useStoreErrorSubscription;\n/**\n * @param {Store} store - Store to subscribe.\n * @returns {Object} - Resulto object from the store.\n */\nfunction useStore(store) {\n var _a = (0, react_1.useState)(store.get()), state = _a[0], setState = _a[1];\n useStoreSubcription(store, function (data) {\n setState(data);\n });\n return state;\n}\nexports.useStore = useStore;\n/**\n * @param {Store} store - Store to subscribe.\n * @returns {Object} - Resulto object from the store.\n */\nfunction useStoreError(store) {\n var _a = (0, react_1.useState)(null), state = _a[0], setState = _a[1];\n useStoreErrorSubscription(store, function (data) {\n setState(data);\n });\n return state;\n}\nexports.useStoreError = useStoreError;\n"],"names":[],"mappings":";;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,UAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,UAAA,CAAA,aAAqB,GAAG,mBAAgB,GAAG,UAAA,CAAA,yBAAiC,GAAG,UAAA,CAAA,mBAA2B,GAAG,MAAM;CACnH,IAAI,OAAO,GAAG,UAAgB;AAC9B;AACA;AACA;AACA;AACA;AACA,CAAA,SAAS,mBAAmB,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE;KACzD,IAAI,YAAY,GAAG,IAAI,OAAO,CAAC,MAAM,EAAE;SACnC,QAAQ,EAAE,QAAQ;SAClB,aAAa,EAAE,aAAa;AACpC,MAAK,CAAC;KACF,YAAY,CAAC,OAAO,GAAG;SACnB,QAAQ,EAAE,QAAQ;SAClB,aAAa,EAAE,aAAa;MAC/B;AACL,KAAI,IAAI,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;AACvC,KAAI,IAAI,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;AACjD,KAAI,IAAI,OAAO,CAAC,SAAS,EAAE,YAAY;SAC/B,IAAI,CAAC,WAAW,EAAE;aACd;AACZ,SAAA;SACQ,IA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 from '../../../../_virtual/_react.js';
|
|
3
3
|
|
|
4
4
|
var hasRequiredViews;
|
|
5
5
|
|
|
@@ -23,7 +23,7 @@ function requireViews () {
|
|
|
23
23
|
})();
|
|
24
24
|
Object.defineProperty(views, "__esModule", { value: true });
|
|
25
25
|
views.View = void 0;
|
|
26
|
-
var react_1 =
|
|
26
|
+
var react_1 = require$$0;
|
|
27
27
|
var View = /** @class */ (function (_super) {
|
|
28
28
|
__extends(View, _super);
|
|
29
29
|
function View() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sources":["../../../../../../node_modules/@cobuildlab/react-simple-state/lib/views.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.View = void 0;\nvar react_1 = require(\"react\");\nvar View = /** @class */ (function (_super) {\n __extends(View, _super);\n function View() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.subscriptions = [];\n _this.toBeSubscribedIfUnMounted = [];\n _this.hasBeenUnmounted = false;\n return _this;\n }\n /**\n * Subscribe to an Event\n * This is a helpful method to keep track of your subscriptions on UnMount and Mount of the Component.\n *\n * @param {Event} event - The Event object to which you want to subscribe\n * @param {Function }callback - The callback function that's gonna be executed when it happens\n * @param {boolean}receiveLastValue - Whether the callback should receive the last value immediately\n * @return {Subscription} subscription The subscription for this event in the Store\n */\n View.prototype.subscribe = function (event, callback, receiveLastValue) {\n if (receiveLastValue === void 0) { receiveLastValue = false; }\n var subscription = event.subscribe(callback, receiveLastValue);\n this.subscriptions.push(subscription);\n // on an event where the component is unmounted and then mounted:\n this.toBeSubscribedIfUnMounted.push({ event: event, callback: callback, receiveLastValue: receiveLastValue });\n return subscription;\n };\n View.prototype.componentDidMount = function () {\n if (!this.hasBeenUnmounted)\n return;\n var that = this;\n this.toBeSubscribedIfUnMounted.forEach(function (observer) {\n var store = observer.store;\n if (store !== null && store !== undefined) {\n var subscription = store.subscribe(observer.eventName, observer.callback, observer.receiveLastValue);\n that.subscriptions.push(subscription);\n }\n else {\n var event_1 = observer.event;\n if (event_1 !== null && event_1 !== undefined) {\n var subscription = event_1.subscribe(observer.callback, observer.receiveLastValue);\n that.subscriptions.push(subscription);\n }\n }\n });\n };\n View.prototype.componentWillUnmount = function () {\n this.subscriptions.forEach(function (subscription) {\n subscription.unsubscribe();\n });\n this.subscriptions = [];\n this.hasBeenUnmounted = true;\n };\n return View;\n}(react_1.Component));\nexports.View = View;\n"],"names":["this"
|
|
1
|
+
{"version":3,"file":"views.js","sources":["../../../../../../node_modules/@cobuildlab/react-simple-state/lib/views.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.View = void 0;\nvar react_1 = require(\"react\");\nvar View = /** @class */ (function (_super) {\n __extends(View, _super);\n function View() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.subscriptions = [];\n _this.toBeSubscribedIfUnMounted = [];\n _this.hasBeenUnmounted = false;\n return _this;\n }\n /**\n * Subscribe to an Event\n * This is a helpful method to keep track of your subscriptions on UnMount and Mount of the Component.\n *\n * @param {Event} event - The Event object to which you want to subscribe\n * @param {Function }callback - The callback function that's gonna be executed when it happens\n * @param {boolean}receiveLastValue - Whether the callback should receive the last value immediately\n * @return {Subscription} subscription The subscription for this event in the Store\n */\n View.prototype.subscribe = function (event, callback, receiveLastValue) {\n if (receiveLastValue === void 0) { receiveLastValue = false; }\n var subscription = event.subscribe(callback, receiveLastValue);\n this.subscriptions.push(subscription);\n // on an event where the component is unmounted and then mounted:\n this.toBeSubscribedIfUnMounted.push({ event: event, callback: callback, receiveLastValue: receiveLastValue });\n return subscription;\n };\n View.prototype.componentDidMount = function () {\n if (!this.hasBeenUnmounted)\n return;\n var that = this;\n this.toBeSubscribedIfUnMounted.forEach(function (observer) {\n var store = observer.store;\n if (store !== null && store !== undefined) {\n var subscription = store.subscribe(observer.eventName, observer.callback, observer.receiveLastValue);\n that.subscriptions.push(subscription);\n }\n else {\n var event_1 = observer.event;\n if (event_1 !== null && event_1 !== undefined) {\n var subscription = event_1.subscribe(observer.callback, observer.receiveLastValue);\n that.subscriptions.push(subscription);\n }\n }\n });\n };\n View.prototype.componentWillUnmount = function () {\n this.subscriptions.forEach(function (subscription) {\n subscription.unsubscribe();\n });\n this.subscriptions = [];\n this.hasBeenUnmounted = true;\n };\n return View;\n}(react_1.Component));\nexports.View = View;\n"],"names":["this"],"mappings":";;;;;;;;CACA,IAAI,SAAS,GAAG,CAACA,KAAI,IAAIA,KAAI,CAAC,SAAS,KAAK,CAAC,YAAY;AACzD,KAAI,IAAI,aAAa,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE;AACxC,SAAQ,aAAa,GAAG,MAAM,CAAC,cAAc;cAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAA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Q,EAAE,QAAQ,CAAC,gBAAgB,CAAC;AACpH,iBAAgB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC;AACrD,aAAA;kBACiB;AACjB,iBAAgB,IAAI,OAAO,GAAG,QAAQ,CAAC,KAAK;iBAC5B,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;AAC/D,qBAAoB,IAAI,YAAY,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC;AACtG,qBAAoB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC;AACzD,iBAAA;AACA,aAAA;AACA,SAAA,CAAS,CAAC;KACV,CAAK;AACL,KAAI,IAAI,CAAC,SAAS,CAAC,oBAAoB,GAAG,YAAY;SAC9C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,YAAY,EAAE;aAC/C,YAAY,CAAC,WAAW,EAAE;AACtC,SAAA,CAAS,CAAC;AACV,SAAQ,IAAI,CAAC,aAAa,GAAG,EAAE;AAC/B,SAAQ,IAAI,CAAC,gBAAgB,GAAG,IAAI;KACpC,CAAK;AACL,KAAI,OAAO,IAAI;AACf,CAAA,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AACrB,CAAA,KAAA,CAAA,IAAY,GAAG,IAAI;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HttpLink } from '@apollo/client';
|
|
1
2
|
import { registerApolloClient, ApolloClient, InMemoryCache } from '@apollo/client-integration-nextjs';
|
|
2
|
-
import { HttpLink } from '../../node_modules/@apollo/client/link/http/HttpLink.js';
|
|
3
3
|
|
|
4
4
|
const apolloClient = (config) => {
|
|
5
5
|
const { uri } = config;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { User } from '../../shared/types/generated';
|
|
1
|
+
import { Subscription, User } from '../../shared/types/generated';
|
|
2
2
|
import { Config } from '../../config/config.types';
|
|
3
3
|
export type SessionContextDefaultValues = {
|
|
4
4
|
user?: User | null;
|
|
5
5
|
config?: Config;
|
|
6
|
+
subscription?: Subscription;
|
|
6
7
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawerProps, AvatarProps, DividerProps, ButtonProps, ListProps, ListItemProps, ListItemTextProps,
|
|
1
|
+
import { DrawerProps, AvatarProps, BoxProps, DividerProps, ButtonProps, ListProps, ListItemProps, ListItemTextProps, TypographyProps } from '@mui/material';
|
|
2
2
|
import React, { FC } from 'react';
|
|
3
3
|
import * as _cobuildlab_react_simple_state from '@cobuildlab/react-simple-state';
|
|
4
4
|
|
|
@@ -15,6 +15,12 @@ interface PanelAvatarProps {
|
|
|
15
15
|
}
|
|
16
16
|
declare const PanelAvatar: React.FC<PanelAvatarProps>;
|
|
17
17
|
|
|
18
|
+
interface PanelHeaderProps {
|
|
19
|
+
containerProps?: BoxProps;
|
|
20
|
+
imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
21
|
+
}
|
|
22
|
+
declare const PanelHeader: React.FC<PanelHeaderProps>;
|
|
23
|
+
|
|
18
24
|
interface PanelDividerProps extends DividerProps {
|
|
19
25
|
}
|
|
20
26
|
declare const PanelDivider: React.FC<PanelDividerProps>;
|
|
@@ -83,5 +89,5 @@ type SessionProviderProps = {
|
|
|
83
89
|
};
|
|
84
90
|
declare const SessionProvider: React.FC<SessionProviderProps>;
|
|
85
91
|
|
|
86
|
-
export { Panel, PanelAvatar, PanelButton, PanelDivider, PanelFooter, PanelItem, PanelListItems, SessionProvider, handleLogout, handlePanelClick, panelStore, panelStoreAction };
|
|
87
|
-
export type { PanelAvatarProps, PanelButtonProps, PanelDividerProps, PanelFooterProps, PanelItemProps, PanelListRoute, PanelProps, PanelStoreAction };
|
|
92
|
+
export { Panel, PanelAvatar, PanelButton, PanelDivider, PanelFooter, PanelHeader, PanelItem, PanelListItems, SessionProvider, handleLogout, handlePanelClick, panelStore, panelStoreAction };
|
|
93
|
+
export type { PanelAvatarProps, PanelButtonProps, PanelDividerProps, PanelFooterProps, PanelHeaderProps, PanelItemProps, PanelListRoute, PanelProps, PanelStoreAction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-easy-wall",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
41
41
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
42
42
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
43
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
44
|
+
"@svgr/rollup": "^8.1.0",
|
|
43
45
|
"dotenv": "^17.3.1",
|
|
44
46
|
"prettier": "3.8.1",
|
|
45
47
|
"react": "^19.2.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_interop_require_default.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_interop_require_wildcard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-async-storage-instance.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-async-storage.external.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"after-task-async-storage-instance.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"after-task-async-storage.external.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-router-context.shared-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-router-headers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-local-storage.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bailout-to-client-rendering.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bailout-to-csr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-constants.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookies.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookies2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-deduped-by-callsite-server-error-logger.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-mode.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-rendering-utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|