• November 2019

    🎃 Hacktoberfest 2019 2/2 🎃

    In this release there are some changes that coming from hacktoberfest contributors. Our readme is translated to Brazilian Portuguese, thanks to @Paulophmp and @thiagobfiorenza.

    Admin-ui@1.3.0

    • In the setup view clicking on learn more now opens a new browser tab #426
    • 🐛 Cannot save a query fixed thanks to @atomanonymous
    • Execute CRUD actions from command palette #382

      Load action

    Packages

    @sensenet/client-utils@1.7.0

    • Moved @furystack/inject and @furystack/logging to client utils. Thanks to @Attila816

      Check the client-utils readme for usage and examples

    @sensenet/document-viewer-react@2.0.0 💥

    • We have changed the state management library from redux to react hooks api
    • The new viewer uses the new useRepository hook from @sensenet/hooks-react and a default api settings. This means that you no longer need to define the api endpoints yourself if you use a sensenet repository.

    example usage:

    import React, { useState } from "react";
    import {
      defaultTheme,
      DocumentTitlePager,
      DocumentViewer,
      LayoutAppBar,
      RotateActivePagesWidget,
      SaveWidget,
      SearchBar,
      ToggleCommentsWidget,
      ToggleShapesWidget,
      ToggleThumbnailsWidget,
      ZoomInOutWidget,
      ZoomModeWidget
    } from "@sensenet/document-viewer-react";
    import { MuiThemeProvider } from "@material-ui/core/styles";
    import { RepositoryContext } from "@sensenet/hooks-react";
    import { Repository } from "@sensenet/client-core";
    
    export const ViewerExample: React.FC = () => {
      const [repository, setRepository] = useState(
        new Repository({ repositoryUrl: hostName })
      );
    
      return (
        <MuiThemeProvider theme={defaultTheme}>
          <RepositoryContext.Provider value={repository}>
            <DocumentViewer
              theme={defaultTheme}
              documentIdOrPath={
                "/Root/Content/IT/Document_Library/Brazzaville/100pages.pdf"
              }
            >
              <LayoutAppBar>
                <div>
                  <ToggleShapesWidget />
                  <ToggleThumbnailsWidget />
                  <ZoomInOutWidget />
                  <ZoomModeWidget />
                  <RotateActivePagesWidget />
                  <SaveWidget />
                </div>
                <DocumentTitlePager />
                <div>
                  <ToggleCommentsWidget />
                  <SearchBar />
                </div>
              </LayoutAppBar>
            </DocumentViewer>
          </RepositoryContext.Provider>
        </MuiThemeProvider>
      );
    };
    

    You can find the release here