@burdenoff/microfe-planmagnet 2026.1101.1 → 2026.1123.1
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/README.md +62 -0
- package/dist/_virtual/__vite-browser-external.js +1 -2
- package/dist/_virtual/_rolldown/runtime.js +4 -5
- package/dist/components/Button.d.ts +1 -3
- package/dist/components/Button.stories.d.ts +0 -2
- package/dist/components/MarkdownEditor.d.ts +1 -2
- package/dist/components/MarkdownEditor.js +1 -2
- package/dist/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +5707 -963
- package/dist/generated/wspace-operations.d.ts +2369 -6982
- package/dist/generated/wspace-operations.js +614 -0
- package/dist/generated/wspace-types.d.ts +201 -25
- package/dist/index.d.ts +0 -1
- package/dist/index.js +8 -8
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
- package/dist/node_modules/@apollo/client/errors/ServerError.js +1 -2
- package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/d3-array/dist/d3-array.js +202 -0
- package/dist/node_modules/d3-color/dist/d3-color.js +386 -0
- package/dist/node_modules/d3-format/dist/d3-format.js +184 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +183 -0
- package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +38 -13
- package/dist/node_modules/d3-scale/dist/d3-scale.js +620 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js +899 -0
- package/dist/node_modules/d3-time/dist/d3-time.js +239 -0
- package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +228 -173
- package/dist/node_modules/decimal.js-light/decimal.js +33 -30
- package/dist/node_modules/eventemitter3/index.js +2 -3
- package/dist/node_modules/fast-equals/dist/es/index.js +109 -79
- package/dist/node_modules/fflate/esm/browser.js +14 -14
- package/dist/node_modules/jszip/dist/jszip.min.js +67 -63
- package/dist/node_modules/lodash/_DataView.js +4 -5
- package/dist/node_modules/lodash/_Hash.js +1 -2
- package/dist/node_modules/lodash/_ListCache.js +1 -2
- package/dist/node_modules/lodash/_Map.js +4 -5
- package/dist/node_modules/lodash/_MapCache.js +1 -2
- package/dist/node_modules/lodash/_Promise.js +4 -5
- package/dist/node_modules/lodash/_Set.js +4 -5
- package/dist/node_modules/lodash/_SetCache.js +1 -2
- package/dist/node_modules/lodash/_Stack.js +3 -3
- package/dist/node_modules/lodash/_Symbol.js +1 -2
- package/dist/node_modules/lodash/_Uint8Array.js +1 -2
- package/dist/node_modules/lodash/_WeakMap.js +4 -5
- package/dist/node_modules/lodash/_apply.js +1 -2
- package/dist/node_modules/lodash/_arrayEach.js +1 -2
- package/dist/node_modules/lodash/_arrayEvery.js +1 -2
- package/dist/node_modules/lodash/_arrayFilter.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
- package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
- package/dist/node_modules/lodash/_arrayMap.js +1 -2
- package/dist/node_modules/lodash/_arrayPush.js +1 -2
- package/dist/node_modules/lodash/_arraySome.js +1 -2
- package/dist/node_modules/lodash/_asciiToArray.js +1 -2
- package/dist/node_modules/lodash/_assignValue.js +4 -5
- package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseAssign.js +4 -5
- package/dist/node_modules/lodash/_baseAssignIn.js +1 -2
- package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
- package/dist/node_modules/lodash/_baseClone.js +24 -25
- package/dist/node_modules/lodash/_baseCreate.js +1 -2
- package/dist/node_modules/lodash/_baseEach.js +1 -2
- package/dist/node_modules/lodash/_baseEvery.js +1 -2
- package/dist/node_modules/lodash/_baseExtremum.js +1 -2
- package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
- package/dist/node_modules/lodash/_baseFlatten.js +1 -2
- package/dist/node_modules/lodash/_baseFor.js +1 -2
- package/dist/node_modules/lodash/_baseForOwn.js +4 -5
- package/dist/node_modules/lodash/_baseGet.js +1 -2
- package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
- package/dist/node_modules/lodash/_baseGetTag.js +1 -2
- package/dist/node_modules/lodash/_baseGt.js +1 -2
- package/dist/node_modules/lodash/_baseHasIn.js +1 -2
- package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
- package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
- package/dist/node_modules/lodash/_baseIsMap.js +4 -5
- package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
- package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
- package/dist/node_modules/lodash/_baseIsNative.js +5 -6
- package/dist/node_modules/lodash/_baseIsSet.js +4 -5
- package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
- package/dist/node_modules/lodash/_baseIteratee.js +6 -7
- package/dist/node_modules/lodash/_baseKeys.js +1 -2
- package/dist/node_modules/lodash/_baseKeysIn.js +2 -3
- package/dist/node_modules/lodash/_baseLt.js +1 -2
- package/dist/node_modules/lodash/_baseMap.js +4 -5
- package/dist/node_modules/lodash/_baseMatches.js +1 -2
- package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
- package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
- package/dist/node_modules/lodash/_baseProperty.js +1 -2
- package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
- package/dist/node_modules/lodash/_baseRange.js +1 -2
- package/dist/node_modules/lodash/_baseRest.js +1 -2
- package/dist/node_modules/lodash/_baseSetToString.js +5 -6
- package/dist/node_modules/lodash/_baseSlice.js +1 -2
- package/dist/node_modules/lodash/_baseSome.js +1 -2
- package/dist/node_modules/lodash/_baseSortBy.js +1 -2
- package/dist/node_modules/lodash/_baseSum.js +1 -2
- package/dist/node_modules/lodash/_baseTimes.js +1 -2
- package/dist/node_modules/lodash/_baseToString.js +6 -7
- package/dist/node_modules/lodash/_baseTrim.js +1 -2
- package/dist/node_modules/lodash/_baseUnary.js +1 -2
- package/dist/node_modules/lodash/_baseUniq.js +7 -8
- package/dist/node_modules/lodash/_baseUnset.js +5 -6
- package/dist/node_modules/lodash/_cacheHas.js +1 -2
- package/dist/node_modules/lodash/_castPath.js +1 -2
- package/dist/node_modules/lodash/_castSlice.js +1 -2
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +1 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +1 -2
- package/dist/node_modules/lodash/_cloneDataView.js +1 -2
- package/dist/node_modules/lodash/_cloneRegExp.js +1 -2
- package/dist/node_modules/lodash/_cloneSymbol.js +1 -2
- package/dist/node_modules/lodash/_cloneTypedArray.js +1 -2
- package/dist/node_modules/lodash/_compareAscending.js +1 -2
- package/dist/node_modules/lodash/_compareMultiple.js +1 -2
- package/dist/node_modules/lodash/_copyArray.js +1 -2
- package/dist/node_modules/lodash/_copyObject.js +4 -5
- package/dist/node_modules/lodash/_copySymbols.js +4 -5
- package/dist/node_modules/lodash/_copySymbolsIn.js +1 -2
- package/dist/node_modules/lodash/_coreJsData.js +1 -2
- package/dist/node_modules/lodash/_createBaseEach.js +1 -2
- package/dist/node_modules/lodash/_createBaseFor.js +1 -2
- package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
- package/dist/node_modules/lodash/_createFind.js +5 -6
- package/dist/node_modules/lodash/_createRange.js +4 -5
- package/dist/node_modules/lodash/_createSet.js +6 -7
- package/dist/node_modules/lodash/_customOmitClone.js +1 -2
- package/dist/node_modules/lodash/_defineProperty.js +1 -2
- package/dist/node_modules/lodash/_equalArrays.js +1 -2
- package/dist/node_modules/lodash/_equalByTag.js +5 -6
- package/dist/node_modules/lodash/_equalObjects.js +1 -2
- package/dist/node_modules/lodash/_flatRest.js +5 -6
- package/dist/node_modules/lodash/_freeGlobal.js +1 -2
- package/dist/node_modules/lodash/_getAllKeys.js +1 -2
- package/dist/node_modules/lodash/_getAllKeysIn.js +4 -5
- package/dist/node_modules/lodash/_getMapData.js +1 -2
- package/dist/node_modules/lodash/_getMatchData.js +4 -5
- package/dist/node_modules/lodash/_getNative.js +1 -2
- package/dist/node_modules/lodash/_getPrototype.js +1 -2
- package/dist/node_modules/lodash/_getRawTag.js +1 -2
- package/dist/node_modules/lodash/_getSymbols.js +1 -2
- package/dist/node_modules/lodash/_getSymbolsIn.js +4 -5
- package/dist/node_modules/lodash/_getTag.js +9 -10
- package/dist/node_modules/lodash/_getValue.js +1 -2
- package/dist/node_modules/lodash/_hasPath.js +8 -9
- package/dist/node_modules/lodash/_hasUnicode.js +1 -2
- package/dist/node_modules/lodash/_hashClear.js +1 -2
- package/dist/node_modules/lodash/_hashDelete.js +1 -2
- package/dist/node_modules/lodash/_hashGet.js +1 -2
- package/dist/node_modules/lodash/_hashHas.js +1 -2
- package/dist/node_modules/lodash/_hashSet.js +1 -2
- package/dist/node_modules/lodash/_initCloneArray.js +1 -2
- package/dist/node_modules/lodash/_initCloneByTag.js +1 -2
- package/dist/node_modules/lodash/_initCloneObject.js +4 -5
- package/dist/node_modules/lodash/_isFlattenable.js +5 -6
- package/dist/node_modules/lodash/_isIndex.js +6 -7
- package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
- package/dist/node_modules/lodash/_isKey.js +1 -2
- package/dist/node_modules/lodash/_isKeyable.js +1 -2
- package/dist/node_modules/lodash/_isMasked.js +1 -2
- package/dist/node_modules/lodash/_isPrototype.js +1 -2
- package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
- package/dist/node_modules/lodash/_listCacheClear.js +1 -2
- package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_listCacheGet.js +1 -2
- package/dist/node_modules/lodash/_listCacheHas.js +1 -2
- package/dist/node_modules/lodash/_listCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
- package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
- package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapToArray.js +1 -2
- package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
- package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
- package/dist/node_modules/lodash/_nativeCreate.js +1 -2
- package/dist/node_modules/lodash/_nativeKeys.js +1 -2
- package/dist/node_modules/lodash/_nativeKeysIn.js +1 -2
- package/dist/node_modules/lodash/_nodeUtil.js +1 -2
- package/dist/node_modules/lodash/_objectToString.js +1 -2
- package/dist/node_modules/lodash/_overArg.js +1 -2
- package/dist/node_modules/lodash/_overRest.js +1 -2
- package/dist/node_modules/lodash/_parent.js +1 -2
- package/dist/node_modules/lodash/_root.js +1 -2
- package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
- package/dist/node_modules/lodash/_setCacheHas.js +1 -2
- package/dist/node_modules/lodash/_setToArray.js +1 -2
- package/dist/node_modules/lodash/_setToString.js +1 -2
- package/dist/node_modules/lodash/_shortOut.js +8 -9
- package/dist/node_modules/lodash/_stackClear.js +1 -2
- package/dist/node_modules/lodash/_stackDelete.js +1 -2
- package/dist/node_modules/lodash/_stackGet.js +1 -2
- package/dist/node_modules/lodash/_stackHas.js +1 -2
- package/dist/node_modules/lodash/_stackSet.js +1 -2
- package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
- package/dist/node_modules/lodash/_stringToArray.js +4 -5
- package/dist/node_modules/lodash/_stringToPath.js +1 -2
- package/dist/node_modules/lodash/_toKey.js +2 -3
- package/dist/node_modules/lodash/_toSource.js +1 -2
- package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
- package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
- package/dist/node_modules/lodash/constant.js +1 -2
- package/dist/node_modules/lodash/debounce.js +1 -2
- package/dist/node_modules/lodash/eq.js +1 -2
- package/dist/node_modules/lodash/every.js +7 -8
- package/dist/node_modules/lodash/find.js +1 -2
- package/dist/node_modules/lodash/findIndex.js +4 -5
- package/dist/node_modules/lodash/flatMap.js +1 -2
- package/dist/node_modules/lodash/flatten.js +1 -2
- package/dist/node_modules/lodash/get.js +1 -2
- package/dist/node_modules/lodash/hasIn.js +1 -2
- package/dist/node_modules/lodash/identity.js +1 -2
- package/dist/node_modules/lodash/isArguments.js +4 -5
- package/dist/node_modules/lodash/isArray.js +1 -2
- package/dist/node_modules/lodash/isArrayLike.js +1 -2
- package/dist/node_modules/lodash/isBoolean.js +1 -2
- package/dist/node_modules/lodash/isBuffer.js +1 -2
- package/dist/node_modules/lodash/isEqual.js +1 -2
- package/dist/node_modules/lodash/isFunction.js +1 -2
- package/dist/node_modules/lodash/isLength.js +4 -6
- package/dist/node_modules/lodash/isMap.js +5 -6
- package/dist/node_modules/lodash/isNaN.js +1 -2
- package/dist/node_modules/lodash/isNil.js +1 -2
- package/dist/node_modules/lodash/isNumber.js +1 -2
- package/dist/node_modules/lodash/isObject.js +1 -2
- package/dist/node_modules/lodash/isObjectLike.js +1 -2
- package/dist/node_modules/lodash/isPlainObject.js +4 -5
- package/dist/node_modules/lodash/isSet.js +5 -6
- package/dist/node_modules/lodash/isString.js +4 -5
- package/dist/node_modules/lodash/isSymbol.js +1 -2
- package/dist/node_modules/lodash/isTypedArray.js +1 -2
- package/dist/node_modules/lodash/keys.js +1 -2
- package/dist/node_modules/lodash/keysIn.js +4 -5
- package/dist/node_modules/lodash/last.js +1 -2
- package/dist/node_modules/lodash/map.js +6 -7
- package/dist/node_modules/lodash/mapValues.js +4 -5
- package/dist/node_modules/lodash/max.js +5 -6
- package/dist/node_modules/lodash/maxBy.js +5 -6
- package/dist/node_modules/lodash/memoize.js +1 -2
- package/dist/node_modules/lodash/min.js +5 -6
- package/dist/node_modules/lodash/noop.js +1 -2
- package/dist/node_modules/lodash/now.js +1 -2
- package/dist/node_modules/lodash/omit.js +9 -10
- package/dist/node_modules/lodash/property.js +6 -7
- package/dist/node_modules/lodash/range.js +1 -2
- package/dist/node_modules/lodash/some.js +7 -8
- package/dist/node_modules/lodash/sortBy.js +1 -2
- package/dist/node_modules/lodash/stubArray.js +1 -2
- package/dist/node_modules/lodash/stubFalse.js +1 -2
- package/dist/node_modules/lodash/sumBy.js +1 -2
- package/dist/node_modules/lodash/throttle.js +4 -5
- package/dist/node_modules/lodash/toFinite.js +2 -3
- package/dist/node_modules/lodash/toInteger.js +1 -2
- package/dist/node_modules/lodash/toNumber.js +4 -5
- package/dist/node_modules/lodash/toString.js +1 -2
- package/dist/node_modules/lodash/uniqBy.js +1 -2
- package/dist/node_modules/lodash/upperFirst.js +1 -2
- package/dist/node_modules/object-assign/index.js +1 -2
- package/dist/node_modules/pptxgenjs/dist/pptxgen.es.js +98 -106
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/prop-types/index.js +1 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
- package/dist/node_modules/prop-types/lib/has.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/react-is/cjs/react-is.development.js +31 -32
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/react-smooth/es6/Animate.js +33 -41
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
- package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
- package/dist/node_modules/react-smooth/es6/easing.js +1 -2
- package/dist/node_modules/react-smooth/es6/index.js +1 -2
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
- package/dist/node_modules/react-smooth/es6/util.js +17 -16
- package/dist/node_modules/recharts/es6/cartesian/Area.js +99 -100
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +103 -104
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +35 -36
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +60 -67
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +45 -46
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +20 -21
- package/dist/node_modules/recharts/es6/cartesian/Line.js +79 -80
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +29 -30
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +23 -24
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +31 -32
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +10 -11
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +10 -11
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +2 -5
- package/dist/node_modules/recharts/es6/chart/AreaChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
- package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/Sankey.js +92 -93
- package/dist/node_modules/recharts/es6/chart/Treemap.js +154 -155
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
- package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
- package/dist/node_modules/recharts/es6/component/Cursor.js +17 -18
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +35 -36
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +16 -17
- package/dist/node_modules/recharts/es6/component/Label.js +85 -86
- package/dist/node_modules/recharts/es6/component/LabelList.js +20 -21
- package/dist/node_modules/recharts/es6/component/Legend.js +26 -23
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +16 -17
- package/dist/node_modules/recharts/es6/component/Text.js +18 -21
- package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +3 -4
- package/dist/node_modules/recharts/es6/container/Layer.js +5 -6
- package/dist/node_modules/recharts/es6/container/Surface.js +5 -6
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +21 -21
- package/dist/node_modules/recharts/es6/shape/Cross.js +4 -5
- package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
- package/dist/node_modules/recharts/es6/shape/Dot.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Polygon.js +7 -8
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
- package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +24 -25
- package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +33 -34
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
- package/dist/node_modules/recharts/es6/util/Constants.js +1 -2
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
- package/dist/node_modules/recharts/es6/util/Events.js +0 -1
- package/dist/node_modules/recharts/es6/util/Global.js +0 -1
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
- package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +4 -5
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +11 -12
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +5 -6
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
- package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
- package/dist/node_modules/recharts/es6/util/types.js +2 -3
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
- package/dist/node_modules/recharts-scale/es6/index.js +1 -1
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
- package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
- package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
- package/dist/node_modules/write-excel-file/browser/index.js +1 -2
- package/dist/node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js +1 -2
- package/dist/node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js +1 -2
- package/dist/node_modules/write-excel-file/modules/export/downloadBlob.js +1 -2
- package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js +1 -2
- package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js +3 -3
- package/dist/node_modules/write-excel-file/modules/getSheetData/getSheetData.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.js +29 -26
- package/dist/node_modules/write-excel-file/modules/xlsx/features/images.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js +28 -29
- package/dist/node_modules/write-excel-file/modules/xlsx/files/_Content_Types_.xml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/rels.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/processMergedCells.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/row.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheet.xml.js +19 -20
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetData.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetViews.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml.rels.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/styles.xml.js +16 -17
- package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.rels.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/generateXlsxFileContents.js +66 -63
- package/dist/node_modules/write-excel-file/modules/xlsx/getFeatures.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/convertDateToSerialNumber.js +3 -6
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getAdditionalContent.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getElementXml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getWrittenFiles.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/transformContent.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getAlignmentXml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js +6 -8
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js +5 -6
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js +2 -3
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isCellObject.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isObject.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeSheets.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeStyles.js +5 -6
- package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetData.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetName.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/appendMarkupInsideElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/applyEnclosingElementOffset.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/escapeXmlSpecialCharacters.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/findElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/findElementInsideElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/findElementsNonRecursive_.js +6 -6
- package/dist/node_modules/write-excel-file/modules/xml/getAttributesString.js +4 -5
- package/dist/node_modules/write-excel-file/modules/xml/getChildElements.js +6 -7
- package/dist/node_modules/write-excel-file/modules/xml/getClosingTagMarkup.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/getMarkupInsideElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/getOpeningTagMarkup.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/getSelfClosingTagMarkup.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/insertElementMarkupAccordingToOrderOfSiblings.js +15 -16
- package/dist/node_modules/write-excel-file/modules/xml/prependMarkupInsideElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/removeInvalidXmlCharacters.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/replaceElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeName.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeValue.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeTextContent.js +1 -2
- package/dist/node_modules/write-excel-file/modules/xml/setMarkupInsideElement.js +1 -2
- package/dist/node_modules/write-excel-file/modules/zip/zipToArrayBuffer.js +1 -2
- package/dist/planmagnet/PlanMagnetRoot.d.ts +0 -2
- package/dist/planmagnet/PlanMagnetRoot.js +180 -173
- package/dist/planmagnet/PlanMagnetRoutes.d.ts +1 -2
- package/dist/planmagnet/PlanMagnetRoutes.js +281 -273
- package/dist/planmagnet/activity/activityDescribe.d.ts +2 -3
- package/dist/planmagnet/activity/activityDescribe.js +3 -4
- package/dist/planmagnet/activity/relativeTime.d.ts +0 -1
- package/dist/planmagnet/activity/relativeTime.js +7 -8
- package/dist/planmagnet/admin/AdminRequestBoundary.d.ts +4 -0
- package/dist/planmagnet/admin/AdminRequestBoundary.js +18 -0
- package/dist/planmagnet/admin/PlanMagnetAdminRoot.d.ts +7 -3
- package/dist/planmagnet/admin/PlanMagnetAdminRoot.js +315 -313
- package/dist/planmagnet/automation/AutomationExecutionsPanel.d.ts +1 -2
- package/dist/planmagnet/automation/AutomationExecutionsPanel.js +2 -3
- package/dist/planmagnet/automation/AutomationRuleFields.d.ts +4 -6
- package/dist/planmagnet/automation/AutomationRuleFields.js +33 -34
- package/dist/planmagnet/automation/WorkflowSelect.d.ts +1 -2
- package/dist/planmagnet/automation/WorkflowSelect.js +1 -2
- package/dist/planmagnet/automation/automationRuleTypes.d.ts +0 -1
- package/dist/planmagnet/automation/automationRuleTypes.js +5 -6
- package/dist/planmagnet/board/BoardViewBar.d.ts +1 -3
- package/dist/planmagnet/board/BoardViewBar.js +17 -15
- package/dist/planmagnet/board/BulkActions.d.ts +1 -3
- package/dist/planmagnet/board/BulkActions.js +19 -19
- package/dist/planmagnet/board/ProjectBoard.d.ts +1 -2
- package/dist/planmagnet/board/ProjectBoard.js +38 -39
- package/dist/planmagnet/board/boardViewConfig.d.ts +1 -3
- package/dist/planmagnet/board/boardViewConfig.js +42 -43
- package/dist/planmagnet/budgets/BudgetControls.d.ts +2 -3
- package/dist/planmagnet/budgets/BudgetControls.js +47 -51
- package/dist/planmagnet/budgets/ExpenseControls.d.ts +3 -4
- package/dist/planmagnet/budgets/ExpenseControls.js +26 -30
- package/dist/planmagnet/budgets/ProjectBudgetsSummary.d.ts +1 -2
- package/dist/planmagnet/budgets/ProjectBudgetsSummary.js +18 -19
- package/dist/planmagnet/budgets/budgetMath.d.ts +0 -2
- package/dist/planmagnet/budgets/budgetMath.js +1 -2
- package/dist/planmagnet/comments/CommentAttachmentUpload.d.ts +1 -2
- package/dist/planmagnet/comments/CommentAttachmentUpload.js +1 -2
- package/dist/planmagnet/comments/CommentAttachments.d.ts +1 -3
- package/dist/planmagnet/comments/CommentAttachments.js +17 -19
- package/dist/planmagnet/comments/CommentBody.d.ts +1 -3
- package/dist/planmagnet/comments/CommentBody.js +1 -2
- package/dist/planmagnet/comments/CommentThread.d.ts +1 -3
- package/dist/planmagnet/comments/CommentThread.js +26 -27
- package/dist/planmagnet/comments/MentionComposer.d.ts +1 -2
- package/dist/planmagnet/comments/MentionComposer.js +10 -9
- package/dist/planmagnet/comments/RoadmapComments.d.ts +3 -4
- package/dist/planmagnet/comments/RoadmapComments.js +19 -20
- package/dist/planmagnet/comments/TargetComments.d.ts +2 -3
- package/dist/planmagnet/comments/TargetComments.js +1 -2
- package/dist/planmagnet/comments/WorkItemActivity.d.ts +1 -2
- package/dist/planmagnet/comments/WorkItemActivity.js +9 -10
- package/dist/planmagnet/comments/WorkItemComments.d.ts +1 -2
- package/dist/planmagnet/comments/WorkItemComments.js +1 -2
- package/dist/planmagnet/comments/commentAttachmentUploadClient.d.ts +0 -2
- package/dist/planmagnet/comments/commentAttachmentUploadClient.js +65 -63
- package/dist/planmagnet/comments/commentImageTokens.d.ts +0 -1
- package/dist/planmagnet/comments/commentImageTokens.js +1 -2
- package/dist/planmagnet/comments/commentTokens.d.ts +0 -1
- package/dist/planmagnet/comments/commentTokens.js +1 -2
- package/dist/planmagnet/comments/fileDisplay.d.ts +0 -2
- package/dist/planmagnet/comments/fileDisplay.js +1 -2
- package/dist/planmagnet/comments/useCommentFileUrl.d.ts +0 -2
- package/dist/planmagnet/comments/useCommentFileUrl.js +2 -3
- package/dist/planmagnet/controls/AutomationRuleControls.d.ts +3 -4
- package/dist/planmagnet/controls/AutomationRuleControls.js +31 -31
- package/dist/planmagnet/controls/CompetitorControls.d.ts +4 -5
- package/dist/planmagnet/controls/CompetitorControls.js +31 -30
- package/dist/planmagnet/controls/ConfirmButton.d.ts +2 -4
- package/dist/planmagnet/controls/ConfirmButton.js +1 -2
- package/dist/planmagnet/controls/CustomFieldControls.d.ts +0 -1
- package/dist/planmagnet/controls/CustomFieldControls.js +2 -3
- package/dist/planmagnet/controls/CustomFieldValuesPanel.d.ts +1 -3
- package/dist/planmagnet/controls/CustomFieldValuesPanel.js +30 -26
- package/dist/planmagnet/controls/FeatureControls.d.ts +3 -4
- package/dist/planmagnet/controls/FeatureControls.js +88 -92
- package/dist/planmagnet/controls/FeatureTriage.d.ts +1 -2
- package/dist/planmagnet/controls/FeatureTriage.js +2 -3
- package/dist/planmagnet/controls/FeedbackControls.d.ts +6 -7
- package/dist/planmagnet/controls/FeedbackControls.js +2 -3
- package/dist/planmagnet/controls/LiveStatus.d.ts +1 -3
- package/dist/planmagnet/controls/LiveStatus.js +1 -2
- package/dist/planmagnet/controls/MilestoneControls.d.ts +1 -2
- package/dist/planmagnet/controls/MilestoneControls.js +4 -8
- package/dist/planmagnet/controls/ObjectiveControls.d.ts +2 -3
- package/dist/planmagnet/controls/ObjectiveControls.js +38 -42
- package/dist/planmagnet/controls/Pickers.d.ts +11 -12
- package/dist/planmagnet/controls/Pickers.js +1 -2
- package/dist/planmagnet/controls/PortfolioControls.d.ts +1 -2
- package/dist/planmagnet/controls/PortfolioControls.js +12 -13
- package/dist/planmagnet/controls/PrioritizationControls.d.ts +3 -4
- package/dist/planmagnet/controls/PrioritizationControls.js +20 -21
- package/dist/planmagnet/controls/ProgramControls.d.ts +2 -3
- package/dist/planmagnet/controls/ProgramControls.js +27 -28
- package/dist/planmagnet/controls/ProjectControls.d.ts +1 -2
- package/dist/planmagnet/controls/ProjectControls.js +14 -15
- package/dist/planmagnet/controls/QualityGateControls.d.ts +5 -7
- package/dist/planmagnet/controls/QualityGateControls.js +37 -41
- package/dist/planmagnet/controls/ReleaseControls.d.ts +1 -2
- package/dist/planmagnet/controls/ReleaseControls.js +12 -13
- package/dist/planmagnet/controls/RiskControls.d.ts +1 -2
- package/dist/planmagnet/controls/RiskControls.js +3 -7
- package/dist/planmagnet/controls/SyncControls.d.ts +12 -14
- package/dist/planmagnet/controls/SyncControls.js +183 -187
- package/dist/planmagnet/controls/TemplateControls.d.ts +1 -2
- package/dist/planmagnet/controls/TemplateControls.js +9 -10
- package/dist/planmagnet/controls/WebhookSubscriptionControls.d.ts +8 -10
- package/dist/planmagnet/controls/WebhookSubscriptionControls.js +54 -54
- package/dist/planmagnet/controls/WorkItemControls.d.ts +6 -7
- package/dist/planmagnet/controls/WorkItemControls.js +24 -25
- package/dist/planmagnet/create/CreateDialogs.d.ts +6 -8
- package/dist/planmagnet/create/CreateDialogs.js +9 -10
- package/dist/planmagnet/dashboards/DashboardUI.d.ts +5 -7
- package/dist/planmagnet/dashboards/DashboardUI.js +1 -2
- package/dist/planmagnet/dashboards/cards/DeliveryTimelineCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/DeliveryTimelineCard.js +1 -2
- package/dist/planmagnet/dashboards/cards/ObjectivesProgressCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/ObjectivesProgressCard.js +1 -2
- package/dist/planmagnet/dashboards/cards/PortfolioHealthCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/PortfolioHealthCard.js +2 -3
- package/dist/planmagnet/dashboards/cards/QualityMetricsCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/QualityMetricsCard.js +1 -2
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.js +2 -3
- package/dist/planmagnet/dashboards/cards/RoadmapHorizonCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/RoadmapHorizonCard.js +1 -2
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.js +8 -9
- package/dist/planmagnet/dashboards/cards/TaskCompletionCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/TaskCompletionCard.js +9 -10
- package/dist/planmagnet/dashboards/cards/TeamCapacityCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/TeamCapacityCard.js +1 -2
- package/dist/planmagnet/dashboards/cards/TeamOverviewCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/TeamOverviewCard.js +6 -7
- package/dist/planmagnet/dashboards/cards/TeamWorkloadCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/TeamWorkloadCard.js +12 -13
- package/dist/planmagnet/dashboards/cards/TimeLoggedCard.d.ts +1 -2
- package/dist/planmagnet/dashboards/cards/TimeLoggedCard.js +9 -10
- package/dist/planmagnet/dependency/DependencyGraph.d.ts +1 -2
- package/dist/planmagnet/dependency/DependencyGraph.js +14 -15
- package/dist/planmagnet/dependency/DependencyPanel.d.ts +1 -2
- package/dist/planmagnet/dependency/DependencyPanel.js +33 -34
- package/dist/planmagnet/dependency/GanttChart.d.ts +1 -2
- package/dist/planmagnet/dependency/GanttChart.js +7 -8
- package/dist/planmagnet/dependency/useProjectWorkItemsGraph.d.ts +0 -2
- package/dist/planmagnet/dependency/useProjectWorkItemsGraph.js +1 -2
- package/dist/planmagnet/discussion/WorkItemDiscussionPanel.d.ts +1 -2
- package/dist/planmagnet/discussion/WorkItemDiscussionPanel.js +13 -14
- package/dist/planmagnet/docs/DocDiffView.d.ts +1 -3
- package/dist/planmagnet/docs/DocDiffView.js +1 -2
- package/dist/planmagnet/docs/DocStatusBadge.d.ts +1 -2
- package/dist/planmagnet/docs/DocStatusBadge.js +1 -2
- package/dist/planmagnet/docs/DocSuggestionsPanel.d.ts +1 -2
- package/dist/planmagnet/docs/DocSuggestionsPanel.js +12 -13
- package/dist/planmagnet/docs/DocVersionCompare.d.ts +1 -2
- package/dist/planmagnet/docs/DocVersionCompare.js +4 -5
- package/dist/planmagnet/export/ExportWorkItemsButton.d.ts +1 -2
- package/dist/planmagnet/export/ExportWorkItemsButton.js +3 -4
- package/dist/planmagnet/export/workItemsCsv.d.ts +0 -1
- package/dist/planmagnet/export/workItemsCsv.js +2 -3
- package/dist/planmagnet/forecast/DeliveryForecastCard.d.ts +1 -2
- package/dist/planmagnet/forecast/DeliveryForecastCard.js +1 -2
- package/dist/planmagnet/forecast/ProjectOutlookCard.d.ts +1 -2
- package/dist/planmagnet/forecast/ProjectOutlookCard.js +5 -6
- package/dist/planmagnet/forecast/ProjectRiskSummaryCard.d.ts +1 -2
- package/dist/planmagnet/forecast/ProjectRiskSummaryCard.js +14 -12
- package/dist/planmagnet/forecast/ResourceForecastCard.d.ts +1 -2
- package/dist/planmagnet/forecast/ResourceForecastCard.js +1 -2
- package/dist/planmagnet/forecast/riskFlags.d.ts +0 -2
- package/dist/planmagnet/forecast/riskFlags.js +2 -3
- package/dist/planmagnet/gotomarket/PersonaLibraryPage.d.ts +8 -0
- package/dist/planmagnet/gotomarket/PersonaLibraryPage.js +901 -0
- package/dist/planmagnet/gotomarket/ProductLaunchPage.d.ts +2 -0
- package/dist/planmagnet/gotomarket/ProductLaunchPage.js +1381 -0
- package/dist/planmagnet/gotomarket/ProductLaunchesCard.d.ts +10 -0
- package/dist/planmagnet/gotomarket/ProductLaunchesCard.js +225 -0
- package/dist/planmagnet/gotomarket/ProductMarketSizingCard.d.ts +9 -0
- package/dist/planmagnet/gotomarket/ProductMarketSizingCard.js +510 -0
- package/dist/planmagnet/gotomarket/launchOperations.d.ts +23 -0
- package/dist/planmagnet/gotomarket/launchOperations.js +298 -0
- package/dist/planmagnet/gotomarket/marketSizingOperations.d.ts +9 -0
- package/dist/planmagnet/gotomarket/marketSizingOperations.js +48 -0
- package/dist/planmagnet/gotomarket/personaOperations.d.ts +17 -0
- package/dist/planmagnet/gotomarket/personaOperations.js +157 -0
- package/dist/planmagnet/gotomarket/prm04UpdateInputs.d.ts +71 -0
- package/dist/planmagnet/gotomarket/prm04UpdateInputs.js +45 -0
- package/dist/planmagnet/hooks/useCounts.d.ts +0 -1
- package/dist/planmagnet/hooks/useCounts.js +1 -2
- package/dist/planmagnet/hooks/useEntityId.d.ts +0 -1
- package/dist/planmagnet/hooks/useEntityId.js +1 -2
- package/dist/planmagnet/hooks/useLiveRefresh.d.ts +0 -1
- package/dist/planmagnet/hooks/useLiveRefresh.js +7 -22
- package/dist/planmagnet/hooks/usePresence.d.ts +0 -1
- package/dist/planmagnet/hooks/usePresence.js +3 -7
- package/dist/planmagnet/hooks/useProjectWorkflow.d.ts +0 -1
- package/dist/planmagnet/hooks/useProjectWorkflow.js +1 -2
- package/dist/planmagnet/import/exportColumns.d.ts +0 -1
- package/dist/planmagnet/import/exportColumns.js +1 -2
- package/dist/planmagnet/index.d.ts +2 -2
- package/dist/planmagnet/index.js +9 -8
- package/dist/planmagnet/integrations/routes.d.ts +0 -1
- package/dist/planmagnet/integrations/routes.js +1 -2
- package/dist/planmagnet/integrations/syncTypes.d.ts +0 -1
- package/dist/planmagnet/integrations/syncTypes.js +2 -3
- package/dist/planmagnet/integrations/useSyncProviderCapabilities.d.ts +0 -2
- package/dist/planmagnet/integrations/useSyncProviderCapabilities.js +1 -2
- package/dist/planmagnet/links/CodeLinksPanel.d.ts +1 -2
- package/dist/planmagnet/links/CodeLinksPanel.js +1 -2
- package/dist/planmagnet/links/IssueLinksPanel.d.ts +1 -2
- package/dist/planmagnet/links/IssueLinksPanel.js +12 -13
- package/dist/planmagnet/meetings/MeetingActionItemsPanel.d.ts +1 -2
- package/dist/planmagnet/meetings/MeetingActionItemsPanel.js +25 -26
- package/dist/planmagnet/meetings/MeetingsCard.d.ts +1 -2
- package/dist/planmagnet/meetings/MeetingsCard.js +9 -10
- package/dist/planmagnet/meetings/ScheduleCeremoniesDialog.d.ts +1 -2
- package/dist/planmagnet/meetings/ScheduleCeremoniesDialog.js +5 -6
- package/dist/planmagnet/meetings/ScheduleMeetingDialog.d.ts +1 -3
- package/dist/planmagnet/meetings/ScheduleMeetingDialog.js +32 -34
- package/dist/planmagnet/meetings/UnlinkMeetingDialog.d.ts +1 -2
- package/dist/planmagnet/meetings/UnlinkMeetingDialog.js +27 -29
- package/dist/planmagnet/meetings/meetingActions.d.ts +0 -2
- package/dist/planmagnet/meetings/meetingActions.js +27 -28
- package/dist/planmagnet/meetings/meetingGraphql.d.ts +0 -1
- package/dist/planmagnet/meetings/meetingGraphql.js +1 -2
- package/dist/planmagnet/meetings/meetingModel.d.ts +0 -1
- package/dist/planmagnet/meetings/meetingModel.js +3 -4
- package/dist/planmagnet/milestones/MilestoneControls.d.ts +4 -5
- package/dist/planmagnet/milestones/MilestoneControls.js +29 -30
- package/dist/planmagnet/pages/ActivityActivityPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ActivityActivityPagePage.js +19 -20
- package/dist/planmagnet/pages/AiActivityPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/AiActivityPagePage.js +1 -2
- package/dist/planmagnet/pages/AiPlanPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/AiPlanPagePage.js +153 -115
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +283 -284
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +38 -42
- package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js +18 -19
- package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.d.ts +1 -2
- package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +13 -14
- package/dist/planmagnet/pages/CompetitorsCompetitorDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/CompetitorsCompetitorDetailPagePage.js +1 -2
- package/dist/planmagnet/pages/CompetitorsCompetitorsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/CompetitorsCompetitorsPagePage.js +1 -2
- package/dist/planmagnet/pages/CompetitorsCreateCompetitorPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/CompetitorsCreateCompetitorPagePage.js +6 -7
- package/dist/planmagnet/pages/CompetitorsEditCompetitorPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/CompetitorsEditCompetitorPagePage.js +17 -21
- package/dist/planmagnet/pages/DashboardDashboardPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DashboardDashboardPagePage.js +25 -26
- package/dist/planmagnet/pages/DashboardsExecutivePagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DashboardsExecutivePagePage.js +18 -19
- package/dist/planmagnet/pages/DashboardsLeadershipPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DashboardsLeadershipPagePage.js +11 -12
- package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.js +33 -34
- package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.js +23 -24
- package/dist/planmagnet/pages/DocsDocDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DocsDocDetailPagePage.js +110 -111
- package/dist/planmagnet/pages/DocsDocsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/DocsDocsPagePage.js +30 -31
- package/dist/planmagnet/pages/GoalsCreateObjectivePagePage.d.ts +1 -2
- package/dist/planmagnet/pages/GoalsCreateObjectivePagePage.js +7 -8
- package/dist/planmagnet/pages/GoalsGoalsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/GoalsGoalsPagePage.js +1 -2
- package/dist/planmagnet/pages/GoalsObjectiveDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/GoalsObjectiveDetailPagePage.js +21 -22
- package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js +168 -172
- package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js +60 -61
- package/dist/planmagnet/pages/IntegrationsSyncsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js +25 -26
- package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.js +1 -2
- package/dist/planmagnet/pages/MeetingsMeetingDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/MeetingsMeetingDetailPagePage.js +23 -24
- package/dist/planmagnet/pages/MeetingsMeetingsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/MeetingsMeetingsPagePage.js +18 -19
- package/dist/planmagnet/pages/NotFoundPage.d.ts +1 -2
- package/dist/planmagnet/pages/NotFoundPage.js +1 -2
- package/dist/planmagnet/pages/PortfoliosCreatePortfolioPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/PortfoliosCreatePortfolioPagePage.js +1 -2
- package/dist/planmagnet/pages/PortfoliosEditPortfolioPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/PortfoliosEditPortfolioPagePage.js +12 -16
- package/dist/planmagnet/pages/PortfoliosPortfolioDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/PortfoliosPortfolioDetailPagePage.js +17 -18
- package/dist/planmagnet/pages/PortfoliosPortfoliosPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/PortfoliosPortfoliosPagePage.js +9 -10
- package/dist/planmagnet/pages/ProductsCreateProductPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsCreateProductPagePage.js +8 -9
- package/dist/planmagnet/pages/ProductsCreateRoadmapPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsCreateRoadmapPagePage.js +1 -2
- package/dist/planmagnet/pages/ProductsCustomerSatisfactionPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsCustomerSatisfactionPagePage.js +57 -59
- package/dist/planmagnet/pages/ProductsEditProductPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsEditProductPagePage.js +13 -14
- package/dist/planmagnet/pages/ProductsEditReleasePagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsEditReleasePagePage.js +14 -18
- package/dist/planmagnet/pages/ProductsEditRoadmapPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsEditRoadmapPagePage.js +12 -13
- package/dist/planmagnet/pages/ProductsFeatureAnalyticsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsFeatureAnalyticsPagePage.js +1 -2
- package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +23 -24
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +34 -35
- package/dist/planmagnet/pages/ProductsNewFeaturePagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsNewFeaturePagePage.js +13 -14
- package/dist/planmagnet/pages/ProductsPrioritizationPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsPrioritizationPagePage.js +21 -22
- package/dist/planmagnet/pages/ProductsProductDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsProductDetailPagePage.js +132 -102
- package/dist/planmagnet/pages/ProductsProductFeatureDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsProductFeatureDetailPagePage.js +11 -12
- package/dist/planmagnet/pages/ProductsProductHierarchyPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsProductHierarchyPagePage.js +86 -87
- package/dist/planmagnet/pages/ProductsProductLinesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsProductLinesPagePage.js +11 -12
- package/dist/planmagnet/pages/ProductsProductsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsProductsPagePage.js +109 -99
- package/dist/planmagnet/pages/ProductsReleaseDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsReleaseDetailPagePage.js +15 -16
- package/dist/planmagnet/pages/ProductsReleasesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsReleasesPagePage.js +6 -7
- package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js +10 -11
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +37 -38
- package/dist/planmagnet/pages/ProductsRoadmapsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProductsRoadmapsPagePage.js +5 -6
- package/dist/planmagnet/pages/ProgramsCreateProgramPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProgramsCreateProgramPagePage.js +5 -6
- package/dist/planmagnet/pages/ProgramsEditProgramPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProgramsEditProgramPagePage.js +14 -18
- package/dist/planmagnet/pages/ProgramsProgramDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProgramsProgramDetailPagePage.js +1 -2
- package/dist/planmagnet/pages/ProgramsProgramsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProgramsProgramsPagePage.js +8 -9
- package/dist/planmagnet/pages/ProjectsActiveProjectsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsActiveProjectsPagePage.js +5 -6
- package/dist/planmagnet/pages/ProjectsAtRiskPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsAtRiskPagePage.js +35 -33
- package/dist/planmagnet/pages/ProjectsBudgetDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsBudgetDetailPagePage.js +45 -46
- package/dist/planmagnet/pages/ProjectsBudgetsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsBudgetsPagePage.js +38 -39
- package/dist/planmagnet/pages/ProjectsCreateProjectPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsCreateProjectPagePage.js +2 -3
- package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +6 -7
- package/dist/planmagnet/pages/ProjectsCustomFieldsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsCustomFieldsPagePage.js +21 -22
- package/dist/planmagnet/pages/ProjectsEditProjectPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsEditProjectPagePage.js +17 -18
- package/dist/planmagnet/pages/ProjectsGanttPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsGanttPagePage.js +11 -12
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +11 -12
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +13 -14
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +28 -29
- package/dist/planmagnet/pages/ProjectsPlanningEditPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsPlanningEditPagePage.js +11 -12
- package/dist/planmagnet/pages/ProjectsPlanningPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +5 -6
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +60 -61
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +12 -13
- package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.js +23 -24
- package/dist/planmagnet/pages/ProjectsWorkflowPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ProjectsWorkflowPagePage.js +32 -33
- package/dist/planmagnet/pages/ReportsCreateReportPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ReportsCreateReportPagePage.js +1 -2
- package/dist/planmagnet/pages/ReportsEditReportPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ReportsEditReportPagePage.js +1 -2
- package/dist/planmagnet/pages/ReportsReportPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ReportsReportPagePage.js +35 -36
- package/dist/planmagnet/pages/ReportsReportsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/ReportsReportsPagePage.js +34 -35
- package/dist/planmagnet/pages/RisksRiskDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +11 -12
- package/dist/planmagnet/pages/RisksRiskRegisterPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/RisksRiskRegisterPagePage.js +19 -20
- package/dist/planmagnet/pages/SprintsStartSprintPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +21 -22
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js +16 -17
- package/dist/planmagnet/pages/TasksEditTaskPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js +21 -25
- package/dist/planmagnet/pages/TasksImportPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksImportPagePage.js +1 -2
- package/dist/planmagnet/pages/TasksMyDashboardPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksMyDashboardPagePage.js +39 -40
- package/dist/planmagnet/pages/TasksMyWorkPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksMyWorkPagePage.js +11 -12
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +73 -74
- package/dist/planmagnet/pages/TasksTasksPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksTasksPagePage.js +11 -12
- package/dist/planmagnet/pages/TasksTimeEntriesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksTimeEntriesPagePage.js +39 -40
- package/dist/planmagnet/pages/TasksTimesheetDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksTimesheetDetailPagePage.js +32 -33
- package/dist/planmagnet/pages/TasksTimesheetsPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TasksTimesheetsPagePage.js +36 -37
- package/dist/planmagnet/pages/TeamCreateTeamPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TeamCreateTeamPagePage.js +11 -12
- package/dist/planmagnet/pages/TeamInviteMemberPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TeamInviteMemberPagePage.js +69 -71
- package/dist/planmagnet/pages/TeamTeamDetailPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +16 -17
- package/dist/planmagnet/pages/TeamTeamEditPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TeamTeamEditPagePage.js +10 -11
- package/dist/planmagnet/pages/TeamTeamPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TeamTeamPagePage.js +1 -2
- package/dist/planmagnet/pages/TeamTeamsListPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TeamTeamsListPagePage.js +5 -6
- package/dist/planmagnet/pages/TemplatesEditTemplatePagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TemplatesEditTemplatePagePage.js +15 -19
- package/dist/planmagnet/pages/TemplatesTemplatesPagePage.d.ts +1 -2
- package/dist/planmagnet/pages/TemplatesTemplatesPagePage.js +12 -13
- package/dist/planmagnet/pages/analytics/DeliveryHealthCards.d.ts +3 -4
- package/dist/planmagnet/pages/analytics/DeliveryHealthCards.js +1 -2
- package/dist/planmagnet/pages/analytics/DeliveryKpisCard.d.ts +1 -2
- package/dist/planmagnet/pages/analytics/DeliveryKpisCard.js +7 -8
- package/dist/planmagnet/pages/analytics/MetricsCard.d.ts +1 -2
- package/dist/planmagnet/pages/analytics/MetricsCard.js +1 -2
- package/dist/planmagnet/pages/analytics/QualityMetricsCard.d.ts +1 -2
- package/dist/planmagnet/pages/analytics/QualityMetricsCard.js +27 -28
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.d.ts +2 -3
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +53 -54
- package/dist/planmagnet/pages/analytics/StatusFlowCard.d.ts +1 -2
- package/dist/planmagnet/pages/analytics/StatusFlowCard.js +29 -30
- package/dist/planmagnet/pages/analytics/ThroughputCard.d.ts +1 -2
- package/dist/planmagnet/pages/analytics/ThroughputCard.js +18 -19
- package/dist/planmagnet/pages/analytics/WorkBreakdownCard.d.ts +1 -2
- package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js +35 -34
- package/dist/planmagnet/pages/analytics/analyticsRange.d.ts +0 -1
- package/dist/planmagnet/pages/analytics/analyticsRange.js +2 -3
- package/dist/planmagnet/people/People.d.ts +4 -6
- package/dist/planmagnet/people/People.js +9 -10
- package/dist/planmagnet/presence/PresenceAvatars.d.ts +2 -4
- package/dist/planmagnet/presence/PresenceAvatars.js +1 -2
- package/dist/planmagnet/product/FeatureLinkPanels.d.ts +2 -3
- package/dist/planmagnet/product/FeatureLinkPanels.js +96 -97
- package/dist/planmagnet/product/ProductControls.d.ts +7 -8
- package/dist/planmagnet/product/ProductControls.js +148 -149
- package/dist/planmagnet/product/ProductFeatureControls.d.ts +4 -5
- package/dist/planmagnet/product/ProductFeatureControls.js +80 -81
- package/dist/planmagnet/product/ProductFeatureLinkCard.d.ts +1 -2
- package/dist/planmagnet/product/ProductFeatureLinkCard.js +24 -25
- package/dist/planmagnet/product/ProductLineControls.d.ts +4 -5
- package/dist/planmagnet/product/ProductLineControls.js +147 -148
- package/dist/planmagnet/product/ProductTeamsPanel.d.ts +1 -2
- package/dist/planmagnet/product/ProductTeamsPanel.js +19 -20
- package/dist/planmagnet/product/WorkItemProductFeatureChip.d.ts +1 -2
- package/dist/planmagnet/product/WorkItemProductFeatureChip.js +4 -5
- package/dist/planmagnet/product/hierarchy.d.ts +0 -1
- package/dist/planmagnet/product/hierarchy.js +2 -3
- package/dist/planmagnet/product/hierarchyOperations.d.ts +0 -1
- package/dist/planmagnet/product/hierarchyOperations.js +1 -2
- package/dist/planmagnet/product/refusal.d.ts +0 -1
- package/dist/planmagnet/product/refusal.js +1 -2
- package/dist/planmagnet/product/routes.d.ts +4 -1
- package/dist/planmagnet/product/routes.js +3 -4
- package/dist/planmagnet/providers/PlanMagnetProvider.d.ts +9 -5
- package/dist/planmagnet/providers/PlanMagnetProvider.js +131 -105
- package/dist/planmagnet/releases/ReleaseChecklistCard.d.ts +1 -2
- package/dist/planmagnet/releases/ReleaseChecklistCard.js +7 -8
- package/dist/planmagnet/releases/ReleaseGatesCard.d.ts +1 -2
- package/dist/planmagnet/releases/ReleaseGatesCard.js +2 -3
- package/dist/planmagnet/releases/ReleaseNotesCard.d.ts +1 -2
- package/dist/planmagnet/releases/ReleaseNotesCard.js +3 -3
- package/dist/planmagnet/releases/ReleaseReadinessCard.d.ts +1 -2
- package/dist/planmagnet/releases/ReleaseReadinessCard.js +4 -5
- package/dist/planmagnet/releases/ReleaseWorkItemsCard.d.ts +1 -2
- package/dist/planmagnet/releases/ReleaseWorkItemsCard.js +1 -2
- package/dist/planmagnet/releases/useReleaseOptions.d.ts +0 -1
- package/dist/planmagnet/releases/useReleaseOptions.js +1 -2
- package/dist/planmagnet/reports/ExportMenu.d.ts +1 -3
- package/dist/planmagnet/reports/ExportMenu.js +1 -2
- package/dist/planmagnet/reports/PrintReportView.d.ts +1 -3
- package/dist/planmagnet/reports/PrintReportView.js +1 -2
- package/dist/planmagnet/reports/ReportBuilderCanvas.d.ts +1 -3
- package/dist/planmagnet/reports/ReportBuilderCanvas.js +40 -41
- package/dist/planmagnet/reports/ReportBuilderPage.d.ts +1 -2
- package/dist/planmagnet/reports/ReportBuilderPage.js +56 -57
- package/dist/planmagnet/reports/ReportRunHistory.d.ts +1 -2
- package/dist/planmagnet/reports/ReportRunHistory.js +1 -2
- package/dist/planmagnet/reports/ReportWidgetRenderer.d.ts +1 -3
- package/dist/planmagnet/reports/ReportWidgetRenderer.js +45 -42
- package/dist/planmagnet/reports/SchedulesPanel.d.ts +1 -2
- package/dist/planmagnet/reports/SchedulesPanel.js +34 -35
- package/dist/planmagnet/reports/ShareDialog.d.ts +1 -2
- package/dist/planmagnet/reports/ShareDialog.js +38 -39
- package/dist/planmagnet/reports/SharedReportPage.d.ts +1 -2
- package/dist/planmagnet/reports/SharedReportPage.js +1 -2
- package/dist/planmagnet/reports/WidgetEditorDialog.d.ts +1 -3
- package/dist/planmagnet/reports/WidgetEditorDialog.js +22 -23
- package/dist/planmagnet/reports/reportExportPptx.d.ts +0 -2
- package/dist/planmagnet/reports/reportExportPptx.js +10 -15
- package/dist/planmagnet/reports/reportExportXlsx.d.ts +0 -2
- package/dist/planmagnet/reports/reportExportXlsx.js +1 -2
- package/dist/planmagnet/reports/reportGraphql.d.ts +0 -1
- package/dist/planmagnet/reports/reportGraphql.js +1 -2
- package/dist/planmagnet/reports/reportModel.d.ts +0 -1
- package/dist/planmagnet/reports/reportModel.js +4 -5
- package/dist/planmagnet/reports/sharedReportRoute.d.ts +0 -1
- package/dist/planmagnet/reports/sharedReportRoute.js +1 -2
- package/dist/planmagnet/retiredRoutes.d.ts +15 -0
- package/dist/planmagnet/retiredRoutes.js +12 -0
- package/dist/planmagnet/roadmaps/FeatureInitiativeCard.d.ts +1 -2
- package/dist/planmagnet/roadmaps/FeatureInitiativeCard.js +9 -10
- package/dist/planmagnet/roadmaps/RoadmapControls.d.ts +3 -4
- package/dist/planmagnet/roadmaps/RoadmapControls.js +145 -146
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts +3 -4
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +22 -23
- package/dist/planmagnet/roadmaps/RoadmapPresentation.d.ts +1 -2
- package/dist/planmagnet/roadmaps/RoadmapPresentation.js +1 -2
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts +1 -2
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js +24 -25
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts +1 -2
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js +13 -14
- package/dist/planmagnet/roadmaps/planningFocus.d.ts +2 -3
- package/dist/planmagnet/roadmaps/planningFocus.js +1 -2
- package/dist/planmagnet/satisfaction/DeliverySatisfactionSection.d.ts +1 -2
- package/dist/planmagnet/satisfaction/DeliverySatisfactionSection.js +9 -10
- package/dist/planmagnet/satisfaction/SatisfactionFigures.d.ts +2 -4
- package/dist/planmagnet/satisfaction/SatisfactionFigures.js +2 -3
- package/dist/planmagnet/satisfaction/SatisfactionImportDialog.d.ts +1 -3
- package/dist/planmagnet/satisfaction/SatisfactionImportDialog.js +102 -104
- package/dist/planmagnet/satisfaction/SatisfactionLinkFields.d.ts +1 -3
- package/dist/planmagnet/satisfaction/SatisfactionLinkFields.js +6 -7
- package/dist/planmagnet/satisfaction/SatisfactionReleaseSelect.d.ts +1 -2
- package/dist/planmagnet/satisfaction/SatisfactionReleaseSelect.js +9 -10
- package/dist/planmagnet/satisfaction/SatisfactionResponseDialog.d.ts +1 -3
- package/dist/planmagnet/satisfaction/SatisfactionResponseDialog.js +94 -95
- package/dist/planmagnet/satisfaction/SatisfactionResponsesTable.d.ts +1 -3
- package/dist/planmagnet/satisfaction/SatisfactionResponsesTable.js +88 -89
- package/dist/planmagnet/satisfaction/SatisfactionSummaryCard.d.ts +1 -3
- package/dist/planmagnet/satisfaction/SatisfactionSummaryCard.js +11 -12
- package/dist/planmagnet/satisfaction/SatisfactionWindowPicker.d.ts +1 -3
- package/dist/planmagnet/satisfaction/SatisfactionWindowPicker.js +8 -9
- package/dist/planmagnet/satisfaction/satisfaction.d.ts +0 -1
- package/dist/planmagnet/satisfaction/satisfaction.js +4 -5
- package/dist/planmagnet/satisfaction/satisfactionCsv.d.ts +0 -2
- package/dist/planmagnet/satisfaction/satisfactionCsv.js +9 -18
- package/dist/planmagnet/satisfaction/satisfactionForm.d.ts +0 -2
- package/dist/planmagnet/satisfaction/satisfactionForm.js +2 -3
- package/dist/planmagnet/satisfaction/satisfactionOperations.d.ts +0 -2
- package/dist/planmagnet/satisfaction/satisfactionOperations.js +1 -2
- package/dist/planmagnet/satisfaction/useSatisfactionAccess.d.ts +0 -1
- package/dist/planmagnet/satisfaction/useSatisfactionAccess.js +1 -2
- package/dist/planmagnet/skills/RequiredSkillsEditor.d.ts +2 -3
- package/dist/planmagnet/skills/RequiredSkillsEditor.js +1 -2
- package/dist/planmagnet/skills/SkillChips.d.ts +3 -5
- package/dist/planmagnet/skills/SkillChips.js +1 -2
- package/dist/planmagnet/skills/SkillCoverageCard.d.ts +1 -2
- package/dist/planmagnet/skills/SkillCoverageCard.js +24 -25
- package/dist/planmagnet/skills/WorkItemRequiredSkills.d.ts +1 -2
- package/dist/planmagnet/skills/WorkItemRequiredSkills.js +1 -2
- package/dist/planmagnet/skills/skillOperations.d.ts +0 -1
- package/dist/planmagnet/skills/skillOperations.js +1 -2
- package/dist/planmagnet/skills/skillTags.d.ts +0 -1
- package/dist/planmagnet/skills/skillTags.js +8 -17
- package/dist/planmagnet/skills/useRequiredSkillsDraft.d.ts +0 -1
- package/dist/planmagnet/skills/useRequiredSkillsDraft.js +5 -6
- package/dist/planmagnet/sprints/SprintControls.d.ts +3 -4
- package/dist/planmagnet/sprints/SprintControls.js +2 -3
- package/dist/planmagnet/sprints/SprintDates.d.ts +1 -2
- package/dist/planmagnet/sprints/SprintDates.js +3 -4
- package/dist/planmagnet/store/planmagnetStore.d.ts +0 -1
- package/dist/planmagnet/store/planmagnetStore.js +1 -2
- package/dist/planmagnet/team/PendingInvitations.d.ts +1 -3
- package/dist/planmagnet/team/PendingInvitations.js +77 -79
- package/dist/planmagnet/team/TeamControls.d.ts +3 -4
- package/dist/planmagnet/team/TeamControls.js +44 -45
- package/dist/planmagnet/team/UnmatchedCrewIdentities.d.ts +1 -2
- package/dist/planmagnet/team/UnmatchedCrewIdentities.js +8 -9
- package/dist/planmagnet/team/invitationEmail.d.ts +0 -1
- package/dist/planmagnet/team/invitationEmail.js +1 -2
- package/dist/planmagnet/time/TaskTimePanel.d.ts +1 -2
- package/dist/planmagnet/time/TaskTimePanel.js +12 -13
- package/dist/planmagnet/time/TimeEntryControls.d.ts +3 -4
- package/dist/planmagnet/time/TimeEntryControls.js +35 -39
- package/dist/planmagnet/time/TimesheetControls.d.ts +3 -4
- package/dist/planmagnet/time/TimesheetControls.js +1 -2
- package/dist/planmagnet/time/timeShared.d.ts +0 -1
- package/dist/planmagnet/time/timeShared.js +11 -12
- package/dist/planmagnet/types/index.d.ts +1 -2
- package/dist/planmagnet/utils/cn.d.ts +0 -2
- package/dist/planmagnet/utils/cn.js +2 -3
- package/dist/planmagnet/utils/email.d.ts +0 -1
- package/dist/planmagnet/utils/email.js +1 -2
- package/dist/planmagnet/utils/formValidation.d.ts +0 -1
- package/dist/planmagnet/utils/formValidation.js +1 -2
- package/dist/planmagnet/utils/graphqlErrors.d.ts +0 -1
- package/dist/planmagnet/utils/graphqlErrors.js +1 -2
- package/dist/planmagnet/utils/lineDiff.d.ts +0 -1
- package/dist/planmagnet/utils/lineDiff.js +21 -24
- package/dist/planmagnet/utils/mutationResult.d.ts +0 -1
- package/dist/planmagnet/utils/mutationResult.js +1 -2
- package/dist/planmagnet/utils/navigation.d.ts +0 -1
- package/dist/planmagnet/utils/navigation.js +1 -2
- package/dist/planmagnet/utils/qualityGateCriteria.d.ts +0 -1
- package/dist/planmagnet/utils/qualityGateCriteria.js +1 -2
- package/dist/planmagnet/utils/rowNavigation.d.ts +0 -2
- package/dist/planmagnet/utils/rowNavigation.js +2 -3
- package/dist/planmagnet/utils/statusColor.d.ts +0 -1
- package/dist/planmagnet/utils/statusColor.js +1 -2
- package/dist/planmagnet/utils/urlParam.d.ts +0 -1
- package/dist/planmagnet/utils/urlParam.js +1 -2
- package/dist/planmagnet/webhooks/webhookTypes.d.ts +0 -1
- package/dist/planmagnet/webhooks/webhookTypes.js +1 -2
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/utils/i18n.d.ts +0 -1
- package/dist/shared/utils/i18n.js +1 -2
- package/dist/test/happydom.d.ts +1 -0
- package/package.json +89 -79
- package/dist/node_modules/d3-array/src/ascending.js +0 -6
- package/dist/node_modules/d3-array/src/bisect.js +0 -8
- package/dist/node_modules/d3-array/src/bisector.js +0 -41
- package/dist/node_modules/d3-array/src/descending.js +0 -6
- package/dist/node_modules/d3-array/src/max.js +0 -12
- package/dist/node_modules/d3-array/src/min.js +0 -12
- package/dist/node_modules/d3-array/src/number.js +0 -13
- package/dist/node_modules/d3-array/src/quantile.js +0 -23
- package/dist/node_modules/d3-array/src/quickselect.js +0 -24
- package/dist/node_modules/d3-array/src/range.js +0 -8
- package/dist/node_modules/d3-array/src/sort.js +0 -15
- package/dist/node_modules/d3-array/src/ticks.js +0 -32
- package/dist/node_modules/d3-color/src/color.js +0 -289
- package/dist/node_modules/d3-color/src/define.js +0 -11
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -13
- package/dist/node_modules/d3-format/src/exponent.js +0 -7
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -11
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -9
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -11
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -27
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
- package/dist/node_modules/d3-format/src/identity.js +0 -6
- package/dist/node_modules/d3-format/src/locale.js +0 -84
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
- package/dist/node_modules/d3-interpolate/src/array.js +0 -13
- package/dist/node_modules/d3-interpolate/src/basis.js +0 -14
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -11
- package/dist/node_modules/d3-interpolate/src/color.js +0 -23
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
- package/dist/node_modules/d3-interpolate/src/date.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.js +0 -8
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -14
- package/dist/node_modules/d3-interpolate/src/object.js +0 -12
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -17
- package/dist/node_modules/d3-interpolate/src/round.js +0 -8
- package/dist/node_modules/d3-interpolate/src/string.js +0 -26
- package/dist/node_modules/d3-interpolate/src/value.js +0 -16
- package/dist/node_modules/d3-scale/src/band.js +0 -50
- package/dist/node_modules/d3-scale/src/constant.js +0 -8
- package/dist/node_modules/d3-scale/src/continuous.js +0 -71
- package/dist/node_modules/d3-scale/src/diverging.js +0 -80
- package/dist/node_modules/d3-scale/src/identity.js +0 -18
- package/dist/node_modules/d3-scale/src/init.js +0 -27
- package/dist/node_modules/d3-scale/src/linear.js +0 -34
- package/dist/node_modules/d3-scale/src/log.js +0 -75
- package/dist/node_modules/d3-scale/src/nice.js +0 -8
- package/dist/node_modules/d3-scale/src/number.js +0 -6
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -29
- package/dist/node_modules/d3-scale/src/pow.js +0 -35
- package/dist/node_modules/d3-scale/src/quantile.js +0 -35
- package/dist/node_modules/d3-scale/src/quantize.js +0 -31
- package/dist/node_modules/d3-scale/src/radial.js +0 -37
- package/dist/node_modules/d3-scale/src/sequential.js +0 -65
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -28
- package/dist/node_modules/d3-scale/src/symlog.js +0 -28
- package/dist/node_modules/d3-scale/src/threshold.js +0 -23
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -29
- package/dist/node_modules/d3-scale/src/time.js +0 -45
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
- package/dist/node_modules/d3-shape/src/area.js +0 -53
- package/dist/node_modules/d3-shape/src/array.js +0 -6
- package/dist/node_modules/d3-shape/src/constant.js +0 -8
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -47
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -48
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -44
- package/dist/node_modules/d3-shape/src/curve/bump.js +0 -38
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -34
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -92
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -37
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -45
- package/dist/node_modules/d3-shape/src/line.js +0 -28
- package/dist/node_modules/d3-shape/src/math.js +0 -6
- package/dist/node_modules/d3-shape/src/noop.js +0 -4
- package/dist/node_modules/d3-shape/src/offset/expand.js +0 -13
- package/dist/node_modules/d3-shape/src/offset/none.js +0 -6
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -13
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -19
- package/dist/node_modules/d3-shape/src/order/none.js +0 -7
- package/dist/node_modules/d3-shape/src/path.js +0 -17
- package/dist/node_modules/d3-shape/src/point.js +0 -9
- package/dist/node_modules/d3-shape/src/stack.js +0 -32
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -13
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol.js +0 -21
- package/dist/node_modules/d3-time/src/day.js +0 -19
- package/dist/node_modules/d3-time/src/duration.js +0 -4
- package/dist/node_modules/d3-time/src/hour.js +0 -17
- package/dist/node_modules/d3-time/src/interval.js +0 -26
- package/dist/node_modules/d3-time/src/millisecond.js +0 -12
- package/dist/node_modules/d3-time/src/minute.js +0 -17
- package/dist/node_modules/d3-time/src/month.js +0 -16
- package/dist/node_modules/d3-time/src/second.js +0 -11
- package/dist/node_modules/d3-time/src/ticks.js +0 -123
- package/dist/node_modules/d3-time/src/week.js +0 -23
- package/dist/node_modules/d3-time/src/year.js +0 -24
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -60
- package/dist/node_modules/internmap/src/index.js +0 -38
- package/dist/planmagnet/pages/WorkspaceCreateWorkspacePagePage.d.ts +0 -2
- package/dist/planmagnet/pages/WorkspaceCreateWorkspacePagePage.js +0 -100
|
@@ -0,0 +1,901 @@
|
|
|
1
|
+
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
+
import { ConfirmButton as t, ErrorLine as n } from "../controls/ConfirmButton.js";
|
|
3
|
+
import { usePlanMagnet as r, usePlanMagnetNavigate as i } from "../providers/PlanMagnetProvider.js";
|
|
4
|
+
import { refusalMessage as a } from "../product/refusal.js";
|
|
5
|
+
import { useSatisfactionAccess as o } from "../satisfaction/useSatisfactionAccess.js";
|
|
6
|
+
import { isForbidden as s } from "../utils/graphqlErrors.js";
|
|
7
|
+
import { throwOnError as c } from "../utils/mutationResult.js";
|
|
8
|
+
import { detailPath as l } from "../utils/rowNavigation.js";
|
|
9
|
+
import { PRM04_ARCHIVE_PERSONA as u, PRM04_CREATE_PERSONA as d, PRM04_LINK_PRODUCT_PERSONA as f, PRM04_PERSONA_LIBRARY_CANDIDATES as p, PRM04_PERSONA_LIST_QUERIES as m, PRM04_PERSONA_PRODUCT_CANDIDATES as h, PRM04_PRODUCT_PERSONAS as g, PRM04_UNARCHIVE_PERSONA as _, PRM04_UNLINK_PRODUCT_PERSONA as v, PRM04_UPDATE_PERSONA as y, PRM04_WORKSPACE_PERSONAS as b } from "./personaOperations.js";
|
|
10
|
+
import { personaChangedFields as x, personaEntries as S, personaFields as C } from "./prm04UpdateInputs.js";
|
|
11
|
+
import { useDeferredValue as w, useState as T } from "react";
|
|
12
|
+
import { Archive as E, ArchiveRestore as D, Link2 as O, Loader2 as k, Pencil as ee, Plus as te, Unlink2 as ne, Users as A } from "lucide-react";
|
|
13
|
+
import { useMutation as j, useQuery as M } from "@apollo/client/react";
|
|
14
|
+
import { Fragment as re, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
15
|
+
import { Badge as F, Button as I, Card as L, CardContent as R, CardHeader as ie, CardTitle as ae, Input as z, ResponsiveDialog as B, ResponsiveDialogContent as V, ResponsiveDialogDescription as H, ResponsiveDialogFooter as U, ResponsiveDialogHeader as W, ResponsiveDialogTitle as G, ResponsiveDialogTrigger as K } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
// src/planmagnet/gotomarket/PersonaLibraryPage.tsx
|
|
17
|
+
var q = 20, J = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm disabled:opacity-60", oe = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm min-h-[72px]", Y = {
|
|
18
|
+
refetchQueries: m,
|
|
19
|
+
awaitRefetchQueries: !0
|
|
20
|
+
};
|
|
21
|
+
function X(e, t = "") {
|
|
22
|
+
return {
|
|
23
|
+
productId: t,
|
|
24
|
+
name: e?.name ?? "",
|
|
25
|
+
summary: e?.summary ?? "",
|
|
26
|
+
roleTitle: e?.roleTitle ?? "",
|
|
27
|
+
segment: e?.segment ?? "",
|
|
28
|
+
goals: e?.goals.join("\n") ?? "",
|
|
29
|
+
painPoints: e?.painPoints.join("\n") ?? "",
|
|
30
|
+
needs: e?.needs.join("\n") ?? "",
|
|
31
|
+
status: e?.status === "VALIDATED" ? "VALIDATED" : "DRAFT"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function se(e, t) {
|
|
35
|
+
if (t && !e.productId) return "Choose a product for the new Persona.";
|
|
36
|
+
if (!e.name.trim()) return "Enter a Persona name.";
|
|
37
|
+
if (e.name.trim().length > 120) return "Persona name must be 120 characters or fewer.";
|
|
38
|
+
if (!e.summary.trim()) return "Enter a summary describing this Persona.";
|
|
39
|
+
if (e.summary.trim().length > 2e3) return "Summary must be 2,000 characters or fewer.";
|
|
40
|
+
if (e.roleTitle.trim().length > 120 || e.segment.trim().length > 120) return "Role and segment must each be 120 characters or fewer.";
|
|
41
|
+
for (let [t, n] of [
|
|
42
|
+
["Goals", e.goals],
|
|
43
|
+
["Pain points", e.painPoints],
|
|
44
|
+
["Needs", e.needs]
|
|
45
|
+
]) {
|
|
46
|
+
let e = S(n);
|
|
47
|
+
if (e.length > 20) return `${t} can contain at most 20 entries.`;
|
|
48
|
+
if (e.some((e) => e.length > 500)) return `Each ${t.toLowerCase()} entry must be 500 characters or fewer.`;
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
function Z() {
|
|
53
|
+
return "Your role cannot change Personas in this workspace.";
|
|
54
|
+
}
|
|
55
|
+
function Q(e, t) {
|
|
56
|
+
return s(e) ? "Your role cannot view Personas in this workspace." : `${t}: ${e.message}`;
|
|
57
|
+
}
|
|
58
|
+
function ce({ id: t, value: i, onChange: a, exclude: o = [], active: s }) {
|
|
59
|
+
let c = e(), { workspaceId: l } = r(), [u, d] = T(""), [f, p] = T(""), [m, g] = T(!1), [_, v] = T(null), y = w(u.trim()), { data: b, loading: x, error: S, fetchMore: C } = M(h, {
|
|
60
|
+
variables: {
|
|
61
|
+
workspaceId: l ?? "",
|
|
62
|
+
filter: {
|
|
63
|
+
isActive: !0,
|
|
64
|
+
...y ? { search: y } : {}
|
|
65
|
+
},
|
|
66
|
+
pagination: { first: q }
|
|
67
|
+
},
|
|
68
|
+
skip: !s || !l
|
|
69
|
+
}), E = b?.planmagnetProducts.items ?? [], D = E.filter((e) => !e.archivedAt && !o.includes(e.id)), O = D.some((e) => e.id === i), k = async () => {
|
|
70
|
+
let e = b?.planmagnetProducts.pageInfo.endCursor;
|
|
71
|
+
if (e && !m) {
|
|
72
|
+
v(null), g(!0);
|
|
73
|
+
try {
|
|
74
|
+
await C({
|
|
75
|
+
variables: { pagination: {
|
|
76
|
+
first: q,
|
|
77
|
+
after: e
|
|
78
|
+
} },
|
|
79
|
+
updateQuery: (e, { fetchMoreResult: t }) => ({ planmagnetProducts: {
|
|
80
|
+
...t.planmagnetProducts,
|
|
81
|
+
items: [...e.planmagnetProducts.items, ...t.planmagnetProducts.items.filter((t) => !e.planmagnetProducts.items.some((e) => e.id === t.id))]
|
|
82
|
+
} })
|
|
83
|
+
});
|
|
84
|
+
} catch (e) {
|
|
85
|
+
v(e instanceof Error ? e.message : "More products could not be loaded.");
|
|
86
|
+
} finally {
|
|
87
|
+
g(!1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ P("div", {
|
|
92
|
+
className: "space-y-1",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ N(z, {
|
|
95
|
+
"aria-label": c("planmagnet.personas.productSearch", "Search products"),
|
|
96
|
+
value: u,
|
|
97
|
+
disabled: m,
|
|
98
|
+
onChange: (e) => {
|
|
99
|
+
d(e.target.value), a(""), p(""), v(null);
|
|
100
|
+
},
|
|
101
|
+
placeholder: c("planmagnet.personas.productSearchPlaceholder", "Search products by name…")
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ P("select", {
|
|
104
|
+
id: t,
|
|
105
|
+
className: J,
|
|
106
|
+
value: i,
|
|
107
|
+
onChange: (e) => {
|
|
108
|
+
a(e.target.value), p(D.find((t) => t.id === e.target.value)?.name ?? "");
|
|
109
|
+
},
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ N("option", {
|
|
112
|
+
value: "",
|
|
113
|
+
children: x && !b ? c("planmagnet.personas.searching", "Searching…") : c("planmagnet.personas.chooseProduct", "Choose a product")
|
|
114
|
+
}),
|
|
115
|
+
i && !O && /* @__PURE__ */ N("option", {
|
|
116
|
+
value: i,
|
|
117
|
+
children: f || "Selected product"
|
|
118
|
+
}),
|
|
119
|
+
D.map((e) => /* @__PURE__ */ N("option", {
|
|
120
|
+
value: e.id,
|
|
121
|
+
children: e.name
|
|
122
|
+
}, e.id))
|
|
123
|
+
]
|
|
124
|
+
}),
|
|
125
|
+
S && /* @__PURE__ */ N(n, { message: Q(S, "Products could not be loaded") }),
|
|
126
|
+
!x && !S && b && D.length === 0 && /* @__PURE__ */ N("p", {
|
|
127
|
+
className: "text-xs text-muted-foreground",
|
|
128
|
+
children: b.planmagnetProducts.totalCount === 0 ? c("planmagnet.personas.noProductMatch", "No matching active product. Try another name.") : c("planmagnet.personas.narrowProduct", "No available product in these results. Search by name to narrow the list.")
|
|
129
|
+
}),
|
|
130
|
+
b && b.planmagnetProducts.totalCount > E.length && /* @__PURE__ */ N("p", {
|
|
131
|
+
className: "text-xs text-muted-foreground",
|
|
132
|
+
children: c("planmagnet.personas.productSearchHint", "Showing {{shown}} of {{total}} matches. Load more or search by name.", {
|
|
133
|
+
shown: E.length,
|
|
134
|
+
total: b.planmagnetProducts.totalCount
|
|
135
|
+
})
|
|
136
|
+
}),
|
|
137
|
+
_ && /* @__PURE__ */ N(n, { message: _ }),
|
|
138
|
+
s && b?.planmagnetProducts.pageInfo.hasNextPage && /* @__PURE__ */ N(I, {
|
|
139
|
+
type: "button",
|
|
140
|
+
size: "sm",
|
|
141
|
+
variant: "outline",
|
|
142
|
+
disabled: !b.planmagnetProducts.pageInfo.endCursor || m || x,
|
|
143
|
+
onClick: () => void k(),
|
|
144
|
+
"data-testid": "persona-product-search-more",
|
|
145
|
+
children: m ? c("planmagnet.personas.loadingMoreProducts", "Loading products…") : c("planmagnet.personas.moreProducts", "Load more products")
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function le({ id: t, value: i, onChange: a, productId: o, active: s }) {
|
|
151
|
+
let c = e(), { workspaceId: l } = r(), [u, d] = T(""), [f, m] = T(""), [h, g] = T(!1), [_, v] = T(null), y = w(u.trim()), { data: b, loading: x, error: S, fetchMore: C } = M(p, {
|
|
152
|
+
variables: {
|
|
153
|
+
workspaceId: l ?? "",
|
|
154
|
+
filter: y ? { search: y } : {},
|
|
155
|
+
pagination: { first: q }
|
|
156
|
+
},
|
|
157
|
+
skip: !s || !l
|
|
158
|
+
}), E = b?.planmagnetWorkspacePersonas.items ?? [], D = E.filter((e) => e.status !== "ARCHIVED" && !e.products.some((e) => e.id === o)), O = D.some((e) => e.id === i), k = async () => {
|
|
159
|
+
let e = b?.planmagnetWorkspacePersonas.pageInfo.endCursor;
|
|
160
|
+
if (e && !h) {
|
|
161
|
+
v(null), g(!0);
|
|
162
|
+
try {
|
|
163
|
+
await C({
|
|
164
|
+
variables: { pagination: {
|
|
165
|
+
first: q,
|
|
166
|
+
after: e
|
|
167
|
+
} },
|
|
168
|
+
updateQuery: (e, { fetchMoreResult: t }) => ({ planmagnetWorkspacePersonas: {
|
|
169
|
+
...t.planmagnetWorkspacePersonas,
|
|
170
|
+
items: [...e.planmagnetWorkspacePersonas.items, ...t.planmagnetWorkspacePersonas.items.filter((t) => !e.planmagnetWorkspacePersonas.items.some((e) => e.id === t.id))]
|
|
171
|
+
} })
|
|
172
|
+
});
|
|
173
|
+
} catch (e) {
|
|
174
|
+
v(e instanceof Error ? e.message : "More Personas could not be loaded.");
|
|
175
|
+
} finally {
|
|
176
|
+
g(!1);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
return /* @__PURE__ */ P("div", {
|
|
181
|
+
className: "space-y-1",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ N(z, {
|
|
184
|
+
"aria-label": c("planmagnet.personas.searchLibrary", "Search Persona library"),
|
|
185
|
+
value: u,
|
|
186
|
+
disabled: h,
|
|
187
|
+
onChange: (e) => {
|
|
188
|
+
d(e.target.value), a(""), m(""), v(null);
|
|
189
|
+
},
|
|
190
|
+
placeholder: c("planmagnet.personas.searchLibraryPlaceholder", "Search Personas by name or segment…")
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ P("select", {
|
|
193
|
+
id: t,
|
|
194
|
+
className: J,
|
|
195
|
+
value: i,
|
|
196
|
+
onChange: (e) => {
|
|
197
|
+
a(e.target.value), m(D.find((t) => t.id === e.target.value)?.name ?? "");
|
|
198
|
+
},
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ N("option", {
|
|
201
|
+
value: "",
|
|
202
|
+
children: x && !b ? c("planmagnet.personas.searching", "Searching…") : c("planmagnet.personas.choosePersona", "Choose a Persona")
|
|
203
|
+
}),
|
|
204
|
+
i && !O && /* @__PURE__ */ N("option", {
|
|
205
|
+
value: i,
|
|
206
|
+
children: f || "Selected Persona"
|
|
207
|
+
}),
|
|
208
|
+
D.map((e) => /* @__PURE__ */ N("option", {
|
|
209
|
+
value: e.id,
|
|
210
|
+
children: e.name
|
|
211
|
+
}, e.id))
|
|
212
|
+
]
|
|
213
|
+
}),
|
|
214
|
+
S && /* @__PURE__ */ N(n, { message: Q(S, "Persona library could not be loaded") }),
|
|
215
|
+
!x && !S && b && D.length === 0 && /* @__PURE__ */ N("p", {
|
|
216
|
+
className: "text-xs text-muted-foreground",
|
|
217
|
+
children: b.planmagnetWorkspacePersonas.totalCount === 0 ? c("planmagnet.personas.noPersonaMatch", "No matching active Persona. Create one or try another search.") : c("planmagnet.personas.narrowPersona", "No unlinked Persona in these results. Search by name to narrow the list.")
|
|
218
|
+
}),
|
|
219
|
+
b && b.planmagnetWorkspacePersonas.totalCount > E.length && /* @__PURE__ */ N("p", {
|
|
220
|
+
className: "text-xs text-muted-foreground",
|
|
221
|
+
children: c("planmagnet.personas.personaSearchHint", "Showing {{shown}} of {{total}} matches. Load more or search by name.", {
|
|
222
|
+
shown: E.length,
|
|
223
|
+
total: b.planmagnetWorkspacePersonas.totalCount
|
|
224
|
+
})
|
|
225
|
+
}),
|
|
226
|
+
_ && /* @__PURE__ */ N(n, { message: _ }),
|
|
227
|
+
s && b?.planmagnetWorkspacePersonas.pageInfo.hasNextPage && /* @__PURE__ */ N(I, {
|
|
228
|
+
type: "button",
|
|
229
|
+
size: "sm",
|
|
230
|
+
variant: "outline",
|
|
231
|
+
disabled: !b.planmagnetWorkspacePersonas.pageInfo.endCursor || h || x,
|
|
232
|
+
onClick: () => void k(),
|
|
233
|
+
"data-testid": "product-persona-search-more",
|
|
234
|
+
children: h ? c("planmagnet.personas.loadingMorePersonas", "Loading Personas…") : c("planmagnet.personas.morePersonas", "Load more Personas")
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function $({ persona: t, defaultProductId: r }) {
|
|
240
|
+
let i = e(), [o, s] = T(!1), [l, u] = T(() => X(t, r)), [f, p] = T(() => X(t, r)), [m, h] = T(null), [g, _] = j(d, Y), [v, b] = j(y, Y), S = `persona-form-${t?.id ?? r ?? "new"}`, w = _.loading || b.loading, E = async () => {
|
|
241
|
+
h(null);
|
|
242
|
+
let e = se(l, !t);
|
|
243
|
+
if (e) h(e);
|
|
244
|
+
else try {
|
|
245
|
+
if (t) {
|
|
246
|
+
let e = x(f, l);
|
|
247
|
+
Object.keys(e).length > 0 && await c(v({ variables: {
|
|
248
|
+
id: t.id,
|
|
249
|
+
input: e
|
|
250
|
+
} }));
|
|
251
|
+
} else await c(g({ variables: { input: {
|
|
252
|
+
...C(l),
|
|
253
|
+
productId: l.productId
|
|
254
|
+
} } }));
|
|
255
|
+
s(!1);
|
|
256
|
+
} catch (e) {
|
|
257
|
+
h(a(e, "Persona could not be saved.", Z()));
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return /* @__PURE__ */ P(B, {
|
|
261
|
+
open: o,
|
|
262
|
+
onOpenChange: (e) => {
|
|
263
|
+
if (s(e), e) {
|
|
264
|
+
let e = X(t, r);
|
|
265
|
+
u(e), p(e);
|
|
266
|
+
}
|
|
267
|
+
h(null);
|
|
268
|
+
},
|
|
269
|
+
children: [/* @__PURE__ */ N(K, {
|
|
270
|
+
asChild: !0,
|
|
271
|
+
children: /* @__PURE__ */ P(I, {
|
|
272
|
+
size: "sm",
|
|
273
|
+
variant: t ? "outline" : "default",
|
|
274
|
+
"data-testid": t ? "persona-edit" : "persona-create",
|
|
275
|
+
children: [N(t ? ee : te, { className: "mr-1 h-4 w-4" }), t ? i("planmagnet.personas.edit", "Edit Persona") : i("planmagnet.personas.new", "New Persona")]
|
|
276
|
+
})
|
|
277
|
+
}), /* @__PURE__ */ P(V, {
|
|
278
|
+
className: "max-h-[90vh] max-w-xl overflow-y-auto",
|
|
279
|
+
children: [
|
|
280
|
+
/* @__PURE__ */ P(W, { children: [/* @__PURE__ */ N(G, { children: t ? i("planmagnet.personas.editTitle", "Edit Persona") : i("planmagnet.personas.newTitle", "Create a Persona") }), /* @__PURE__ */ N(H, { children: i("planmagnet.personas.formDescription", "Describe a real audience. Personas belong to the workspace and can be shared across products without copying them.") })] }),
|
|
281
|
+
/* @__PURE__ */ P("div", {
|
|
282
|
+
className: "space-y-4",
|
|
283
|
+
children: [
|
|
284
|
+
!t && /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ P("label", {
|
|
285
|
+
htmlFor: `${S}-product`,
|
|
286
|
+
className: "text-sm font-medium",
|
|
287
|
+
children: [i("planmagnet.personas.initialProduct", "Initial product"), " *"]
|
|
288
|
+
}), r ? /* @__PURE__ */ N("p", {
|
|
289
|
+
className: "mt-1 text-sm text-muted-foreground",
|
|
290
|
+
children: i("planmagnet.personas.currentProduct", "This product. You can link the Persona to others from the workspace library.")
|
|
291
|
+
}) : /* @__PURE__ */ N(ce, {
|
|
292
|
+
id: `${S}-product`,
|
|
293
|
+
value: l.productId,
|
|
294
|
+
onChange: (e) => u((t) => ({
|
|
295
|
+
...t,
|
|
296
|
+
productId: e
|
|
297
|
+
})),
|
|
298
|
+
active: o
|
|
299
|
+
})] }),
|
|
300
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ P("label", {
|
|
301
|
+
htmlFor: `${S}-name`,
|
|
302
|
+
className: "text-sm font-medium",
|
|
303
|
+
children: [i("planmagnet.personas.name", "Name"), " *"]
|
|
304
|
+
}), /* @__PURE__ */ N(z, {
|
|
305
|
+
id: `${S}-name`,
|
|
306
|
+
maxLength: 121,
|
|
307
|
+
value: l.name,
|
|
308
|
+
onChange: (e) => u((t) => ({
|
|
309
|
+
...t,
|
|
310
|
+
name: e.target.value
|
|
311
|
+
})),
|
|
312
|
+
placeholder: i("planmagnet.personas.nameExample", "e.g. Operations lead")
|
|
313
|
+
})] }),
|
|
314
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ P("label", {
|
|
315
|
+
htmlFor: `${S}-summary`,
|
|
316
|
+
className: "text-sm font-medium",
|
|
317
|
+
children: [i("planmagnet.personas.summary", "Summary"), " *"]
|
|
318
|
+
}), /* @__PURE__ */ N("textarea", {
|
|
319
|
+
id: `${S}-summary`,
|
|
320
|
+
className: oe,
|
|
321
|
+
maxLength: 2001,
|
|
322
|
+
value: l.summary,
|
|
323
|
+
onChange: (e) => u((t) => ({
|
|
324
|
+
...t,
|
|
325
|
+
summary: e.target.value
|
|
326
|
+
})),
|
|
327
|
+
placeholder: i("planmagnet.personas.summaryHint", "Who are they and what do they do?")
|
|
328
|
+
})] }),
|
|
329
|
+
/* @__PURE__ */ P("div", {
|
|
330
|
+
className: "grid gap-3 sm:grid-cols-2",
|
|
331
|
+
children: [/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("label", {
|
|
332
|
+
htmlFor: `${S}-role`,
|
|
333
|
+
className: "text-sm font-medium",
|
|
334
|
+
children: i("planmagnet.personas.role", "Role title")
|
|
335
|
+
}), /* @__PURE__ */ N(z, {
|
|
336
|
+
id: `${S}-role`,
|
|
337
|
+
maxLength: 121,
|
|
338
|
+
value: l.roleTitle,
|
|
339
|
+
onChange: (e) => u((t) => ({
|
|
340
|
+
...t,
|
|
341
|
+
roleTitle: e.target.value
|
|
342
|
+
}))
|
|
343
|
+
})] }), /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("label", {
|
|
344
|
+
htmlFor: `${S}-segment`,
|
|
345
|
+
className: "text-sm font-medium",
|
|
346
|
+
children: i("planmagnet.personas.segment", "Customer segment")
|
|
347
|
+
}), /* @__PURE__ */ N(z, {
|
|
348
|
+
id: `${S}-segment`,
|
|
349
|
+
maxLength: 121,
|
|
350
|
+
value: l.segment,
|
|
351
|
+
onChange: (e) => u((t) => ({
|
|
352
|
+
...t,
|
|
353
|
+
segment: e.target.value
|
|
354
|
+
}))
|
|
355
|
+
})] })]
|
|
356
|
+
}),
|
|
357
|
+
[
|
|
358
|
+
["goals", i("planmagnet.personas.goals", "Goals")],
|
|
359
|
+
["painPoints", i("planmagnet.personas.painPoints", "Pain points")],
|
|
360
|
+
["needs", i("planmagnet.personas.needs", "Needs")]
|
|
361
|
+
].map(([e, t]) => /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("label", {
|
|
362
|
+
htmlFor: `${S}-${e}`,
|
|
363
|
+
className: "text-sm font-medium",
|
|
364
|
+
children: t
|
|
365
|
+
}), /* @__PURE__ */ N("textarea", {
|
|
366
|
+
id: `${S}-${e}`,
|
|
367
|
+
className: oe,
|
|
368
|
+
value: l[e],
|
|
369
|
+
onChange: (t) => u((n) => ({
|
|
370
|
+
...n,
|
|
371
|
+
[e]: t.target.value
|
|
372
|
+
})),
|
|
373
|
+
placeholder: i("planmagnet.personas.onePerLine", "One entry per line")
|
|
374
|
+
})] }, e)),
|
|
375
|
+
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("label", {
|
|
376
|
+
htmlFor: `${S}-status`,
|
|
377
|
+
className: "text-sm font-medium",
|
|
378
|
+
children: i("planmagnet.personas.status", "Status")
|
|
379
|
+
}), /* @__PURE__ */ P("select", {
|
|
380
|
+
id: `${S}-status`,
|
|
381
|
+
className: J,
|
|
382
|
+
value: l.status,
|
|
383
|
+
onChange: (e) => u((t) => ({
|
|
384
|
+
...t,
|
|
385
|
+
status: e.target.value === "VALIDATED" ? "VALIDATED" : "DRAFT"
|
|
386
|
+
})),
|
|
387
|
+
children: [/* @__PURE__ */ N("option", {
|
|
388
|
+
value: "DRAFT",
|
|
389
|
+
children: i("planmagnet.personas.draft", "Draft")
|
|
390
|
+
}), /* @__PURE__ */ N("option", {
|
|
391
|
+
value: "VALIDATED",
|
|
392
|
+
children: i("planmagnet.personas.validated", "Validated")
|
|
393
|
+
})]
|
|
394
|
+
})] })
|
|
395
|
+
]
|
|
396
|
+
}),
|
|
397
|
+
m && /* @__PURE__ */ N(n, { message: m }),
|
|
398
|
+
/* @__PURE__ */ N(U, { children: /* @__PURE__ */ N(I, {
|
|
399
|
+
disabled: w,
|
|
400
|
+
onClick: () => void E(),
|
|
401
|
+
"data-testid": "persona-save",
|
|
402
|
+
children: w ? i("planmagnet.personas.saving", "Saving…") : i("planmagnet.personas.save", "Save Persona")
|
|
403
|
+
}) })
|
|
404
|
+
]
|
|
405
|
+
})]
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
function ue({ persona: t }) {
|
|
409
|
+
let r = e(), [i, o] = T(!1), [s, l] = T(""), [u, d] = T(null), [p, m] = j(f, Y), h = async () => {
|
|
410
|
+
if (s) {
|
|
411
|
+
d(null);
|
|
412
|
+
try {
|
|
413
|
+
await c(p({ variables: {
|
|
414
|
+
productId: s,
|
|
415
|
+
personaId: t.id
|
|
416
|
+
} })), o(!1);
|
|
417
|
+
} catch (e) {
|
|
418
|
+
d(a(e, "Persona could not be linked.", Z()));
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
return /* @__PURE__ */ P(B, {
|
|
423
|
+
open: i,
|
|
424
|
+
onOpenChange: (e) => {
|
|
425
|
+
o(e), l(""), d(null);
|
|
426
|
+
},
|
|
427
|
+
children: [/* @__PURE__ */ N(K, {
|
|
428
|
+
asChild: !0,
|
|
429
|
+
children: /* @__PURE__ */ P(I, {
|
|
430
|
+
size: "sm",
|
|
431
|
+
variant: "outline",
|
|
432
|
+
"data-testid": "persona-link-product",
|
|
433
|
+
children: [/* @__PURE__ */ N(O, { className: "mr-1 h-4 w-4" }), r("planmagnet.personas.linkProduct", "Link product")]
|
|
434
|
+
})
|
|
435
|
+
}), /* @__PURE__ */ P(V, { children: [
|
|
436
|
+
/* @__PURE__ */ P(W, { children: [/* @__PURE__ */ N(G, { children: r("planmagnet.personas.linkProductTitle", "Link “{{name}}” to a product", { name: t.name }) }), /* @__PURE__ */ N(H, { children: r("planmagnet.personas.linkProductDescription", "This uses the same Persona in both products. Unlinking will not delete it.") })] }),
|
|
437
|
+
/* @__PURE__ */ N("label", {
|
|
438
|
+
htmlFor: `persona-link-${t.id}`,
|
|
439
|
+
className: "text-sm font-medium",
|
|
440
|
+
children: r("planmagnet.personas.product", "Product")
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ N(ce, {
|
|
443
|
+
id: `persona-link-${t.id}`,
|
|
444
|
+
value: s,
|
|
445
|
+
onChange: l,
|
|
446
|
+
exclude: t.products.map((e) => e.id),
|
|
447
|
+
active: i
|
|
448
|
+
}),
|
|
449
|
+
u && /* @__PURE__ */ N(n, { message: u }),
|
|
450
|
+
/* @__PURE__ */ N(U, { children: /* @__PURE__ */ N(I, {
|
|
451
|
+
disabled: !s || m.loading,
|
|
452
|
+
onClick: () => void h(),
|
|
453
|
+
"data-testid": "persona-link-confirm",
|
|
454
|
+
children: m.loading ? r("planmagnet.personas.linking", "Linking…") : r("planmagnet.personas.link", "Link Persona")
|
|
455
|
+
}) })
|
|
456
|
+
] })]
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function de({ productId: t }) {
|
|
460
|
+
let r = e(), [i, o] = T(!1), [s, l] = T(""), [u, d] = T(null), [p, m] = j(f, Y), h = async () => {
|
|
461
|
+
if (s) {
|
|
462
|
+
d(null);
|
|
463
|
+
try {
|
|
464
|
+
await c(p({ variables: {
|
|
465
|
+
productId: t,
|
|
466
|
+
personaId: s
|
|
467
|
+
} })), o(!1);
|
|
468
|
+
} catch (e) {
|
|
469
|
+
d(a(e, "Persona could not be linked.", Z()));
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
return /* @__PURE__ */ P(B, {
|
|
474
|
+
open: i,
|
|
475
|
+
onOpenChange: (e) => {
|
|
476
|
+
o(e), l(""), d(null);
|
|
477
|
+
},
|
|
478
|
+
children: [/* @__PURE__ */ N(K, {
|
|
479
|
+
asChild: !0,
|
|
480
|
+
children: /* @__PURE__ */ P(I, {
|
|
481
|
+
size: "sm",
|
|
482
|
+
variant: "outline",
|
|
483
|
+
"data-testid": "product-link-persona",
|
|
484
|
+
children: [/* @__PURE__ */ N(O, { className: "mr-1 h-4 w-4" }), r("planmagnet.personas.linkExisting", "Link existing Persona")]
|
|
485
|
+
})
|
|
486
|
+
}), /* @__PURE__ */ P(V, { children: [
|
|
487
|
+
/* @__PURE__ */ P(W, { children: [/* @__PURE__ */ N(G, { children: r("planmagnet.personas.linkExistingTitle", "Link a workspace Persona") }), /* @__PURE__ */ N(H, { children: r("planmagnet.personas.linkExistingDescription", "Choose an existing Persona to share. Its other product links and details are preserved.") })] }),
|
|
488
|
+
/* @__PURE__ */ N("label", {
|
|
489
|
+
htmlFor: `product-persona-link-${t}`,
|
|
490
|
+
className: "text-sm font-medium",
|
|
491
|
+
children: r("planmagnet.personas.persona", "Persona")
|
|
492
|
+
}),
|
|
493
|
+
/* @__PURE__ */ N(le, {
|
|
494
|
+
id: `product-persona-link-${t}`,
|
|
495
|
+
value: s,
|
|
496
|
+
onChange: l,
|
|
497
|
+
productId: t,
|
|
498
|
+
active: i
|
|
499
|
+
}),
|
|
500
|
+
u && /* @__PURE__ */ N(n, { message: u }),
|
|
501
|
+
/* @__PURE__ */ N(U, { children: /* @__PURE__ */ N(I, {
|
|
502
|
+
disabled: !s || m.loading,
|
|
503
|
+
onClick: () => void h(),
|
|
504
|
+
"data-testid": "product-link-persona-confirm",
|
|
505
|
+
children: m.loading ? r("planmagnet.personas.linking", "Linking…") : r("planmagnet.personas.link", "Link Persona")
|
|
506
|
+
}) })
|
|
507
|
+
] })]
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
function fe({ persona: t }) {
|
|
511
|
+
let n = e(), r = [
|
|
512
|
+
[n("planmagnet.personas.goals", "Goals"), t.goals],
|
|
513
|
+
[n("planmagnet.personas.painPoints", "Pain points"), t.painPoints],
|
|
514
|
+
[n("planmagnet.personas.needs", "Needs"), t.needs]
|
|
515
|
+
];
|
|
516
|
+
return /* @__PURE__ */ N("div", {
|
|
517
|
+
className: "grid gap-3 text-sm sm:grid-cols-3",
|
|
518
|
+
children: r.map(([e, t]) => /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", {
|
|
519
|
+
className: "font-medium",
|
|
520
|
+
children: e
|
|
521
|
+
}), t.length ? /* @__PURE__ */ N("ul", {
|
|
522
|
+
className: "mt-1 list-inside list-disc space-y-1 text-muted-foreground",
|
|
523
|
+
children: t.map((e, t) => /* @__PURE__ */ N("li", { children: e }, `${t}-${e}`))
|
|
524
|
+
}) : /* @__PURE__ */ N("p", {
|
|
525
|
+
className: "mt-1 text-muted-foreground",
|
|
526
|
+
children: n("planmagnet.personas.notRecorded", "Not recorded")
|
|
527
|
+
})] }, e))
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
function pe({ persona: r, onNotice: s }) {
|
|
531
|
+
let d = e(), f = o(), p = i(), [m, h] = j(u, Y), [g, y] = j(_, Y), [b, x] = j(v, Y), [S, C] = T(null), w = h.loading || y.loading || x.loading, O = async () => {
|
|
532
|
+
C(null);
|
|
533
|
+
try {
|
|
534
|
+
r.status === "ARCHIVED" ? await c(g({ variables: { id: r.id } })) : (await c(m({ variables: { id: r.id } })), s(d("planmagnet.personas.archivedNotice", "“{{name}}” was archived. Show archived Personas to see it again.", { name: r.name })));
|
|
535
|
+
} catch (e) {
|
|
536
|
+
C(a(e, "Persona could not be updated.", Z()));
|
|
537
|
+
}
|
|
538
|
+
}, k = async (e) => {
|
|
539
|
+
C(null);
|
|
540
|
+
try {
|
|
541
|
+
await c(b({ variables: {
|
|
542
|
+
productId: e.id,
|
|
543
|
+
personaId: r.id
|
|
544
|
+
} })), r.products.length === 1 && s(d("planmagnet.personas.unlinkedLast", "“{{name}}” is still in this workspace library and can be linked again.", { name: r.name }));
|
|
545
|
+
} catch (e) {
|
|
546
|
+
C(a(e, "Product could not be unlinked.", Z()));
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
return /* @__PURE__ */ P(L, {
|
|
550
|
+
"data-testid": "persona-card",
|
|
551
|
+
children: [/* @__PURE__ */ N(ie, {
|
|
552
|
+
className: "space-y-3",
|
|
553
|
+
children: /* @__PURE__ */ P("div", {
|
|
554
|
+
className: "flex flex-wrap items-start justify-between gap-3",
|
|
555
|
+
children: [/* @__PURE__ */ P("div", {
|
|
556
|
+
className: "min-w-0",
|
|
557
|
+
children: [/* @__PURE__ */ P(ae, {
|
|
558
|
+
className: "flex flex-wrap items-center gap-2 text-base",
|
|
559
|
+
children: [
|
|
560
|
+
/* @__PURE__ */ N(A, { className: "h-4 w-4 shrink-0 text-primary" }),
|
|
561
|
+
/* @__PURE__ */ N("span", { children: r.name }),
|
|
562
|
+
/* @__PURE__ */ N(F, {
|
|
563
|
+
variant: "outline",
|
|
564
|
+
children: r.status === "VALIDATED" ? d("planmagnet.personas.validated", "Validated") : r.status === "ARCHIVED" ? d("planmagnet.personas.archived", "Archived") : d("planmagnet.personas.draft", "Draft")
|
|
565
|
+
})
|
|
566
|
+
]
|
|
567
|
+
}), (r.roleTitle || r.segment) && /* @__PURE__ */ N("p", {
|
|
568
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
569
|
+
children: [r.roleTitle, r.segment].filter(Boolean).join(" · ")
|
|
570
|
+
})]
|
|
571
|
+
}), f.canUpdate && /* @__PURE__ */ P("div", {
|
|
572
|
+
className: "flex flex-wrap gap-2",
|
|
573
|
+
children: [r.status !== "ARCHIVED" && /* @__PURE__ */ P(re, { children: [/* @__PURE__ */ N($, { persona: r }), /* @__PURE__ */ N(ue, { persona: r })] }), /* @__PURE__ */ P(I, {
|
|
574
|
+
size: "sm",
|
|
575
|
+
variant: "outline",
|
|
576
|
+
disabled: w,
|
|
577
|
+
onClick: () => void O(),
|
|
578
|
+
"data-testid": "persona-toggle-archive",
|
|
579
|
+
children: [r.status === "ARCHIVED" ? /* @__PURE__ */ N(D, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ N(E, { className: "mr-1 h-4 w-4" }), r.status === "ARCHIVED" ? d("planmagnet.personas.unarchive", "Unarchive") : d("planmagnet.personas.archive", "Archive")]
|
|
580
|
+
})]
|
|
581
|
+
})]
|
|
582
|
+
})
|
|
583
|
+
}), /* @__PURE__ */ P(R, {
|
|
584
|
+
className: "space-y-4",
|
|
585
|
+
children: [
|
|
586
|
+
/* @__PURE__ */ N("p", {
|
|
587
|
+
className: "whitespace-pre-wrap text-sm",
|
|
588
|
+
children: r.summary
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ N(fe, { persona: r }),
|
|
591
|
+
/* @__PURE__ */ P("div", {
|
|
592
|
+
className: "border-t pt-3",
|
|
593
|
+
children: [/* @__PURE__ */ N("p", {
|
|
594
|
+
className: "mb-2 text-xs font-medium text-muted-foreground",
|
|
595
|
+
children: d("planmagnet.personas.linkedProducts", "Linked products")
|
|
596
|
+
}), r.products.length === 0 ? /* @__PURE__ */ N("p", {
|
|
597
|
+
className: "text-sm text-muted-foreground",
|
|
598
|
+
"data-testid": "persona-unlinked",
|
|
599
|
+
children: d("planmagnet.personas.unlinked", "No products linked. This Persona stays in the workspace library; link it when you are ready.")
|
|
600
|
+
}) : /* @__PURE__ */ N("ul", {
|
|
601
|
+
className: "flex flex-wrap gap-2",
|
|
602
|
+
children: r.products.map((e) => /* @__PURE__ */ P("li", {
|
|
603
|
+
className: "flex items-center gap-1 rounded-md border px-2 py-1 text-sm",
|
|
604
|
+
children: [/* @__PURE__ */ N("button", {
|
|
605
|
+
type: "button",
|
|
606
|
+
className: "hover:underline",
|
|
607
|
+
onClick: () => p(l("/products/product-detail-page", e.id)),
|
|
608
|
+
children: e.name
|
|
609
|
+
}), f.canUpdate && r.status !== "ARCHIVED" && /* @__PURE__ */ N(t, {
|
|
610
|
+
label: "",
|
|
611
|
+
ariaLabel: d("planmagnet.personas.unlinkNamed", "Unlink {{product}} from {{persona}}", {
|
|
612
|
+
product: e.name,
|
|
613
|
+
persona: r.name
|
|
614
|
+
}),
|
|
615
|
+
icon: /* @__PURE__ */ N(ne, {
|
|
616
|
+
"aria-hidden": "true",
|
|
617
|
+
className: "h-4 w-4"
|
|
618
|
+
}),
|
|
619
|
+
title: d("planmagnet.personas.unlinkTitle", "Unlink {{product}}?", { product: e.name }),
|
|
620
|
+
description: d("planmagnet.personas.unlinkDescription", "The Persona remains in the workspace library and on any other products. Launch targets for this Persona on the unlinked product are removed."),
|
|
621
|
+
confirmLabel: d("planmagnet.personas.unlink", "Unlink product"),
|
|
622
|
+
disabled: w,
|
|
623
|
+
variant: "outline",
|
|
624
|
+
onConfirm: () => void k(e)
|
|
625
|
+
})]
|
|
626
|
+
}, e.id))
|
|
627
|
+
})]
|
|
628
|
+
}),
|
|
629
|
+
S && /* @__PURE__ */ N(n, { message: S })
|
|
630
|
+
]
|
|
631
|
+
})]
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
function me() {
|
|
635
|
+
let t = e(), i = o(), { workspaceId: a } = r(), [s, c] = T(""), l = w(s.trim()), [u, d] = T(!1), [f, p] = T(null), [m, h] = T(null), { data: g, loading: _, error: v, fetchMore: y } = M(b, {
|
|
636
|
+
variables: {
|
|
637
|
+
workspaceId: a ?? "",
|
|
638
|
+
filter: {
|
|
639
|
+
...u ? { includeArchived: !0 } : {},
|
|
640
|
+
...l ? { search: l } : {}
|
|
641
|
+
},
|
|
642
|
+
pagination: { first: q }
|
|
643
|
+
},
|
|
644
|
+
skip: !a
|
|
645
|
+
}), x = g?.planmagnetWorkspacePersonas, S = async () => {
|
|
646
|
+
let e = x?.pageInfo.endCursor;
|
|
647
|
+
if (e) {
|
|
648
|
+
h(null);
|
|
649
|
+
try {
|
|
650
|
+
await y({
|
|
651
|
+
variables: { pagination: {
|
|
652
|
+
first: q,
|
|
653
|
+
after: e
|
|
654
|
+
} },
|
|
655
|
+
updateQuery: (e, { fetchMoreResult: t }) => ({ planmagnetWorkspacePersonas: {
|
|
656
|
+
...t.planmagnetWorkspacePersonas,
|
|
657
|
+
items: [...e.planmagnetWorkspacePersonas.items, ...t.planmagnetWorkspacePersonas.items.filter((t) => !e.planmagnetWorkspacePersonas.items.some((e) => e.id === t.id))]
|
|
658
|
+
} })
|
|
659
|
+
});
|
|
660
|
+
} catch (e) {
|
|
661
|
+
h(e instanceof Error ? e.message : "The next page could not be loaded.");
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
return a ? _ && !x ? /* @__PURE__ */ N("div", {
|
|
666
|
+
className: "flex justify-center p-12",
|
|
667
|
+
children: /* @__PURE__ */ N(k, { className: "h-8 w-8 animate-spin text-muted-foreground" })
|
|
668
|
+
}) : v && !x ? /* @__PURE__ */ N("div", {
|
|
669
|
+
className: "p-6",
|
|
670
|
+
children: /* @__PURE__ */ N(n, { message: Q(v, "Persona library could not be loaded") })
|
|
671
|
+
}) : /* @__PURE__ */ P("div", {
|
|
672
|
+
className: "space-y-6 p-6",
|
|
673
|
+
"data-testid": "persona-library-page",
|
|
674
|
+
children: [
|
|
675
|
+
/* @__PURE__ */ P("div", {
|
|
676
|
+
className: "flex flex-wrap items-start justify-between gap-3",
|
|
677
|
+
children: [/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ P("h1", {
|
|
678
|
+
className: "flex items-center gap-2 text-2xl font-semibold",
|
|
679
|
+
children: [/* @__PURE__ */ N(A, { className: "h-6 w-6" }), t("planmagnet.personas.title", "Persona library")]
|
|
680
|
+
}), /* @__PURE__ */ N("p", {
|
|
681
|
+
className: "mt-1 text-sm text-muted-foreground",
|
|
682
|
+
children: t("planmagnet.personas.subtitle", "Develop workspace Personas once and share them across products. Unlinking or deleting a product does not remove its Personas.")
|
|
683
|
+
})] }), i.canCreate && /* @__PURE__ */ N($, {})]
|
|
684
|
+
}),
|
|
685
|
+
i.readOnly && /* @__PURE__ */ N("p", {
|
|
686
|
+
role: "status",
|
|
687
|
+
className: "rounded-md bg-muted p-3 text-sm text-muted-foreground",
|
|
688
|
+
children: t("planmagnet.personas.readOnly", "You can view Personas, but your role cannot change them in this workspace.")
|
|
689
|
+
}),
|
|
690
|
+
/* @__PURE__ */ P("div", {
|
|
691
|
+
className: "flex flex-wrap items-center gap-3",
|
|
692
|
+
children: [
|
|
693
|
+
/* @__PURE__ */ N(z, {
|
|
694
|
+
"aria-label": t("planmagnet.personas.search", "Search Personas"),
|
|
695
|
+
placeholder: t("planmagnet.personas.searchHint", "Search by name, role or segment…"),
|
|
696
|
+
value: s,
|
|
697
|
+
onChange: (e) => c(e.target.value),
|
|
698
|
+
className: "max-w-xs",
|
|
699
|
+
"data-testid": "persona-search"
|
|
700
|
+
}),
|
|
701
|
+
/* @__PURE__ */ P(I, {
|
|
702
|
+
size: "sm",
|
|
703
|
+
variant: u ? "default" : "outline",
|
|
704
|
+
"aria-pressed": u,
|
|
705
|
+
onClick: () => d((e) => !e),
|
|
706
|
+
"data-testid": "persona-show-archived",
|
|
707
|
+
children: [/* @__PURE__ */ N(E, { className: "mr-1 h-4 w-4" }), t("planmagnet.personas.showArchived", "Show archived")]
|
|
708
|
+
}),
|
|
709
|
+
/* @__PURE__ */ N("span", {
|
|
710
|
+
className: "text-sm text-muted-foreground",
|
|
711
|
+
"data-testid": "persona-count",
|
|
712
|
+
children: t("planmagnet.personas.count", "{{count}} Personas", { count: x?.totalCount ?? 0 })
|
|
713
|
+
}),
|
|
714
|
+
_ && x && /* @__PURE__ */ N(k, {
|
|
715
|
+
"aria-label": t("planmagnet.personas.updating", "Updating results"),
|
|
716
|
+
className: "h-4 w-4 animate-spin text-muted-foreground"
|
|
717
|
+
})
|
|
718
|
+
]
|
|
719
|
+
}),
|
|
720
|
+
f && /* @__PURE__ */ P("div", {
|
|
721
|
+
role: "status",
|
|
722
|
+
className: "flex items-center justify-between gap-3 rounded-md bg-muted p-3 text-sm",
|
|
723
|
+
children: [/* @__PURE__ */ N("span", { children: f }), /* @__PURE__ */ N("button", {
|
|
724
|
+
type: "button",
|
|
725
|
+
className: "text-muted-foreground hover:underline",
|
|
726
|
+
onClick: () => p(null),
|
|
727
|
+
children: t("planmagnet.personas.dismiss", "Dismiss")
|
|
728
|
+
})]
|
|
729
|
+
}),
|
|
730
|
+
v && /* @__PURE__ */ N(n, { message: Q(v, "Persona library could not be refreshed") }),
|
|
731
|
+
(x?.items.length ?? 0) === 0 ? /* @__PURE__ */ N(L, { children: /* @__PURE__ */ N(R, {
|
|
732
|
+
className: "py-12 text-center text-sm text-muted-foreground",
|
|
733
|
+
children: l ? t("planmagnet.personas.emptySearch", "No Persona matches your search.") : u ? i.readOnly ? t("planmagnet.personas.emptyAllReadOnly", "No Personas in this workspace.") : t("planmagnet.personas.emptyAll", "No Personas yet. Choose a product when creating the first one.") : i.readOnly ? t("planmagnet.personas.emptyReadOnly", "No active Personas in this workspace.") : t("planmagnet.personas.empty", "No active Personas yet. Create one or show archived Personas.")
|
|
734
|
+
}) }) : /* @__PURE__ */ N("div", {
|
|
735
|
+
className: "grid gap-4 xl:grid-cols-2",
|
|
736
|
+
children: x?.items.map((e) => /* @__PURE__ */ N(pe, {
|
|
737
|
+
persona: e,
|
|
738
|
+
onNotice: p
|
|
739
|
+
}, e.id))
|
|
740
|
+
}),
|
|
741
|
+
m && /* @__PURE__ */ N(n, { message: m }),
|
|
742
|
+
x?.pageInfo.hasNextPage && /* @__PURE__ */ N(I, {
|
|
743
|
+
size: "sm",
|
|
744
|
+
variant: "outline",
|
|
745
|
+
disabled: !x.pageInfo.endCursor || _,
|
|
746
|
+
onClick: () => void S(),
|
|
747
|
+
"data-testid": "persona-load-more",
|
|
748
|
+
children: t("planmagnet.personas.more", "Load more Personas")
|
|
749
|
+
})
|
|
750
|
+
]
|
|
751
|
+
}) : /* @__PURE__ */ N("div", {
|
|
752
|
+
className: "p-6 text-sm text-muted-foreground",
|
|
753
|
+
children: t("planmagnet.personas.selectWorkspace", "Select a workspace to view Personas.")
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
function he({ productId: r, workspaceId: s, productArchived: l = !1 }) {
|
|
757
|
+
let u = e(), d = o(), f = i(), [p, m] = T(null), [h, _] = T(null), [y, b] = j(v, Y), { data: x, loading: S, error: C, fetchMore: w } = M(g, {
|
|
758
|
+
variables: {
|
|
759
|
+
workspaceId: s,
|
|
760
|
+
productId: r,
|
|
761
|
+
pagination: { first: q }
|
|
762
|
+
},
|
|
763
|
+
skip: !s || !r
|
|
764
|
+
}), E = x?.planmagnetProductPersonas, D = async (e) => {
|
|
765
|
+
m(null);
|
|
766
|
+
try {
|
|
767
|
+
await c(y({ variables: {
|
|
768
|
+
productId: r,
|
|
769
|
+
personaId: e.id
|
|
770
|
+
} }));
|
|
771
|
+
} catch (e) {
|
|
772
|
+
m(a(e, "Persona could not be unlinked.", Z()));
|
|
773
|
+
}
|
|
774
|
+
}, O = async () => {
|
|
775
|
+
let e = E?.pageInfo.endCursor;
|
|
776
|
+
if (e) {
|
|
777
|
+
_(null);
|
|
778
|
+
try {
|
|
779
|
+
await w({
|
|
780
|
+
variables: { pagination: {
|
|
781
|
+
first: q,
|
|
782
|
+
after: e
|
|
783
|
+
} },
|
|
784
|
+
updateQuery: (e, { fetchMoreResult: t }) => ({ planmagnetProductPersonas: {
|
|
785
|
+
...t.planmagnetProductPersonas,
|
|
786
|
+
items: [...e.planmagnetProductPersonas.items, ...t.planmagnetProductPersonas.items.filter((t) => !e.planmagnetProductPersonas.items.some((e) => e.id === t.id))]
|
|
787
|
+
} })
|
|
788
|
+
});
|
|
789
|
+
} catch (e) {
|
|
790
|
+
_(e instanceof Error ? e.message : "The next page could not be loaded.");
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
return /* @__PURE__ */ P(L, {
|
|
795
|
+
"data-testid": "product-personas-card",
|
|
796
|
+
children: [/* @__PURE__ */ P(ie, {
|
|
797
|
+
className: "space-y-3",
|
|
798
|
+
children: [/* @__PURE__ */ P("div", {
|
|
799
|
+
className: "flex flex-wrap items-center justify-between gap-3",
|
|
800
|
+
children: [/* @__PURE__ */ P(ae, {
|
|
801
|
+
className: "flex items-center gap-2 text-base",
|
|
802
|
+
children: [/* @__PURE__ */ N(A, { className: "h-4 w-4 text-primary" }), u("planmagnet.personas.productTitle", "Personas")]
|
|
803
|
+
}), /* @__PURE__ */ P("div", {
|
|
804
|
+
className: "flex flex-wrap items-center gap-2",
|
|
805
|
+
children: [
|
|
806
|
+
/* @__PURE__ */ N(I, {
|
|
807
|
+
size: "sm",
|
|
808
|
+
variant: "outline",
|
|
809
|
+
onClick: () => f("/products/personas-page"),
|
|
810
|
+
"data-testid": "product-persona-library",
|
|
811
|
+
children: u("planmagnet.personas.viewLibrary", "Persona library")
|
|
812
|
+
}),
|
|
813
|
+
!l && d.canUpdate && /* @__PURE__ */ N(de, { productId: r }),
|
|
814
|
+
!l && d.canCreate && /* @__PURE__ */ N($, { defaultProductId: r })
|
|
815
|
+
]
|
|
816
|
+
})]
|
|
817
|
+
}), /* @__PURE__ */ N("p", {
|
|
818
|
+
className: "text-sm text-muted-foreground",
|
|
819
|
+
children: u("planmagnet.personas.productDescription", "Personas are shared workspace records. Linking a Persona here never copies it.")
|
|
820
|
+
})]
|
|
821
|
+
}), /* @__PURE__ */ P(R, {
|
|
822
|
+
className: "space-y-3",
|
|
823
|
+
children: [
|
|
824
|
+
S && !E && /* @__PURE__ */ N("div", {
|
|
825
|
+
className: "flex justify-center py-6",
|
|
826
|
+
children: /* @__PURE__ */ N(k, { className: "h-6 w-6 animate-spin text-muted-foreground" })
|
|
827
|
+
}),
|
|
828
|
+
C && /* @__PURE__ */ N(n, { message: Q(C, "Product Personas could not be loaded") }),
|
|
829
|
+
l && /* @__PURE__ */ N("p", {
|
|
830
|
+
className: "text-sm text-muted-foreground",
|
|
831
|
+
children: u("planmagnet.personas.archivedProduct", "This product is archived. Its Persona links are read-only until it is unarchived.")
|
|
832
|
+
}),
|
|
833
|
+
d.readOnly && /* @__PURE__ */ N("p", {
|
|
834
|
+
role: "status",
|
|
835
|
+
className: "rounded-md bg-muted p-3 text-sm text-muted-foreground",
|
|
836
|
+
children: u("planmagnet.personas.readOnly", "You can view Personas, but your role cannot change them in this workspace.")
|
|
837
|
+
}),
|
|
838
|
+
!S && !C && E?.items.length === 0 && /* @__PURE__ */ N("p", {
|
|
839
|
+
className: "text-sm text-muted-foreground",
|
|
840
|
+
children: l ? u("planmagnet.personas.noArchivedProductPersonas", "No Personas were linked to this product.") : d.readOnly ? u("planmagnet.personas.noProductPersonasReadOnly", "No Personas are linked to this product.") : u("planmagnet.personas.noProductPersonas", "No Personas linked yet. Create one for this product or link an existing workspace Persona.")
|
|
841
|
+
}),
|
|
842
|
+
E && E.items.length > 0 && /* @__PURE__ */ N("ul", {
|
|
843
|
+
className: "space-y-3",
|
|
844
|
+
children: E.items.map((e) => /* @__PURE__ */ P("li", {
|
|
845
|
+
className: "rounded-md border p-3 text-sm",
|
|
846
|
+
"data-testid": "product-persona-row",
|
|
847
|
+
children: [
|
|
848
|
+
/* @__PURE__ */ P("div", {
|
|
849
|
+
className: "flex flex-wrap items-start justify-between gap-2",
|
|
850
|
+
children: [/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", {
|
|
851
|
+
className: "font-medium",
|
|
852
|
+
children: e.name
|
|
853
|
+
}), /* @__PURE__ */ N("p", {
|
|
854
|
+
className: "text-xs text-muted-foreground",
|
|
855
|
+
children: [e.roleTitle, e.segment].filter(Boolean).join(" · ") || u("planmagnet.personas.noRole", "Role not recorded")
|
|
856
|
+
})] }), /* @__PURE__ */ P("div", {
|
|
857
|
+
className: "flex items-center gap-2",
|
|
858
|
+
children: [/* @__PURE__ */ N(F, {
|
|
859
|
+
variant: "outline",
|
|
860
|
+
children: e.status === "VALIDATED" ? u("planmagnet.personas.validated", "Validated") : u("planmagnet.personas.draft", "Draft")
|
|
861
|
+
}), !l && d.canUpdate && e.status !== "ARCHIVED" && /* @__PURE__ */ N(t, {
|
|
862
|
+
label: u("planmagnet.personas.unlink", "Unlink"),
|
|
863
|
+
icon: /* @__PURE__ */ N(ne, {
|
|
864
|
+
"aria-hidden": "true",
|
|
865
|
+
className: "mr-1 h-4 w-4"
|
|
866
|
+
}),
|
|
867
|
+
title: u("planmagnet.personas.unlinkPersonaTitle", "Unlink {{name}}?", { name: e.name }),
|
|
868
|
+
description: u("planmagnet.personas.unlinkDescription", "The Persona remains in the workspace library and on any other products. Launch targets for this Persona on the unlinked product are removed."),
|
|
869
|
+
confirmLabel: u("planmagnet.personas.unlink", "Unlink product"),
|
|
870
|
+
disabled: b.loading,
|
|
871
|
+
variant: "outline",
|
|
872
|
+
onConfirm: () => void D(e)
|
|
873
|
+
})]
|
|
874
|
+
})]
|
|
875
|
+
}),
|
|
876
|
+
/* @__PURE__ */ N("p", {
|
|
877
|
+
className: "mt-2 whitespace-pre-wrap text-muted-foreground",
|
|
878
|
+
children: e.summary
|
|
879
|
+
}),
|
|
880
|
+
e.products.length > 1 && /* @__PURE__ */ N("p", {
|
|
881
|
+
className: "mt-2 text-xs text-muted-foreground",
|
|
882
|
+
children: u("planmagnet.personas.sharedWith", "Also linked to: {{names}}", { names: e.products.filter((e) => e.id !== r).map((e) => e.name).join(", ") })
|
|
883
|
+
})
|
|
884
|
+
]
|
|
885
|
+
}, e.id))
|
|
886
|
+
}),
|
|
887
|
+
p && /* @__PURE__ */ N(n, { message: p }),
|
|
888
|
+
h && /* @__PURE__ */ N(n, { message: h }),
|
|
889
|
+
E?.pageInfo.hasNextPage && /* @__PURE__ */ N(I, {
|
|
890
|
+
size: "sm",
|
|
891
|
+
variant: "outline",
|
|
892
|
+
disabled: !E.pageInfo.endCursor || S,
|
|
893
|
+
onClick: () => void O(),
|
|
894
|
+
"data-testid": "product-persona-load-more",
|
|
895
|
+
children: u("planmagnet.personas.more", "Load more Personas")
|
|
896
|
+
})
|
|
897
|
+
]
|
|
898
|
+
})]
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
export { me as PersonaLibraryPage, he as ProductPersonasCard };
|