@edifice.io/wiki 3.6.19-feat-agilite.20261023092921 → 3.6.20-develop.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep1Form.d.ts +1 -0
  2. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep2Form.d.ts +1 -0
  3. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep3StructureLoading.d.ts +1 -0
  4. package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep4StructureResult.d.ts +1 -0
  5. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantAICard.d.ts +1 -0
  6. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantImportPollCard.d.ts +1 -0
  7. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantLibraryCard.d.ts +1 -0
  8. package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantManualCreationCard.d.ts +1 -0
  9. package/lib/features/wiki/PagesAssistant/PagesAssistantLeftPane.d.ts +1 -0
  10. package/lib/features/wiki/PagesAssistant/PagesAssistantRoot.d.ts +1 -0
  11. package/lib/index2.js +1988 -2246
  12. package/lib/services/api/assistant/assistant.service.d.ts +1 -7
  13. package/lib/services/api/assistant/assistant.types.d.ts +0 -7
  14. package/lib/services/queries/poll/poll.query.d.ts +9 -0
  15. package/lib/services/queries/poll/poll.test.d.ts +1 -0
  16. package/lib/store/assistant/index.d.ts +0 -2
  17. package/lib/style.css +1 -1
  18. package/package.json +6 -6
  19. package/lib/features/wiki/PagesAssistant/AI/Form/Generate/AIFormGenerate.d.ts +0 -1
  20. package/lib/features/wiki/PagesAssistant/AI/Form/Generate/useAIFormGenerate.d.ts +0 -11
  21. package/lib/features/wiki/PagesAssistant/AI/Form/Results/AIFormResults.d.ts +0 -1
  22. package/lib/features/wiki/PagesAssistant/AI/Form/Results/useAIFormResults.d.ts +0 -7
  23. package/lib/features/wiki/PagesAssistant/AI/Form/Steps/Step1/AIFormStep1.d.ts +0 -1
  24. package/lib/features/wiki/PagesAssistant/AI/Form/Steps/Step1/useAIFormStep1.d.ts +0 -31
  25. package/lib/features/wiki/PagesAssistant/AI/Form/Steps/Step2/AIFormStep2.d.ts +0 -1
  26. package/lib/features/wiki/PagesAssistant/AI/Form/Steps/Step2/useAIFormStep2.d.ts +0 -11
  27. package/lib/features/wiki/PagesAssistant/AI/ImportPDF/Generate/ImportPDFGenerate.d.ts +0 -1
  28. package/lib/features/wiki/PagesAssistant/AI/ImportPDF/Generate/useImportPDFGenerate.d.ts +0 -3
  29. package/lib/features/wiki/PagesAssistant/AI/ImportPDF/Results/ImportPDFResults.d.ts +0 -1
  30. package/lib/features/wiki/PagesAssistant/AI/ImportPDF/Results/useImportPDFResults.d.ts +0 -7
  31. package/lib/features/wiki/PagesAssistant/Home/Cards/AIFormCard.d.ts +0 -1
  32. package/lib/features/wiki/PagesAssistant/Home/Cards/AIImportPdfCard.d.ts +0 -1
  33. package/lib/features/wiki/PagesAssistant/Home/Cards/LibraryCard.d.ts +0 -1
  34. package/lib/features/wiki/PagesAssistant/Home/Cards/ManualCreationCard.d.ts +0 -1
  35. package/lib/features/wiki/PagesAssistant/Home/Cards/useAIImportPdfCard.d.ts +0 -8
  36. package/lib/features/wiki/PagesAssistant/Home/Home.d.ts +0 -1
  37. package/lib/features/wiki/PagesAssistant/Home/LeftPane.d.ts +0 -1
  38. /package/lib/{index3.js → ResourceModal.js} +0 -0
  39. /package/lib/{index4.js → ShareModal.js} +0 -0
  40. /package/lib/features/wiki/PagesAssistant/{AI → PagesAssistantAISteps}/ButtonAIScreebActivate.d.ts +0 -0
  41. /package/lib/features/wiki/PagesAssistant/{AI/Form/Steps/Step1 → PagesAssistantAISteps}/useLevels.d.ts +0 -0
  42. /package/lib/features/wiki/PagesAssistant/{AI/Form/Steps/Step1 → PagesAssistantAISteps}/useSubjects.d.ts +0 -0
  43. /package/lib/{animations/AILoading.json.d.ts → features/wiki/PagesAssistant/animations/loading.json.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { AssistantGenerateRequest, AssistantGenerateResponse, AssistantImportPDFRequest, AssistantImportPDFResponse } from './assistant.types';
1
+ import { AssistantGenerateRequest, AssistantGenerateResponse } from './assistant.types';
2
2
  export declare const baseURL = "/wiki";
3
3
  export declare const assistantService: {
4
4
  /**
@@ -6,10 +6,4 @@ export declare const assistantService: {
6
6
  * @returns a Promise of PagesStructureResponse
7
7
  */
8
8
  generate(requestPayload: AssistantGenerateRequest): Promise<AssistantGenerateResponse>;
9
- /**
10
- * Post the pdf import for AI Course generation
11
- * @param requestPayload the request payload
12
- * @returns
13
- */
14
- importPDF(requestPayload: AssistantImportPDFRequest): Promise<AssistantImportPDFResponse>;
15
9
  };
@@ -17,10 +17,3 @@ export interface AssistantGenerateResponse {
17
17
  export interface PageStructure {
18
18
  title: string;
19
19
  }
20
- export interface AssistantImportPDFRequest {
21
- fileId: string;
22
- wikiId: string;
23
- }
24
- export interface AssistantImportPDFResponse {
25
- wikiId: string;
26
- }
@@ -0,0 +1,9 @@
1
+ export declare const pollQueryOptions: {
2
+ base: readonly ["poll"];
3
+ findOne: (pollName: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../api/poll/poll.types').Poll, Error, import('../../api/poll/poll.types').Poll, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
4
+ queryFn?: import('@tanstack/react-query').QueryFunction<import('../../api/poll/poll.types').Poll, import('@tanstack/react-query').QueryKey, never> | undefined;
5
+ } & {
6
+ queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../api/poll/poll.types').Poll>;
7
+ };
8
+ };
9
+ export declare const useGetPoll: (pollName: string) => import('@tanstack/react-query').UseQueryResult<import('../../api/poll/poll.types').Poll, Error>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,7 @@
1
1
  import { PagesAssistantAIFormValues, PageStructure } from '../../services/api/assistant/assistant.types';
2
2
  export declare const useFormValuesStore: () => PagesAssistantAIFormValues;
3
3
  export declare const usePagesStructureStore: () => PageStructure[];
4
- export declare const usePdfFileId: () => string;
5
4
  export declare const usePagesAssistantActions: () => {
6
5
  setFormValues: (formData: PagesAssistantAIFormValues) => void;
7
6
  setPagesStructure: (pagesStructure: PageStructure[]) => void;
8
- setPdfFileId: (pdfFileId: string) => void;
9
7
  };
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .wiki-page-content h2{padding:24px 0 12px}.switch{position:relative;display:inline-block;width:34px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;padding:2px}.slider:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+.slider{background-color:#2196f3}input:focus+.slider{box-shadow:0 0 1px #2196f3}input:checked+.slider:before{-webkit-transform:translateX(14px);-ms-transform:translateX(14px);transform:translate(14px)}input[type=checkbox]:disabled+.slider{cursor:not-allowed}.slider.round{border-radius:32px}.slider.round:before{border-radius:50%}.page-content-editor .ProseMirror[contenteditable=true]{min-height:180px}.page-author{color:var(--edifice-gray-700)}.page-author:hover{color:rgba(var(--edifice-link-color-rgb),var(--edifice-link-opacity, 1));text-decoration:underline}.separator{height:16px;border:0;border-left:1px solid var(--edifice-gray-600)}.indicator{position:relative;padding:0;height:8px;border-color:var(--edifice-secondary-300);background-color:var(--edifice-secondary-300);border-radius:4px;margin-left:var(--indicator-spacing)!important}.indicator>*{opacity:0;height:0}.pages-assistant-wrapper .promotion-card{height:100%}.pages-assistant-wrapper .promotion-card.ai-border-gradient{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(to right,#f9beef,#faea9c) border-box;border-radius:2.4rem;border:3px solid transparent}.pages-assistant-wrapper .promotion-card .ai-background-gradient{background:linear-gradient(90deg,#fee1fa,#fcf8e2)}.pages-assistant-wrapper .promotion-card .btn-thumb-down:hover,.pages-assistant-wrapper .promotion-card .btn-thumb-up:hover,.pages-assistant-wrapper .promotion-card .btn-thumb-down.selected,.pages-assistant-wrapper .promotion-card .btn-thumb-up.selected{background-color:rgba(var(--edifice-white-rgb),var(--edifice-white-opacity, 1))}.pages-assistant-ai-wrapper .dropdown{min-width:100%}.pages-assistant-ai-wrapper .dropdown .dropdown-toggle{min-width:100%;margin-bottom:24px}.pages-assistant-ai-wrapper .simple-radio-card-container{transition:border-color .5s ease}.pages-assistant-ai-wrapper .simple-radio-card-container:hover:not(.selected){border-color:var(--edifice-secondary-bg-subtle)!important}.btn-ai-wrapper{padding:2px;border-radius:120px;background:linear-gradient(to right,#c232aa,#ecbe30)}.btn-ai-wrapper .btn-ai{color:#4a4a4a;background:#fff;border:none;border-radius:120px;padding-left:16px;padding-right:16px;min-width:128px}.btn-ai-wrapper .btn-ai>span{background:linear-gradient(to right,#c232aa,#ecbe30);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;transition:transform .3s cubic-bezier(.4,0,.2,1)}.btn-ai-wrapper .btn-ai:hover,.btn-ai-wrapper .btn-ai:active,.btn-ai-wrapper .btn-ai:focus-visible{background:#fff!important}.btn-ai-wrapper .btn-ai:disabled{background:#fff!important;color:#4a4a4a!important;box-shadow:none!important}.btn-ai-wrapper:has(.btn-ai:disabled){cursor:progress}.btn-ai-wrapper .btn-ai:hover>span{transform:translateY(-2px)!important}.loading .btn-ai-wrapper .btn-ai img{display:inline-block;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}
1
+ .wiki-page-content h2{padding:24px 0 12px}.switch{position:relative;display:inline-block;width:34px;height:20px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;padding:2px}.slider:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+.slider{background-color:#2196f3}input:focus+.slider{box-shadow:0 0 1px #2196f3}input:checked+.slider:before{-webkit-transform:translateX(14px);-ms-transform:translateX(14px);transform:translate(14px)}input[type=checkbox]:disabled+.slider{cursor:not-allowed}.slider.round{border-radius:32px}.slider.round:before{border-radius:50%}.page-content-editor .ProseMirror[contenteditable=true]{min-height:180px}.page-author{color:var(--edifice-gray-700)}.page-author:hover{color:rgba(var(--edifice-link-color-rgb),var(--edifice-link-opacity, 1));text-decoration:underline}.separator{height:16px;border:0;border-left:1px solid var(--edifice-gray-600)}.indicator{position:relative;padding:0;height:8px;border-color:var(--edifice-secondary-300);background-color:var(--edifice-secondary-300);border-radius:4px;margin-left:var(--indicator-spacing)!important}.indicator>*{opacity:0;height:0}.btn-ai-wrapper{padding:2px;border-radius:120px;background:linear-gradient(to right,#c232aa,#ecbe30)}.btn-ai-wrapper .btn-ai{color:#4a4a4a;background:#fff;border:none;border-radius:120px;padding-left:16px;padding-right:16px;min-width:128px}.btn-ai-wrapper .btn-ai>span{background:linear-gradient(to right,#c232aa,#ecbe30);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;transition:transform .3s cubic-bezier(.4,0,.2,1)}.btn-ai-wrapper .btn-ai:hover,.btn-ai-wrapper .btn-ai:active,.btn-ai-wrapper .btn-ai:focus-visible{background:#fff!important}.btn-ai-wrapper .btn-ai:disabled{background:#fff!important;color:#4a4a4a!important;box-shadow:none!important}.btn-ai-wrapper:has(.btn-ai:disabled){cursor:progress}.btn-ai-wrapper .btn-ai:hover>span{transform:translateY(-2px)!important}.loading .btn-ai-wrapper .btn-ai img{display:inline-block;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.pages-assistant-wrapper .promotion-card{height:100%}.pages-assistant-wrapper .promotion-card.ai-border-gradient{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(to right,#f9beef,#faea9c) border-box;border-radius:2.4rem;border:3px solid transparent}.pages-assistant-wrapper .promotion-card .ai-background-gradient{background:linear-gradient(90deg,#fee1fa,#fcf8e2)}.pages-assistant-wrapper .promotion-card .btn-thumb-down:hover,.pages-assistant-wrapper .promotion-card .btn-thumb-up:hover,.pages-assistant-wrapper .promotion-card .btn-thumb-down.selected,.pages-assistant-wrapper .promotion-card .btn-thumb-up.selected{background-color:rgba(var(--edifice-white-rgb),var(--edifice-white-opacity, 1))}.pages-assistant-ai-wrapper .dropdown{min-width:100%}.pages-assistant-ai-wrapper .dropdown .dropdown-toggle{min-width:100%;margin-bottom:24px}.pages-assistant-ai-wrapper .simple-radio-card-container{transition:border-color .5s ease}.pages-assistant-ai-wrapper .simple-radio-card-container:hover:not(.selected){border-color:var(--edifice-secondary-bg-subtle)!important}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/wiki",
3
- "version": "3.6.19-feat-agilite.20261023092921",
3
+ "version": "3.6.20-develop.0",
4
4
  "description": "Wiki application",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "Edifice",
@@ -23,7 +23,7 @@
23
23
  "i18next": "23.8.1",
24
24
  "i18next-http-backend": "2.4.2",
25
25
  "lottie-react": "2.4.1",
26
- "ode-explorer": "develop-pedago",
26
+ "ode-explorer": "develop",
27
27
  "react-error-boundary": "4.0.13",
28
28
  "react-hook-form": "7.71.1",
29
29
  "react-router-dom": "6.30.3",
@@ -41,10 +41,10 @@
41
41
  "devDependencies": {
42
42
  "@axe-core/react": "4.11.1",
43
43
  "@babel/plugin-transform-react-pure-annotations": "7.23.3",
44
- "@edifice.io/bootstrap": "develop-pedago",
45
- "@edifice.io/cli": "develop-pedago",
46
- "@edifice.io/client": "develop-pedago",
47
- "@edifice.io/react": "develop-pedago",
44
+ "@edifice.io/bootstrap": "develop",
45
+ "@edifice.io/cli": "develop",
46
+ "@edifice.io/client": "develop",
47
+ "@edifice.io/react": "develop",
48
48
  "@eslint/js": "9.39.2",
49
49
  "@tanstack/react-query": "5.62.7",
50
50
  "@tanstack/react-query-devtools": "5.91.3",
@@ -1 +0,0 @@
1
- export declare const AIFormGenerate: () => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- /**
2
- * Handles the AIFormGenerate logic:
3
- * - calls the AI generation API with the form values
4
- * - polls the wiki to check if generation is over (wiki.aiMetadata.structureGenerated is true)
5
- * - returns an object with a 'structureLoading' boolean to be used by the component to show loading animation in the button.
6
- *
7
- * @returns hook to handle AIFormGenerate logic.
8
- */
9
- export declare const useAIFormGenerate: () => {
10
- structureLoading: boolean;
11
- };
@@ -1 +0,0 @@
1
- export declare const AIFormResults: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { WikiDto } from '../../../../../../models';
2
- export declare const useAIFormResults: () => {
3
- contentFinished: boolean;
4
- generatedWiki: WikiDto | undefined;
5
- pagesStructure: import('../../../../../../services/api/assistant/assistant.types').PageStructure[];
6
- handleCancelButtonClick: () => void;
7
- };
@@ -1 +0,0 @@
1
- export declare const AIFormStep1: () => import("react/jsx-runtime").JSX.Element;
@@ -1,31 +0,0 @@
1
- import { PagesAssistantAIStep1FormValues } from '../../../../../../../services/api/assistant/assistant.types';
2
- export declare const useAIFormStep1: () => {
3
- subjects: {
4
- value: string;
5
- image: string;
6
- sequences: string[];
7
- }[];
8
- collegeLevels: {
9
- value: string;
10
- subjects: {
11
- value: string;
12
- image: string;
13
- sequences: string[];
14
- }[];
15
- }[];
16
- lyceeLevels: {
17
- value: string;
18
- subjects: {
19
- value: string;
20
- image: string;
21
- sequences: string[];
22
- }[];
23
- }[];
24
- control: import('react-hook-form').Control<PagesAssistantAIStep1FormValues, any, PagesAssistantAIStep1FormValues>;
25
- isValid: boolean;
26
- handleLevelChange: () => void;
27
- handleSubjectSuggestionClick: () => void;
28
- handleBackButtonClick: () => void;
29
- handleSubmit: import('react-hook-form').UseFormHandleSubmit<PagesAssistantAIStep1FormValues, PagesAssistantAIStep1FormValues>;
30
- onSubmit: (step1FormValues: PagesAssistantAIStep1FormValues) => Promise<void>;
31
- };
@@ -1 +0,0 @@
1
- export declare const AIFormStep2: () => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { PagesAssistantAIStep2FormValues } from '../../../../../../../services/api/assistant/assistant.types';
2
- export declare const useAIFormStep2: () => {
3
- availableSequences: string[];
4
- control: import('react-hook-form').Control<PagesAssistantAIStep2FormValues, any, PagesAssistantAIStep2FormValues>;
5
- isValid: boolean;
6
- watch: import('react-hook-form').UseFormWatch<PagesAssistantAIStep2FormValues>;
7
- register: import('react-hook-form').UseFormRegister<PagesAssistantAIStep2FormValues>;
8
- handleBackButtonClick: () => void;
9
- handleSubmit: import('react-hook-form').UseFormHandleSubmit<PagesAssistantAIStep2FormValues, PagesAssistantAIStep2FormValues>;
10
- onSubmit: (step2FormValues: PagesAssistantAIStep2FormValues) => Promise<void>;
11
- };
@@ -1 +0,0 @@
1
- export declare const ImportPDFGenerate: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const useImportPDFGenerate: () => {
2
- structureLoading: boolean;
3
- };
@@ -1 +0,0 @@
1
- export declare const ImportPDFResults: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { WikiDto } from '../../../../../../models';
2
- export declare const useImportPDFResults: () => {
3
- pagesStructure: import('../../../../../../services/api/assistant/assistant.types').PageStructure[];
4
- contentFinished: boolean;
5
- generatedWiki: WikiDto | undefined;
6
- handleCancelButtonClick: () => void;
7
- };
@@ -1 +0,0 @@
1
- export declare const AIFormCard: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AIImportPdfCard: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const LibraryCard: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const ManualCreationCard: () => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { WorkspaceElement } from '@edifice.io/client';
2
- import { MediaLibraryRef, MediaLibraryResult } from '@edifice.io/react';
3
- export declare const useAIImportPdfCard: () => {
4
- mediaLibraryRef: import('react').RefObject<MediaLibraryRef>;
5
- handleImportButtonClick: () => void;
6
- handleMediaLibrarySuccess: (result: MediaLibraryResult[]) => Promise<void>;
7
- handleMediaLibraryCancel: (uploads?: WorkspaceElement[]) => Promise<void>;
8
- };
@@ -1 +0,0 @@
1
- export declare const Home: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const LeftPane: () => import("react/jsx-runtime").JSX.Element;
File without changes
File without changes